auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setConfiguration ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { if ( ( mMode ) != ( com.android.ide.eclipse.adt.internal.ui.ConfigurationSelector.SelectorMode.CONFIG_ONLY ) ) { mSelectedConfiguration.set ( config , true ) ; mBaseConfiguration.substract ( mSelectedConfiguration ) ; } else { mBaseConfiguration.reset ( ) ; mBaseConfiguration.set ( config , true ) ; } mSelectionTableViewer.refresh ( ) ; mFullTableViewer.refresh ( ) ; }

Target:
public void setConfiguration ( com.android.ide.common.resources.configuration.FolderConfiguration config ) { if ( ( mMode ) != ( com.android.ide.eclipse.adt.internal.ui.ConfigurationSelector.SelectorMode.CONFIG_ONLY ) ) { mSelectedConfiguration.set ( config , true ) ; mBaseConfiguration.substract ( mSelectedConfiguration ) ; } else { mBaseConfiguration.reset ( ) ; mBaseConfiguration.set ( config , true ) ; } mSelectionTableViewer.refresh ( ) ; mFullTableViewer.refresh ( ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > anything ( ) { return org.hamcrest.core.IsAnything.anything ( ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > allOf ( org.hamcrest.org.hamcrest.Matcher < ? extends T > first , org.hamcrest.org.hamcrest.Matcher < ? extends T > second , org.hamcrest.org.hamcrest.Matcher < ? extends T > third , org.hamcrest.org.hamcrest.Matcher < ? extends T > fourth , org.hamcrest.org.hamcrest.Matcher < ? extends T > fifth ) { return org.hamcrest.core.AllOf.< org.hamcrest.T > allOf ( first , second , third , fourth , fifth ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; SameThread.doTest ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadWait ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadBusyLoop ( ) ; java.lang.System.out.println ( ) ; AllTraces.doTest ( ) ; java.lang.System.out.println ( ) ; ThreadListTraces.doTest ( ) ; java.lang.System.out.println ( ) ; Frames.doTest ( ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.bindTest911Classes ( ) ; SameThread.doTest ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadWait ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadBusyLoop ( ) ; java.lang.System.out.println ( ) ; AllTraces.doTest ( ) ; java.lang.System.out.println ( ) ; ThreadListTraces.doTest ( ) ; java.lang.System.out.println ( ) ; Frames.doTest ( ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
public void testPublishServiceNameTooLong ( ) { byte [ ] byteArray = new byte [ ( com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ) + 1 ] ; for ( int i = 0 ; i < ( ( com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ) + 1 ) ; ++ i ) { byteArray [ i ] = 'a' ; } doBadPublishConfiguration ( new java.lang.String ( byteArray ) , null , null ) ; }

Target:
public void testPublishServiceNameTooLong ( ) { byte [ ] byteArray = new byte [ ( com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ) + 1 ] ; for ( int i = 0 ; i < ( ( com.android.server.wifi.aware.WifiAwareServiceImplTest.MAX_LENGTH ) + 1 ) ; ++ i ) { byteArray [ i ] = 'a' ; } doBadPublishConfiguration ( new java.lang.String ( byteArray ) , null , null ) ; }
Source:
public com.android.jack.dx.rop.annotation.Annotations createAnnotations ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > literals ) { com.android.jack.dx.rop.annotation.Annotations ropAnnotations = new com.android.jack.dx.rop.annotation.Annotations ( ) ; for ( com.android.jack.ir.ast.JAnnotationLiteral jAnnotation : literals ) { com.android.jack.dx.rop.annotation.Annotation annotation ; try { annotation = createAnnotation ( jAnnotation ) ; } catch ( com.android.jack.backend.dex.AnnotationBuilder.SourceAnnotationException e ) { continue ; } ropAnnotations.add ( annotation ) ; } ropAnnotations.setImmutable ( ) ; return ropAnnotations ; }

Target:
public com.android.jack.dx.rop.annotation.Annotations createAnnotations ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > annotations ) { com.android.jack.dx.rop.annotation.Annotations ropAnnotations = new com.android.jack.dx.rop.annotation.Annotations ( ) ; for ( com.android.jack.ir.ast.JAnnotation annotation : annotations ) { com.android.jack.dx.rop.annotation.Annotation ropAnnotation ; try { ropAnnotation = createAnnotation ( annotation ) ; } catch ( com.android.jack.backend.dex.AnnotationBuilder.SourceAnnotationException e ) { continue ; } ropAnnotations.add ( ropAnnotation ) ; } ropAnnotations.setImmutable ( ) ; return ropAnnotations ; }
Source:
void expectAvailableAndSuspendedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , true , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }

Target:
void expectAvailableCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectSuspended , boolean expectValidated , int timeoutMs ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , timeoutMs ) ; if ( expectSuspended ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.SUSPENDED , agent , timeoutMs ) ; } if ( expectValidated ) { expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; } else { expectCapabilitiesWithout ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; } expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , timeoutMs ) ; }
Source:
public void testGet1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.get ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAddAll1_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.addAll ( ( - 1 ) , new java.util.LinkedList ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actionsMap.get ( action.getId ( ) ) ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { mRulesEngine.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , key , ( ! isChecked ) ) ; } } }

