auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void disableBleScanMode ( ) { try { if ( ( ( mBluetooth ) != null ) && ( ( mBluetooth.getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) ) { if ( com.android.server.BluetoothManagerService.DBG ) android.util.Log.d ( com.android.server.BluetoothManagerService.TAG , "Reseting the mEnable flag for clean disable" ) ; mEnable = false ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "getState()" , e ) ; } }

Target:
private void disableBleScanMode ( ) { try { mBluetoothLock.writeLock ( ) . lock ( ) ; if ( ( ( mBluetooth ) != null ) && ( ( mBluetooth.getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) ) { if ( com.android.server.BluetoothManagerService.DBG ) android.util.Log.d ( com.android.server.BluetoothManagerService.TAG , "Reseting the mEnable flag for clean disable" ) ; mEnable = false ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "getState()" , e ) ; } finally { mBluetoothLock.writeLock ( ) . unlock ( ) ; } }
Source:
public void getWithCacheMiss ( ) throws java.lang.Exception { when ( mImageCache.getBitmap ( anyString ( ) ) ) . thenReturn ( null ) ; com.android.volley.toolbox.ImageLoader.ImageListener listener = mock ( ImageLoader.ImageListener.class ) ; mImageLoader.get ( "http://foo" , listener ) ; mImageLoader.get ( "http://foo" , listener ) ; verify ( listener , times ( 2 ) ) . onResponse ( any ( ImageLoader.ImageContainer.class ) , eq ( true ) ) ; verify ( mRequestQueue , times ( 1 ) ) . add ( any ( com.android.volley.Request.class ) ) ; }

Target:
public void getWithCacheMiss ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mImageCache.getBitmap ( org.mockito.Mockito.anyString ( ) ) ) . thenReturn ( null ) ; com.android.volley.toolbox.ImageLoader.ImageListener listener = org.mockito.Mockito.mock ( ImageLoader.ImageListener.class ) ; mImageLoader.get ( "http://foo" , listener ) ; mImageLoader.get ( "http://foo" , listener ) ; org.mockito.Mockito.verify ( listener , org.mockito.Mockito.times ( 2 ) ) . onResponse ( org.mockito.Mockito.any ( ImageLoader.ImageContainer.class ) , org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( mRequestQueue , org.mockito.Mockito.times ( 1 ) ) . add ( org.mockito.Mockito.< com.android.volley.Request < ? > > any ( ) ) ; }
Source:
public boolean process ( com.intellij.codeInspection.ex.GlobalInspectionToolWrapper toolWrapper ) { com.intellij.codeInspection.ex.GlobalSimpleInspectionTool tool = ( ( com.intellij.codeInspection.ex.GlobalSimpleInspectionTool ) ( toolWrapper.getTool ( ) ) ) ; com.intellij.codeInspection.ex.ProblemsHolder problemsHolder = new com.intellij.codeInspection.ex.ProblemsHolder ( inspectionManager , file , false ) ; com.intellij.codeInspection.ex.ProblemDescriptionsProcessor problemDescriptionProcessor = getProblemDescriptionProcessor ( toolWrapper , wrappersMap ) ; tool.checkFile ( file , inspectionManager , problemsHolder , this , problemDescriptionProcessor ) ; com.intellij.codeInspection.ui.InspectionToolPresentation toolPresentation = getPresentation ( toolWrapper ) ; com.intellij.codeInspection.ex.LocalDescriptorsUtil.addProblemDescriptors ( problemsHolder.getResults ( ) , false , this , null , com.intellij.codeInspection.ex.GlobalInspectionContextImpl.CONVERT , toolPresentation ) ; return true ; }

Target:
public void run ( ) { runGlobalTools ( scope , inspectionManager , globalTools ) ; }
Source:
public static android.telephony.SmsMessage newFromCMT ( java.lang.String [ ] lines ) { com.android.internal.telephony.SmsMessageBase wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.newFromCMT ( lines ) ; if ( wrappedMessage != null ) { return new android.telephony.SmsMessage ( wrappedMessage ) ; } else { android.telephony.Rlog.e ( android.telephony.SmsMessage.LOG_TAG , "newFromCMT(): wrappedMessage is null" ) ; return null ; } }

Target:
public static android.telephony.SmsMessage newFromCMT ( byte [ ] pdu ) { com.android.internal.telephony.SmsMessageBase wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.newFromCMT ( pdu ) ; if ( wrappedMessage != null ) { return new android.telephony.SmsMessage ( wrappedMessage ) ; } else { android.telephony.Rlog.e ( android.telephony.SmsMessage.LOG_TAG , "newFromCMT(): wrappedMessage is null" ) ; return null ; } }
Source:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.onDetachedFromWindow ( ) ; }

