auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.jetbrains.plugins.gradle.service.project.BuildLauncher getBuildLauncher ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener ) { org.jetbrains.plugins.gradle.service.project.BuildLauncher result = connection.newBuild ( ) ; org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.prepare ( result , id , settings , listener ) ; return result ; }

Target:
public org.jetbrains.plugins.gradle.service.project.BuildLauncher getBuildLauncher ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener ) { org.jetbrains.plugins.gradle.service.project.BuildLauncher result = connection.newBuild ( ) ; org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.prepare ( result , id , settings , listener , java.util.Collections.< java.lang.String > emptyList ( ) ) ; return result ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveJavaTimeFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }

Target:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { if ( value < 0 ) { return null ; } java.lang.String [ ] names = sun.util.locale.provider.CalendarDataUtility.getNames ( id , field , style , locale ) ; if ( value >= ( names.length ) ) { return null ; } return names [ value ] ; }
Source:
private void notifyAudioTrackWriteError ( final com.google.android.exoplayer.audio.AudioTrack.WriteException e ) { if ( ( ( mEventHandler ) == null ) || ( ( mEventListener ) == null ) ) { return ; } mEventHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mEventListener.onAudioTrackWriteError ( e ) ; } } ) ; }

Target:
private void notifyAudioTrackInitializationError ( final com.google.android.exoplayer.audio.AudioTrack.InitializationException e ) { if ( ( ( mEventHandler ) == null ) || ( ( mEventListener ) == null ) ) { return ; } mEventHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mEventListener.onAudioTrackInitializationError ( e ) ; } } ) ; }
Source:
public int getSerializedSize ( ) { int size = 0 ; int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; size += com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( unknownField.tag ) ; size += unknownField.bytes.length ; } cachedSize = size ; return size ; }

Target:
protected int computeSerializedSize ( ) { int size = 0 ; int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; size += com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( unknownField.tag ) ; size += unknownField.bytes.length ; } return size ; }
Source:
public void test_get_TemporalField ( ) { org.testng.Assert.assertEquals ( TEST_2008_06.get ( java.time.temporal.ChronoField.YEAR ) , 2008 ) ; org.testng.Assert.assertEquals ( TEST_2008_06.get ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 6 ) ; org.testng.Assert.assertEquals ( TEST_2008_06.get ( java.time.temporal.ChronoField.YEAR_OF_ERA ) , 2008 ) ; org.testng.Assert.assertEquals ( TEST_2008_06.get ( java.time.temporal.ChronoField.ERA ) , 1 ) ; }

Target:
public void test_get_TemporalField ( ) { org.testng.Assert.assertEquals ( tck.java.time.TCKYearMonth.TEST_2008_06.get ( java.time.temporal.ChronoField.YEAR ) , 2008 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKYearMonth.TEST_2008_06.get ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 6 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKYearMonth.TEST_2008_06.get ( java.time.temporal.ChronoField.YEAR_OF_ERA ) , 2008 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKYearMonth.TEST_2008_06.get ( java.time.temporal.ChronoField.ERA ) , 1 ) ; }
Source:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the server" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the client" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , runtimeFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true , runtimeFlags ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }

Target:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { android.os.Seccomp.setSystemServerPolicy ( ) ; com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , runtimeFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true , runtimeFlags ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }
Source:
public java.lang.String getPhotoUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getPhotoUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : return phoneLookupInfo.getCequintInfo ( ) . getPhotoUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void timeSort_arrayList ( int nreps ) { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , true ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input ) ; } }

Target:
public void timeSortWithComparator_arrayList ( int nreps ) throws java.lang.Exception { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , java.util.ArrayList.class ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input , benchmarks.regression.CollectionsBenchmark.REVERSE ) ; } }
Source:
private org.eclipse.swt.graphics.Image getImage ( java.lang.String filename ) { com.android.sdkuilib.internal.repository.UpdaterData updaterData = getUpdaterData ( ) ; if ( updaterData != null ) { com.android.sdkuilib.internal.repository.icons.ImageFactory imgFactory = updaterData.getImageFactory ( ) ; if ( imgFactory != null ) { return imgFactory.getImageByName ( filename ) ; } } return null ; }

