auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void reportError ( @ com.android.annotations.Nullable com.android.tools.gradle.eclipse.EclipseProject project , @ com.android.annotations.Nullable java.io.File file , @ com.android.annotations.NonNull java.lang.String message ) throws java.io.IOException { java.lang.String text = com.android.tools.gradle.eclipse.GradleImport.formatMessage ( ( project != null ? project.getName ( ) : null ) , file , message ) ; mErrors.add ( text ) ; throw new java.io.IOException ( text ) ; }

Target:
public void reportError ( @ com.android.annotations.Nullable com.android.tools.gradle.eclipse.EclipseProject project , @ com.android.annotations.Nullable java.io.File file , @ com.android.annotations.NonNull java.lang.String message ) { reportError ( project , file , message , true ) ; }
Source:
public android.database.Cursor loadInBackground ( ) { android.database.Cursor strequentCursor = super . loadInBackground ( ) ; java.util.List < com.android.dialer.speeddial.room.SpeedDialEntry > entries = com.android.dialer.speeddial.room.SpeedDialDatabaseComponent.get ( getContext ( ) . getApplicationContext ( ) ) . speedDialDatabase ( ) . getSpeedDialEntryDao ( ) . getAllEntries ( ) ; return com.android.dialer.speeddial.SpeedDialCursor.newInstance ( strequentCursor , entries ) ; }

Target:
public android.database.Cursor loadInBackground ( ) { return com.android.dialer.speeddial.SpeedDialCursor.newInstance ( super . loadInBackground ( ) ) ; }
Source:
public java.net.Socket accept ( ) throws java.io.IOException { if ( ! ( sslParameters.getUseClientMode ( ) ) ) { checkEnabledCipherSuites ( ) ; } org.conscrypt.OpenSSLSocketImpl socket = new org.conscrypt.OpenSSLSocketImpl ( sslParameters , enabledProtocols.clone ( ) , enabledCipherSuites.clone ( ) ) ; socket.setChannelIdEnabled ( channelIdEnabled ) ; implAccept ( socket ) ; return socket ; }