Target:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.onVisibilityChanged ( changedView , visibility ) ; }
Source:
private java.lang.String getSubscriberId ( int networkType ) { if ( ( android.net.ConnectivityManager.TYPE_MOBILE ) == networkType ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( getInstrumentation ( ) . getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; return tm.getSubscriberId ( ) ; } return "" ; }

Target:
private java.lang.String getSubscriberId ( int networkIndex ) { int networkType = android.app.usage.cts.NetworkUsageStatsTest.sNetworkInterfacesToTest [ networkIndex ] . getNetworkType ( ) ; if ( ( android.net.ConnectivityManager.TYPE_MOBILE ) == networkType ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( getInstrumentation ( ) . getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; return tm.getSubscriberId ( ) ; } return "" ; }
Source:
public void srcToExe ( @ javax.annotation.Nonnull java.io.File out , boolean zipFile , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { setIncrementalFolder ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; super . srcToExe ( out , zipFile , sources ) ; java.lang.Thread.sleep ( 1000 ) ; touchSourceFile ( sources ) ; super . srcToExe ( out , zipFile , sources ) ; }

Target:
public void srcToExe ( @ javax.annotation.Nonnull java.io.File out , boolean zipFile , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { setIncrementalFolder ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; super . srcToExe ( out , zipFile , sources ) ; com.android.jack.test.toolchain.IncrementalToolchainUtils.touchSourceFile ( sources ) ; super . srcToExe ( out , zipFile , sources ) ; }
Source:
private static boolean processClass ( java.lang.String name , byte [ ] bytes ) { if ( ! ( com.android.dx.command.dexer.Main.args.coreLibrary ) ) { com.android.dx.command.dexer.Main.checkClassName ( name ) ; } try { new com.android.dx.command.dexer.Main.DirectClassFileConsumer ( name , bytes , null ) . call ( new com.android.dx.command.dexer.Main.ClassParserTask ( name , bytes ) . call ( ) ) ; } catch ( com.android.dx.cf.iface.ParseException ex ) { throw ex ; } catch ( java.lang.Exception ex ) { throw new java.lang.RuntimeException ( "Exception parsing classes" , ex ) ; } return true ; }

Target:
private boolean processClass ( java.lang.String name , byte [ ] bytes ) { if ( ! ( args.coreLibrary ) ) { checkClassName ( name ) ; } try { new com.android.dx.command.dexer.Main.DirectClassFileConsumer ( name , bytes , null ) . call ( new com.android.dx.command.dexer.Main.ClassParserTask ( name , bytes ) . call ( ) ) ; } catch ( com.android.dx.cf.iface.ParseException ex ) { throw ex ; } catch ( java.lang.Exception ex ) { throw new java.lang.RuntimeException ( "Exception parsing classes" , ex ) ; } return true ; }
Source:
public void test_getResourceAsStreamLjava_lang_String ( ) { java.io.InputStream is = null ; assertNotNull ( "Failed to find resource: hyts_Foo.c" , ( is = java.lang.ClassLoader.getSystemClassLoader ( ) . getResourceAsStream ( "hyts_Foo.c" ) ) ) ; try { is.close ( ) ; } catch ( java.io.IOException e ) { fail ( ( "Exception during getResourceAsStream: " + ( e.toString ( ) ) ) ) ; } }

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:
public void engineLoad ( java.io.InputStream stream , char [ ] password ) throws java.io.IOException , java.security.NoSuchAlgorithmException , java.security.cert.CertificateException { if ( stream != null ) { throw new java.lang.IllegalArgumentException ( "InputStream not supported" ) ; } if ( password != null ) { throw new java.lang.IllegalArgumentException ( "password not supported" ) ; } mKeyStore = android.security.android.security.KeyStore.getInstance ( ) ; }

Target:
public void engineLoad ( java.io.InputStream stream , char [ ] password ) throws java.io.IOException , java.security.NoSuchAlgorithmException , java.security.cert.CertificateException { if ( stream != null ) { throw new java.lang.IllegalArgumentException ( "InputStream not supported" ) ; } if ( password != null ) { throw new java.lang.IllegalArgumentException ( "password not supported" ) ; } mKeyStore = java.security.android.security.KeyStore.getInstance ( ) ; }
Source:
public void test_JarFile_Integrate_Jar ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Integrate.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) . skip ( java.lang.Long.MAX_VALUE ) ; } }

Target:
public void test_JarFile_Integrate_Jar ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Integrate.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) . skip ( java.lang.Long.MAX_VALUE ) ; } } }
Source:
public void test_ko ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex ko = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.KOREAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄀ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ㄱ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄁ" , "ᄀ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᅡ" , "ᄒ" ) ; }

