auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getUsage ( ) { java.lang.StringBuffer usage = new java.lang.StringBuffer ( ) ; java.util.Iterator < com.android.sched.util.codec.StringCodec < ? extends T > > codecListIterator = codecList.iterator ( ) ; while ( codecListIterator.hasNext ( ) ) { usage.append ( codecListIterator.next ( ) . getUsage ( ) ) ; if ( codecListIterator.hasNext ( ) ) { usage.append ( " or " ) ; } } return usage.toString ( ) ; }

Target:
public java.lang.String apply ( com.android.sched.util.codec.StringCodec < ? extends T > codec ) { return codec.getUsage ( ) ; }
Source:
private static boolean areArrayElementsEqual ( java.lang.Object o1 , java.lang.Object o2 ) { for ( int i = 0 ; i < ( java.lang.reflect.Array.getLength ( o1 ) ) ; i ++ ) { if ( ! ( org.hamcrest.core.IsEqual.areEqual ( java.lang.reflect.Array.get ( o1 , i ) , java.lang.reflect.Array.get ( o2 , i ) ) ) ) return false ; } return true ; }

Target:
private static boolean areArrayElementsEqual ( java.lang.Object actualArray , java.lang.Object expectedArray ) { for ( int i = 0 ; i < ( java.lang.reflect.Array.getLength ( actualArray ) ) ; i ++ ) { if ( ! ( org.hamcrest.core.IsEqual.areEqual ( java.lang.reflect.Array.get ( actualArray , i ) , java.lang.reflect.Array.get ( expectedArray , i ) ) ) ) { return false ; } } return true ; }
Source:
public boolean configureRoaming ( com.android.server.wifi.WifiNative.RoamingConfig config ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "configureRoaming " ) ; try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean setPnoList ( com.android.server.wifi.WifiNative.PnoSettings settings , com.android.server.wifi.WifiNative.PnoEventHandler eventHandler ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "setPnoList not supported" ) ; return false ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "setPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = eventHandler ; if ( com.android.server.wifi.WifiNative.setPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId , settings ) ) { return true ; } } com.android.server.wifi.WifiNative.sPnoEventHandler = null ; return false ; } } }
Source:
public void testName ( ) throws java.lang.Exception { junit.framework.Assert.assertEquals ( 1 , new com.android.jack.jarjar.test006.a.lib2.Repackaged2 ( ) . get ( ) ) ; }

Target:
public void testName ( ) throws java.lang.Exception { com.android.jack.jarjar.test006.a.lib2.Repackaged2 repackaged2 = new com.android.jack.jarjar.test006.a.lib2.Repackaged2 ( ) ; junit.framework.Assert.assertEquals ( 1 , repackaged2.get ( ) ) ; junit.framework.Assert.assertEquals ( 2 , repackaged2.getInterface ( ) ) ; repackaged2.checkInterface ( ) ; repackaged2.checkAnnotation ( ) ; }
Source:
private int getStringIndex ( java.lang.String [ ] arr , java.lang.String toBeFound , int defaultIndex ) { for ( int i = 0 ; i < ( arr.length ) ; i ++ ) { if ( toBeFound.equals ( arr [ i ] ) ) return i ; } return defaultIndex ; }

Target:
private int getStringIndex ( java.lang.String [ ] arr , java.lang.String toBeFound , int defaultIndex ) { if ( android.text.TextUtils.isEmpty ( toBeFound ) ) return defaultIndex ; for ( int i = 0 ; i < ( arr.length ) ; i ++ ) { if ( toBeFound.equals ( arr [ i ] ) ) return i ; } return defaultIndex ; }
Source:
public void testPx ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/now_playing_after.xml:41: Warning: Avoid using \"px\" as units; use \"dp\" instead [PxUsage]\n" + ( ( ( " android:layout_width=\"1px\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/now_playing_after.xml" ) ) ; }