Target:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actionsMap.get ( action.getId ( ) ) ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { groovy.lang.Closure c = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) ; if ( c != null ) { mRulesEngine.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , null , ( ! isChecked ) ) ; } } } }
Source:
public void testPublishTerminatedDone ( ) throws org.json.JSONException { final int publishId = 167 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "publish_id" , publishId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; com.android.server.wifi.aware.WifiAwareHalMock.callPublishTerminated ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onSessionTerminatedNotification ( publishId , WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE , true ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testPublishTerminatedDone ( ) throws org.json.JSONException { final int publishId = 167 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "publish_id" , publishId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; com.android.server.wifi.aware.WifiAwareHalMock.callPublishTerminated ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onSessionTerminatedNotification ( publishId , DiscoverySessionCallback.TERMINATE_REASON_DONE , true ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public android.net.NetworkStatsHistory getHistoryForUid ( android.net.NetworkTemplate template , int uid , int set , int tag , int fields ) { if ( tag == ( android.net.NetworkStats.TAG_NONE ) ) { return getUidComplete ( ) . getHistory ( template , uid , set , tag , fields ) ; } else { return getUidTagComplete ( ) . getHistory ( template , uid , set , tag , fields ) ; } }

Target:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.server.net.NetworkStatsService.MSG_PERFORM_POLL : { final int flags = msg.arg1 ; performPoll ( flags ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_UPDATE_IFACES : { updateIfaces ( ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_REGISTER_GLOBAL_ALERT : { registerGlobalAlert ( ) ; return true ; } default : { return false ; } } }
Source:
public static void twoPath ( java.lang.Object obj1 , java.lang.Object obj2 , int x ) { java.lang.Object localObj ; synchronized ( obj1 ) { synchronized ( obj2 ) { if ( x == 0 ) { localObj = obj2 ; } else { localObj = obj1 ; } } } TwoPath.doNothing ( localObj ) ; }

Target:
public static void twoPath ( java.lang.Object obj1 , java.lang.Object obj2 , int x ) { Main.assertIsManaged ( ) ; java.lang.Object localObj ; synchronized ( obj1 ) { synchronized ( obj2 ) { if ( x == 0 ) { localObj = obj2 ; } else { localObj = obj1 ; } } } TwoPath.doNothing ( localObj ) ; }
Source:
void stopProfileServices ( ) { java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( mRunningProfiles.size ( ) ) == 0 ) { debugLog ( "stopProfileServices() - No profiles services to stop or already stopped." ) ; return ; } setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_OFF ) ; }

Target:
void stopProfileServices ( ) { mAdapterProperties.onBluetoothDisable ( ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( ( mRunningProfiles.size ( ) ) < 1 ) || ( ( ( mRunningProfiles.size ( ) ) == 1 ) && ( com.android.bluetooth.gatt.GattService.class . getSimpleName ( ) . equals ( mRunningProfiles.get ( 0 ) . getName ( ) ) ) ) ) { debugLog ( "stopProfileServices() - No profiles services to stop or already stopped." ) ; mAdapterStateMachine.sendMessage ( AdapterState.BREDR_STOPPED ) ; } setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_OFF ) ; }
Source:
private boolean canReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , message ) ; return true ; } catch ( java.lang.SecurityException e ) { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , message ) ; } if ( ( mAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , android.os.Binder.getCallingUid ( ) , callingPackage ) ) != ( android.app.AppOpsManager.MODE_ALLOWED ) ) { return false ; } return true ; }