Target:
public void test_ko ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex ko = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.KOREAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄀ" , "ㄱ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ㄱ" , "ㄱ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᄁ" , "ㄱ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ko , "ᅡ" , "ㅎ" ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( mHasFeature ) { assertTrue ( "Failed to remove profile owner." , removeAdmin ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( mHasFeature ) { assertTrue ( "Failed to remove profile owner." , removeAdmin ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) ; } super . tearDown ( ) ; }
Source:
public void setUserSelectedOutgoingPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { try { com.android.server.telecom.Log.startSession ( "TSI.sUSOPA" ) ; synchronized ( mLock ) { enforceModifyPermission ( ) ; android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { mPhoneAccountRegistrar.setUserSelectedOutgoingPhoneAccount ( accountHandle , callingUserHandle ) ; } catch ( java.lang.Exception e ) { com.android.server.telecom.Log.e ( this , e , "setUserSelectedOutgoingPhoneAccount" ) ; throw e ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void setUserSelectedOutgoingPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { try { android.telecom.Log.startSession ( "TSI.sUSOPA" ) ; synchronized ( mLock ) { enforceModifyPermission ( ) ; android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { mPhoneAccountRegistrar.setUserSelectedOutgoingPhoneAccount ( accountHandle , callingUserHandle ) ; } catch ( java.lang.Exception e ) { android.telecom.Log.e ( this , e , "setUserSelectedOutgoingPhoneAccount" ) ; throw e ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public boolean getRoamingCapabilities ( com.android.server.wifi.WifiNative.RoamingCapabilities capabilities ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "getRoamingCapabilities " ) ; try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getRoamingCapabilities ( capabilities ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public boolean retainAll ( java.util.Collection < ? > c ) { boolean changed = false ; for ( C columnKey : com.google.common.collect.Lists.newArrayList ( columnKeySet ( ) . iterator ( ) ) ) { if ( ! ( c.contains ( new com.google.common.collect.ImmutableEntry < C , java.util.Map < R , V > > ( columnKey , column ( columnKey ) ) ) ) ) { removeColumn ( columnKey ) ; changed = true ; } } return changed ; }

Target:
public boolean retainAll ( java.util.Collection < ? > c ) { com.google.common.base.Preconditions.checkNotNull ( c ) ; boolean changed = false ; for ( C columnKey : com.google.common.collect.Lists.newArrayList ( columnKeySet ( ) . iterator ( ) ) ) { if ( ! ( c.contains ( com.google.common.collect.Maps.immutableEntry ( columnKey , column ( columnKey ) ) ) ) ) { removeColumn ( columnKey ) ; changed = true ; } } return changed ; }
Source:
public void assertNoPendingRequests ( ) { android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledFillRequests ( 0 ) ; android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledSaveRequests ( 0 ) ; }

Target:
public void assertNothingIsPending ( ) throws java.lang.Exception { final android.autofillservice.cts.MultipleExceptionsCatcher catcher = new android.autofillservice.cts.MultipleExceptionsCatcher ( ) . run ( ( ) -> android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledFillRequests ( 0 ) ) . run ( ( ) -> android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledSaveRequests ( 0 ) ) ; final java.util.List < java.lang.Exception > replierExceptions = android.autofillservice.cts.AutoFillServiceTestCase.sReplier.getExceptions ( ) ; if ( replierExceptions != null ) { for ( java.lang.Exception e : replierExceptions ) { catcher.add ( e ) ; } } catcher.throwIfAny ( ) ; }
Source:
public final java.lang.String getHumanReadableValue ( @ javax.annotation.Nonnegative int columnIdx ) { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; java.io.PrintStream printer = new java.io.PrintStream ( baos ) ; com.android.sched.util.print.TextPrinter provider = new com.android.sched.util.print.TextPrinter ( printer ) ; provider.getFormatter ( getDataView ( ) . getDataTypes ( ) [ columnIdx ] ) . print ( printer , getValue ( columnIdx ) ) ; return baos.toString ( ) ; }

Target:
public final java.lang.String getHumanReadableValue ( @ javax.annotation.Nonnegative int columnIdx ) { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; java.io.PrintWriter printer = new java.io.PrintWriter ( new java.io.PrintStream ( baos ) ) ; com.android.sched.util.print.TextPrinter provider = new com.android.sched.util.print.TextPrinter ( printer ) ; provider.getFormatter ( getDataView ( ) . getDataTypes ( ) [ columnIdx ] ) . print ( printer , getValue ( columnIdx ) ) ; printer.close ( ) ; return baos.toString ( ) ; }
Source:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; try { if ( ( mWifiVendorHal ) != null ) { com.android.server.wifi.WifiNative.RoamingConfig config = new com.android.server.wifi.WifiNative.RoamingConfig ( ) ; return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public byte [ ] getFwMemoryDump ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getFwMemoryDump ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( com.android.server.wifi.WifiNative.getFwMemoryDumpNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) { byte [ ] fwMemoryDump = com.android.server.wifi.WifiNative.mFwMemoryDump ; com.android.server.wifi.WifiNative.mFwMemoryDump = null ; return fwMemoryDump ; } else { return null ; } } return null ; } } }
Source:
public void testLaunchToSideSingleTask ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchTargetToSide ( android.server.cts.ActivityManagerDockedStackTests.SINGLE_TASK_ACTIVITY_NAME , false ) ; }

Target:
public void testDockActivity ( ) throws java.lang.Exception { if ( ( ! ( supportsMultiWindowMode ( ) ) ) || ( ! ( supportsSplitScreenMultiWindow ( ) ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInDockStack ( android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { android.server.cts.ActivityManagerDockedStackTests.TEST_ACTIVITY_NAME } ) ; mAmWmState.assertContainsStack ( "Must contain home stack." , android.server.cts.HOME_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; }
Source:
private static void repeatConstMethodType1 ( java.lang.invoke.MethodType expected ) { java.lang.System.out.print ( "repeatConstMethodType1(" ) ; java.lang.System.out.print ( expected ) ; java.lang.System.out.println ( ")" ) ; for ( int i = 0 ; i < 12000 ; ++ i ) { java.lang.invoke.MethodType actual = Main.methodType1 ( ) ; if ( ! ( actual.equals ( expected ) ) ) { java.lang.System.out.print ( "Expected: " ) ; java.lang.System.out.println ( expected ) ; java.lang.System.out.print ( "Actual: " ) ; java.lang.System.out.println ( actual ) ; Main.unreachable ( ) ; } } }

Target:
private static java.lang.invoke.MethodHandle getNameHandle ( ) { Main.unreachable ( ) ; return null ; }
Source:
public void setBandMode ( int bandMode , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_BAND_MODE , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( bandMode ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + bandMode ) ) ; send ( rr ) ; }

Target:
public void getMute ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_MUTE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getMute ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getMute" , e ) ; } } }
Source:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex ) { vogar.tasks.Task dex ; if ( run.useJack ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , run.multidex ) ; } return dex ; }

Target:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex , java.io.File localTempDir ) { vogar.tasks.Task dex ; if ( run.useJack ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , localTempDir , run.multidex ) ; } return dex ; }
Source:
private void describeTest ( ) { if ( ( fFormat ) == null ) { errln ( "FAIL: no DateFormat" ) ; return ; } com.ibm.icu.text.SimpleDateFormat s = ( ( com.ibm.icu.text.SimpleDateFormat ) ( fFormat ) ) ; logln ( ( ( ( fTestName ) + " Pattern " ) + ( s.toPattern ( ) ) ) ) ; }

Target:
private void describeTest ( ) { if ( ( fFormat ) == null ) { errln ( "FAIL: no DateFormat" ) ; return ; } com.ibm.icu.text.SimpleDateFormat s = ( ( com.ibm.icu.text.SimpleDateFormat ) ( fFormat ) ) ; logln ( ( ( ( com.ibm.icu.dev.test.format.IntlTestDateFormat.fTestName ) + " Pattern " ) + ( s.toPattern ( ) ) ) ) ; }
Source:
public java.lang.String getInvalidSelectionErrorMessage ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return "Matrix configuration not specified" ; } if ( ( selection.countCombinations ( ) ) < 1 ) { return "Selected matrix configuration is empty" ; } return "" ; }

Target:
public java.lang.String getInvalidSelectionErrorMessage ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return "Matrix configuration not specified" ; } if ( ( selection.countCombinations ( ) ) < 1 ) { return "Selected matrix configuration is empty" ; } if ( myCloudProjectNameLabel.getText ( ) . equals ( com.google.gct.testing.CloudTestOptionPanel.CLOUD_PROJECT_PROMPT ) ) { return "Cloud project not specified" ; } return "" ; }
Source:
public static com.android.dialer.app.voicemail.error.VoicemailErrorMessage.Action createCallVoicemailAction ( final android.content.Context context ) { return new com.android.dialer.app.voicemail.error.VoicemailErrorMessage.Action ( context.getString ( R.string.voicemail_action_call_voicemail ) , new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View v ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.VVM_CALL_VOICEMAIL_CLICKED ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , com.android.dialer.util.CallUtil.getVoicemailUri ( ) ) ; context.startActivity ( intent ) ; } } ) ; }