Target:
private org.eclipse.swt.graphics.Image getImage ( java.lang.String filename ) { if ( ( mUpdaterData ) != null ) { com.android.sdkuilib.internal.repository.icons.ImageFactory imgFactory = mUpdaterData.getImageFactory ( ) ; if ( imgFactory != null ) { return imgFactory.getImageByName ( filename ) ; } } return null ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( EmbmsTestDownloadApp.DOWNLOAD_DONE_ACTION.equals ( intent.getAction ( ) ) ) { int result = intent.getIntExtra ( MbmsDownloadManager.EXTRA_RESULT , MbmsDownloadManager.RESULT_CANCELLED ) ; if ( result != ( android.telephony.MbmsDownloadManager.RESULT_SUCCESSFUL ) ) { com.android.phone.testapps.embmsdownload.EmbmsTestDownloadApp.getInstance ( ) . onDownloadFailed ( result ) ; } android.net.Uri completedFile = intent.getParcelableExtra ( MbmsDownloadManager.EXTRA_COMPLETED_FILE_URI ) ; com.android.phone.testapps.embmsdownload.EmbmsTestDownloadApp.getInstance ( ) . onDownloadDone ( completedFile ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( EmbmsTestDownloadApp.DOWNLOAD_DONE_ACTION.equals ( intent.getAction ( ) ) ) { int result = intent.getIntExtra ( MbmsDownloadManager.EXTRA_MBMS_DOWNLOAD_RESULT , MbmsDownloadManager.RESULT_CANCELLED ) ; if ( result != ( android.telephony.MbmsDownloadManager.RESULT_SUCCESSFUL ) ) { com.android.phone.testapps.embmsdownload.EmbmsTestDownloadApp.getInstance ( ) . onDownloadFailed ( result ) ; } android.net.Uri completedFile = intent.getParcelableExtra ( MbmsDownloadManager.EXTRA_MBMS_COMPLETED_FILE_URI ) ; com.android.phone.testapps.embmsdownload.EmbmsTestDownloadApp.getInstance ( ) . onDownloadDone ( completedFile ) ; } }
Source:
public com.google.common.collect.ImmutableList < java.io.File > getTestedApks ( @ com.android.annotations.NonNull com.android.ide.common.process.ProcessExecutor processExecutor , @ com.android.annotations.Nullable java.io.File splitSelectExe , @ com.android.annotations.NonNull com.android.builder.testing.api.DeviceConfigProvider deviceConfigProvider ) throws com.android.ide.common.process.ProcessException { com.android.build.gradle.internal.variant.BaseVariantData < ? > testedVariantData = ( ( com.android.build.gradle.internal.variant.BaseVariantData ) ( testVariantData.getTestedVariantData ( ) ) ) ; com.google.common.collect.ImmutableList.Builder < java.io.File > apks = com.google.common.collect.ImmutableList.builder ( ) ; apks.addAll ( com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( processExecutor , splitSelectExe , deviceConfigProvider , testedVariantData.getOutputs ( ) , testedVariantData.getVariantConfiguration ( ) . getSupportedAbis ( ) ) ) ; return apks.build ( ) ; }

Target:
public com.google.common.collect.ImmutableList < java.io.File > getTestedApks ( @ com.android.annotations.NonNull com.android.ide.common.process.ProcessExecutor processExecutor , @ com.android.annotations.Nullable java.io.File splitSelectExe , @ com.android.annotations.NonNull com.android.builder.testing.api.DeviceConfigProvider deviceConfigProvider , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.ide.common.process.ProcessException { com.android.build.gradle.internal.variant.BaseVariantData < ? > testedVariantData = ( ( com.android.build.gradle.internal.variant.BaseVariantData ) ( testVariantData.getTestedVariantData ( ) ) ) ; com.google.common.collect.ImmutableList.Builder < java.io.File > apks = com.google.common.collect.ImmutableList.builder ( ) ; apks.addAll ( com.android.ide.common.build.SplitOutputMatcher.computeBestOutput ( processExecutor , splitSelectExe , deviceConfigProvider , testedVariantData.getOutputs ( ) , testedVariantData.getVariantConfiguration ( ) . getSupportedAbis ( ) ) ) ; return apks.build ( ) ; }
Source:
public boolean isCallerApplicationRestrictionsManagingPackage ( ) { throwIfParentInstance ( "isCallerApplicationRestrictionsManagingPackage" ) ; if ( ( mService ) != null ) { try { return mService.isCallerApplicationRestrictionsManagingPackage ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }

Target:
public boolean isCallerApplicationRestrictionsManagingPackage ( ) { throwIfParentInstance ( "isCallerApplicationRestrictionsManagingPackage" ) ; if ( ( mService ) != null ) { try { return mService.isCallerApplicationRestrictionsManagingPackage ( mContext.getPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public static int IntNonmatCond_IntVarVar ( int a , int b , int x , int y ) { return a > b ? x : y ; }

Target:
public static long IntMatCond_LongVarVar ( int a , int b , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }
Source:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro installedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistro ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistro ) ; }

Target:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro installedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistro ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistro ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int a = in.read ( ) ; int b = in.read ( ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int target = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( this , opcode , 0 , null , ( baseAddress + target ) , literal ) ; }
Source:
public boolean performGlobalAction ( int action ) { switch ( action ) { case android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_BACK : { sendDownAndUpKeyEvents ( KeyEvent.KEYCODE_BACK ) ; } return true ; case android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_HOME : { sendDownAndUpKeyEvents ( KeyEvent.KEYCODE_HOME ) ; } return true ; case android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_RECENTS : { openRecents ( ) ; } return true ; case android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_NOTIFICATIONS : { expandStatusBar ( ) ; } return true ; } return false ; }

Target:
public boolean bind ( ) { if ( ( ! ( mIsAutomation ) ) && ( ( mService ) == null ) ) { return mContext.bindService ( mIntent , this , Context.BIND_AUTO_CREATE , mUserId ) ; } return false ; }
Source:
public void setUp ( ) { TEST_2007_07_15 = java.time.LocalDate.of ( 2007 , 7 , 15 ) ; java.time.LocalDate max = java.time.LocalDate.MAX ; java.time.LocalDate min = java.time.LocalDate.MIN ; MAX_VALID_EPOCHDAYS = max.toEpochDay ( ) ; MIN_VALID_EPOCHDAYS = min.toEpochDay ( ) ; MAX_DATE = max ; MIN_DATE = min ; MAX_INSTANT = max.atStartOfDay ( java.time.ZoneOffset.UTC ) . toInstant ( ) ; MIN_INSTANT = min.atStartOfDay ( java.time.ZoneOffset.UTC ) . toInstant ( ) ; }

Target:
public static void setUp ( ) { tck.java.time.TCKLocalDate.TEST_2007_07_15 = java.time.LocalDate.of ( 2007 , 7 , 15 ) ; java.time.LocalDate max = java.time.LocalDate.MAX ; java.time.LocalDate min = java.time.LocalDate.MIN ; tck.java.time.TCKLocalDate.MAX_VALID_EPOCHDAYS = max.toEpochDay ( ) ; tck.java.time.TCKLocalDate.MIN_VALID_EPOCHDAYS = min.toEpochDay ( ) ; tck.java.time.TCKLocalDate.MAX_DATE = max ; tck.java.time.TCKLocalDate.MIN_DATE = min ; tck.java.time.TCKLocalDate.MAX_INSTANT = max.atStartOfDay ( java.time.ZoneOffset.UTC ) . toInstant ( ) ; tck.java.time.TCKLocalDate.MIN_INSTANT = min.atStartOfDay ( java.time.ZoneOffset.UTC ) . toInstant ( ) ; }
Source:
protected void onResume ( ) { if ( android.util.Config.LOGD ) android.util.Log.d ( com.example.android.apis.graphics.Compass.TAG , "onResume" ) ; super . onResume ( ) ; mSensorManager.registerListener ( mListener , SensorManager.SENSOR_ORIENTATION , SensorManager.SENSOR_DELAY_GAME ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getSystemService ( Context.SENSOR_SERVICE ) ) ) ; mSensor = mSensorManager.getDefaultSensor ( Sensor.TYPE_ORIENTATION ) ; mView = new com.example.android.apis.graphics.Compass.SampleView ( this ) ; setContentView ( mView ) ; }
Source:
public static org.jetbrains.plugins.gradle.model.data.WarDirectory fromPath ( @ org.jetbrains.annotations.NotNull final java.lang.String path ) { if ( com.intellij.openapi.util.text.StringUtil.isEmpty ( path ) ) return org.jetbrains.plugins.gradle.model.data.WarDirectory.WAR_ROOT ; final java.lang.String adjustedPath = ( ( path.charAt ( 0 ) ) != '/' ) ? '/' + path : path ; for ( org.jetbrains.plugins.gradle.model.data.WarDirectory warDirectory : org.jetbrains.plugins.gradle.model.data.WarDirectory.values ( ) ) { if ( warDirectory.myRelativePath.equals ( adjustedPath ) ) return warDirectory ; } return null ; }

Target:
public static org.jetbrains.plugins.gradle.model.data.WarDirectory fromPath ( @ org.jetbrains.annotations.NotNull final java.lang.String path ) { if ( com.intellij.openapi.util.text.StringUtil.isEmpty ( path ) ) return org.jetbrains.plugins.gradle.model.data.WarDirectory.WAR_ROOT ; final java.lang.String adjustedPath = org.jetbrains.plugins.gradle.model.data.WarDirectory.getAdjustedPath ( path ) ; for ( org.jetbrains.plugins.gradle.model.data.WarDirectory warDirectory : org.jetbrains.plugins.gradle.model.data.WarDirectory.WAR_DIRECTORIES ) { if ( warDirectory.myRelativePath.equals ( adjustedPath ) ) return warDirectory ; } return new org.jetbrains.plugins.gradle.model.data.WarDirectory ( adjustedPath ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { validateIsInt16 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
private void copyTo ( java.lang.Object array , android.renderscript.Element.DataType dt , int arrayLen ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , array , dt ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
private static void sendMulticastMessage ( java.net.InetAddress group , int port , java.lang.String msg ) throws java.io.IOException { libcore.java.nio.channels.DatagramChannelMulticastTest.sendMulticastMessage ( group , port , msg , null ) ; }

Target:
private void test_joinAnySource_illegalArgumentExpected ( java.net.NetworkInterface networkInterface , java.net.InetAddress group ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = libcore.java.nio.channels.DatagramChannelMulticastTest.createReceiverChannel ( ) ; try { dc.join ( group , networkInterface ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } dc.close ( ) ; }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass ) != null ) && ( ( resetClass ) != null ) ) && ( ( resetMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass , resetMethodId , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( int lockIndex , com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass [ lockIndex ] ) != null ) && ( ( requestClass [ lockIndex ] ) != null ) ) && ( ( requestMethodId [ lockIndex ] ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass [ lockIndex ] , resetMethodId [ lockIndex ] , false ) ) ; }
Source:
public void testDhcpClientEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.DhcpClientEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.aString ( "SomeState" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 192 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " dhcp_event <" , " duration_ms: 192" , " error_code: 0" , " if_name: \"wlan0\"" , " state_transition: \"SomeState\"" , " >" , " time_ms: 1" , ">" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testDhcpClientEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.DhcpClientEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.aString ( "SomeState" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 192 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " dhcp_event <" , " duration_ms: 192" , " error_code: 0" , " if_name: \"wlan0\"" , " state_transition: \"SomeState\"" , " >" , " time_ms: 1" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
public android.net.IpSecTransform buildTransportModeTransform ( java.net.InetAddress remoteAddress ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( java.net.InetAddress remoteAddress ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { if ( remoteAddress == null ) { throw new java.lang.IllegalArgumentException ( "Remote address may not be null or empty!" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
public boolean isVideoTelephonyAvailable ( ) { try { return getITelephony ( ) . isVideoTelephonyAvailable ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public void setCarrierTestOverride ( java.lang.String mccmnc , java.lang.String imsi , java.lang.String iccid , java.lang.String gid1 , java.lang.String gid2 , java.lang.String plmn , java.lang.String spn ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setCarrierTestOverride ( getSubId ( ) , mccmnc , imsi , iccid , gid1 , gid2 , plmn , spn ) ; } } catch ( android.os.RemoteException ex ) { } }
Source:
public void testSetSsidPostfix_failure ( ) throws java.lang.Exception { java.lang.String ssid = "\"SSID POSTFIX\"" ; executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ssid ) ) ) ) . thenReturn ( mStatusFailure ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; assertTrue ( mDut.isInitializationComplete ( ) ) ; }

Target:
public void testSetSsidPostfix_failure ( ) throws java.lang.Exception { java.lang.String ssid = "SSID POSTFIX" ; executeAndValidateInitializationSequence ( false , false , false ) ; org.mockito.Mockito.when ( mISupplicantP2pIfaceMock.setSsidPostfix ( eq ( com.android.server.wifi.util.NativeUtil.decodeSsid ( ( ( "\"" + ssid ) + "\"" ) ) ) ) ) . thenReturn ( mStatusFailure ) ; assertFalse ( mDut.setSsidPostfix ( ssid ) ) ; assertTrue ( mDut.isInitializationComplete ( ) ) ; }
Source:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties linkProp ) { setLastCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , network , linkProp ) ; }

Target:
void expectAvailableCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectSuspended , int timeoutMs ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.AVAILABLE , agent , timeoutMs ) ; final boolean HAS_DATASYNC_ON_AVAILABLE = false ; if ( HAS_DATASYNC_ON_AVAILABLE ) { if ( expectSuspended ) { expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.SUSPENDED , agent , timeoutMs ) ; } expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent , timeoutMs ) ; expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.LINK_PROPERTIES , agent , timeoutMs ) ; } }
Source:
public java.lang.String getDeviceName ( android.bluetooth.BluetoothDevice device ) { java.lang.String deviceName ; deviceName = com.android.bluetooth.opp.BluetoothOppPreference.getInstance ( mContext ) . getName ( device ) ; if ( ( deviceName == null ) && ( ( mAdapter ) != null ) ) { deviceName = device.getName ( ) ; } if ( deviceName == null ) { deviceName = mContext.getString ( R.string.unknown_device ) ; } return deviceName ; }

Target:
public java.lang.String getDeviceName ( android.bluetooth.BluetoothDevice device ) { java.lang.String deviceName = null ; if ( device != null ) { deviceName = device.getAliasName ( ) ; if ( deviceName == null ) { deviceName = com.android.bluetooth.opp.BluetoothOppPreference.getInstance ( mContext ) . getName ( device ) ; } } if ( deviceName == null ) { deviceName = mContext.getString ( R.string.unknown_device ) ; } return deviceName ; }
Source:
public synchronized int getAudioState ( ) { com.android.internal.util.IState state = getCurrentState ( ) ; if ( state == ( mAudioConnecting ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTING ; } else if ( ( state == ( mAudioDisconnecting ) ) || ( state == ( mAudioOn ) ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ; } else { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ; } }

Target:
synchronized int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( ( mCurrentDevice ) == null ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } if ( ! ( mCurrentDevice.equals ( device ) ) ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } return ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HeadsetStateBase ) ( getCurrentState ( ) ) ) . getConnectionStateInt ( ) ; }
Source:
public void test_getSystemResourceLjava_lang_String ( ) { assertNotNull ( "Failed to find resource: hyts_Foo.c" , java.lang.ClassLoader.getSystemResource ( "hyts_Foo.c" ) ) ; }

Target:
public void test_testClassLoader_getResourceAsStreamLjava_lang_String ( ) throws java.lang.Exception { java.lang.ClassLoader parentClassLoader = testClassLoader.getParent ( ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( parentClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; assertNull ( parentClassLoader.getResourceAsStream ( org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.BOOT_RESOURCE_NAME ) ; org.apache.harmony.tests.java.lang.ClassLoaderTest.assertGetResourceAsStreamNotNull ( testClassLoader , org.apache.harmony.tests.java.lang.ClassLoaderTest.TEST_RESOURCE_NAME ) ; }
Source:
public void startDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF_START , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }

Target:
public void getSignalStrength ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIGNAL_STRENGTH , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public void onScheduledRecordingAdded ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.TAG , ( "onScheduledRecordingAdded: " + schedule ) ) ; int index = findRowIndexByProgramId ( schedule.getProgramId ( ) ) ; if ( index != ( - 1 ) ) { com.android.tv.dvr.ui.list.EpisodicProgramRow row = ( ( com.android.tv.dvr.ui.list.EpisodicProgramRow ) ( get ( index ) ) ) ; if ( ! ( row.isStartRecordingRequested ( ) ) ) { row.setSchedule ( schedule ) ; notifyArrayItemRangeChanged ( index , 1 ) ; } } }

Target:
public void onScheduledRecordingAdded ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.DEBUG ) android.util.Log.d ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter.TAG , ( "onScheduledRecordingAdded: " + schedule ) ) ; int index = findRowIndexByProgramId ( schedule.getProgramId ( ) ) ; if ( index != ( - 1 ) ) { com.android.tv.dvr.ui.list.EpisodicProgramRow row = ( ( com.android.tv.dvr.ui.list.EpisodicProgramRow ) ( get ( index ) ) ) ; if ( ! ( row.isStartRecordingRequested ( ) ) ) { setScheduleToRow ( row , schedule ) ; notifyArrayItemRangeChanged ( index , 1 ) ; } } }
Source:
public void writeCarrierIdMatchingEvent ( int phoneId , int cid , java.lang.String gid1 ) { final com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatching carrierIdMatching = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatching ( ) ; final com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatchingResult carrierIdMatchingResult = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatchingResult ( ) ; if ( cid != ( android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ) ) { carrierIdMatchingResult.carrierId = cid ; if ( gid1 != null ) { carrierIdMatchingResult.gid1 = gid1 ; } } carrierIdMatching.result = carrierIdMatchingResult ; com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent event = new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setCarrierIdMatching ( carrierIdMatching ) . build ( ) ; addTelephonyEvent ( event ) ; }