Target:
public java.net.Socket accept ( ) throws java.io.IOException { org.conscrypt.OpenSSLSocketImpl socket = new org.conscrypt.OpenSSLSocketImpl ( sslParameters , enabledProtocols.clone ( ) , enabledCipherSuites.clone ( ) ) ; socket.setChannelIdEnabled ( channelIdEnabled ) ; implAccept ( socket ) ; return socket ; }
Source:
public java.nio.ByteBuffer putInt ( int i , int x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( checkIndex ( i , SizeOf.INT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putInt ( int i , int x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( checkIndex ( i , SizeOf.INT ) ) , x ) ; return this ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( isCallerSystemUid ( ) ) ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { clearInternal ( ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public boolean clearScores ( ) { if ( ( isCallerActiveScorer ( getCallingUid ( ) ) ) || ( isCallerSystemUid ( ) ) ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { clearInternal ( ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public int ratchetRat ( int oldRat , int newRat ) { synchronized ( mRatFamilyMap ) { final android.util.SparseIntArray oldFamily = mRatFamilyMap.get ( oldRat ) ; if ( oldFamily == null ) return newRat ; final android.util.SparseIntArray newFamily = mRatFamilyMap.get ( newRat ) ; if ( newFamily != oldFamily ) return newRat ; final int oldRatRank = newFamily.get ( oldRat , ( - 1 ) ) ; final int newRatRank = newFamily.get ( newRat , ( - 1 ) ) ; return oldRatRank > newRatRank ? oldRat : newRat ; } }

Target:
private int ratchetRat ( int oldRat , int newRat ) { synchronized ( mRatFamilyMap ) { final android.util.SparseIntArray oldFamily = mRatFamilyMap.get ( oldRat ) ; if ( oldFamily == null ) return newRat ; final android.util.SparseIntArray newFamily = mRatFamilyMap.get ( newRat ) ; if ( newFamily != oldFamily ) return newRat ; final int oldRatRank = newFamily.get ( oldRat , ( - 1 ) ) ; final int newRatRank = newFamily.get ( newRat , ( - 1 ) ) ; return oldRatRank > newRatRank ? oldRat : newRat ; } }
Source:
void load ( java.lang.String absolutePath , java.lang.ClassLoader loader ) { checkTargetSdkVersionForLoad ( "java.lang.Runtime#load(String, ClassLoader)" ) ; java.lang.System.logE ( ( "java.lang.Runtime#load(String, ClassLoader)" + " is private and will be removed in a future Android release" ) ) ; if ( absolutePath == null ) { throw new java.lang.NullPointerException ( "absolutePath == null" ) ; } java.lang.String error = doLoad ( absolutePath , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }

Target:
void load ( java.lang.String absolutePath , java.lang.ClassLoader loader ) { java.lang.System.logE ( ( "java.lang.Runtime#load(String, ClassLoader)" + " is private and will be removed in a future Android release" ) ) ; if ( absolutePath == null ) { throw new java.lang.NullPointerException ( "absolutePath == null" ) ; } java.lang.String error = doLoad ( absolutePath , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }
Source:
private void verifyOpenSSL ( org.conscrypt.OpenSSLKey pkey ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { try { org.conscrypt.NativeCrypto.X509_verify ( mContext , pkey.getPkeyContext ( ) ) ; } catch ( java.lang.RuntimeException e ) { throw new java.security.cert.CertificateException ( e ) ; } }

Target:
private void verifyOpenSSL ( org.conscrypt.OpenSSLKey pkey ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { try { org.conscrypt.NativeCrypto.X509_verify ( mContext , pkey.getPkeyContext ( ) ) ; } catch ( java.lang.RuntimeException e ) { throw new java.security.cert.CertificateException ( e ) ; } catch ( java.lang.Exception e ) { throw new java.security.SignatureException ( ) ; } }
Source:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( client.advertiserId , false , 0 ) ; } else { gattAdvertiseNative ( client.advertiserId , false ) ; try { mService.onAdvertiseInstanceEnabled ( AdvertiseCallback.ADVERTISE_SUCCESS , client.advertiserId , false ) ; } catch ( android.os.RemoteException e ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , "failed onAdvertiseInstanceDisabled" , e ) ; } } }

Target:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( client.advertiserId , false , 0 ) ; } else { gattAdvertiseNative ( false ) ; try { mService.onAdvertiseInstanceEnabled ( AdvertiseCallback.ADVERTISE_SUCCESS , client.advertiserId , false ) ; } catch ( android.os.RemoteException e ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , "failed onAdvertiseInstanceDisabled" , e ) ; } } }
Source:
public static boolean parseOutput ( java.util.List < java.lang.String > results , org.eclipse.core.resources.IProject project ) { return com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput ( results.toArray ( new java.lang.String [ results.size ( ) ] ) , project ) ; }

Target:
public static boolean parseOutput ( java.util.List < java.lang.String > results , org.eclipse.core.resources.IProject project ) { int size = results.size ( ) ; if ( size > 0 ) { return com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput ( results.toArray ( new java.lang.String [ size ] ) , project ) ; } return true ; }
Source:
public void TestNames ( ) { android.icu.util.ULocale en = android.icu.util.ULocale.ENGLISH ; boolean [ ] isChoiceFormat = new boolean [ 1 ] ; android.icu.util.Currency usd = android.icu.util.Currency.getInstance ( "USD" ) ; if ( ! ( noData ( ) ) ) { assertEquals ( "USD.getName(SYMBOL_NAME)" , "$" , usd.getName ( en , Currency.SYMBOL_NAME , isChoiceFormat ) ) ; assertEquals ( "USD.getName(LONG_NAME)" , "US Dollar" , usd.getName ( en , Currency.LONG_NAME , isChoiceFormat ) ) ; } }

Target:
public void TestNames ( ) { android.icu.util.ULocale en = android.icu.util.ULocale.ENGLISH ; boolean [ ] isChoiceFormat = new boolean [ 1 ] ; android.icu.util.Currency usd = android.icu.util.Currency.getInstance ( "USD" ) ; assertEquals ( "USD.getName(SYMBOL_NAME)" , "$" , usd.getName ( en , Currency.SYMBOL_NAME , isChoiceFormat ) ) ; assertEquals ( "USD.getName(LONG_NAME)" , "US Dollar" , usd.getName ( en , Currency.LONG_NAME , isChoiceFormat ) ) ; }
Source:
public int beforeHandshake ( int context ) throws javax.net.ssl.SSLException { int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( context ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_cipher_lists ( s , new java.lang.String [ ] { "RC4-MD5" } ) ; if ( ( channelIdPrivateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set1_tls_channel_id ( s , channelIdPrivateKey ) ; } return s ; }

Target:
public long beforeHandshake ( long context ) throws javax.net.ssl.SSLException { long s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( context ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_cipher_lists ( s , new java.lang.String [ ] { "RC4-MD5" } ) ; if ( ( channelIdPrivateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set1_tls_channel_id ( s , channelIdPrivateKey ) ; } return s ; }
Source:
public void onDestroy ( ) { unbindNetworkQueryService ( ) ; super . onDestroy ( ) ; if ( ( ( getActivity ( ) ) != null ) && ( ! ( getActivity ( ) . isDestroyed ( ) ) ) ) { getActivity ( ) . unregisterReceiver ( mPhoneChangeReceiver ) ; } }

Target:
public void onDestroy ( ) { unbindNetworkQueryService ( ) ; super . onDestroy ( ) ; if ( ( getActivity ( ) ) != null ) { getActivity ( ) . unregisterReceiver ( mPhoneChangeReceiver ) ; } }
Source:
public ScriptGroup2.Closure prepInit ( android.renderscript.ScriptGroup2.Builder b ) { return b.addInvoke ( s.getInvokeID_init_filter ( ) , new java.lang.Object [ ] { new java.lang.Integer ( dimX ) , new java.lang.Integer ( dimY ) , new java.lang.Float ( 0.5F ) , new java.lang.Float ( 0.5F ) , new java.lang.Float ( 0.5F ) , android.renderscript.Sampler.CLAMP_LINEAR ( mRS ) } , new java.util.HashMap < android.renderscript.Script.FieldID , java.lang.Object > ( ) ) ; }

Target:
public ScriptGroup2.Closure prepInit ( android.renderscript.ScriptGroup2.Builder b ) { return b.addInvoke ( s.getInvokeID_init_filter ( ) , dimX , dimY , 0.5F , 0.5F , 0.5F , android.renderscript.Sampler.CLAMP_LINEAR ( mRS ) ) ; }
Source:
public void onUserSwitched ( int userId ) { mServiceCache.invalidateCache ( userId ) ; mPreferredServices.onUserSwitched ( userId ) ; mHostNfcFEmulationManager.onUserSwitched ( ) ; mT3tIdentifiersCache.onUserSwitched ( ) ; mEnabledNfcFServices.onUserSwitched ( userId ) ; mNfcFServicesCache.invalidateCache ( userId ) ; }

Target:
public void onUserSwitched ( int userId ) { mServiceCache.invalidateCache ( userId ) ; mPreferredServices.onUserSwitched ( userId ) ; mHostNfcFEmulationManager.onUserSwitched ( ) ; mT3tIdentifiersCache.onUserSwitched ( ) ; mEnabledNfcFServices.onUserSwitched ( userId ) ; mNfcFServicesCache.onUserSwitched ( ) ; mNfcFServicesCache.invalidateCache ( userId ) ; }
Source:
public void moveToFront ( ) { checkCaller ( ) ; final com.android.server.am.TaskRecord tr ; synchronized ( this ) { tr = recentTaskForIdLocked ( mTaskId ) ; if ( tr == null ) { throw new java.lang.IllegalArgumentException ( ( "Unable to find task ID " + ( mTaskId ) ) ) ; } if ( ( tr.getRootActivity ( ) ) != null ) { moveTaskToFrontLocked ( tr.taskId , 0 , null ) ; return ; } } startActivityFromRecentsInner ( tr.taskId , null ) ; }

Target:
public void moveToFront ( ) { checkCaller ( ) ; startActivityFromRecentsInner ( mTaskId , null ) ; }
Source:
public void testSendText ( ) { mCdmaSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false ) ; verify ( mSimulatedCommandsVerifier ) . sendCdmaSms ( any ( byte [ ] . class ) , any ( android.os.Message.class ) ) ; }

Target:
public void testSendText ( ) { mCdmaSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; verify ( mSimulatedCommandsVerifier ) . sendCdmaSms ( any ( byte [ ] . class ) , any ( android.os.Message.class ) ) ; }
Source:
public synchronized void run ( com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) throws java.lang.Exception { if ( ( declaredType.isExternal ( ) ) || ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) ) { return ; } com.android.jack.Jack.getSession ( ) . getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }

Target:
public synchronized void run ( com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) throws java.lang.Exception { if ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } com.android.jack.Jack.getSession ( ) . getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }
Source:
private static void reduceBit ( long [ ] buf , int off , int bit , int m , int [ ] ks ) { org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , bit ) ; int base = bit - m ; int j = ks.length ; while ( ( -- j ) >= 0 ) { org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , ( ( ks [ j ] ) + base ) ) ; } org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , base ) ; }

Target:
private static void reduceBit ( long [ ] buf , int off , int bit , int m , int [ ] ks ) { org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , bit ) ; int n = bit - m ; int j = ks.length ; while ( ( -- j ) >= 0 ) { org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , ( ( ks [ j ] ) + n ) ) ; } org.bouncycastle.math.ec.LongArray.flipBit ( buf , off , n ) ; }
Source:
public void onError ( android.preference.Preference preference , int error ) { if ( DBG ) dumpState ( ) ; if ( DBG ) android.util.Log.d ( com.android.phone.TimeConsumingPreferenceActivity.LOG_TAG , ( ( ( "onError, preference=" + ( preference.getKey ( ) ) ) + ", error=" ) + error ) ) ; if ( mIsForeground ) { showDialog ( error ) ; } preference.setEnabled ( false ) ; }

Target:
public void onError ( android.preference.Preference preference , int error ) { if ( DBG ) dumpState ( ) ; android.util.Log.i ( com.android.phone.TimeConsumingPreferenceActivity.LOG_TAG , ( ( ( "onError, preference=" + ( preference.getKey ( ) ) ) + ", error=" ) + error ) ) ; if ( mIsForeground ) { showDialog ( error ) ; } preference.setEnabled ( false ) ; }
Source:
public com.intellij.codeInspection.reference.RefParameter getParameterReference ( final com.intellij.codeInspection.reference.PsiParameter param , final int index ) { BRANCH ( 528 ) ; com.intellij.codeInspection.reference.b35 Snapshot = ( idea ) / 140.211 ; git : com.intellij.codeInspection.reference.RefJavaManagerImpl.LOG.assertTrue ( myRefManager.isValidPointForReference ( ) , "References may become invalid after process is finished" ) ; return myRefManager.getFromRefTableOrCache ( param , new com.intellij.codeInspection.reference.NullableFactory < com.intellij.codeInspection.reference.RefParameter > ( ) { @ org.jetbrains.annotations.Nullable @ java.lang.Override public com.intellij.codeInspection.reference.RefParameter create ( ) { com.intellij.codeInspection.reference.RefParameter ref = new com.intellij.codeInspection.reference.RefParameterImpl ( param , index , myRefManager ) ; ( ( com.intellij.codeInspection.reference.RefParameterImpl ) ( ref ) ) . initialize ( ) ; return ref ; } } ) ; }

Target:
public com.intellij.codeInspection.reference.RefParameter getParameterReference ( final com.intellij.codeInspection.reference.PsiParameter param , final int index ) { com.intellij.codeInspection.reference.RefJavaManagerImpl.LOG.assertTrue ( myRefManager.isValidPointForReference ( ) , "References may become invalid after process is finished" ) ; return myRefManager.getFromRefTableOrCache ( param , new com.intellij.codeInspection.reference.NullableFactory < com.intellij.codeInspection.reference.RefParameter > ( ) { @ org.jetbrains.annotations.Nullable @ java.lang.Override public com.intellij.codeInspection.reference.RefParameter create ( ) { com.intellij.codeInspection.reference.RefParameter ref = new com.intellij.codeInspection.reference.RefParameterImpl ( param , index , myRefManager ) ; ( ( com.intellij.codeInspection.reference.RefParameterImpl ) ( ref ) ) . initialize ( ) ; return ref ; } } ) ; }
Source:
void attach ( ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( ( "Attaching " + ( this ) ) + " token=" ) + ( mToken ) ) + ", list=" ) + ( mToken.windows ) ) ) ; mSession.windowAddedLocked ( ) ; }

