auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static java.lang.String checkSinglePath ( java.lang.String attribute , org.apache.tools.ant.types.Path path ) { java.lang.String [ ] paths = path.list ( ) ; if ( ( paths.length ) != 1 ) { throw new org.apache.tools.ant.BuildException ( java.lang.String.format ( "Path value for '%1$s' is not valid." , attribute ) ) ; } return paths [ 0 ] ; }

Target:
static java.lang.String checkSinglePath ( java.lang.String attribute , org.apache.tools.ant.types.Path path ) { java.lang.String [ ] paths = path.list ( ) ; if ( ( paths.length ) != 1 ) { throw new org.apache.tools.ant.BuildException ( java.lang.String.format ( "Value for '%1$s' is not valid. It must resolve to a single path" , attribute ) ) ; } return paths [ 0 ] ; }
Source:
public void write ( java.io.OutputStream out ) throws java.io.IOException { try { signer = new com.android.signapk.SignApk.WholeFileSignerOutputStream ( out , outputStream ) ; java.util.jar.JarOutputStream outputJar = new java.util.jar.JarOutputStream ( signer ) ; com.android.signapk.SignApk.copyFiles ( inputJar , com.android.signapk.SignApk.STRIP_PATTERN , outputJar , timestamp , 0 ) ; com.android.signapk.SignApk.addOtacert ( outputJar , publicKeyFile , timestamp ) ; signer.notifyClosing ( ) ; outputJar.close ( ) ; signer.finish ( ) ; } catch ( java.lang.Exception e ) { throw new java.io.IOException ( e ) ; } }