Target:
public void writeCarrierIdMatchingEvent ( int phoneId , int version , int cid , java.lang.String gid1 ) { final com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatching carrierIdMatching = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatching ( ) ; final com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatchingResult carrierIdMatchingResult = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.CarrierIdMatchingResult ( ) ; if ( cid != ( android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ) ) { carrierIdMatchingResult.carrierId = cid ; if ( gid1 != null ) { carrierIdMatchingResult.gid1 = gid1 ; } } carrierIdMatching.cidTableVersion = version ; carrierIdMatching.result = carrierIdMatchingResult ; com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent event = new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setCarrierIdMatching ( carrierIdMatching ) . build ( ) ; addTelephonyEvent ( event ) ; }
Source:
public void getDefaultDownloadableSubscriptionList ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getDefaultDownloadableSubscriptionList ( mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public android.telephony.euicc.EuiccInfo getEuiccInfo ( ) { if ( ! ( isEnabled ( ) ) ) { return null ; } try { return getIEuiccController ( ) . getEuiccInfo ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public int initServer ( int port , int timeout , boolean log ) throws java.lang.Exception { mTimeout = timeout ; mLog = log ; keepAlive = true ; if ( ( acceptT ) == null ) { acceptT = new tests.support.Support_TestWebServer.AcceptThread ( ) ; mPort = acceptT.init ( port ) ; acceptT.start ( ) ; } return mPort ; }

Target:
public int initServer ( ) throws java.lang.Exception { mTimeout = tests.support.Support_TestWebServer.DEFAULT_TIMEOUT ; mLog = false ; keepAlive = true ; if ( ( acceptT ) == null ) { acceptT = new tests.support.Support_TestWebServer.AcceptThread ( ) ; mPort = acceptT.init ( ) ; acceptT.start ( ) ; } return mPort ; }
Source:
private java.lang.String nextToken ( char separator ) { if ( ( lineCharIdx ) >= ( line.length ( ) ) ) { return null ; } char c ; java.lang.StringBuffer token = new java.lang.StringBuffer ( ) ; while ( ( ( lineCharIdx ) < ( line.length ( ) ) ) && ( ( c = line.charAt ( lineCharIdx ) ) != separator ) ) { token.append ( c ) ; ( lineCharIdx ) ++ ; } ( lineCharIdx ) ++ ; return token.toString ( ) ; }

Target:
public java.lang.String nextToken ( char separator ) { if ( ( lineCharIdx ) >= ( line.length ( ) ) ) { throw new java.util.NoSuchElementException ( ) ; } char c ; java.lang.StringBuffer token = new java.lang.StringBuffer ( ) ; while ( ( ( lineCharIdx ) < ( line.length ( ) ) ) && ( ( c = line.charAt ( lineCharIdx ) ) != separator ) ) { token.append ( c ) ; ( lineCharIdx ) ++ ; } ( lineCharIdx ) ++ ; return token.toString ( ) ; }
Source:
public void testSetIconWithParamInt ( ) throws java.lang.Throwable { runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { mDrawable = mContext.getResources ( ) . getDrawable ( R.drawable.btn_check_on ) ; mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setIcon ( R.drawable.btn_check_on ) ; mDialog = mBuilder.show ( ) ; } } ) ; mInstrumentation.waitForIdleSync ( ) ; }

Target:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setNegativeButton ( com.android.cts.stub.R.string.notify , mOnClickListener ) ; mDialog = mBuilder.show ( ) ; mButton = mDialog.getButton ( DialogInterface.BUTTON_NEGATIVE ) ; mButton.performClick ( ) ; }
Source:
public boolean isBestMatchFor ( org.eclipse.core.resources.IFile file , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.ide.common.resources.ResourceFile match = mResources.getMatchingFile ( mEditedFile.getName ( ) , ResourceFolderType.LAYOUT , config ) ; if ( match != null ) { return match.getFile ( ) . equals ( mEditedFile ) ; } return false ; }