Target:
void attach ( ) { if ( com.android.server.WindowManagerService.localLOGV ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( ( "Attaching " + ( this ) ) + " token=" ) + ( mToken ) ) + ", list=" ) + ( mToken.windows ) ) ) ; mSession.windowAddedLocked ( ) ; }
Source:
public void addAssignment ( com.android.jack.dx.rop.code.Insn insn , com.android.jack.dx.rop.code.RegisterSpec spec ) { throwIfImmutable ( ) ; if ( insn == null ) { throw new java.lang.NullPointerException ( "insn == null" ) ; } if ( spec == null ) { throw new java.lang.NullPointerException ( "spec == null" ) ; } insnAssignments.put ( insn , spec ) ; }

Target:
public void addAssignment ( com.android.jack.dx.rop.code.Insn insn , com.android.jack.dx.rop.code.RegisterSpec spec ) { assert insn != null ; assert spec != null ; throwIfImmutable ( ) ; insnAssignments.put ( insn , spec ) ; }
Source:
private com.android.server.telecom.InCallController.InCallServiceInfo getInCallServiceComponent ( android.content.ComponentName componentName , int type ) { java.util.List < com.android.server.telecom.InCallController.InCallServiceInfo > list = getInCallServiceComponents ( componentName , type ) ; if ( ( list != null ) && ( ! ( list.isEmpty ( ) ) ) ) { return list.get ( 0 ) ; } else { android.telecom.Log.e ( this , new java.lang.Exception ( ) , ( ( "Package Manager could not find ComponentName: " + componentName ) + ". Trying to bind anyway." ) ) ; return new com.android.server.telecom.InCallController.InCallServiceInfo ( componentName , false , type ) ; } }