Target:
public java.lang.String getLine1AlphaTagForDisplay ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getLine1AlphaTagForDisplay" ) ) ) { return null ; } java.lang.String iccId = getIccId ( subId ) ; if ( iccId != null ) { java.lang.String alphaTagPrefKey = ( com.android.phone.PhoneInterfaceManager.PREF_CARRIERS_ALPHATAG_PREFIX ) + iccId ; return mTelephonySharedPreferences.getString ( alphaTagPrefKey , null ) ; } return null ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mProjectChooserHelper = new com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper ( parent.getShell ( ) , null ) ; org.eclipse.swt.widgets.Composite comp = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; setControl ( comp ) ; org.eclipse.swt.layout.GridLayout topLayout = new org.eclipse.swt.layout.GridLayout ( ) ; topLayout.numColumns = 3 ; comp.setLayout ( topLayout ) ; createSingleTestSection ( comp ) ; createTestContainerSelectionGroup ( comp ) ; createSpacer ( comp ) ; createInstrumentationGroup ( comp ) ; createSpacer ( comp ) ; org.eclipse.jface.dialogs.Dialog.applyDialogFont ( comp ) ; validatePage ( ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mProjectChooserHelper = new com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper ( parent.getShell ( ) , null ) ; org.eclipse.swt.widgets.Composite comp = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; setControl ( comp ) ; org.eclipse.swt.layout.GridLayout topLayout = new org.eclipse.swt.layout.GridLayout ( ) ; topLayout.numColumns = 3 ; comp.setLayout ( topLayout ) ; createSingleTestSection ( comp ) ; createTestContainerSelectionGroup ( comp ) ; createSpacer ( comp ) ; createInstrumentationGroup ( comp ) ; createSizeSelector ( comp ) ; org.eclipse.jface.dialogs.Dialog.applyDialogFont ( comp ) ; validatePage ( ) ; }
Source:
private void checkModifiers ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { if ( ! ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.PUBLIC ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should be public." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.STATIC ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should not be static." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.FINAL ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should not be final." ) ; } }

Target:
private void checkModifiers ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessorException { if ( ! ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.PUBLIC ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessorException ( optionField , "@Option annotated fields should be public." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.STATIC ) ) { throw new com.google.devtools.common.options.processor.OptionProcessorException ( optionField , "@Option annotated fields should not be static." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.FINAL ) ) { throw new com.google.devtools.common.options.processor.OptionProcessorException ( optionField , "@Option annotated fields should not be final." ) ; } }
Source:
boolean connectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getConnectionState ( mStateMachine.getCurrentDevice ( ) ) ) != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "connectAudio: profile not connected" ) ; return false ; } if ( ( mStateMachine.getAudioState ( ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "connectAudio: audio is not idle, current state " + ( mStateMachine.getAudioState ( ) ) ) ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.CONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }

Target:
boolean connectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getConnectionState ( mStateMachine.getCurrentDevice ( ) ) ) != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "connectAudio: profile not connected" ) ; return false ; } if ( isAudioOn ( ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "connectAudio: audio is not idle, current state " + ( mStateMachine.getAudioState ( ) ) ) ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.CONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }
Source:
public void testAesCbcHmacSha256Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public void testLintWarningOnGetSignaturesFlagInBitwiseXorExpression ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/GetSignaturesBitwiseXorTest.java:8: Information: Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details. [PackageManagerGetSignatures]\n" + ( ( " getPackageManager().getPackageInfo(\"some.pkg\", PackageManager.GET_SIGNATURES ^ 0x0);\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( ( "src/test/pkg/GetSignaturesBitwiseXorTest.java.txt" + "=>src/test/pkg/GetSignaturesBitwiseXorTest.java" ) ) ) ; }

Target:
public void testLintWarningOnGetSignaturesFlagInBitwiseXorExpression ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/GetSignaturesBitwiseXorTest.java:8: Information: Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details. [PackageManagerGetSignatures]\n" + ( ( " getPackageManager().getPackageInfo(\"some.pkg\", PackageManager.GET_SIGNATURES ^ 0x0);\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( java ( "src/test/pkg/GetSignaturesBitwiseXorTest.java" , ( "" + ( ( ( ( ( ( ( ( ( "package test.pkg;\n" + "\n" ) + "import android.app.Activity;\n" ) + "import android.content.pm.PackageManager;\n" ) + "\n" ) + "public class GetSignaturesBitwiseXorTest extends Activity {\n" ) + " public void failLintCheck() throws Exception {\n" ) + " getPackageManager().getPackageInfo(\"some.pkg\", PackageManager.GET_SIGNATURES ^ 0x0);\n" ) + " }\n" ) + "}" ) ) ) ) ) ; }
Source:
public static void compileSourceToJack ( com.android.jack.Options options , java.io.File sourceFolderOrSourceList , java.lang.String classpath , java.io.File out , boolean zip , boolean withDebugInfos ) throws java.lang.Exception { options.classpath = classpath ; if ( zip ) { options.jayceOutZip = out ; } else { options.jayceOutDir = out ; } options.ecjArguments = com.android.jack.TestTools.buildEcjArgs ( ) ; com.android.jack.TestTools.addFile ( sourceFolderOrSourceList , options.ecjArguments ) ; options.emitLocalDebugInfo = withDebugInfos ; com.android.jack.Jack.run ( options ) ; }