Target:
public void testPx ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/now_playing_after.xml:49: Warning: Avoid using \"mm\" as units (it does not work accurately on all devices); use \"dp\" instead [InOrMmUsage]\n" + ( ( ( ( ( ( ( ( " android:layout_width=\"100mm\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/now_playing_after.xml:50: Warning: Avoid using \"in\" as units (it does not work accurately on all devices); use \"dp\" instead [InOrMmUsage]\n" ) + " android:layout_height=\"120in\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/now_playing_after.xml:41: Warning: Avoid using \"px\" as units; use \"dp\" instead [PxUsage]\n" ) + " android:layout_width=\"1px\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) ) , lintFiles ( "res/layout/now_playing_after.xml" ) ) ; }
Source:
private static java.util.Set < java.lang.String > getDeletedFiles ( @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames ) throws com.android.jack.JackUserException { java.util.Set < java.lang.String > deletedFiles = new java.util.HashSet < java.lang.String > ( ) ; for ( java.lang.String javaFileName : com.android.jack.experimental.incremental.JackIncremental.getCompilerState ( ) . getJavaFilename ( ) ) { if ( ! ( javaFileNames.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.INFO , "{0} was deleted" , javaFileName ) ; deletedFiles.add ( javaFileName ) ; } } return deletedFiles ; }

Target:
private static java.util.Set < java.lang.String > getDeletedFiles ( @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames ) throws com.android.jack.JackUserException { java.util.Set < java.lang.String > deletedFiles = new java.util.HashSet < java.lang.String > ( ) ; for ( java.lang.String javaFileName : com.android.jack.experimental.incremental.JackIncremental.getCompilerState ( ) . getJavaFilename ( ) ) { if ( ! ( javaFileNames.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.FINE , "{0} was deleted" , javaFileName ) ; deletedFiles.add ( javaFileName ) ; } } return deletedFiles ; }
Source:
public void validateUserCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; cred.userCredential.username = "username" ; cred.userCredential.password = "password" ; cred.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; cred.userCredential.nonEapInnerMethod = "MS-CHAP" ; cred.caCertificate = android.net.wifi.FakeKeys.CA_CERT0 ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }

Target:
public void validateUserCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithUserCredential ( ) ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }
Source:
static void acquireScreenCpuWakeLock ( android.content.Context context ) { if ( ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock ) != null ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( context.getSystemService ( Context.POWER_SERVICE ) ) ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock = pm.newWakeLock ( ( ( ( android.os.PowerManager.PARTIAL_WAKE_LOCK ) | ( android.os.PowerManager.ACQUIRE_CAUSES_WAKEUP ) ) | ( android.os.PowerManager.ON_AFTER_RELEASE ) ) , com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock.acquire ( ) ; android.util.Log.d ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG , "acquired screen + CPU wake lock" ) ; }

Target:
static void acquirePartialWakeLock ( android.content.Context context ) { if ( ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock ) == null ) { android.os.PowerManager pm = ( ( android.os.PowerManager ) ( context.getSystemService ( Context.POWER_SERVICE ) ) ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock = pm.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG ) ; } if ( ! ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock.isHeld ( ) ) ) { com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock.acquire ( 1000 ) ; android.util.Log.d ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG , "acquired partial wakelock" ) ; } }
Source:
public void resumeTransmission ( ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.resumeTransmission" ) ; transmissionStopped = false ; int unpausedVideoState = com.android.incallui.videotech.ims.ImsVideoTech.getUnpausedVideoState ( call.getDetails ( ) . getVideoState ( ) ) ; call.getVideoCall ( ) . sendSessionModifyRequest ( new android.telecom.VideoProfile ( ( unpausedVideoState | ( android.telecom.VideoProfile.STATE_TX_ENABLED ) ) ) ) ; setSessionModificationState ( SessionModificationState.WAITING_FOR_RESPONSE ) ; }

Target:
public void resumeTransmission ( @ android.support.annotation.NonNull android.content.Context context ) { com.android.dialer.common.LogUtil.enterBlock ( "ImsVideoTech.resumeTransmission" ) ; transmissionStopped = false ; int unpausedVideoState = com.android.incallui.videotech.ims.ImsVideoTech.getUnpausedVideoState ( call.getDetails ( ) . getVideoState ( ) ) ; call.getVideoCall ( ) . sendSessionModifyRequest ( new android.telecom.VideoProfile ( ( unpausedVideoState | ( android.telecom.VideoProfile.STATE_TX_ENABLED ) ) ) ) ; setSessionModificationState ( SessionModificationState.WAITING_FOR_RESPONSE ) ; }
Source:
public java.lang.String callGetDisplayName ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode element ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( element ) ; if ( rule != null ) { try { return rule.getDisplayName ( ) ; } catch ( java.lang.Exception e ) { logError ( "%s.getDisplayName() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public java.lang.String callGetDisplayName ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode element ) { com.android.ide.common.api.IViewRule rule = loadRule ( element ) ; if ( rule != null ) { try { return rule.getDisplayName ( ) ; } catch ( java.lang.Exception e ) { logError ( "%s.getDisplayName() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
private static android.telephony.SmsCbMessage createFromPdu ( byte [ ] pdu , int serialNumber , int category ) { byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdus ( pdus , serialNumber , category ) ; }

Target:
private static android.telephony.SmsCbMessage createFromPdu ( android.content.Context context , byte [ ] pdu , int serialNumber , int category ) { byte [ ] [ ] pdus = new byte [ 1 ] [ ] ; pdus [ 0 ] = pdu ; return com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdus ( context , pdus , serialNumber , category ) ; }
Source:
private com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal createTestNitzSignal ( ) { long receivedRealtimeMillis = mTimeServiceHelper.elapsedRealtime ( ) ; long timeMillis = com.android.internal.telephony.NitzStateMachineTest.createTime ( java.util.TimeZone.getTimeZone ( "UTC" ) , 2017 , 1 , 2 , 12 , 45 , 25 ) ; com.android.internal.telephony.NitzData nitzData = com.android.internal.telephony.NitzData.createForTests ( 1000 , 2000 , timeMillis , null ) ; return new com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal ( nitzData , receivedRealtimeMillis ) ; }

Target:
com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > getNitzSignal ( ) { if ( ( mNitzSignal ) == null ) { int [ ] offsets = new int [ 2 ] ; mZone.getOffset ( mActualTimeMillis , false , offsets ) ; int zoneOffsetMillis = ( offsets [ 0 ] ) + ( offsets [ 1 ] ) ; com.android.internal.telephony.NitzData nitzData = com.android.internal.telephony.NitzData.createForTests ( zoneOffsetMillis , offsets [ 1 ] , mActualTimeMillis , null ) ; mNitzSignal = new com.android.internal.telephony.util.TimeStampedValue ( nitzData , mInitialDeviceRealtimeMillis ) ; } return mNitzSignal ; }
Source:
public java.util.List < com.android.sdklib.devices.Device > getDevices ( java.lang.String sdkLocation ) { java.util.List < com.android.sdklib.devices.Device > devices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( getVendorDevices ( sdkLocation ) ) ; devices.addAll ( getDefaultDevices ( ) ) ; devices.addAll ( getUserDevices ( ) ) ; return devices ; }

Target:
public java.util.List < com.android.sdklib.devices.Device > getDevices ( java.lang.String sdkLocation ) { java.util.List < com.android.sdklib.devices.Device > devices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( getVendorDevices ( sdkLocation ) ) ; devices.addAll ( getDefaultDevices ( ) ) ; devices.addAll ( getUserDevices ( ) ) ; return java.util.Collections.unmodifiableList ( devices ) ; }
Source:
private void restoreDefaultAPN ( int subId ) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ; try { db.delete ( com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE , null , null ) ; } catch ( android.database.SQLException e ) { com.android.providers.telephony.TelephonyProvider.loge ( ( "got exception when deleting to restore: " + e ) ) ; } setPreferredApnId ( ( ( long ) ( com.android.providers.telephony.TelephonyProvider.INVALID_APN_ID ) ) , subId ) ; initDatabaseWithDatabaseHelper ( db ) ; }

Target:
private void restoreDefaultAPN ( int subId ) { android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ; try { db.delete ( com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE , null , null ) ; } catch ( android.database.SQLException e ) { com.android.providers.telephony.TelephonyProvider.loge ( ( "got exception when deleting to restore: " + e ) ) ; } setPreferredApnId ( ( ( long ) ( com.android.providers.telephony.TelephonyProvider.INVALID_APN_ID ) ) , subId ) ; if ( com.android.providers.telephony.TelephonyProvider.apnSourceServiceExists ( getContext ( ) ) ) { restoreApnsWithService ( ) ; } else { initDatabaseWithDatabaseHelper ( db ) ; } }
Source:
public void testDifferentCaCertificateDetected ( ) { com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig eapConfig = new com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig ( WifiEnterpriseConfig.Eap.TTLS ) . setPhase2 ( WifiEnterpriseConfig.Phase2.MSCHAPV2 ) . setIdentity ( "username" , "password" ) . setCaCerts ( new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CA_CERT0 } ) ; com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig eapConfigNewCert = new com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig ( WifiEnterpriseConfig.Eap.TTLS ) . setPhase2 ( WifiEnterpriseConfig.Phase2.MSCHAPV2 ) . setIdentity ( "username" , "password" ) . setCaCerts ( new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CA_CERT1 } ) ; assertTrue ( com.android.server.wifi.WifiConfigurationUtil.hasEnterpriseConfigChanged ( eapConfig.enterpriseConfig , eapConfigNewCert.enterpriseConfig ) ) ; }

Target:
public void testDifferentCaCertificateDetected ( ) { com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig eapConfig = new com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig ( WifiEnterpriseConfig.Eap.TTLS ) . setPhase2 ( WifiEnterpriseConfig.Phase2.MSCHAPV2 ) . setIdentity ( "username" , "password" ) . setCaCerts ( new java.security.cert.X509Certificate [ ] { FakeKeys.CA_CERT0 } ) ; com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig eapConfigNewCert = new com.android.server.wifi.WifiConfigurationUtilTest.EnterpriseConfig ( WifiEnterpriseConfig.Eap.TTLS ) . setPhase2 ( WifiEnterpriseConfig.Phase2.MSCHAPV2 ) . setIdentity ( "username" , "password" ) . setCaCerts ( new java.security.cert.X509Certificate [ ] { FakeKeys.CA_CERT1 } ) ; assertTrue ( com.android.server.wifi.WifiConfigurationUtil.hasEnterpriseConfigChanged ( eapConfig.enterpriseConfig , eapConfigNewCert.enterpriseConfig ) ) ; }
Source:
public void showMissedCallNotification ( com.android.server.telecom.Call call ) { final android.telecom.PhoneAccountHandle phoneAccountHandle = call.getTargetPhoneAccount ( ) ; final android.telecom.PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked ( phoneAccountHandle ) ; android.os.UserHandle userHandle ; if ( ( phoneAccount != null ) && ( phoneAccount.hasCapabilities ( PhoneAccount.CAPABILITY_MULTI_USER ) ) ) { userHandle = mCurrentUserHandle ; } else { userHandle = phoneAccountHandle.getUserHandle ( ) ; } showMissedCallNotification ( call , userHandle ) ; }

Target:
public void showMissedCallNotification ( @ android.annotation.NonNull com.android.server.telecom.ui.CallInfo callInfo ) { final android.telecom.PhoneAccountHandle phoneAccountHandle = callInfo.getPhoneAccountHandle ( ) ; final android.telecom.PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked ( phoneAccountHandle ) ; android.os.UserHandle userHandle ; if ( ( phoneAccount != null ) && ( phoneAccount.hasCapabilities ( PhoneAccount.CAPABILITY_MULTI_USER ) ) ) { userHandle = mCurrentUserHandle ; } else { userHandle = phoneAccountHandle.getUserHandle ( ) ; } showMissedCallNotification ( callInfo , userHandle ) ; }
Source:
private void validateCorrectNanStatusChangeBroadcast ( org.mockito.InOrder inOrder , boolean expectedEnabled ) { org.mockito.ArgumentCaptor < android.content.Intent > intent = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; inOrder.verify ( mMockContext ) . sendBroadcastAsUser ( intent.capture ( ) , org.mockito.Matchers.eq ( UserHandle.ALL ) ) ; collector.checkThat ( "intent action" , intent.getValue ( ) . getAction ( ) , org.hamcrest.core.IsEqual.equalTo ( WifiNanManager.ACTION_WIFI_NAN_STATE_CHANGED ) ) ; }

Target:
private void validateCorrectAwareStatusChangeBroadcast ( org.mockito.InOrder inOrder , boolean expectedEnabled ) { org.mockito.ArgumentCaptor < android.content.Intent > intent = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; inOrder.verify ( mMockContext ) . sendBroadcastAsUser ( intent.capture ( ) , org.mockito.Matchers.eq ( UserHandle.ALL ) ) ; collector.checkThat ( "intent action" , intent.getValue ( ) . getAction ( ) , org.hamcrest.core.IsEqual.equalTo ( WifiAwareManager.ACTION_WIFI_AWARE_STATE_CHANGED ) ) ; }
Source:
public void testRequestNonRuntimePermission23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRequestNonRuntimePermission" ) ; }

Target:
public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.Throwable expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2" ) ; }
Source:
public java.lang.invoke.VarHandle findVarHandle ( java.lang.Class < ? > recv , java.lang.String name , java.lang.Class < ? > type ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { java.lang.invoke.MethodHandles.unsupported ( "MethodHandles.Lookup.findVarHandle()" ) ; return null ; }

Target:
public java.lang.invoke.VarHandle findVarHandle ( java.lang.Class < ? > recv , java.lang.String name , java.lang.Class < ? > type ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { final java.lang.reflect.Field field = findFieldOfType ( recv , name , type ) ; final boolean isStatic = false ; final boolean performAccessChecks = true ; commonFieldChecks ( field , recv , type , isStatic , performAccessChecks ) ; return java.lang.invoke.FieldVarHandle.create ( field ) ; }
Source:
public void testPublishConfigBuilderDefaults ( ) { android.net.wifi.nan.PublishConfig publishConfig = new android.net.wifi.nan.PublishConfig.Builder ( ) . build ( ) ; collector.checkThat ( "mServiceName" , publishConfig.mServiceName , org.hamcrest.core.IsEqual.equalTo ( null ) ) ; collector.checkThat ( "mPublishType" , publishConfig.mPublishType , org.hamcrest.core.IsEqual.equalTo ( PublishConfig.PUBLISH_TYPE_UNSOLICITED ) ) ; collector.checkThat ( "mPublishCount" , publishConfig.mPublishCount , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mTtlSec" , publishConfig.mTtlSec , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mEnableTerminateNotification" , publishConfig.mEnableTerminateNotification , org.hamcrest.core.IsEqual.equalTo ( true ) ) ; }

Target:
public void testPublishConfigBuilderDefaults ( ) { android.net.wifi.aware.PublishConfig publishConfig = new android.net.wifi.aware.PublishConfig.Builder ( ) . build ( ) ; collector.checkThat ( "mServiceName" , publishConfig.mServiceName , org.hamcrest.core.IsEqual.equalTo ( null ) ) ; collector.checkThat ( "mPublishType" , publishConfig.mPublishType , org.hamcrest.core.IsEqual.equalTo ( PublishConfig.PUBLISH_TYPE_UNSOLICITED ) ) ; collector.checkThat ( "mPublishCount" , publishConfig.mPublishCount , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mTtlSec" , publishConfig.mTtlSec , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mEnableTerminateNotification" , publishConfig.mEnableTerminateNotification , org.hamcrest.core.IsEqual.equalTo ( true ) ) ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function ) { return com.google.common.util.concurrent.Futures.transform ( input , function , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , final com.google.common.base.Function < ? super I , ? extends O > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( com.google.common.util.concurrent.Futures.asAsyncFunction ( function ) , input ) ; input.addListener ( output , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
private static void testClass ( java.lang.Class < ? > base ) throws java.lang.Exception { java.lang.String [ ] result = Main.getClassSignature ( base ) ; java.lang.System.out.println ( java.util.Arrays.toString ( result ) ) ; }

Target:
private static void testClass ( java.lang.Class < ? > base ) throws java.lang.Exception { java.lang.String [ ] result = Main.getClassSignature ( base ) ; java.lang.System.out.println ( java.util.Arrays.toString ( result ) ) ; int mod = Main.getClassModifiers ( base ) ; if ( mod != ( base.getModifiers ( ) ) ) { throw new java.lang.RuntimeException ( ( ( ( "Unexpected modifiers: " + ( base.getModifiers ( ) ) ) + " vs " ) + mod ) ) ; } java.lang.System.out.println ( java.lang.Integer.toHexString ( mod ) ) ; }
Source:
public void ioReceive ( ) { try { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "ioReceive" ) ; if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSIllegalArgumentException ( "Can only receive if IO_INPUT usage specified." ) ; } mRS.validate ( ) ; mRS.nAllocationIoReceive ( getID ( mRS ) ) ; } finally { android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; } }

Target:
public void ioReceive ( ) { try { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "ioReceive" ) ; if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSIllegalArgumentException ( "Can only receive if IO_INPUT usage specified." ) ; } mRS.validate ( ) ; mTimeStamp = mRS.nAllocationIoReceive ( getID ( mRS ) ) ; } finally { android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; } }
Source:
public boolean isInvisibleParent ( ) { if ( ( ( mAbsRect.width ) < ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.SELECTION_MIN_SIZE ) ) || ( ( mAbsRect.height ) < ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.SELECTION_MIN_SIZE ) ) ) { return ( ( mUiViewNode ) != null ) && ( mUiViewNode.getDescriptor ( ) . hasChildren ( ) ) ; } return false ; }

Target:
public boolean isInvisible ( ) { if ( ( ( mAbsRect.width ) < ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.SELECTION_MIN_SIZE ) ) || ( ( mAbsRect.height ) < ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.SELECTION_MIN_SIZE ) ) ) { return ( ( mUiViewNode ) != null ) && ( ( ( mUiViewNode.getDescriptor ( ) . hasChildren ( ) ) || ( ( mAbsRect.width ) <= 0 ) ) || ( ( mAbsRect.height ) <= 0 ) ) ; } return false ; }
Source:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { new com.android.bluetooth.avrcp.Avrcp.BrowsablePlayerListBuilder ( ) . start ( ) ; } } }