Target:
public boolean isBestMatchFor ( org.eclipse.core.resources.IFile file , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.ide.common.resources.ResourceFile match = mResources.getMatchingFile ( mEditedFile.getName ( ) , ResourceType.LAYOUT , config ) ; if ( match != null ) { return match.getFile ( ) . equals ( mEditedFile ) ; } return false ; }
Source:
private void mergeAnnotationsXml ( @ com.android.annotations.NonNull java.lang.String xml ) { javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance ( ) ; org.xml.sax.InputSource is = new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) ; factory.setNamespaceAware ( false ) ; factory.setValidating ( false ) ; try { javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder ( ) ; org.w3c.dom.Document document = builder.parse ( is ) ; mergeDocument ( document ) ; } catch ( java.lang.Exception e ) { com.android.build.gradle.tasks.annotations.Extractor.warning ( e.toString ( ) ) ; } }

Target:
private void mergeAnnotationsXml ( @ com.android.annotations.NonNull java.lang.String xml ) { try { org.w3c.dom.Document document = com.android.utils.XmlUtils.parseDocument ( xml , false ) ; mergeDocument ( document ) ; } catch ( java.lang.Exception e ) { com.android.build.gradle.tasks.annotations.Extractor.warning ( e.toString ( ) ) ; } }
Source:
public void testSetValues009_Object ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value actualValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE_TO_SET" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointObject" , StackTrace002Debuggee.OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , actualValue , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testSetValues009_Object ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value newValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE_TO_SET" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObject" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue , newValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , oldValue , newValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private static java.nio.file.Path createAndRegisterLambdaDumpDirectory ( ) throws java.io.IOException { java.lang.String propertyValue = java.lang.System.getProperty ( LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY ) ; if ( propertyValue != null ) { return java.nio.file.Paths.get ( propertyValue ) . toAbsolutePath ( ) ; } java.nio.file.Path dumpDirectory = java.nio.file.Files.createTempDirectory ( "lambdas" ) ; java.lang.System.setProperty ( LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY , dumpDirectory.toString ( ) ) ; com.google.devtools.build.android.desugar.Desugar.deleteTreeOnExit ( dumpDirectory ) ; return dumpDirectory ; }