Target:
private com.android.server.telecom.InCallController.InCallServiceInfo getInCallServiceComponent ( android.content.ComponentName componentName , int type ) { java.util.List < com.android.server.telecom.InCallController.InCallServiceInfo > list = getInCallServiceComponents ( componentName , type ) ; if ( ( list != null ) && ( ! ( list.isEmpty ( ) ) ) ) { return list.get ( 0 ) ; } else { android.telecom.Log.e ( this , new java.lang.Exception ( ) , ( ( "Package Manager could not find ComponentName: " + componentName ) + ". Trying to bind anyway." ) ) ; return new com.android.server.telecom.InCallController.InCallServiceInfo ( componentName , false , false , type ) ; } }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) <= 24 ) { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . description ( ( "Sign in " + email ) ) ) . exists ( ) ; } else { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( ( "Sign in " + email ) ) ) . exists ( ) ; } }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) == 24 ) { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . description ( ( "Sign in " + email ) ) ) . exists ( ) ; } else { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( ( "Sign in " + email ) ) ) . exists ( ) ; } }
Source:
static java.math.BigInteger checkNonNegative ( java.lang.String role , java.math.BigInteger x ) { if ( ( com.google.common.base.Preconditions.checkNotNull ( x ) . signum ( ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( ( ( role + " (" ) + x ) + ") must be >= 0" ) ) ; } return x ; }

Target:
static java.math.BigInteger checkNonNegative ( @ javax.annotation.Nullable java.lang.String role , java.math.BigInteger x ) { if ( ( x.signum ( ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( ( ( role + " (" ) + x ) + ") must be >= 0" ) ) ; } return x ; }
Source:
private static final long getMillisOf ( java.util.Calendar calendar ) { if ( calendar.isTimeSet ) { return calendar.time ; } java.util.Calendar cal = ( ( java.util.Calendar ) ( calendar.clone ( ) ) ) ; cal.setLenient ( true ) ; return cal.getTimeInMillis ( ) ; }

Target:
private static long getMillisOf ( java.util.Calendar calendar ) { if ( calendar.isTimeSet ) { return calendar.time ; } java.util.Calendar cal = ( ( java.util.Calendar ) ( calendar.clone ( ) ) ) ; cal.setLenient ( true ) ; return cal.getTimeInMillis ( ) ; }
Source:
public void testVrHighPerformanceH264 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } boolean h264IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_AVC ) ; assertTrue ( "Did not find a VR ready H.264 decoder" , h264IsReady ) ; decodeInParallel ( R.raw.bbb_s4_1920x1080_wide_mp4_h264_mp4_20mbps_30fps_aac_he_5ch_200kbps_44100hz , 150 , 30 , 4 ) ; decodeInParallel ( R.raw.bbb_s2_1920x1080_mp4_h264_mp42_20mbps_60fps_aac_he_v2_5ch_160kbps_48000hz , 300 , 60 , 2 ) ; }