Target:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { removeMediaPlayerInfo ( packageName ) ; if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { mBrowsableListBuilder.start ( ) ; } } }
Source:
public java.lang.String formatValue ( @ javax.annotation.Nonnull com.android.sched.util.file.OutputStreamFile stream ) { return formatValue ( ( ( com.android.sched.util.file.AbstractStreamFile ) ( stream ) ) ) ; }

Target:
public void checkValue ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull com.android.sched.util.file.OutputStreamFile stream ) throws com.android.sched.util.codec.CheckingException { com.android.sched.util.location.Location location = stream.getLocation ( ) ; if ( ( location.equals ( StandardOutputKind.STANDARD_OUTPUT.getLocation ( ) ) ) && ( ! ( allowStandardIO ) ) ) { throw new com.android.sched.util.codec.CheckingException ( "Standard output is not allowed" ) ; } else if ( ( location.equals ( StandardOutputKind.STANDARD_ERROR.getLocation ( ) ) ) && ( ! ( allowStandardError ) ) ) { throw new com.android.sched.util.codec.CheckingException ( "Standard error is not allowed" ) ; } }
Source:
public void writeCharacteristic ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeCharacteristic ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , writeType , authReq , value ) ; }

Target:
public void writeDescriptor ( int clientIf , java.lang.String address , int handle , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeDescriptor ( clientIf , address , handle , writeType , authReq , value ) ; }
Source:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.BlockModeEnum int mode ) { switch ( mode ) { case android.security.KeyStoreKeyConstraints.BlockMode.ECB : return "ECB" ; case android.security.KeyStoreKeyConstraints.BlockMode.CBC : return "CBC" ; case android.security.KeyStoreKeyConstraints.BlockMode.CTR : return "CTR" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown block mode: " + mode ) ) ; } }

Target:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.BlockModeEnum int mode ) { switch ( mode ) { case android.security.KeyStoreKeyConstraints.BlockMode.ECB : return "ECB" ; case android.security.KeyStoreKeyConstraints.BlockMode.CBC : return "CBC" ; case android.security.KeyStoreKeyConstraints.BlockMode.CTR : return "CTR" ; case android.security.KeyStoreKeyConstraints.BlockMode.GCM : return "GCM" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown block mode: " + mode ) ) ; } }
Source:
final void initialize ( ) { keySet = null ; entrySet = null ; values = null ; descendingMap = null ; randomSeed = ( java.util.concurrent.ConcurrentSkipListMap.seedGenerator.nextInt ( ) ) | 256 ; head = new java.util.concurrent.ConcurrentSkipListMap.HeadIndex < K , V > ( new java.util.concurrent.ConcurrentSkipListMap.Node < K , V > ( null , java.util.concurrent.ConcurrentSkipListMap.BASE_HEADER , null ) , null , null , 1 ) ; }

Target:
final void initialize ( ) { keySet = null ; entrySet = null ; values = null ; descendingMap = null ; randomSeed = ( java.lang.Math.randomIntInternal ( ) ) | 256 ; head = new java.util.concurrent.ConcurrentSkipListMap.HeadIndex < K , V > ( new java.util.concurrent.ConcurrentSkipListMap.Node < K , V > ( null , java.util.concurrent.ConcurrentSkipListMap.BASE_HEADER , null ) , null , null , 1 ) ; }
Source:
public void onReceivedLoginRequest ( android.webkit.WebView view , java.lang.String realm , java.lang.String account , java.lang.String args ) { super . onReceivedLoginRequest ( view , realm , account , args ) ; mOnReceivedLoginRequest = true ; mOnReceivedLoginRealm = realm ; mOnReceivedLoginAccount = account ; mOnReceivedLoginArgs = args ; HEAD ( 17 ) ; android.webkit.cts.cfc7 Merge ; }

Target:
public void onFormResubmission ( android.webkit.WebView view , android.os.Message dontResend , android.os.Message resend ) { mOnFormResubmissionCalled = true ; dontResend.sendToTarget ( ) ; }
Source:
public java.io.InputStream nameList ( java.lang.String path ) throws java.io.IOException , sun.net.ftp.FtpProtocolException { java.net.Socket s ; s = openDataConnection ( ( "NLST " + path ) ) ; if ( s != null ) { return createInputStream ( s.getInputStream ( ) ) ; } return null ; }

Target:
public java.io.InputStream nameList ( java.lang.String path ) throws java.io.IOException , sun.net.ftp.FtpProtocolException { java.net.Socket s ; s = openDataConnection ( ( path == null ? "NLST" : "NLST " + path ) ) ; if ( s != null ) { return createInputStream ( s.getInputStream ( ) ) ; } return null ; }
Source:
public void changeIcon ( @ android.support.annotation.DrawableRes int iconId , java.lang.String description ) { if ( ( this . mFabIconId ) != iconId ) { mFab.setImageResource ( iconId ) ; this . mFabIconId = iconId ; } if ( ! ( mFab.getContentDescription ( ) . equals ( description ) ) ) { mFab.setContentDescription ( description ) ; } }

Target:
public void changeIcon ( android.content.Context context , @ android.support.annotation.DrawableRes int iconId , java.lang.String description ) { if ( ( this . mFabIconId ) != iconId ) { mFab.setImageResource ( iconId ) ; mFab.setImageTintList ( android.content.res.ColorStateList.valueOf ( context.getResources ( ) . getColor ( android.R.color.white ) ) ) ; this . mFabIconId = iconId ; } if ( ! ( mFab.getContentDescription ( ) . equals ( description ) ) ) { mFab.setContentDescription ( description ) ; } }
Source:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { android.icu.util.Calendar cal = android.icu.util.Calendar.getInstance ( new android.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }

Target:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "gregorian" , "gregorian" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { android.icu.util.Calendar cal = android.icu.util.Calendar.getInstance ( new android.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }
Source:
public java.lang.String readUTF ( ) throws java.io.IOException { int length = readInt ( ) ; if ( length == ( - 1 ) ) { return null ; } byte [ ] utf8String = new byte [ length ] ; in.readFully ( utf8String ) ; return com.android.jack.util.StringUtils.utf8BytesToString ( utf8String ) ; }

Target:
public java.lang.String readUTF ( ) throws java.io.IOException { int length = readInt ( ) ; if ( length == ( - 1 ) ) { return null ; } byte [ ] utf8String = new byte [ length ] ; in.readFully ( utf8String ) ; try { return com.android.jack.util.StringUtils.utf8BytesToString ( utf8String ) ; } catch ( java.text.ParseException e ) { throw new com.android.jack.jayce.v0002.io.ParseException ( e ) ; } }
Source:
private java.util.Set < java.lang.String > getDeleteFileNames ( ) { assert ( fileDependencies ) != null ; java.util.Set < java.lang.String > deletedFileNames = new java.util.HashSet < java.lang.String > ( ) ; for ( java.lang.String javaFileName : fileDependencies.getCompiledJavaFiles ( ) ) { if ( ! ( fileNamesOnCmdLine.contains ( javaFileName ) ) ) { deletedFileNames.add ( javaFileName ) ; } } return deletedFileNames ; }

Target:
private void fillDeletedFileNames ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > deletedFileNames ) { assert ( fileDependencies ) != null ; for ( java.lang.String javaFileName : fileDependencies.getCompiledJavaFiles ( ) ) { if ( ! ( fileNamesOnCmdLine.contains ( javaFileName ) ) ) { deletedFileNames.add ( javaFileName ) ; } } tracer.getStatistic ( com.android.jack.incremental.IncrementalInputFilter.DELETED_FILES ) . incValue ( deletedFileNames.size ( ) ) ; }
Source:
public void testLoadTzData_zoneTabOutsideFile ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.setIndexOffsetOverride ( 10 ) ; builder.setDataOffsetOverride ( ( 10 + ( TzData.SIZEOF_INDEX_ENTRY ) ) ) ; builder.setZoneTabOffsetOverride ( 3000 ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 3000 > ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }

Target:
public void testLoadTzData_zoneTabOutsideFile ( ) throws java.lang.Exception { libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.setIndexOffsetOverride ( 10 ) ; builder.setDataOffsetOverride ( ( 10 + ( TzData.SIZEOF_INDEX_ENTRY ) ) ) ; builder.setZoneTabOffsetOverride ( 3000 ) ; byte [ ] data = builder.build ( ) ; assertTrue ( ( 3000 > ( data.length ) ) ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( data ) ; }
Source:
static void triggerArrayOOM ( ) { int size = ( 1 * 1024 ) * 1024 ; char [ ] [ ] holder = new char [ size ] [ ] ; int count = Main.ArrayMemEater.blowup ( holder , size ) ; Main.ArrayMemEater.confuseCompilerOptimization ( holder ) ; if ( count < size ) { java.lang.System.out.println ( "Array allocation failed" ) ; } }

Target:
static boolean triggerArrayOOM ( ) { Main.ArrayMemEater.blowup ( new char [ ( 1 * 1024 ) * 1024 ] [ ] ) ; return Main.ArrayMemEater.sawOome ; }
Source:
public void stkSessionEnd ( int var1 ) { }

Target:
public void stkSessionEnd ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_STK_SESSION_END ) ; if ( ( mRil.mCatSessionEndRegistrant ) != null ) { mRil.mCatSessionEndRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , null , null ) ) ; } }
Source:
public com.android.ddmlib.SyncService.SyncResult pullFile ( java.lang.String remoteFilepath , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) { monitor.start ( 0 ) ; com.android.ddmlib.SyncService.SyncResult result = doPullFile ( remoteFilepath , localFilename , monitor ) ; monitor.stop ( ) ; return result ; }

Target:
public void pullFile ( java.lang.String remoteFilepath , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) throws com.android.ddmlib.SyncException , com.android.ddmlib.TimeoutException , java.io.IOException { java.lang.Integer mode = readMode ( remoteFilepath ) ; if ( mode == null ) { } else if ( mode == 0 ) { throw new com.android.ddmlib.SyncException ( com.android.ddmlib.SyncException.SyncError.NO_REMOTE_OBJECT ) ; } monitor.start ( 0 ) ; doPullFile ( remoteFilepath , localFilename , monitor ) ; monitor.stop ( ) ; }
Source:
public void removeTasks ( java.util.List < com.intellij.openapi.externalSystem.model.task.TaskData > tasks , com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase phase ) { if ( tasks.isEmpty ( ) ) return ; final com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.ExternalProjectsStateProvider stateProvider = com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.getInstance ( myProject ) . getStateProvider ( ) ; for ( com.intellij.openapi.externalSystem.model.task.TaskData task : tasks ) { final com.intellij.openapi.externalSystem.service.project.manage.TaskActivationState taskActivationState = stateProvider.getTasksActivation ( task.getOwner ( ) , task.getLinkedExternalProjectPath ( ) ) ; taskActivationState.getTasks ( phase ) . remove ( task.getName ( ) ) ; } fireTasksChanged ( ) ; }

Target:
public void addTasks ( @ org.jetbrains.annotations.NotNull java.util.Collection < com.intellij.openapi.externalSystem.model.task.TaskData > tasks , @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase phase ) { if ( tasks.isEmpty ( ) ) return ; addTasks ( com.intellij.util.containers.ContainerUtil.map ( tasks , new com.intellij.util.Function < com.intellij.openapi.externalSystem.model.task.TaskData , com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry > ( ) { @ java.lang.Override public com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry fun ( com.intellij.openapi.externalSystem.model.task.TaskData data ) { return new com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry ( data.getOwner ( ) , phase , data.getLinkedExternalProjectPath ( ) , data.getName ( ) ) ; } } ) ) ; fireTasksChanged ( ) ; }
Source:
static boolean isSuperClassOf ( com.android.jack.ir.ast.JDefinedClass possibleSuper , com.android.jack.ir.ast.JDefinedClass type ) { com.android.jack.ir.ast.JDefinedClassOrInterface superClass = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type.getSuperClass ( ) ) ) ; while ( superClass != null ) { if ( possibleSuper.equals ( superClass ) ) { return true ; } superClass = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( superClass.getSuperClass ( ) ) ) ; } return false ; }