Target:
public static void compileSourceToJack ( com.android.jack.Options options , java.io.File sourceFolderOrSourceList , java.lang.String classpath , java.io.File out , boolean zip , boolean withDebugInfos ) throws java.lang.Exception { options.classpath = classpath ; if ( zip ) { options.libraryOutZip = out ; } else { options.libraryOutDir = out ; } options.ecjArguments = com.android.jack.TestTools.buildEcjArgs ( ) ; com.android.jack.TestTools.addFile ( sourceFolderOrSourceList , options.ecjArguments ) ; options.emitLocalDebugInfo = withDebugInfos ; com.android.jack.Jack.run ( options ) ; }
Source:
public boolean retainAll ( final java.util.Collection < ? > c ) { com.google.common.base.Predicate < java.util.Map.Entry < K , java.util.Collection < V > > > removalPredicate = new com.google.common.base.Predicate < java.util.Map.Entry < K , java.util.Collection < V > > > ( ) { @ java.lang.Override public boolean apply ( java.util.Map.Entry < K , java.util.Collection < V > > entry ) { return ! ( c.contains ( entry ) ) ; } } ; return removeEntriesIf ( removalPredicate ) ; }

Target:
private static < K , V > com.google.common.collect.SetMultimap < K , V > filterFiltered ( com.google.common.collect.FilteredSetMultimap < K , V > multimap , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( multimap.entryPredicate ( ) , entryPredicate ) ; return new com.google.common.collect.FilteredEntrySetMultimap < K , V > ( multimap.unfiltered ( ) , predicate ) ; }
Source:
public com.android.build.gradle.internal.test.report.TestResult addTest ( java.lang.String testName , long duration , java.lang.String device , java.lang.String project , java.lang.String flavor ) { com.android.build.gradle.internal.test.report.TestResult test = new com.android.build.gradle.internal.test.report.TestResult ( testName , duration , device , project , flavor , this ) ; results.add ( test ) ; return addTest ( test ) ; }

Target:
public com.android.build.gradle.internal.test.report.TestResult addTest ( java.lang.String testName , long duration , java.lang.String device , java.lang.String project , java.lang.String flavor ) { com.android.build.gradle.internal.test.report.TestResult test = new com.android.build.gradle.internal.test.report.TestResult ( testName , duration , device , project , flavor , this ) ; results.add ( test ) ; addDevice ( device , test ) ; addVariant ( project , flavor , test ) ; return addTest ( test ) ; }
Source:
public void launchCloudDevice ( int selectedConfigurationId , @ org.jetbrains.annotations.NotNull java.lang.String cloudProjectId , @ org.jetbrains.annotations.NotNull org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.CloudConfigurationImpl cloudConfiguration = com.google.gct.testing.CloudTestingUtils.getConfigurationById ( selectedConfigurationId , facet ) ; if ( ( cloudConfiguration.getKind ( ) ) != ( com.android.tools.idea.run.CloudConfiguration.Kind.SINGLE_DEVICE ) ) { return ; } com.google.gct.testing.CloudConfigurationProviderImpl.lastCloudProjectId = cloudProjectId ; java.lang.String configurationInstance = cloudConfiguration.computeConfigurationInstances ( ConfigurationInstance.ENCODED_NAME_DELIMITER ) . get ( 0 ) ; launchCloudDevice ( configurationInstance ) ; }