Target:
static java.nio.file.Path createAndRegisterLambdaDumpDirectory ( ) throws java.io.IOException { java.lang.String propertyValue = java.lang.System.getProperty ( com.google.devtools.build.android.desugar.LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY ) ; if ( propertyValue != null ) { java.nio.file.Path path = java.nio.file.Paths.get ( propertyValue ) . toAbsolutePath ( ) ; com.google.common.base.Preconditions.checkState ( java.nio.file.Files.isDirectory ( path ) , "The path '%s' is not a directory." , path ) ; return path ; } java.nio.file.Path dumpDirectory = java.nio.file.Files.createTempDirectory ( "lambdas" ) ; java.lang.System.setProperty ( com.google.devtools.build.android.desugar.LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY , dumpDirectory.toString ( ) ) ; com.google.devtools.build.android.desugar.Desugar.deleteTreeOnExit ( dumpDirectory ) ; return dumpDirectory ; }
Source:
public void testToStringboolean ( ) throws java.lang.Exception { new org.apache.harmony.security.tests.support.IdentityStub ( "aaa" ) . toString ( false ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "aaa2" , java.security.IdentityScope.getSystemScope ( ) ) . toString ( false ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "bbb" ) . toString ( true ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "bbb2" , java.security.IdentityScope.getSystemScope ( ) ) . toString ( true ) ; }