Target:
public void testVrHighPerformanceH264 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } boolean h264IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_AVC ) ; assertTrue ( "Did not find a VR ready H.264 decoder" , h264IsReady ) ; }
Source:
public com.android.hotspot2.pps.HomeSP addSP ( com.android.hotspot2.omadm.MOTree instanceTree ) throws java.io.IOException , org.xml.sax.SAXException { android.net.wifi.WifiManager wifiManager = ( ( android.net.wifi.WifiManager ) ( mContext.getSystemService ( Context.WIFI_SERVICE ) ) ) ; java.lang.String xml = instanceTree.toXml ( ) ; wifiManager.addPasspointManagementObject ( xml ) ; return com.android.hotspot2.omadm.MOManager.buildSP ( xml ) ; }

Target:
public com.android.hotspot2.pps.HomeSP addSP ( com.android.hotspot2.omadm.MOTree instanceTree ) throws java.io.IOException , org.xml.sax.SAXException { android.net.wifi.WifiManager wifiManager = ( ( android.net.wifi.WifiManager ) ( mContext.getSystemService ( Context.WIFI_SERVICE ) ) ) ; java.lang.String xml = instanceTree.toXml ( ) ; return null ; }
Source:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.apache.harmony.xnet.provider.jsse.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx.getContext ( ) ) ; if ( ( ! ( encrypting ) ) || ( ( padding ) == ( org.apache.harmony.xnet.provider.jsse.OpenSSLCipher.Padding.NOPADDING ) ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }

Target:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.apache.harmony.xnet.provider.jsse.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx.getContext ( ) ) ; if ( ( padding ) == ( org.apache.harmony.xnet.provider.jsse.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; if ( ! ( NativeCrypto.isBoringSSL ) ) { assertEquals ( "ALPN should not enable cutthrough on the server" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; } super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new tests.support.Support_TestWebServer ( ) ; server.setDelay ( 10 ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = server.initServer ( ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; url3 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test3" ) ) ; uc3 = url3.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new tests.support.Support_TestWebServer ( ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = server.initServer ( ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; url3 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test3" ) ) ; uc3 = url3.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; }
Source:
public android.os.ParcelFileDescriptor createSocketChannel ( int type , java.lang.String serviceName , android.os.ParcelUuid uuid , int port , int flag ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "createSocketChannel() - Not allowed for non-active user" ) ; return null ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return null ; return service.createSocketChannel ( type , serviceName , uuid , port , flag ) ; }

Target:
public android.os.ParcelFileDescriptor createSocketChannel ( int type , java.lang.String serviceName , android.os.ParcelUuid uuid , int port , int flag ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "createSocketChannel() - Not allowed for non-active user" ) ; return null ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return null ; } return service.createSocketChannel ( type , serviceName , uuid , port , flag ) ; }
Source:
public final boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.jack.ir.ast.JReferenceTypeCommon ) { boolean equals = ( getId ( ) ) == ( ( ( com.android.jack.ir.ast.JReferenceTypeCommon ) ( obj ) ) . getId ( ) ) ; assert equals == ( com.android.jack.Jack.getLookupFormatter ( ) . getName ( ( ( com.android.jack.ir.ast.JType ) ( obj ) ) ) . equals ( com.android.jack.Jack.getLookupFormatter ( ) . getName ( this ) ) ) ; return equals ; } else { return false ; } }