Target:
public void launchCloudDevice ( int selectedConfigurationId , @ org.jetbrains.annotations.NotNull java.lang.String cloudProjectId , @ org.jetbrains.annotations.NotNull org.jetbrains.android.facet.AndroidFacet facet ) { com.android.tools.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( CloudTestingTracking.CLOUD_TESTING , CloudTestingTracking.LAUNCH_CLOUD_DEVICE , CloudTestingTracking.SESSION_LABEL , null ) ; com.google.gct.testing.CloudConfigurationImpl cloudConfiguration = com.google.gct.testing.CloudTestingUtils.getConfigurationById ( selectedConfigurationId , facet ) ; if ( ( cloudConfiguration.getKind ( ) ) != ( com.android.tools.idea.run.CloudConfiguration.Kind.SINGLE_DEVICE ) ) { return ; } com.google.gct.testing.CloudConfigurationProviderImpl.lastCloudProjectId = cloudProjectId ; java.lang.String configurationInstance = cloudConfiguration.computeConfigurationInstances ( ConfigurationInstance.ENCODED_NAME_DELIMITER ) . get ( 0 ) ; launchCloudDevice ( configurationInstance ) ; }
Source:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mLock.await ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }

Target:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mLock.await ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertNotNull ( mMceStateMachine.getCurrentState ( ) ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }
Source:
public void testParse0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertFalse ( t.parse ( "12345678T901234" ) ) ; assertTrue ( t.parse ( "20081013T160000Z" ) ) ; assertEquals ( 2008 , t.year ) ; assertEquals ( 9 , t.month ) ; assertEquals ( 13 , t.monthDay ) ; assertEquals ( 16 , t.hour ) ; assertEquals ( 0 , t.minute ) ; assertEquals ( 0 , t.second ) ; }

Target:
public void testFormat_badPatterns ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; android.text.format.cts.TimeTest.assertFormatEquals ( t , "%~Y" , "~Y" ) ; android.text.format.cts.TimeTest.assertFormatEquals ( t , "%" , "%" ) ; }
Source:
public static com.google.common.io.OutputSupplier < java.io.FileOutputStream > newOutputStreamSupplier ( final java.io.File file , final boolean append ) { com.google.common.base.Preconditions.checkNotNull ( file ) ; return new com.google.common.io.OutputSupplier < java.io.FileOutputStream > ( ) { @ java.lang.Override public java.io.FileOutputStream getOutput ( ) throws java.io.IOException { return new java.io.FileOutputStream ( file , append ) ; } } ; }

Target:
public java.lang.String toString ( ) { return ( "Files.asByteSource(" + ( file ) ) + ")" ; }
Source:
public int getPhonebookAccessPermission ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; } try { return android.bluetooth.BluetoothDevice.sService.getPhonebookAccessPermission ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; }

Target:
public int getPhonebookAccessPermission ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; } try { return service.getPhonebookAccessPermission ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; }
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 java.util.Collections.unmodifiableList ( devices ) ; }

Target:
private void initDevicesLists ( ) { boolean changed = initDefaultDevices ( ) ; changed |= initVendorDevices ( ) ; changed |= initUserDevices ( ) ; if ( changed ) { notifyListeners ( ) ; } }
Source:
public final void init ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( key ) . engineInit ( opmode , key , params , random ) ; mode = opmode ; }

Target:
public final void init ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkMode ( opmode ) ; try { getSpi ( new javax.crypto.Cipher.InitParams ( javax.crypto.Cipher.InitType.KEY , opmode , key , random , null , null ) ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.ProviderException ( "Invalid parameters when params == null" , e ) ; } mode = opmode ; }
Source:
public static sun.util.locale.BaseLocale.Key normalize ( sun.util.locale.BaseLocale.Key key ) { if ( key.normalized ) { return key ; } java.lang.String lang = sun.util.locale.LocaleUtils.toLowerString ( key.lang ) . intern ( ) ; java.lang.String scrt = sun.util.locale.LocaleUtils.toTitleString ( key.scrt ) . intern ( ) ; java.lang.String regn = sun.util.locale.LocaleUtils.toUpperString ( key.regn ) . intern ( ) ; java.lang.String vart = key.vart.intern ( ) ; return new sun.util.locale.BaseLocale.Key ( lang , scrt , regn , vart , true ) ; }