Target:
static boolean isSuperClassOf ( com.android.jack.ir.ast.JDefinedClass possibleSuper , com.android.jack.ir.ast.JDefinedClass type ) { com.android.jack.ir.ast.JDefinedClassOrInterface superClass = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type.getSuperClass ( ) ) ) ; while ( superClass != null ) { if ( possibleSuper.isSameType ( superClass ) ) { return true ; } superClass = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( superClass.getSuperClass ( ) ) ) ; } return false ; }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void d2i_SSL_SESSION_InvalidArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; }
Source:
private java.util.Map.Entry < K , V2 > transformEntry ( java.util.Map.Entry < K , V1 > entry ) { if ( entry == null ) { return null ; } K key = entry.getKey ( ) ; V2 v2 = transformer.transformEntry ( key , entry.getValue ( ) ) ; return com.google.common.collect.Maps.immutableEntry ( key , v2 ) ; }

Target:
public V2 apply ( java.util.Map.Entry < K , V1 > entry ) { return transformer.transformEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; }
Source:
public void onAppCallbackDied ( int uid , int subscriptionId ) { }

Target:
public final int initialize ( android.telephony.mbms.IMbmsStreamingManagerCallback listener , int subscriptionId ) throws android.os.RemoteException { return initialize ( new android.telephony.mbms.MbmsStreamingManagerCallback ( ) { @ java.lang.Override public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { listener.error ( errorCode , message ) ; } @ java.lang.Override public void streamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) throws android.os.RemoteException { listener.streamingServicesUpdated ( services ) ; } @ java.lang.Override public void middlewareReady ( ) throws android.os.RemoteException { listener.middlewareReady ( ) ; } } , subscriptionId ) ; }
Source:
public static void recreateTest ( java.lang.String backendUrl ) { com.google.gct.testing.launcher.CloudAuthenticator.prepareCredential ( ) ; com.google.gct.testing.launcher.CloudAuthenticator.test = new com.google.api.services.test.Test.Builder ( com.google.gct.testing.launcher.CloudAuthenticator.httpTransport , com.google.api.client.json.jackson2.JacksonFactory.getDefaultInstance ( ) , com.google.gct.testing.launcher.CloudAuthenticator.credential ) . setRootUrl ( backendUrl ) . build ( ) ; }