Target:
public static com.android.dialer.app.voicemail.error.VoicemailErrorMessage.Action createCallVoicemailAction ( final android.content.Context context , final android.telecom.PhoneAccountHandle phoneAccountHandle ) { return new com.android.dialer.app.voicemail.error.VoicemailErrorMessage.Action ( context.getString ( R.string.voicemail_action_call_voicemail ) , new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View v ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.VVM_CALL_VOICEMAIL_CLICKED ) ; context.startActivity ( com.android.dialer.callintent.CallIntentBuilder.forVoicemail ( phoneAccountHandle , CallInitiationType.Type.VOICEMAIL_ERROR_MESSAGE ) . build ( ) ) ; } } ) ; }
Source:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , "build/proguard/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }

Target:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , "build/proguard/release" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }
Source:
public void onPackageChanged ( java.lang.String packageName , android.os.UserHandle user ) { synchronized ( com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesLock ) { com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesChanged.add ( new android.util.Pair < java.lang.String , android.os.UserHandle > ( packageName , user ) ) ; } }

Target:
public void onPackageChanged ( java.lang.String packageName , android.os.UserHandle user ) { android.util.Log.i ( com.android.cts.launchertests.support.LauncherCallbackTestsService.TAG , ( ( ( "package changed event " + packageName ) + " " ) + user ) ) ; try { com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesChanged.put ( new android.util.Pair ( packageName , user ) ) ; } catch ( java.lang.InterruptedException e ) { android.util.Log.e ( com.android.cts.launchertests.support.LauncherCallbackTestsService.TAG , "Failed saving event" , e ) ; } }
Source:
public int processBlock ( byte [ ] in , int inOff , byte [ ] out , int outOff ) throws java.lang.IllegalStateException , org.bouncycastle.crypto.DataLengthException { return encrypting ? encryptBlock ( in , inOff , out , outOff ) : decryptBlock ( in , inOff , out , outOff ) ; }