Target:
protected sun.util.locale.BaseLocale.Key normalizeKey ( sun.util.locale.BaseLocale.Key key ) { assert ( ( ( ( key.lang.get ( ) ) != null ) && ( ( key.scrt.get ( ) ) != null ) ) && ( ( key.regn.get ( ) ) != null ) ) && ( ( key.vart.get ( ) ) != null ) ; return sun.util.locale.BaseLocale.Key.normalize ( key ) ; }
Source:
public void testDefaultMethod018 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEFAULTMETHOD018 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void testDefaultMethod018 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEFAULTMETHOD018 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }
Source:
public com.google.i18n.phonenumbers.Phonenumber.PhoneNumber getExampleNumberForType ( java.lang.String regionCode , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type ) { if ( ! ( isValidRegionCode ( regionCode ) ) ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.WARNING , ( "Invalid or unknown region code provided: " + regionCode ) ) ; return null ; } com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc desc = getNumberDescByType ( getMetadataForRegion ( regionCode ) , type ) ; try { if ( ! ( desc.exampleNumber.equals ( "" ) ) ) { return parse ( desc.exampleNumber , regionCode ) ; } } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.SEVERE , e.toString ( ) ) ; } return null ; }

Target:
public com.google.i18n.phonenumbers.Phonenumber.PhoneNumber getExampleNumberForType ( java.lang.String regionCode , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type ) { if ( ! ( isValidRegionCode ( regionCode ) ) ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.WARNING , ( "Invalid or unknown region code provided: " + regionCode ) ) ; return null ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc desc = getNumberDescByType ( getMetadataForRegion ( regionCode ) , type ) ; try { if ( desc.hasExampleNumber ( ) ) { return parse ( desc.getExampleNumber ( ) , regionCode ) ; } } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.SEVERE , e.toString ( ) ) ; } return null ; }
Source:
public void clearLocalPkg ( int filters ) { mLegacyBuildTools = null ; int minf = java.lang.Integer.lowestOneBit ( filters ) ; for ( int filter = minf ; ( filters != 0 ) && ( filter <= ( com.android.sdklib.repository.local.LocalSdk.PKG_ALL ) ) ; filter <<= 1 ) { if ( ( filters & filter ) == 0 ) { continue ; } filters ^= filter ; mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } }

Target:
public boolean hasChanged ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { for ( com.android.sdklib.repository.local.LocalSdk.DirInfo dirInfo : mVisitedDirs.get ( filter ) ) { if ( dirInfo.hasChanged ( ) ) { return true ; } } } return false ; }
Source:
public void sendEnvelope ( java.lang.String contents , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( contents ) ; send ( rr ) ; }

Target:
public void cancelPendingUssd ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CANCEL_USSD , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public static void putPhoneIdAndSubIdExtra ( android.content.Intent intent , int phoneId , int subId ) { if ( android.telephony.SubscriptionManager.VDBG ) android.telephony.SubscriptionManager.logd ( ( ( ( "putPhoneIdAndSubIdExtra: phoneId=" + phoneId ) + " subId=" ) + subId ) ) ; intent.putExtra ( PhoneConstants.SUBSCRIPTION_KEY , subId ) ; intent.putExtra ( PhoneConstants.PHONE_KEY , phoneId ) ; intent.putExtra ( PhoneConstants.SLOT_KEY , phoneId ) ; }

Target:
public static void putPhoneIdAndSubIdExtra ( android.content.Intent intent , int phoneId , int subId ) { if ( android.telephony.SubscriptionManager.VDBG ) android.telephony.SubscriptionManager.logd ( ( ( ( "putPhoneIdAndSubIdExtra: phoneId=" + phoneId ) + " subId=" ) + subId ) ) ; intent.putExtra ( PhoneConstants.SUBSCRIPTION_KEY , subId ) ; intent.putExtra ( Intent.EXTRA_SUBSCRIPTION_INDEX , subId ) ; intent.putExtra ( PhoneConstants.PHONE_KEY , phoneId ) ; intent.putExtra ( PhoneConstants.SLOT_KEY , phoneId ) ; }
Source:
static boolean canOptimizePackage ( android.content.pm.PackageParser.Package pkg ) { if ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) == 0 ) { return false ; } if ( pkg.isPrivilegedApp ( ) ) { return android.os.SystemProperties.getBoolean ( "pm.dexopt.priv-apps" , true ) ; } return true ; }