Target:
public final boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.jack.ir.ast.JReferenceTypeCommon ) { return ( getId ( ) ) == ( ( ( com.android.jack.ir.ast.JReferenceTypeCommon ) ( obj ) ) . getId ( ) ) ; } else { return false ; } }
Source:
private void assertSocketStillOpen ( java.io.FileDescriptor fd , java.lang.String host ) throws java.lang.Exception { try { sendRequest ( fd , host ) ; } finally { android.system.Os.close ( fd ) ; } }

Target:
private void assertSocketStillOpen ( java.io.FileDescriptor fd , java.lang.String host ) throws java.lang.Exception { try { assertTrue ( fd.valid ( ) ) ; sendRequest ( fd , host ) ; assertTrue ( fd.valid ( ) ) ; } finally { android.system.Os.close ( fd ) ; } }
Source:
public void testRenderingMaxResolutionRemotely ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRenderingMaxResolutionRemotely" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , ( ( ( "Trying resolution w:" + ( maxRes.first ) ) + " h:" ) + ( maxRes.second ) ) ) ; runTestRenderingInSeparateThread ( maxRes.first , maxRes.second , true , false ) ; }

Target:
public void testRenderingMaxResolutionRemotely ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRenderingMaxResolutionRemotely" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( maxRes == null ) return ; android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , ( ( ( "Trying resolution w:" + ( maxRes.first ) ) + " h:" ) + ( maxRes.second ) ) ) ; runTestRenderingInSeparateThread ( maxRes.first , maxRes.second , true , false ) ; }
Source:
private boolean haveArtifact ( java.lang.String groupId ) { if ( ( mRootModules ) != null ) { for ( com.android.tools.gradle.eclipse.ImportModule module : mRootModules ) { for ( com.android.ide.common.repository.GradleCoordinate dependency : module.getDependencies ( ) ) { if ( groupId.equals ( dependency.getGroupId ( ) ) ) { return true ; } } } } return false ; }

Target:
private boolean haveArtifact ( java.lang.String groupId ) { for ( com.android.tools.gradle.eclipse.ImportModule module : mRootModules ) { for ( com.android.ide.common.repository.GradleCoordinate dependency : module.getDependencies ( ) ) { if ( groupId.equals ( dependency.getGroupId ( ) ) ) { return true ; } } } return false ; }
Source:
public void writeTo ( java.io.OutputStream out , com.android.dx.dex.file.DexFile.Storage storage , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose , storage ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }

Target:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }
Source:
public boolean hasNextInt ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isIntValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , java.util.Scanner.DataType.INT ) ; try { cachedNextValue = java.lang.Integer.valueOf ( intString , radix ) ; isIntValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isIntValue ; }

Target:
public boolean hasNextInt ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isIntValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , int . class ) ; try { cachedNextValue = java.lang.Integer.valueOf ( intString , radix ) ; isIntValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isIntValue ; }
Source:
public void setAllowOrientationChange ( boolean allowOrientationChange ) { if ( ! allowOrientationChange ) { setRequestedOrientation ( InCallOrientationEventListener.ACTIVITY_PREFERENCE_DISALLOW_ROTATION ) ; } else { setRequestedOrientation ( InCallOrientationEventListener.ACTIVITY_PREFERENCE_ALLOW_ROTATION ) ; } enableInCallOrientationEventListener ( allowOrientationChange ) ; }