Target:
public int decryptBlock ( byte [ ] in , int inOff , byte [ ] out , int outOff ) throws java.lang.IllegalStateException , org.bouncycastle.crypto.DataLengthException { processBytes ( in , inOff , blockSize , out , outOff ) ; return blockSize ; }
Source:
private boolean isProfileUpdated ( android.content.pm.PackageParser.Package pkg , int uid , java.lang.String compilerFilter ) { if ( ! ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( compilerFilter ) ) ) { return false ; } try { return mInstaller.mergeProfiles ( uid , pkg.packageName ) ; } catch ( com.android.server.pm.Installer.InstallerException e ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , "Failed to merge profiles" , e ) ; } return false ; }

Target:
private boolean isProfileUpdated ( android.content.pm.PackageParser.Package pkg , int uid , java.lang.String profileName , java.lang.String compilerFilter ) { if ( ! ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( compilerFilter ) ) ) { return false ; } try { return mInstaller.mergeProfiles ( uid , pkg.packageName , profileName ) ; } catch ( com.android.server.pm.Installer.InstallerException e ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , "Failed to merge profiles" , e ) ; } return false ; }
Source:
private void stopDragging ( ) { if ( ( mDragView ) != null ) { android.view.WindowManager wm = ( ( android.view.WindowManager ) ( mContext.getSystemService ( Context.WINDOW_SERVICE ) ) ) ; wm.removeView ( mDragView ) ; mDragView.setImageDrawable ( null ) ; mDragView = null ; } if ( ( mDragBitmap ) != null ) { mDragBitmap.recycle ( ) ; mDragBitmap = null ; } }