Target:
public static void recreateTestAndToolResults ( java.lang.String testBackendUrl , java.lang.String toolResultsBackendUrl ) { com.google.gct.testing.launcher.CloudAuthenticator.prepareCredential ( ) ; com.google.gct.testing.launcher.CloudAuthenticator.test = new com.google.api.services.test.Test.Builder ( com.google.gct.testing.launcher.CloudAuthenticator.httpTransport , com.google.api.client.json.jackson2.JacksonFactory.getDefaultInstance ( ) , com.google.gct.testing.launcher.CloudAuthenticator.credential ) . setRootUrl ( testBackendUrl ) . build ( ) ; com.google.gct.testing.launcher.CloudAuthenticator.toolresults = new com.google.api.services.toolresults.Toolresults.Builder ( com.google.gct.testing.launcher.CloudAuthenticator.httpTransport , com.google.api.client.json.jackson2.JacksonFactory.getDefaultInstance ( ) , com.google.gct.testing.launcher.CloudAuthenticator.credential ) . setRootUrl ( toolResultsBackendUrl ) . build ( ) ; }
Source:
synchronized void nScriptForEach ( int id , int slot , int ain , int aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized long nAllocationGetType ( long id ) { validate ( ) ; return rsnAllocationGetType ( mContext , id ) ; }
Source:
private java.lang.CharSequence getNumberTypeOrLocation ( com.android.dialer.phonenumbercache.ContactInfo info ) { if ( ! ( android.text.TextUtils.isEmpty ( info.name ) ) ) { return ContactsContract.CommonDataKinds.Phone.getTypeLabel ( mContext.getResources ( ) , info.type , info.label ) ; } else { return com.android.dialer.phonenumberutil.PhoneNumberHelper.getGeoDescription ( mContext , info.number ) ; } }

Target:
private java.lang.CharSequence getNumberTypeOrLocation ( com.android.dialer.phonenumbercache.ContactInfo info , java.lang.String countryIso ) { if ( ! ( android.text.TextUtils.isEmpty ( info.name ) ) ) { return ContactsContract.CommonDataKinds.Phone.getTypeLabel ( mContext.getResources ( ) , info.type , info.label ) ; } else { return com.android.dialer.phonenumberutil.PhoneNumberHelper.getGeoDescription ( mContext , info.number , countryIso ) ; } }
Source:
private static int [ ] readIntArray ( java.io.DataInputStream dis , int count ) throws java.io.IOException { int [ ] ret = new int [ count ] ; for ( int i = 0 ; i < count ; i ++ ) { ret [ i ] = dis.readInt ( ) ; } return ret ; }

Target:
public java.lang.String getDisplayName ( ) { return icuCurrency.getDisplayName ( ) ; }