Target:
static boolean canOptimizePackage ( android.content.pm.PackageParser.Package pkg ) { if ( ( ( pkg.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) == 0 ) { return false ; } if ( pkg.isPrivilegedApp ( ) ) { return ! ( android.os.SystemProperties.getBoolean ( "pm.dexopt.priv-apps-oob" , false ) ) ; } return true ; }
Source:
public void test_with_adjustment_Month ( ) { java.time.OffsetDateTime test = TEST_2008_6_30_11_30_59_000000500.with ( java.time.Month.DECEMBER ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2008 , 12 , 30 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }

Target:
public void test_with_adjustment_Month ( ) { java.time.OffsetDateTime test = tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.with ( java.time.Month.DECEMBER ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2008 , 12 , 30 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }
Source:
private static com.android.sdklib.AndroidVersion getApiVersion ( org.w3c.dom.Element usesSdk , java.lang.String attribute , com.android.sdklib.AndroidVersion defaultApiLevel ) { java.lang.String valueString = null ; if ( usesSdk.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , attribute ) ) { valueString = usesSdk.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , attribute ) ; } if ( valueString != null ) { com.android.sdklib.AndroidVersion version = com.android.ide.common.sdk.SdkVersionInfo.getVersion ( valueString , null ) ; if ( version != null ) { return version ; } } return defaultApiLevel ; }

Target:
private static com.android.sdklib.AndroidVersion getApiVersion ( org.w3c.dom.Element usesSdk , java.lang.String attribute , com.android.sdklib.AndroidVersion defaultApiLevel ) { java.lang.String valueString = null ; if ( usesSdk.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , attribute ) ) { valueString = usesSdk.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , attribute ) ; } if ( valueString != null ) { com.android.sdklib.AndroidVersion version = com.android.sdklib.SdkVersionInfo.getVersion ( valueString , null ) ; if ( version != null ) { return version ; } } return defaultApiLevel ; }
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 ) ) { buildBrowsablePlayersList ( ) ; } } }

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 ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { buildBrowsablePlayersList ( ) ; buildMediaPlayersList ( ) ; } } }
Source:
public java.lang.String describeFirstNonRequestableCapability ( ) { if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED ) ) return "NET_CAPABILITY_VALIDATED" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL ) ) return "NET_CAPABILITY_CAPTIVE_PORTAL" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND ) ) return "NET_CAPABILITY_FOREGROUND" ; if ( ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) != 0 ) { return "unknown non-requestable capabilities " + ( java.lang.Long.toHexString ( mNetworkCapabilities ) ) ; } if ( ( ( mLinkUpBandwidthKbps ) != 0 ) || ( ( mLinkDownBandwidthKbps ) != 0 ) ) return "link bandwidth" ; if ( hasSignalStrength ( ) ) return "signalStrength" ; return null ; }

Target:
public boolean appliesToUidRange ( android.net.UidRange requiredRange ) { if ( null == ( mUids ) ) return true ; for ( android.net.UidRange uidRange : mUids ) { if ( uidRange.containsRange ( requiredRange ) ) { return true ; } } return false ; }
Source:
synchronized void recordNodeAction ( com.android.manifmerger.XmlElement mergedElement , com.android.manifmerger.Actions.NodeRecord nodeRecord ) { com.android.manifmerger.XmlNode.NodeKey storageKey = mergedElement.getId ( ) ; com.android.manifmerger.Actions.DecisionTreeRecord nodeDecisionTree = mRecords.get ( storageKey ) ; if ( nodeDecisionTree == null ) { nodeDecisionTree = new com.android.manifmerger.Actions.DecisionTreeRecord ( ) ; mRecords.put ( storageKey , nodeDecisionTree ) ; } nodeDecisionTree.addNodeRecord ( nodeRecord ) ; }

Target:
synchronized void recordNodeAction ( com.android.manifmerger.XmlElement mergedElement , com.android.manifmerger.Actions.NodeRecord nodeRecord ) { com.android.manifmerger.XmlNode.NodeKey storageKey = mergedElement.getOriginalId ( ) ; com.android.manifmerger.Actions.DecisionTreeRecord nodeDecisionTree = mRecords.get ( storageKey ) ; if ( nodeDecisionTree == null ) { nodeDecisionTree = new com.android.manifmerger.Actions.DecisionTreeRecord ( ) ; mRecords.put ( storageKey , nodeDecisionTree ) ; } nodeDecisionTree.addNodeRecord ( nodeRecord ) ; }
Source:
public void destroyAppData ( java.lang.String uuid , java.lang.String pkgname , int userid , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "destroy_app_data" , uuid , pkgname , userid , flags , ceDataInode ) ; }