Target:
private void stopDragging ( ) { if ( ( mDragView ) != null ) { mDragView.setVisibility ( com.android.music.GONE ) ; android.view.WindowManager wm = ( ( android.view.WindowManager ) ( getContext ( ) . getSystemService ( Context.WINDOW_SERVICE ) ) ) ; wm.removeView ( mDragView ) ; mDragView.setImageDrawable ( null ) ; mDragView = null ; } if ( ( mDragBitmap ) != null ) { mDragBitmap.recycle ( ) ; mDragBitmap = null ; } }
Source:
public void test_joinAnySource_multicastLoopOption_IPv4 ( ) throws java.lang.Exception { test_joinAnySource_multicastLoopOption ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 ) ; }

Target:
public void test_join_canMixTypesOnDifferentInterfaces ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; java.nio.channels.MembershipKey membershipKey1 = dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , ipv4NetworkInterface ) ; java.nio.channels.MembershipKey membershipKey2 = dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , loopbackInterface , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; assertNotSame ( membershipKey1 , membershipKey2 ) ; dc.close ( ) ; }
Source:
public com.android.sched.vfs.ParallelOutputVDir checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectDir ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.ParallelOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectVFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( ( mAbi ) == null ? 0 : mAbi.hashCode ( ) ) ; result = ( prime * result ) + ( ( mVersion ) == null ? 0 : mVersion.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( ( mTag ) == null ? 0 : mTag.hashCode ( ) ) ; result = ( prime * result ) + ( ( mAbi ) == null ? 0 : mAbi.hashCode ( ) ) ; result = ( prime * result ) + ( ( mVersion ) == null ? 0 : mVersion.hashCode ( ) ) ; return result ; }
Source:
public void testPackageOverridePackageFromFlavor ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.setPackageName ( "foo.bar" ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertEquals ( "foo.bar" , builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverrideNone ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertNull ( builder.getPackageOverride ( "" ) ) ; }
Source:
public void testForceWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true , getEmptyStoreData ( ) ) ; assertFalse ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }

Target:
public void testWriteWithEmptyData ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true ) ; assertFalse ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; assertTrue ( java.util.Arrays.equals ( com.android.server.wifi.WifiConfigStoreTest.EMPTY_FILE_CONTENT.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) , mSharedStore.getStoreBytes ( ) ) ) ; assertTrue ( java.util.Arrays.equals ( com.android.server.wifi.WifiConfigStoreTest.EMPTY_FILE_CONTENT.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) , mUserStore.getStoreBytes ( ) ) ) ; }
Source:
com.android.sched.vfs.DirectFS.DirectVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) , name ) ; try { com.android.sched.util.file.Directory.create ( file , new com.android.sched.util.location.DirectoryLocation ( file ) ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { } return new com.android.sched.vfs.DirectFS.DirectNonRootVDir ( this , parent , name ) ; }

Target:
com.android.sched.util.location.DirectoryLocation getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return new com.android.sched.util.location.DirectoryLocation ( getNativeFile ( parent.getPath ( ) , name ) ) ; }
Source:
public CommandSupplier.Builder inject ( com.android.dialer.commandline.CommandSupplier.Builder builder ) { builder.addCommand ( "help" , help ) ; builder.addCommand ( "version" , version ) ; builder.addCommand ( "echo" , echo ) ; builder.addCommand ( "blocking" , blockingCommand ) ; builder.addCommand ( "call" , callCommand ) ; return builder ; }

Target:
public CommandSupplier.Builder inject ( com.android.dialer.commandline.CommandSupplier.Builder builder ) { builder.addCommand ( "help" , help ) ; builder.addCommand ( "version" , version ) ; builder.addCommand ( "echo" , echo ) ; builder.addCommand ( "blocking" , blockingCommand ) ; builder.addCommand ( "call" , callCommand ) ; builder.addCommand ( "activecalls" , activeCallsCommand ) ; return builder ; }
Source:
private static void addToElement ( com.android.manifmerger.ManifestMerger2.SystemProperty systemProperty , java.lang.String value , org.w3c.dom.Element to ) { to.setAttribute ( systemProperty.toCamelCase ( ) , value ) ; }