Target:
public void write ( java.io.OutputStream out ) throws java.io.IOException { try { signer = new com.android.signapk.SignApk.WholeFileSignerOutputStream ( out , outputStream ) ; java.util.jar.JarOutputStream outputJar = new java.util.jar.JarOutputStream ( signer ) ; com.android.signapk.SignApk.copyFiles ( inputJar , com.android.signapk.SignApk.CMSSigner.STRIP_PATTERN , null , outputJar , timestamp , 0 ) ; com.android.signapk.SignApk.addOtacert ( outputJar , publicKeyFile , timestamp ) ; signer.notifyClosing ( ) ; outputJar.close ( ) ; signer.finish ( ) ; } catch ( java.lang.Exception e ) { throw new java.io.IOException ( e ) ; } }
Source:
public static void resetSettings ( ) { if ( ! ( android.autofillservice.cts.Helper.hasAutofillFeature ( ) ) ) return ; android.autofillservice.cts.Helper.runShellCommand ( "settings delete secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; }

Target:
public void disableService ( ) { if ( ! ( android.autofillservice.cts.Helper.hasAutofillFeature ( ) ) ) return ; if ( ! ( android.autofillservice.cts.AutoFillServiceTestCase.isServiceEnabled ( ) ) ) return ; final android.autofillservice.cts.OneTimeSettingsListener observer = new android.autofillservice.cts.OneTimeSettingsListener ( android.autofillservice.cts.AutoFillServiceTestCase.getContext ( ) , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; android.autofillservice.cts.Helper.runShellCommand ( "settings delete secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; observer.assertCalled ( ) ; android.autofillservice.cts.AutoFillServiceTestCase.assertServiceDisabled ( ) ; android.autofillservice.cts.InstrumentedAutoFillService.setIgnoreUnexpectedRequests ( false ) ; }
Source:
void conference ( final com.android.server.telecom.Call call , com.android.server.telecom.Call otherCall ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; final java.lang.String otherCallId = mCallIdMapper.getCallId ( otherCall ) ; if ( ( ( callId != null ) && ( otherCallId != null ) ) && ( isServiceValid ( "conference" ) ) ) { try { logOutgoing ( "conference %s %s" , callId , otherCallId ) ; mServiceInterface.conference ( callId , otherCallId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void conference ( final com.android.server.telecom.Call call , com.android.server.telecom.Call otherCall ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; final java.lang.String otherCallId = mCallIdMapper.getCallId ( otherCall ) ; if ( ( ( callId != null ) && ( otherCallId != null ) ) && ( isServiceValid ( "conference" ) ) ) { try { logOutgoing ( "conference %s %s" , callId , otherCallId ) ; mServiceInterface.conference ( callId , otherCallId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { if ( ( existingDesc == null ) || ( ! ( getType ( ) . equals ( existingDesc.getType ( ) ) ) ) ) { return false ; } int diff = version.compareTo ( existingDesc.getAndroidVersion ( ) ) ; return ( diff > 0 ) || ( ( diff == 0 ) && ( ( revision.compareTo ( existingDesc.getMajorRevision ( ) ) ) > 0 ) ) ; }

Target:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) ;
Source:
public java.nio.ByteBuffer putDouble ( int index , double value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.DOUBLE ) ; this . block.pokeLong ( ( ( offset ) + index ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putDouble ( int index , double value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.DOUBLE ) ; this . block.pokeLong ( ( ( offset ) + index ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; return this ; }
Source:
public static byte [ ] toBytes ( int majorFormatVersion , int minorFormatVerison , java.lang.String rulesVersion , int revision ) { return ( ( ( ( ( libcore.tzdata.update2.DistroVersion.toFormatVersionString ( majorFormatVersion , minorFormatVerison ) ) + "|" ) + rulesVersion ) + "|" ) + ( libcore.tzdata.update2.DistroVersion.to3DigitVersionString ( revision ) ) ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; }

Target:
public static byte [ ] toBytes ( int majorFormatVersion , int minorFormatVerison , java.lang.String rulesVersion , int revision ) { return ( ( ( ( ( libcore.tzdata.shared2.DistroVersion.toFormatVersionString ( majorFormatVersion , minorFormatVerison ) ) + "|" ) + rulesVersion ) + "|" ) + ( libcore.tzdata.shared2.DistroVersion.to3DigitVersionString ( revision ) ) ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( java.lang.Object value : getValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( com.android.tools.perflib.heap.ClassInstance.FieldValue field : getValues ( ) ) { if ( ( field.getValue ( ) ) instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) . addReference ( this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( field.getValue ( ) ) ) ) ; } } mReferencesAdded = true ; }
Source:
public void testGetRestrictBackgroundStatus_disabled ( ) throws java.lang.Exception { if ( ! ( isSupported ( ) ) ) return ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; addRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 0 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; assertsForegroundAlwaysHasNetworkAccess ( ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_DISABLED ) ; }

Target:
public void testGetRestrictBackgroundStatus_whitelisted ( ) throws java.lang.Exception { if ( ! ( isSupported ( ) ) ) return ; setRestrictBackground ( true ) ; assertRestrictBackgroundChangedReceived ( 1 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; addRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 2 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_WHITELISTED ) ; removeRestrictBackgroundWhitelist ( mUid ) ; assertRestrictBackgroundChangedReceived ( 3 ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; assertsForegroundAlwaysHasNetworkAccess ( ) ; assertDataSaverStatusOnBackground ( android.net.ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED ) ; }
Source:
private static void checkMethodAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation ) { java.lang.String signature = annotation.getSignature ( ) ; if ( ( com.android.tools.lint.checks.SupportAnnotationDetector.CHECK_RESULT_ANNOTATION.equals ( signature ) ) || ( signature.endsWith ( ".CheckReturnValue" ) ) ) { com.android.tools.lint.checks.SupportAnnotationDetector.checkResult ( context , node , annotation ) ; } }

Target:
private void checkMethodAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation ) { java.lang.String signature = annotation.getSignature ( ) ; if ( ( com.android.tools.lint.checks.SupportAnnotationDetector.CHECK_RESULT_ANNOTATION.equals ( signature ) ) || ( signature.endsWith ( ".CheckReturnValue" ) ) ) { com.android.tools.lint.checks.SupportAnnotationDetector.checkResult ( context , node , annotation ) ; } else if ( ( signature.endsWith ( com.android.tools.lint.checks.SupportAnnotationDetector.THREAD_SUFFIX ) ) && ( signature.startsWith ( com.android.SdkConstants.SUPPORT_ANNOTATIONS_PREFIX ) ) ) { com.android.tools.lint.checks.SupportAnnotationDetector.checkThreading ( context , node , method , signature ) ; } }
Source:
public void test_getResourceAsStream_withSharpChar ( ) throws java.lang.Exception { java.io.InputStream in = getClass ( ) . getResourceAsStream ( ( "/" + ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ) ) ; assertNotNull ( in ) ; in.close ( ) ; in = getClass ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ; assertNull ( in ) ; in = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassTest.FILENAME ) ; assertNotNull ( in ) ; in.close ( ) ; }

Target:
private void assertResourceExists ( java.lang.String resourceName ) throws java.io.IOException { java.io.InputStream in = getClass ( ) . getResourceAsStream ( resourceName ) ; assertNotNull ( in ) ; in.close ( ) ; }
Source:
private boolean isRoamIndForHomeSystem ( java.lang.String roamInd ) { log ( ( "isRoamIndForHomeSystem: " + ( android.content.res.Resources.getSystem ( ) . getConfiguration ( ) . toString ( ) ) ) ) ; java.lang.String [ ] homeRoamIndicators = android.content.res.Resources.getSystem ( ) . getStringArray ( com.android.internal.R.array.config_cdma_home_system ) ; if ( homeRoamIndicators != null ) { for ( java.lang.String homeRoamInd : homeRoamIndicators ) { if ( homeRoamInd.equals ( roamInd ) ) { return true ; } } log ( ( "isRoamIndForHomeSystem: No match found against list for roamInd=" + roamInd ) ) ; return false ; } log ( "isRoamIndForHomeSystem: No list found" ) ; return false ; }

Target:
private boolean isRoamIndForHomeSystem ( java.lang.String roamInd ) { java.lang.String [ ] homeRoamIndicators = android.content.res.Resources.getSystem ( ) . getStringArray ( com.android.internal.R.array.config_cdma_home_system ) ; log ( ( "isRoamIndForHomeSystem: homeRoamIndicators=" + ( java.util.Arrays.toString ( homeRoamIndicators ) ) ) ) ; if ( homeRoamIndicators != null ) { for ( java.lang.String homeRoamInd : homeRoamIndicators ) { if ( homeRoamInd.equals ( roamInd ) ) { return true ; } } log ( ( "isRoamIndForHomeSystem: No match found against list for roamInd=" + roamInd ) ) ; return false ; } log ( "isRoamIndForHomeSystem: No list found" ) ; return false ; }
Source:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { if ( ( e.button ) == 1 ) { mCanvas.showXml ( e ) ; } }

Target:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { if ( ( e.button ) == 1 ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutPoint p = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) . toLayout ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = mCanvas.getViewHierarchy ( ) . findViewInfoAt ( p ) ; if ( vi != null ) { mCanvas.show ( vi ) ; } } }
Source:
public void containsClass ( java.lang.String className ) throws com.android.ide.common.process.ProcessException , java.io.IOException { java.io.File apk = getSubject ( ) ; if ( ! ( com.android.build.gradle.integration.common.utils.ApkHelper.checkForClass ( apk , className ) ) ) { failWithRawMessage ( "'%s' does not contain '%s'" , apk.getName ( ) , className ) ; } }

Target:
public void hasVersionCode ( int versionCode ) throws com.android.ide.common.process.ProcessException { java.io.File apk = getSubject ( ) ; com.android.builder.core.ApkInfoParser.ApkInfo apkInfo = com.android.build.gradle.integration.common.truth.ApkSubject.getApkInfo ( apk ) ; java.lang.Integer actualVersionCode = apkInfo.getVersionCode ( ) ; if ( actualVersionCode == null ) { failWithRawMessage ( "Unable to query %s for versionCode" , getDisplaySubject ( ) ) ; } if ( ! ( apkInfo.getVersionCode ( ) . equals ( versionCode ) ) ) { failWithBadResults ( "has versionCode" , versionCode , "is" , actualVersionCode ) ; } }
Source:
public void testMultiplePackages ( ) throws java.lang.Exception { java.lang.String out = mDevice.executeShellCommand ( ( ( ( ( ( ( MONKEY_CMD ) + " -v -p " ) + ( PKGS [ 0 ] ) ) + " -p " ) + ( PKGS [ 1 ] ) ) + " 5000" ) ) ; assertTrue ( out , com.android.cts.monkey.PackageTest.ALLOW_MONKEY.matcher ( out ) . find ( ) ) ; assertTrue ( out , com.android.cts.monkey.PackageTest.ALLOW_CHIMP.matcher ( out ) . find ( ) ) ; }

Target:
public void testMultiplePackages ( ) throws java.lang.Exception { java.lang.String out = mDevice.executeShellCommand ( ( ( ( ( ( ( MONKEY_CMD ) + " -v -p " ) + ( PKGS [ 0 ] ) ) + " -p " ) + ( PKGS [ 1 ] ) ) + " 5000" ) ) ; out = com.android.cts.monkey.PackageTest.truncateError ( out ) ; assertTrue ( ( "Monkey not found in: " + out ) , com.android.cts.monkey.PackageTest.ALLOW_MONKEY.matcher ( out ) . find ( ) ) ; assertTrue ( ( "Chimp not found in: " + out ) , com.android.cts.monkey.PackageTest.ALLOW_CHIMP.matcher ( out ) . find ( ) ) ; }
Source:
protected com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.ide.common.internal.CommandLineRunner commandLineRunner = new com.android.ide.common.internal.CommandLineRunner ( logger ) ; java.io.File aapt = new java.io.File ( getSdkDir ( ) , "build-tools/20.0.0/aapt" ) ; assertTrue ( ( "Test requires build-tools 20.0.0 in " + ( aapt.getAbsolutePath ( ) ) ) , aapt.isFile ( ) ) ; return new com.android.ide.common.internal.AaptCruncher ( aapt.getAbsolutePath ( ) , commandLineRunner ) ; }

Target:
protected com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.ide.common.internal.CommandLineRunner commandLineRunner = new com.android.ide.common.internal.CommandLineRunner ( logger ) ; java.io.File aapt = getAapt ( ) ; return new com.android.ide.common.internal.AaptCruncher ( aapt.getAbsolutePath ( ) , commandLineRunner ) ; }
Source:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testInterfaceCountersUdp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1000 , false ) ; }
Source:
public boolean setName ( java.lang.String name ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.setName ( name ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean setName ( java.lang.String name ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.setName ( name ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
private void verifyNoInsertion ( ) { try { org.mockito.Mockito.verify ( mContentProvider , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.CallLogManagerTest.TEST_TIMEOUT_MILLIS ) . never ( ) ) . insert ( org.mockito.Matchers.any ( java.lang.String.class ) , org.mockito.Matchers.any ( android.net.Uri.class ) , org.mockito.Matchers.any ( android.content.ContentValues.class ) ) ; } catch ( com.android.server.telecom.tests.android e ) { fail ( "Remote exception occurred during test execution" ) ; } }

Target:
private void verifyNoInsertion ( ) { try { java.lang.Thread.sleep ( com.android.server.telecom.tests.CallLogManagerTest.TEST_TIMEOUT_MILLIS ) ; org.mockito.Mockito.verify ( mContentProvider , org.mockito.Mockito.never ( ) ) . insert ( org.mockito.Matchers.any ( java.lang.String.class ) , org.mockito.Matchers.any ( android.net.Uri.class ) , org.mockito.Matchers.any ( android.content.ContentValues.class ) ) ; } catch ( com.android.server.telecom.tests.android e ) { fail ( "Remote exception occurred during test execution" ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getConnectionState(): device=" + device ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothInputHost.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getConnectionState(): device=" + device ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothHidDevice.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
private void waitForObserverToIdle ( ) { mHandler.sendMessage ( mHandler.obtainMessage ( ( - 1 ) ) ) ; mObserverHandlerThread.waitForIdle ( com.android.server.net.NetworkStatsObserversTest.WAIT_TIMEOUT ) ; }

Target:
private static void waitForIdleLooper ( android.os.Looper looper , long timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( looper ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { org.junit.Assert.fail ( ( ( "Looper did not become idle after " + timeoutMs ) + " ms" ) ) ; } }
Source:
public int hashCode ( ) { int primeNum = 31 ; return ( ( ( ( ( ( mSignalStrength ) * primeNum ) + ( ( mRsrp ) * primeNum ) ) + ( ( mRsrq ) * primeNum ) ) + ( ( mRssnr ) * primeNum ) ) + ( ( mCqi ) * primeNum ) ) + ( ( mTimingAdvance ) * primeNum ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( mSignalStrength , mRsrp , mRsrq , mRssnr , mCqi , mTimingAdvance ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 t = new dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 ( ) ; boolean [ ] arr = new boolean [ 2 ] ; try { t.run ( arr , 2 , true ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1" , java.lang.ArrayIndexOutOfBoundsException.class , new boolean [ 2 ] , 2 , true ) ; }
Source:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myActions = readActions ( in ) ; }

Target:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myActions = readActions ( in ) ; }
Source:
public java.util.List < com.android.jack.ir.ast.JMethod > getLambdaMethods ( ) { final java.util.List < com.android.jack.ir.ast.JMethod > lambdaMethods = new java.util.ArrayList < com.android.jack.ir.ast.JMethod > ( ) ; class LambdaMethodCollector extends com.android.jack.ir.ast.JVisitor { @ java.lang.Override public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLambda lambda ) { lambdaMethods.add ( lambda.getMethod ( ) ) ; accept ( lambda.getBody ( ) ) ; return false ; } } new LambdaMethodCollector ( ) . accept ( this ) ; return lambdaMethods ; }

Target:
public java.util.Collection < com.android.jack.ir.ast.JMethod > getLambdaMethods ( ) { final java.util.Set < com.android.jack.ir.ast.JMethod > lambdaMethods = new java.util.HashSet < com.android.jack.ir.ast.JMethod > ( ) ; class LambdaMethodCollector extends com.android.jack.ir.ast.JVisitor { @ java.lang.Override public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLambda lambda ) { lambdaMethods.add ( lambda.getMethod ( ) ) ; accept ( lambda.getBody ( ) ) ; return false ; } } new LambdaMethodCollector ( ) . accept ( this ) ; return lambdaMethods ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; Main.testBindTo ( ) ; Main.testFilterReturnValue ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; Main.testBindTo ( ) ; Main.testFilterReturnValue ( ) ; Main.testPermuteArguments ( ) ; }
Source:
public static com.google.common.io.InputSupplier < java.io.InputStreamReader > newReaderSupplier ( final com.google.common.io.InputSupplier < ? extends java.io.InputStream > in , final java.nio.charset.Charset charset ) { com.google.common.base.Preconditions.checkNotNull ( in ) ; com.google.common.base.Preconditions.checkNotNull ( charset ) ; return new com.google.common.io.InputSupplier < java.io.InputStreamReader > ( ) { @ java.lang.Override public java.io.InputStreamReader getInput ( ) throws java.io.IOException { return new java.io.InputStreamReader ( in.getInput ( ) , charset ) ; } } ; }

Target:
public void write ( char [ ] cbuf ) { com.google.common.base.Preconditions.checkNotNull ( cbuf ) ; }
Source:
public void testOpenLink_TargetViewNotSpanned ( ) { try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.send_title ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.openLinkWithText ( "altavista.com" ) ) ; fail ( "Expected previous call to fail" ) ; } catch ( android.support.test.espresso.PerformException expected ) { android.support.test.espresso.matcher.ViewMatchers.assertThat ( expected.getCause ( ) . getMessage ( ) , org.hamcrest.Matchers.containsString ( "has-links=false" ) ) ; } }

Target:
protected boolean matchesSafely ( java.lang.Throwable throwable ) { return throwable.getMessage ( ) . contains ( "has-links=false" ) ; }
Source:
public com.android.ide.common.resources.ResourceFile getFile ( java.lang.String filename ) { if ( ( mFiles ) != null ) { for ( com.android.ide.common.resources.ResourceFile f : mFiles ) { if ( f.getFile ( ) . getName ( ) . equals ( filename ) ) { return f ; } } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFile getFile ( java.lang.String filename ) { if ( ( mNames ) != null ) { com.android.ide.common.resources.ResourceFile resFile = mNames.get ( filename ) ; if ( resFile != null ) { return resFile ; } } com.android.io.IAbstractFile file = mFolder.getFile ( filename ) ; if ( ( file != null ) && ( file.exists ( ) ) ) { com.android.ide.common.resources.ResourceFile resFile = createResourceFile ( file ) ; resFile.load ( new com.android.ide.common.resources.ScanningContext ( mRepository ) ) ; addFile ( resFile ) ; return resFile ; } return null ; }
Source:
public void execute ( ) throws org.apache.tools.ant.BuildException { if ( ( mExecutable ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'executable' is required." ) ; } if ( ( mFramework ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'framework' is required." ) ; } if ( ( mGenFolder ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'genFolder' is required." ) ; } processFiles ( new com.android.ant.AidlExecTask.AidlProcessor ( ) , mPaths , mGenFolder ) ; }

Target:
public void execute ( ) throws org.apache.tools.ant.BuildException { if ( ( mExecutable ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'executable' is required." ) ; } if ( ( mFramework ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'framework' is required." ) ; } if ( ( mGenFolder ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'genFolder' is required." ) ; } if ( ( mAidlOutFolder ) == null ) { throw new org.apache.tools.ant.BuildException ( "AidlExecTask's 'aidlOutFolder' is required." ) ; } processFiles ( new com.android.ant.AidlExecTask.AidlProcessor ( ) , mPaths , mGenFolder ) ; }
Source:
protected void dumpFilter ( java.io.PrintWriter out , java.lang.String prefix , android.content.pm.PackageParser.ServiceIntentInfo filter ) { out.print ( prefix ) ; out.print ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( filter.service ) ) ) ; out.print ( ' ' ) ; out.print ( filter.service.getComponentShortName ( ) ) ; out.print ( " filter " ) ; out.println ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( filter ) ) ) ; }

Target:
protected void dumpFilter ( java.io.PrintWriter out , java.lang.String prefix , android.content.pm.PackageParser.ServiceIntentInfo filter ) { out.print ( prefix ) ; out.print ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( filter.service ) ) ) ; out.print ( ' ' ) ; filter.service.printComponentShortName ( out ) ; out.print ( " filter " ) ; out.println ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( filter ) ) ) ; }
Source:
public java.lang.String getSubscriberIdForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getSubscriberId" ) ) ) { return null ; } return phone.getSubscriberId ( ) ; } else { loge ( ( "getSubscriberId phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public java.lang.String getDeviceSvnUsingSubId ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , subId , callingPackage , "getDeviceSvn" ) ) ) { return null ; } return phone.getDeviceSvn ( ) ; } else { loge ( "getDeviceSvn phone is null" ) ; return null ; } }
Source:
public void test_getResourceAsStream_withSharpChar ( ) throws java.lang.Exception { java.io.InputStream in = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( ClassTest.FILENAME ) ; assertNotNull ( in ) ; in.close ( ) ; }

Target:
public void test_testClassLoader_getResourceAsStreamLjava_lang_String ( ) throws java.lang.Exception { java.lang.ClassLoader parentClassLoader = testClassLoader.getParent ( ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( parentClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; assertNull ( parentClassLoader.getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ; }
Source:
private static com.google.doclava.ThrowsTagInfo convertThrowsTag ( com.google.doclava.ThrowsTag tag , com.google.doclava.ContainerInfo base ) { return new com.google.doclava.ThrowsTagInfo ( tag.name ( ) , tag.text ( ) , tag.kind ( ) , com.google.doclava.Converter.obtainClass ( tag.exception ( ) ) , tag.exceptionComment ( ) , base , com.google.doclava.Converter.convertSourcePosition ( tag.position ( ) ) ) ; }

Target:
private static com.google.doclava.SeeTagInfo convertSeeTag ( com.sun.javadoc.SeeTag tag , com.google.doclava.ContainerInfo base ) { return new com.google.doclava.SeeTagInfo ( tag.name ( ) , tag.kind ( ) , tag.text ( ) , base , com.google.doclava.Converter.convertSourcePosition ( tag.position ( ) ) ) ; }
Source:
public java.lang.String getTestedApplicationId ( ) { if ( mType.isForTesting ( ) ) { com.google.common.base.Preconditions.checkState ( ( ( mTestedConfig ) != null ) ) ; if ( ( mTestedConfig.mType ) == ( com.android.builder.core.VariantConfiguration.Type.LIBRARY ) ) { return getApplicationId ( ) ; } else { return mTestedConfig.getApplicationId ( ) ; } } return null ; }

Target:
public java.lang.String getVersionName ( ) { java.lang.String versionName = mMergedFlavor.getVersionName ( ) ; java.lang.String versionSuffix = mBuildType.getVersionNameSuffix ( ) ; if ( ( versionSuffix != null ) && ( ! ( versionSuffix.isEmpty ( ) ) ) ) { if ( versionName == null ) { if ( ! ( mType.isForTesting ( ) ) ) { versionName = getVersionNameFromManifest ( ) ; } else { versionName = "" ; } } versionName = versionName + versionSuffix ; } return versionName ; }
Source:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_ctxt_default s ) { android.renderscript.Type.Builder typeBuilder = new android.renderscript.Type.Builder ( RS , android.renderscript.Element.I32 ( RS ) ) ; int X = 2 ; s.set_gDimX ( X ) ; typeBuilder.setX ( X ) ; A = android.renderscript.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_A ( A ) ; B = android.renderscript.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_B ( B ) ; return ; }

Target:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_ctxt_default s ) { android.renderscript.Type.Builder typeBuilder = new android.renderscript.Type.Builder ( RS , android.renderscript.Element.I32 ( RS ) ) ; int X = 2 ; s.set_gDimX ( X ) ; typeBuilder.setX ( X ) ; T = typeBuilder.create ( ) ; A = android.renderscript.Allocation.createTyped ( RS , T ) ; s.set_A ( A ) ; B = android.renderscript.Allocation.createTyped ( RS , T ) ; s.set_B ( B ) ; return ; }
Source:
private void dumpTimeRecs ( java.util.ArrayList < com.android.traceview.TimeLineView.Record > timeRecs ) { java.lang.System.out.format ( "\nid thread global start,end method\n" ) ; for ( com.android.traceview.TimeLineView.Record record : timeRecs ) { com.android.traceview.Call call = ( ( com.android.traceview.Call ) ( record.block ) ) ; long callTime = call.mThreadStartTime ; java.lang.System.out.format ( "%2d %6d %8d %8d %s\n" , call.getThreadId ( ) , callTime , call.mGlobalStartTime , call.mGlobalEndTime , call.getMethodData ( ) . getName ( ) ) ; } }

Target:
private void dumpThreadTimes ( ) { java.lang.System.out.print ( "\nThread Times\n" ) ; java.lang.System.out.print ( "id t-start t-end g-start g-end name\n" ) ; for ( com.android.traceview.ThreadData threadData : mThreadMap.values ( ) ) { java.lang.System.out.format ( "%2d %8d %8d %8d %8d %s\n" , threadData.getId ( ) , threadData.mThreadStartTime , threadData.mThreadEndTime , threadData.mGlobalStartTime , threadData.mGlobalEndTime , threadData.getName ( ) ) ; } }
Source:
public void run ( ) { mTextView.setText ( "short" ) ; mTextView.setSingleLine ( ) ; int width = android.widget.cts.WidgetTestUtils.convertDipToPixels ( getActivity ( ) , android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE ) ; getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( width , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }

Target:
public void run ( ) { mTextView.setText ( "short" ) ; mTextView.setSingleLine ( ) ; android.util.DisplayMetrics dm = getActivity ( ) . getResources ( ) . getDisplayMetrics ( ) ; int width = ( ( int ) ( ( android.text.method.cts.ScrollingMovementMethodTest.LITTLE_SPACE ) * ( dm.scaledDensity ) ) ) ; getActivity ( ) . setContentView ( mTextView , new android.view.ViewGroup.LayoutParams ( width , android.view.ViewGroup.LayoutParams.WRAP_CONTENT ) ) ; }
Source:
private void responseByteArrayList ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < java.lang.Byte > var ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { byte [ ] ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.arrayListToPrimitiveArray ( var ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseStrings ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String ... str ) { java.util.ArrayList < java.lang.String > strings = new java.util.ArrayList < > ( ) ; for ( int i = 0 ; i < ( str.length ) ; i ++ ) { strings.add ( str [ i ] ) ; } com.android.internal.telephony.RadioResponse.responseStringArrayList ( mRil , responseInfo , strings ) ; }
Source:
public boolean visitReturn ( lombok.ast.Return node ) { lombok.ast.Expression argument = node.astValue ( ) ; if ( argument != null ) { if ( ( argument instanceof lombok.ast.BooleanLiteral ) && ( java.lang.Boolean.TRUE.equals ( ( ( lombok.ast.BooleanLiteral ) ( argument ) ) . astValue ( ) ) ) ) { mComplex = false ; } else { mComplex = true ; } } return super . visitReturn ( node ) ; }

Target:
public void visitReturnStatement ( com.intellij.psi.PsiReturnStatement node ) { com.intellij.psi.PsiExpression argument = node.getReturnValue ( ) ; if ( argument != null ) { if ( com.android.tools.lint.detector.api.LintUtils.isTrueLiteral ( argument ) ) { mComplex = false ; } else { mComplex = true ; } } super . visitReturnStatement ( node ) ; }
Source:
private static com.android.jack.ir.ast.JClass getClassOrReportFailure ( com.android.jack.lookup.JNodeLookup lookup , java.lang.String name , com.android.sched.util.config.id.PropertyId < java.lang.String > prop ) { try { return lookup.getClass ( name ) ; } catch ( java.lang.Throwable e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , new com.android.jack.transformations.ast.BoostLockedRegionPriority.BadBoostLockedRegionPriorityConfigurationException ( prop , e ) ) ; com.android.jack.Jack.getSession ( ) . abortEventually ( ) ; return null ; } }

Target:
private static com.android.jack.ir.ast.JMethodIdWide getStaticMethodOrReportFailure ( com.android.jack.ir.ast.JClass cls , java.lang.String name , java.lang.String prop ) { try { return cls.getMethodIdWide ( name , java.util.Collections.< com.android.jack.ir.ast.JType > emptyList ( ) , MethodKind.STATIC ) ; } catch ( java.lang.Throwable e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , new com.android.jack.transformations.ast.BoostLockedRegionPriority.BadBoostLockedRegionPriorityConfigurationException ( prop , e ) ) ; com.android.jack.Jack.getSession ( ) . abortEventually ( ) ; return null ; } }
Source:
private void loadPrivateKeyAndCerts ( com.android.apksigner.PasswordRetriever passwordRetriever ) throws java.lang.Exception { loadPrivateKeyAndCertsFromKeyStore ( passwordRetriever ) ; }

Target:
private void loadPrivateKeyAndCerts ( com.android.apksigner.PasswordRetriever passwordRetriever ) throws java.lang.Exception { if ( ( keystoreFile ) != null ) { if ( ( keyFile ) != null ) { throw new com.android.apksigner.ApkSignerTool.ParameterException ( "--ks and --key may not be specified at the same time" ) ; } else if ( ( certFile ) != null ) { throw new com.android.apksigner.ApkSignerTool.ParameterException ( "--ks and --cert may not be specified at the same time" ) ; } loadPrivateKeyAndCertsFromKeyStore ( passwordRetriever ) ; } else if ( ( keyFile ) != null ) { loadPrivateKeyAndCertsFromFiles ( passwordRetriever ) ; } else { throw new com.android.apksigner.ApkSignerTool.ParameterException ( "KeyStore (--ks) or private key file (--key) must be specified" ) ; } }
Source:
private long getLocationUpdateTime ( ) { try { java.lang.String timeString = getPreferences ( ) . getString ( com.android.locationtracker.TrackerService.MIN_TIME_PREF , "0" ) ; long secondsTime = java.lang.Long.valueOf ( timeString ) ; return secondsTime * 1000 ; } catch ( java.lang.NumberFormatException e ) { android.util.Log.e ( com.android.locationtracker.TrackerService.LOG_TAG , "Invalid preference for location min time" , e ) ; } return 0 ; }

Target:
private long getLocationUpdateTime ( ) { try { java.lang.String timeString = getPreferences ( ) . getString ( com.android.locationtracker.TrackerService.MIN_TIME_PREF , "0" ) ; long secondsTime = java.lang.Long.parseLong ( timeString ) ; return secondsTime * 1000 ; } catch ( java.lang.NumberFormatException e ) { android.util.Log.e ( com.android.locationtracker.TrackerService.LOG_TAG , "Invalid preference for location min time" , e ) ; } return 0 ; }
Source:
public com.android.tools.perflib.heap.Heap setHeapTo ( int id , java.lang.String name ) { com.android.tools.perflib.heap.Heap heap = mHeaps.get ( id ) ; if ( heap == null ) { heap = new com.android.tools.perflib.heap.Heap ( name ) ; heap.mSnapshot = this ; mHeaps.put ( id , heap ) ; } mCurrentHeap = heap ; return mCurrentHeap ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( name.equals ( mHeaps.get ( i ) . getName ( ) ) ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
public void visitLocalVariableTypeInfo ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method , proguard.classfile.visitor.CodeAttribute codeAttribute , proguard.classfile.visitor.LocalVariableTypeInfo localVariableTypeInfo ) { println ( ( ( ( ( ( ( ( ( ( ( "v" + ( localVariableTypeInfo.u2index ) ) + ": " ) + ( localVariableTypeInfo.u2startPC ) ) + " -> " ) + ( ( localVariableTypeInfo.u2startPC ) + ( localVariableTypeInfo.u2length ) ) ) + " [" ) + ( clazz.getString ( localVariableTypeInfo.u2signatureIndex ) ) ) + " " ) + ( clazz.getString ( localVariableTypeInfo.u2nameIndex ) ) ) + "]" ) ) ; }

Target:
public void visitLocalVariableTypeInfo ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method , proguard.classfile.visitor.CodeAttribute codeAttribute , proguard.classfile.visitor.LocalVariableTypeInfo localVariableTypeInfo ) { println ( ( ( ( ( ( ( ( ( ( ( "v" + ( localVariableTypeInfo.u2index ) ) + ": " ) + ( localVariableTypeInfo.u2startPC ) ) + " -> " ) + ( ( localVariableTypeInfo.u2startPC ) + ( localVariableTypeInfo.u2length ) ) ) + " [" ) + ( localVariableTypeInfo.getSignature ( clazz ) ) ) + " " ) + ( localVariableTypeInfo.getName ( clazz ) ) ) + "]" ) ) ; }
Source:
public void importFromJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ImportHelper loader , @ javax.annotation.Nonnull java.lang.Object node ) { com.android.jack.ir.ast.JAnnotationLiteral jAnnotationLiteral = ( ( com.android.jack.ir.ast.JAnnotationLiteral ) ( node ) ) ; retentionPolicy = jAnnotationLiteral.getRetentionPolicy ( ) ; annotationType = com.android.jack.jayce.v0002.io.ImportHelper.getSignatureName ( jAnnotationLiteral.getType ( ) ) ; elements = loader.load ( com.android.jack.jayce.v0002.nodes.NNameValuePair.class , jAnnotationLiteral.getNameValuePairs ( ) ) ; sourceInfo = loader.load ( jAnnotationLiteral.getSourceInfo ( ) ) ; }

Target:
public void importFromJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ImportHelper loader , @ javax.annotation.Nonnull java.lang.Object node ) { com.android.jack.ir.ast.JAnnotation jAnnotation = ( ( com.android.jack.ir.ast.JAnnotation ) ( node ) ) ; retentionPolicy = jAnnotation.getRetentionPolicy ( ) ; annotationType = com.android.jack.jayce.v0002.io.ImportHelper.getSignatureName ( jAnnotation.getType ( ) ) ; elements = loader.load ( com.android.jack.jayce.v0002.nodes.NNameValuePair.class , jAnnotation.getNameValuePairs ( ) ) ; sourceInfo = loader.load ( jAnnotation.getSourceInfo ( ) ) ; }
Source:
public static < R , C , V > com.google.common.collect.ArrayTable < R , C , V > create ( com.google.common.collect.ArrayTable < R , C , V > table ) { return new com.google.common.collect.ArrayTable < R , C , V > ( table ) ; }

Target:
public static < R , C , V > com.google.common.collect.ArrayTable < R , C , V > create ( com.google.common.collect.Table < R , C , V > table ) { return table instanceof com.google.common.collect.ArrayTable < ? , ? , ? > ? new com.google.common.collect.ArrayTable < R , C , V > ( ( ( com.google.common.collect.ArrayTable < R , C , V > ) ( table ) ) ) : new com.google.common.collect.ArrayTable < R , C , V > ( table ) ; }
Source:
public void test_getReceiveBufferSize ( ) throws java.lang.Exception { java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ; ds.setReceiveBufferSize ( 130 ) ; assertTrue ( "Incorrect buffer size" , ( ( ds.getReceiveBufferSize ( ) ) >= 130 ) ) ; }

Target:
public void test_getReceiveBufferSize ( ) throws java.lang.Exception { java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ; ds.setReceiveBufferSize ( 130 ) ; assertTrue ( "Incorrect buffer size" , ( ( ds.getReceiveBufferSize ( ) ) >= 130 ) ) ; ds.close ( ) ; try { ds.getReceiveBufferSize ( ) ; fail ( "SocketException was not thrown." ) ; } catch ( java.net.SocketException se ) { } }
Source:
private int getResultType ( com.android.bluetooth.gatt.ScanManager.BatchScanParams params ) { if ( ( ( params.fullScanClientIf ) != ( - 1 ) ) && ( ( params.truncatedScanClientIf ) != ( - 1 ) ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_BOTH ; } if ( ( params.truncatedScanClientIf ) != ( - 1 ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ; } if ( ( params.fullScanClientIf ) != ( - 1 ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ; } return - 1 ; }

Target:
private int getResultType ( com.android.bluetooth.gatt.ScanManager.BatchScanParams params ) { if ( ( ( params.fullScanscannerId ) != ( - 1 ) ) && ( ( params.truncatedScanscannerId ) != ( - 1 ) ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_BOTH ; } if ( ( params.truncatedScanscannerId ) != ( - 1 ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ; } if ( ( params.fullScanscannerId ) != ( - 1 ) ) { return com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ; } return - 1 ; }
Source:
public synchronized void setResolvedStackCall ( java.util.List < com.android.ddmlib.NativeStackCallInfo > resolvedStackCall ) { if ( ( mResolvedStackCall ) == null ) { mResolvedStackCall = new java.util.ArrayList < com.android.ddmlib.NativeStackCallInfo > ( ) ; } else { mResolvedStackCall.clear ( ) ; } mResolvedStackCall.addAll ( resolvedStackCall ) ; mIsStackCallResolved = ( mResolvedStackCall.size ( ) ) != 0 ; }

Target:
public synchronized void setResolvedStackCall ( java.util.List < com.android.ddmlib.NativeStackCallInfo > resolvedStackCall ) { if ( ( mResolvedStackCall ) == null ) { mResolvedStackCall = new java.util.ArrayList < com.android.ddmlib.NativeStackCallInfo > ( ) ; } else { mResolvedStackCall.clear ( ) ; } mResolvedStackCall.addAll ( resolvedStackCall ) ; mIsStackCallResolved = ! ( mResolvedStackCall.isEmpty ( ) ) ; }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; name = in.readId ( ) ; returnType = in.readId ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0004.nodes.NParameter.class ) ; methodKind = in.readMethodKindEnum ( ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0004.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0004.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0004.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; name = in.readId ( ) ; returnType = in.readId ( ) ; setParameters ( in.readNodes ( com.android.jack.jayce.v0004.nodes.NParameter.class ) ) ; methodKind = in.readMethodKindEnum ( ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0004.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0004.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0004.nodes.NMarker.class ) ; }