Target:
public void setAllowOrientationChange ( boolean allowOrientationChange ) { if ( ( this . allowOrientationChange ) == allowOrientationChange ) { return ; } this . allowOrientationChange = allowOrientationChange ; if ( ! allowOrientationChange ) { setRequestedOrientation ( InCallOrientationEventListener.ACTIVITY_PREFERENCE_DISALLOW_ROTATION ) ; } else { setRequestedOrientation ( InCallOrientationEventListener.ACTIVITY_PREFERENCE_ALLOW_ROTATION ) ; } enableInCallOrientationEventListener ( allowOrientationChange ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { org.eclipse.jdt.core.IJavaProject javaProject = mProjectChooser.chooseJavaProject ( null , "Please select a library project" ) ; if ( javaProject != null ) { org.eclipse.core.resources.IProject iProject = javaProject.getProject ( ) ; org.eclipse.core.runtime.IPath relativePath = com.android.ide.eclipse.adt.internal.sdk.Sdk.makeRelativeTo ( iProject.getLocation ( ) , mState.getProject ( ) . getLocation ( ) ) ; addItem ( relativePath.toString ( ) , iProject , ( - 1 ) ) ; resetEnabled ( ) ; mMustSave = true ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { org.eclipse.jdt.core.IJavaProject javaProject = mProjectChooser.chooseJavaProject ( null , "Please select a library project" ) ; if ( javaProject != null ) { org.eclipse.core.resources.IProject iProject = javaProject.getProject ( ) ; org.eclipse.core.runtime.IPath relativePath = iProject.getLocation ( ) . makeRelativeTo ( mState.getProject ( ) . getLocation ( ) ) ; addItem ( relativePath.toString ( ) , iProject , ( - 1 ) ) ; resetEnabled ( ) ; mMustSave = true ; } }
Source:
public void testTimedPoll0 ( ) throws java.lang.InterruptedException { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , ( ( jsr166.DelayQueueTest.PDelay ) ( q.poll ( 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ) ) ; } assertNull ( q.poll ( 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; }

Target:
public void testTimedPoll0 ( ) throws java.lang.InterruptedException { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , q.poll ( 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; } assertNull ( q.poll ( 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; }
Source:
public java.io.PrintStream getPrintStream ( ) { if ( ( file ) == null ) { return new com.android.sched.util.stream.UncloseablePrintStream ( java.lang.System.out ) ; } else { clearRemover ( ) ; try { return new java.io.PrintStream ( file ) ; } catch ( java.io.FileNotFoundException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } }

Target:
public java.io.PrintStream getPrintStream ( ) { return java.lang.System.out ; }
Source:
public void testElement ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , ( ( jsr166.DelayQueueTest.PDelay ) ( q.element ( ) ) ) ) ; q.poll ( ) ; } try { q.element ( ) ; shouldThrow ( ) ; } catch ( java.util.NoSuchElementException success ) { } }

Target:
public void testElement ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , q.element ( ) ) ; q.poll ( ) ; } try { q.element ( ) ; shouldThrow ( ) ; } catch ( java.util.NoSuchElementException success ) { } }
Source:
public void getDownloadableSubscriptionMetadata ( android.telephony.euicc.DownloadableSubscription subscription , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . getDownloadableSubscriptionMetadata ( subscription , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getDownloadableSubscriptionMetadata ( android.telephony.euicc.DownloadableSubscription subscription , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getDownloadableSubscriptionMetadata ( subscription , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.lang.Object clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.ArrayList < E > v = ( ( java.util.ArrayList < E > ) ( super . clone ( ) ) ) ; v.elementData = java.util.Arrays.copyOf ( elementData , size ) ; v.modCount = 0 ; return v ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.util.ArrayList < ? > v = ( ( java.util.ArrayList < ? > ) ( super . clone ( ) ) ) ; v.elementData = java.util.Arrays.copyOf ( elementData , size ) ; v.modCount = 0 ; return v ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
public void testDescendingAddAll3 ( ) { try { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( ( i + ( SIZE ) ) ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testDescendingAddAll3 ( ) { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( ( i + ( SIZE ) ) ) ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public static < T > int indexOf ( java.util.Iterator < T > iterator , com.google.common.base.Predicate < ? super T > predicate ) { com.google.common.base.Preconditions.checkNotNull ( predicate , "predicate" ) ; int i = 0 ; while ( iterator.hasNext ( ) ) { T current = iterator.next ( ) ; if ( predicate.apply ( current ) ) { return i ; } i ++ ; } return - 1 ; }

Target:
public static < T > int indexOf ( java.util.Iterator < T > iterator , com.google.common.base.Predicate < ? super T > predicate ) { com.google.common.base.Preconditions.checkNotNull ( predicate , "predicate" ) ; for ( int i = 0 ; iterator.hasNext ( ) ; i ++ ) { T current = iterator.next ( ) ; if ( predicate.apply ( current ) ) { return i ; } } return - 1 ; }
Source:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key , int initialSize ) { if ( key.contentEquals ( "currency" ) ) { } else if ( key.contentEquals ( "compound" ) ) { if ( ! ( cacheData.hasPerFormatter ( width ) ) ) { return compoundSink ; } } else { type = key.toString ( ) ; return subtypeSink ; } return null ; }

Target:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key ) { if ( key.contentEquals ( "currency" ) ) { } else if ( key.contentEquals ( "compound" ) ) { if ( ! ( cacheData.hasPerFormatter ( width ) ) ) { return compoundSink ; } } else { type = key.toString ( ) ; return subtypeSink ; } return null ; }
Source:
public int getRemoteType ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getRemoteType() - Not allowed for non-active user" ) ; return android.bluetooth.BluetoothDevice.DEVICE_TYPE_UNKNOWN ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return android.bluetooth.BluetoothDevice.DEVICE_TYPE_UNKNOWN ; return service.getRemoteType ( device ) ; }

Target:
public int getRemoteType ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getRemoteType() - Not allowed for non-active user" ) ; return android.bluetooth.BluetoothDevice.DEVICE_TYPE_UNKNOWN ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothDevice.DEVICE_TYPE_UNKNOWN ; } return service.getRemoteType ( device ) ; }
Source:
public void focusChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { loadImage ( ) ; selectedNode = model.getSelected ( ) ; } } } ) ; doRedraw ( ) ; }

Target:
public void run ( ) { synchronized ( this ) { loadImage ( ) ; } }
Source:
public com.android.jack.dx.dex.file.TypeIdItem intern ( com.android.jack.dx.rop.cst.CstType type ) { if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.rop.type.Type typePerSe = type.getClassType ( ) ; com.android.jack.dx.dex.file.TypeIdItem result = typeIds.get ( typePerSe ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.TypeIdItem ( type ) ; typeIds.put ( typePerSe , result ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.TypeIdItem intern ( com.android.jack.dx.rop.type.Type type ) { assert type != null ; throwIfPrepared ( ) ; com.android.jack.dx.dex.file.TypeIdItem result = typeIds.get ( type ) ; if ( result == null ) { result = new com.android.jack.dx.dex.file.TypeIdItem ( type ) ; typeIds.put ( type , result ) ; } return result ; }
Source:
private java.util.Set < java.lang.String > getPubkeyBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( path , com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_SERIAL_BLACKLIST_PATH ) ; java.util.Set < byte [ ] > arr = bl.pubkeyBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( byte [ ] value : arr ) { results.add ( new java.lang.String ( com.android.org.bouncycastle.util.encoders.Hex.encode ( value ) ) ) ; } return results ; }

Target:
private java.util.Set < java.lang.String > getPubkeyBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( path , com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_SERIAL_BLACKLIST_PATH ) ; java.util.Set < byte [ ] > arr = bl.pubkeyBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( byte [ ] value : arr ) { results.add ( new java.lang.String ( value ) ) ; } return results ; }
Source:
public static java.awt.image.BufferedImage getStencilImage ( java.lang.String relativePath ) throws java.io.IOException { java.io.InputStream is = com.android.assetstudiolib.GraphicGenerator.class . getResourceAsStream ( relativePath ) ; try { return javax.imageio.ImageIO.read ( is ) ; } finally { com.google.common.io.Closeables.closeQuietly ( is ) ; } }

Target:
public static java.awt.image.BufferedImage getStencilImage ( java.lang.String relativePath ) throws java.io.IOException { java.io.InputStream is = com.android.assetstudiolib.GraphicGenerator.class . getResourceAsStream ( relativePath ) ; if ( is == null ) { return null ; } try { return javax.imageio.ImageIO.read ( is ) ; } finally { com.google.common.io.Closeables.closeQuietly ( is ) ; } }
Source:
private java.lang.String getContents ( java.io.File file ) { java.lang.String s = mFileContents.get ( file ) ; if ( s == null ) { s = readFile ( file ) ; if ( s == null ) { s = "" ; } mFileContents.put ( file , s ) ; } return s ; }

Target:
private java.lang.String getContents ( java.io.File file ) { java.lang.String s = mFileContents.get ( file ) ; if ( s == null ) { s = readFile ( file ) ; mFileContents.put ( file , s ) ; } return s ; }