Target:
private static void addToElement ( com.android.manifmerger.ManifestMerger2.SystemProperty systemProperty , com.android.manifmerger.ActionRecorder actionRecorder , java.lang.String value , com.android.manifmerger.XmlElement to ) { to.getXml ( ) . setAttribute ( systemProperty.toCamelCase ( ) , value ) ; com.android.manifmerger.XmlAttribute xmlAttribute = new com.android.manifmerger.XmlAttribute ( to , to.getXml ( ) . getAttributeNode ( systemProperty.toCamelCase ( ) ) , null ) ; actionRecorder.recordAttributeAction ( xmlAttribute , new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.INJECTED , new com.android.manifmerger.Actions.ActionLocation ( to.getSourceLocation ( ) , PositionImpl.UNKNOWN_POSITION ) , xmlAttribute.getId ( ) , null , null ) ) ; }
Source:
public boolean setRadioPower ( boolean turnOn ) { return setRadioPowerForSubscriber ( getDefaultSubscription ( ) , turnOn ) ; }

Target:
public void handleUssdRequest ( int subId , java.lang.String ussdRequest , android.os.ResultReceiver wrappedCallback ) { enforceCallPermission ( ) ; if ( ! ( android.telephony.SubscriptionManager.isValidSubscriptionId ( subId ) ) ) { return ; } android.util.Pair < java.lang.String , android.os.ResultReceiver > ussdObject = new android.util.Pair ( ussdRequest , wrappedCallback ) ; sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_HANDLE_USSD_REQUEST , ussdObject , subId ) ; }
Source:
public void singleScanSuccessWithFullResults ( ) { com.android.server.wifi.WifiNative.ScanSettings settings = new com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder ( ) . withBasePeriod ( 10000 ) . withMaxApPerScan ( 10 ) . addBucketWithBand ( 10000 , ( ( android.net.wifi.WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) | ( android.net.wifi.WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT ) ) , WifiScanner.WIFI_BAND_24_GHZ ) . build ( ) ; doSuccessfulSingleScanTest ( settings , expectedBandScanFreqs ( WifiScanner.WIFI_BAND_24_GHZ ) , new java.util.HashSet < java.lang.Integer > ( ) , com.android.server.wifi.ScanResults.create ( 0 , 2400 , 2450 , 2450 , 2400 , 2450 , 2450 , 2400 , 2450 , 2450 ) , true ) ; }