Target:
public void clearAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.clearAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public boolean print ( @ javax.annotation.Nonnull java.io.PrintStream printer , @ javax.annotation.Nonnull com.android.sched.util.print.DataModel model ) { com.android.sched.util.print.TypePrinter < java.lang.Object > formatter = this . < java.lang.Object > getFormatter ( model.getDataView ( ) . getDataTypes ( ) [ 0 ] ) ; boolean notEmpty = false ; f.println ( printer ) ; for ( java.lang.Object object : model ) { f.bullet ( ) ; notEmpty |= formatter.print ( printer , object ) ; } return notEmpty ; }

Target:
public boolean print ( @ javax.annotation.Nonnull java.io.PrintWriter printer , @ javax.annotation.Nonnull com.android.sched.util.print.DataModel model ) { com.android.sched.util.print.TypePrinter < java.lang.Object > formatter = this . < java.lang.Object > getFormatter ( model.getDataView ( ) . getDataTypes ( ) [ 0 ] ) ; boolean notEmpty = false ; f.println ( printer ) ; for ( java.lang.Object object : model ) { f.bullet ( ) ; notEmpty |= formatter.print ( printer , object ) ; } return notEmpty ; }
Source:
static java.lang.String normalize ( java.lang.String number ) { java.util.regex.Matcher m = com.google.i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN.matcher ( number ) ; if ( m.matches ( ) ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeHelper ( number , com.google.i18n.phonenumbers.PhoneNumberUtil.ALPHA_PHONE_MAPPINGS , true ) ; } else { return com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly ( number ) ; } }

Target:
static java.lang.StringBuilder normalize ( java.lang.StringBuilder number ) { java.util.regex.Matcher m = com.google.i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN.matcher ( number ) ; if ( m.matches ( ) ) { number.replace ( 0 , number.length ( ) , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeHelper ( number , com.google.i18n.phonenumbers.PhoneNumberUtil.ALPHA_PHONE_MAPPINGS , true ) ) ; } else { number.replace ( 0 , number.length ( ) , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly ( number ) ) ; } return number ; }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { android.support.test.uiautomator.UiSelector payButton = ( ( testFramework.getApi ( ) ) >= 27 ) ? new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.Button" ) . packageName ( "com.android.vending" ) : new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.GOOGLE_PLAY_BUY_BUTTON_RES ) ; return device.findObject ( payButton.textContains ( "$" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) { android.support.test.uiautomator.UiSelector payButton = new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.Button" ) . packageName ( Res.GOOGLE_PLAY_VENDING_RES ) ; return device.findObject ( payButton.textContains ( "$" ) ) . exists ( ) ; }
Source:
void onCreate ( android.content.Intent intent , @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { com.android.dialer.common.LogUtil.enterBlock ( "PreCallCoordinatorImpl.onCreate" ) ; if ( savedInstanceState != null ) { currentActionIndex = savedInstanceState.getInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION ) ; builder = com.android.dialer.common.Assert.isNotNull ( savedInstanceState.getParcelable ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER ) ) ; } else { builder = com.android.dialer.common.Assert.isNotNull ( intent.getParcelableExtra ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER ) ) ; } actions = com.android.dialer.precall.PreCallComponent.get ( activity ) . getPreCall ( ) . getActions ( ) ; }

Target:
void onResume ( ) { actions = com.android.dialer.precall.PreCallComponent.get ( activity ) . getPreCall ( ) . getActions ( ) ; runNextAction ( ) ; }
Source:
public void addRegistrationCallback ( android.telephony.ims.stub.ImsRegistrationImplBase.Callback callback ) throws com.android.ims.ImsException { if ( callback == null ) { throw new java.lang.NullPointerException ( "registration callback can't be null" ) ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mMmTelFeatureConnection.addRegistrationCallback ( callback ) ; com.android.ims.ImsManager.log ( "Registration Callback registered." ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationCallback(IRIB)" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void removeRegistrationListener ( android.telephony.ims.stub.ImsRegistrationImplBase.Callback callback ) throws com.android.ims.ImsException { if ( callback == null ) { throw new java.lang.NullPointerException ( "registration callback can't be null" ) ; } try { mMmTelFeatureConnection.removeRegistrationCallback ( callback ) ; com.android.ims.ImsManager.log ( "Registration callback removed." ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "removeRegistrationCallback(IRIB)" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.c" ) ; }

Target:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.c" ) ; source.getSource ( ) . exclude ( jni.getSource ( ) . getExcludes ( ) ) ; }