Target:
public void testToStringboolean ( ) throws java.lang.Exception { java.security.IdentityScope identityScope = new org.apache.harmony.security.tests.support.SystemScope ( ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "aaa" ) . toString ( false ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "aaa2" , identityScope ) . toString ( false ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "bbb" ) . toString ( true ) ; new org.apache.harmony.security.tests.support.IdentityStub ( "bbb2" , identityScope ) . toString ( true ) ; }
Source:
public void setProperty ( com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor , org.w3c.dom.Node node , java.lang.String name , java.lang.String value ) { org.eclipse.jface.text.IDocument document = editor.getStructuredSourceViewer ( ) . getDocument ( ) ; setProperty ( document , node , name , value ) ; }

Target:
public static void setProperty ( @ com.android.annotations.NonNull com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor , @ com.android.annotations.NonNull final org.w3c.dom.Node node , @ com.android.annotations.NonNull final java.lang.String name , @ com.android.annotations.Nullable final java.lang.String value ) { org.eclipse.jface.text.IDocument document = editor.getStructuredSourceViewer ( ) . getDocument ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.setProperty ( document , node , name , null ) ; if ( ( node.getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ) { org.w3c.dom.Element element = ( ( org.w3c.dom.Element ) ( node ) ) ; com.android.ide.eclipse.adt.AdtUtils.setToolsAttribute ( editor , element , "Bind View" , name , value , false , false ) ; } }
Source:
public boolean onTransact ( int code , android.os.Parcel data , android.os.Parcel reply , int flags ) throws android.os.RemoteException { try { return super . onTransact ( code , data , reply , flags ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( e instanceof java.lang.SecurityException ) ) { android.util.Log.e ( com.android.server.am.ActivityManagerService.TAG , "Activity Manager Crash" , e ) ; } throw e ; } }

Target:
public boolean onTransact ( int code , android.os.Parcel data , android.os.Parcel reply , int flags ) throws android.os.RemoteException { try { return super . onTransact ( code , data , reply , flags ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( e instanceof java.lang.SecurityException ) ) { android.util.Slog.e ( com.android.server.am.ActivityManagerService.TAG , "Activity Manager Crash" , e ) ; } throw e ; } }
Source:
public void setChannelTuner ( com.android.tv.ChannelTuner channelTuner ) { if ( ( mChannelTuner ) != null ) { mChannelTuner.removeListener ( mChannelTunerListener ) ; } mChannelTuner = channelTuner ; if ( ( mChannelTuner ) != null ) { mChannelTuner.addListener ( mChannelTunerListener ) ; } mMenu.update ( ) ; }

Target:
public void onOptionChanged ( @ com.android.tv.TvOptionsManager.OptionType int optionType , java.lang.String newString ) { mMenu.update ( TvOptionsRow.ID ) ; }