Target:
public void singleScanSuccessWithFullResults ( ) { com.android.server.wifi.WifiNative.ScanSettings settings = new com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder ( ) . withBasePeriod ( 10000 ) . withMaxApPerScan ( 10 ) . addBucketWithBand ( 10000 , ( ( android.net.wifi.WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) | ( android.net.wifi.WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT ) ) , WifiScanner.WIFI_BAND_24_GHZ ) . build ( ) ; doSuccessfulSingleScanTest ( settings , expectedBandScanFreqs ( WifiScanner.WIFI_BAND_24_GHZ ) , new java.util.HashSet < java.lang.Integer > ( ) , com.android.server.wifi.ScanResults.create ( 0 , isAllChannelsScanned ( WifiScanner.WIFI_BAND_24_GHZ ) , 2400 , 2450 , 2450 , 2400 , 2450 , 2450 , 2400 , 2450 , 2450 ) , true ) ; }
Source:
public java.lang.String string ( ) throws java.io.IOException { int size = int32 ( ) ; byte [ ] bytes = new byte [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { bytes [ i ] = int8 ( ) ; } try { return new java.lang.String ( bytes , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.lang.String string ( ) throws java.io.IOException { int size = uint32 ( ) ; byte [ ] bytes = new byte [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { bytes [ i ] = int8 ( ) ; } try { return new java.lang.String ( bytes , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void createOatDirs ( java.util.List < java.lang.String > instructionSets , java.io.File fromDir ) throws com.android.server.pm.PackageManagerException { for ( java.lang.String instructionSet : instructionSets ) { try { mPm.mInstaller.createOatDir ( fromDir.getAbsolutePath ( ) , instructionSet ) ; } catch ( com.android.internal.os.InstallerConnection.InstallerException e ) { throw com.android.server.pm.PackageManagerException.from ( e ) ; } } }

Target:
private void createOatDirs ( java.util.List < java.lang.String > instructionSets , java.io.File fromDir ) throws com.android.server.pm.PackageManagerException { for ( java.lang.String instructionSet : instructionSets ) { try { mPm.mInstaller.createOatDir ( fromDir.getAbsolutePath ( ) , instructionSet ) ; } catch ( com.android.server.pm.Installer.InstallerException e ) { throw com.android.server.pm.PackageManagerException.from ( e ) ; } } }
Source:
public static void recordLinearCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordLinearCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordLinearCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordLinearCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
static void writeClassFile ( java.io.PrintStream stream , java.util.HashSet < com.google.doclava.ClassInfo > notStrippable , com.google.doclava.ClassInfo cl ) { com.google.doclava.PackageInfo pkg = cl.containingPackage ( ) ; if ( pkg != null ) { stream.println ( ( ( "package " + ( pkg.name ( ) ) ) + ";" ) ) ; } com.google.doclava.Stubs.writeClass ( stream , notStrippable , cl ) ; }

Target:
static void writeClassFile ( java.io.PrintStream stream , java.util.HashSet < com.google.doclava.ClassInfo > notStrippable , com.google.doclava.ClassInfo cl ) { com.google.doclava.PackageInfo pkg = cl.containingPackage ( ) ; if ( ( cl.containingClass ( ) ) == null ) { stream.print ( com.google.doclava.Stubs.parseLicenseHeader ( cl.position ( ) ) ) ; } if ( pkg != null ) { stream.println ( ( ( "package " + ( pkg.name ( ) ) ) + ";" ) ) ; } com.google.doclava.Stubs.writeClass ( stream , notStrippable , cl ) ; }
Source:
public java.lang.String getIanaVersion ( ) { try ( java.io.Reader reader = xmlSource.get ( ) ) { org.xmlpull.v1.XmlPullParserFactory xmlPullParserFactory = org.xmlpull.v1.XmlPullParserFactory.newInstance ( ) ; xmlPullParserFactory.setNamespaceAware ( false ) ; org.xmlpull.v1.XmlPullParser parser = xmlPullParserFactory.newPullParser ( ) ; parser.setInput ( reader ) ; libcore.util.TimeZoneFinder.findRequiredStartTag ( parser , libcore.util.TimeZoneFinder.TIMEZONES_ELEMENT ) ; return parser.getAttributeValue ( null , libcore.util.TimeZoneFinder.IANA_VERSION_ATTRIBUTE ) ; } catch ( org.xmlpull.v1.XmlPullParserException | java.io.IOException e ) { return null ; } }

Target:
public java.lang.String getIanaVersion ( ) { return ianaVersion ; }
Source:
public boolean removeAll ( final java.util.Collection < ? > c ) { com.google.common.base.Preconditions.checkNotNull ( c ) ; com.google.common.base.Predicate < java.util.Map.Entry < R , V > > predicate = new com.google.common.base.Predicate < java.util.Map.Entry < R , V > > ( ) { @ java.lang.Override public boolean apply ( java.util.Map.Entry < R , V > entry ) { return c.contains ( entry.getValue ( ) ) ; } } ; return removePredicate ( predicate ) ; }

Target:
public boolean removeAll ( final java.util.Collection < ? > c ) { return removeFromColumnIf ( com.google.common.collect.Maps.< V > valuePredicateOnEntries ( com.google.common.base.Predicates.in ( c ) ) ) ; }
Source:
public static void computeModf ( android.renderscript.cts.TestModf.ArgumentsFloatFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 12 ; args.outIret = ( ( int ) ( args.inX ) ) ; args.out = ( args.inX ) - ( args.outIret ) ; }

Target:
public static void computeModf ( android.renderscript.cts.TestModf.ArgumentsFloatFloatFloat args ) { float ret = ( ( float ) ( ( int ) ( args.inX ) ) ) ; args.outIret = new android.renderscript.cts.Floaty ( ret ) ; args.out = new android.renderscript.cts.Floaty ( ( ( args.inX ) - ret ) , 0 , 0 ) ; }
Source:
public com.android.sdklib.internal.avd.AvdManager.AvdInfo [ ] getValidAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mValidAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdManager.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) == ( com.android.sdklib.internal.avd.AvdManager.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mValidAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdManager.AvdInfo [ list.size ( ) ] ) ; } return mValidAvdList ; } }

Target:
public com.android.sdklib.internal.avd.AvdInfo [ ] getBrokenAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mBrokenAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) != ( com.android.sdklib.internal.avd.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mBrokenAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdInfo [ list.size ( ) ] ) ; } return mBrokenAvdList ; } }
Source:
public void compileCore ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "core" , ".dex" ) ; com.android.jack.TestTools.compileSourceToDex ( new com.android.jack.Options ( ) , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , null , outDexFolder , false ) ; }

Target:
public void compileCore ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "core" , ".dex" ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , null , outDexFolder , false ) ; }