auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void onSetPolicyDataEnabled ( boolean enabled ) { synchronized ( mDataEnabledSettings ) { final boolean prevEnabled = isDataEnabled ( ) ; if ( ( mDataEnabledSettings.isPolicyDataEnabled ( ) ) != enabled ) { mDataEnabledSettings.setPolicyDataEnabled ( enabled ) ; if ( prevEnabled != ( isDataEnabled ( ) ) ) { if ( ! prevEnabled ) { reevaluateDataConnections ( ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { onCleanUpAllConnections ( Phone.REASON_DATA_SPECIFIC_DISABLED ) ; } } } } }

Target:
private void onSetPolicyDataEnabled ( boolean enabled ) { final boolean prevEnabled = isDataEnabled ( ) ; if ( ( mDataEnabledSettings.isPolicyDataEnabled ( ) ) != enabled ) { mDataEnabledSettings.setPolicyDataEnabled ( enabled ) ; if ( prevEnabled != ( isDataEnabled ( ) ) ) { if ( ! prevEnabled ) { reevaluateDataConnections ( ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { onCleanUpAllConnections ( Phone.REASON_DATA_SPECIFIC_DISABLED ) ; } } } }
Source:
protected boolean start ( ) { android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ; filter.addAction ( Intent.ACTION_USER_UNLOCKED ) ; try { registerReceiver ( mPbapBroadcastReceiver , filter ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to register pbapclient receiver" , e ) ; } mPbapClientStateMachine = new com.android.bluetooth.pbapclient.PbapClientStateMachine ( this ) ; com.android.bluetooth.pbapclient.PbapClientService.setPbapClientService ( this ) ; mPbapClientStateMachine.start ( ) ; return true ; }

Target:
protected boolean start ( ) { android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ; filter.addAction ( Intent.ACTION_USER_UNLOCKED ) ; try { registerReceiver ( mPbapBroadcastReceiver , filter ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to register pbapclient receiver" , e ) ; } mPbapClientStateMachine = new com.android.bluetooth.pbapclient.PbapClientStateMachine ( this , this ) ; com.android.bluetooth.pbapclient.PbapClientService.setPbapClientService ( this ) ; mPbapClientStateMachine.start ( ) ; return true ; }
Source:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; rotateAndCheckSizes ( initialSizes , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; rotateAndCheckSizes ( initialSizes , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }
Source:
public void test_SSL_CTX_new ( ) throws java.lang.Exception { int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; assertTrue ( ( c != ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ) ) ; int c2 = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; assertTrue ( ( c != c2 ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c2 ) ; org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_SSL_CTX_new ( ) throws java.lang.Exception { int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; assertTrue ( ( c != ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ) ) ; int c2 = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; assertTrue ( ( c != c2 ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c2 ) ; }
Source:
public void test_ConstructorLjava_lang_String ( ) { s = new java.util.Scanner ( "test string" ) ; assertNotNull ( s ) ; s.close ( ) ; try { s = new java.util.Scanner ( ( ( java.lang.String ) ( null ) ) ) ; fail ( "Should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_ConstructorLjava_lang_String ( ) { s = new java.util.Scanner ( "test string" ) ; assertNotNull ( s ) ; s.close ( ) ; try { s = new java.util.Scanner ( ( ( java.lang.String ) ( null ) ) ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
private com.android.jack.jayce.MethodNode getNNode ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loaded ) throws com.android.jack.jayce.JayceFormatException , com.android.jack.jayce.JayceVersionException , java.io.IOException { com.android.jack.jayce.MethodNode methodNode = nnode.get ( ) ; if ( ( methodNode == null ) || ( ( methodNode.getLevel ( ) ) != ( NodeLevel.FULL ) ) ) { com.android.jack.jayce.DeclaredTypeNode declaredTypeNode = enclosingClassLoader.getNNode ( NodeLevel.FULL , loaded.getEnclosingType ( ) . getSession ( ) . getUserLogger ( ) ) ; methodNode = declaredTypeNode.getMethodNode ( loaded ) ; } return methodNode ; }

Target:
private com.android.jack.jayce.MethodNode getNNode ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loaded ) throws com.android.jack.jayce.JayceFormatException , com.android.jack.jayce.JayceVersionException , java.io.IOException { com.android.jack.jayce.MethodNode methodNode = nnode.get ( ) ; if ( ( methodNode == null ) || ( ( methodNode.getLevel ( ) ) != ( NodeLevel.FULL ) ) ) { com.android.jack.jayce.DeclaredTypeNode declaredTypeNode = enclosingClassLoader.getNNode ( NodeLevel.FULL ) ; methodNode = declaredTypeNode.getMethodNode ( loaded ) ; } return methodNode ; }
Source:
public void test_unwrap_ByteBuffer$ByteBuffer_01 ( ) throws java.io.IOException , java.lang.InterruptedException { prepareEngines ( ) ; doHandshake ( ) ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 100 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) ; try { clientEngine.engine.unwrap ( bbs , new java.nio.ByteBuffer [ ] { bbd } ) ; fail ( "SSLException wasn't thrown" ) ; } catch ( javax.net.ssl.SSLException ex ) { } }

Target:
public void test_unwrap_ByteBuffer$ByteBuffer_01 ( ) throws java.lang.Exception { prepareEngines ( ) ; doHandshake ( ) ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 100 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) ; try { clientEngine.engine.unwrap ( bbs , new java.nio.ByteBuffer [ ] { bbd } ) ; fail ( "SSLException wasn't thrown" ) ; } catch ( javax.net.ssl.SSLException expected ) { } }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }
Source:
public boolean cleanup ( ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "cleanup()" ) ; } if ( ! ( isMapStarted ( ) ) ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , ( "Service Not Available to STOP or Shutdown already" + " in progress - Ignoring" ) ) ; } return true ; } else { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "Service Stoping()" ) ; } setState ( BluetoothMap.STATE_DISCONNECTED , BluetoothMap.RESULT_CANCELED ) ; if ( ( mSessionStatusHandler ) != null ) { sendShutdownMessage ( ) ; } mServiceStarted = false ; return true ; }

Target:
public void cleanup ( ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "cleanup()" ) ; } if ( ! ( isMapStarted ( ) ) ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , ( "Service Not Available to STOP or Shutdown already" + " in progress - Ignoring" ) ) ; } return ; } else { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "Service Stoping()" ) ; } setState ( BluetoothMap.STATE_DISCONNECTED , BluetoothMap.RESULT_CANCELED ) ; if ( ( mSessionStatusHandler ) != null ) { sendShutdownMessage ( ) ; } mServiceStarted = false ; }
Source:
public void testStageInstallWithErrorCode_withMissingDistroVersionFile ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withMissingDistroVersionFile ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void setZoneStrings ( java.lang.String [ ] [ ] zoneStrings ) { if ( zoneStrings == null ) { throw new java.lang.NullPointerException ( "zoneStrings == null" ) ; } for ( java.lang.String [ ] row : zoneStrings ) { if ( ( row.length ) < 5 ) { throw new java.lang.IllegalArgumentException ( ( ( java.util.Arrays.toString ( row ) ) + ".length < 5" ) ) ; } } this . zoneStrings = java.text.DateFormatSymbols.clone2dStringArray ( zoneStrings ) ; this . customZoneStrings = true ; }

Target:
public void setZoneStrings ( java.lang.String [ ] [ ] zoneStrings ) { if ( zoneStrings == null ) { throw new java.lang.NullPointerException ( "zoneStrings == null" ) ; } for ( java.lang.String [ ] row : zoneStrings ) { if ( ( row.length ) < 5 ) { throw new java.lang.IllegalArgumentException ( ( ( java.util.Arrays.toString ( row ) ) + ".length < 5" ) ) ; } } this . zoneStrings = java.text.DateFormatSymbols.clone2dStringArray ( zoneStrings ) ; }
Source:
public void testPublishConfigBuilderDefaults ( ) { android.net.wifi.aware.PublishConfig publishConfig = new android.net.wifi.aware.PublishConfig.Builder ( ) . build ( ) ; collector.checkThat ( "mServiceName" , publishConfig.mServiceName , org.hamcrest.core.IsEqual.equalTo ( null ) ) ; collector.checkThat ( "mPublishType" , publishConfig.mPublishType , org.hamcrest.core.IsEqual.equalTo ( PublishConfig.PUBLISH_TYPE_UNSOLICITED ) ) ; collector.checkThat ( "mPublishCount" , publishConfig.mPublishCount , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mTtlSec" , publishConfig.mTtlSec , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mEnableTerminateNotification" , publishConfig.mEnableTerminateNotification , org.hamcrest.core.IsEqual.equalTo ( true ) ) ; }

Target:
public void testPublishConfigBuilderDefaults ( ) { android.net.wifi.aware.PublishConfig publishConfig = new android.net.wifi.aware.PublishConfig.Builder ( ) . build ( ) ; collector.checkThat ( "mServiceName" , publishConfig.mServiceName , org.hamcrest.core.IsEqual.equalTo ( null ) ) ; collector.checkThat ( "mPublishType" , publishConfig.mPublishType , org.hamcrest.core.IsEqual.equalTo ( PublishConfig.PUBLISH_TYPE_UNSOLICITED ) ) ; collector.checkThat ( "mTtlSec" , publishConfig.mTtlSec , org.hamcrest.core.IsEqual.equalTo ( 0 ) ) ; collector.checkThat ( "mEnableTerminateNotification" , publishConfig.mEnableTerminateNotification , org.hamcrest.core.IsEqual.equalTo ( true ) ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write ( s , fd , callback , BYTES , 0 , BYTES.length , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write ( s , fd , callback , BYTES , 0 , BYTES.length , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
private static void report ( com.android.tools.lint.detector.api.Context context , com.android.tools.lint.detector.api.Issue issue , com.android.tools.lint.detector.api.Location.Handle handle , java.lang.String message ) { com.android.tools.lint.detector.api.Location location = handle.resolve ( ) ; java.lang.Object clientData = handle.getClientData ( ) ; if ( clientData instanceof org.w3c.dom.Node ) { if ( context.getDriver ( ) . isSuppressed ( issue , ( ( org.w3c.dom.Node ) ( clientData ) ) ) ) { return ; } } context.report ( issue , location , message , null ) ; }

Target:
private static void report ( com.android.tools.lint.detector.api.Context context , com.android.tools.lint.detector.api.Issue issue , com.android.tools.lint.detector.api.Location.Handle handle , java.lang.String message ) { com.android.tools.lint.detector.api.Location location = handle.resolve ( ) ; java.lang.Object clientData = handle.getClientData ( ) ; if ( clientData instanceof org.w3c.dom.Node ) { if ( context.getDriver ( ) . isSuppressed ( null , issue , ( ( org.w3c.dom.Node ) ( clientData ) ) ) ) { return ; } } context.report ( issue , location , message , null ) ; }
Source:
public boolean checksForModification ( java.io.File file ) { if ( ignores ( file ) ) { return false ; } if ( ( ( mTouchedExtensions ) != null ) && ( ( mTouchedExtensions.contains ( com.android.builder.internal.compiler.InputPath.getExtension ( file ) ) ) == false ) ) { return false ; } return true ; }

Target:
public boolean checksForModification ( java.io.File file ) { return ( ! ( ignores ( file ) ) ) && ( ( ( mTouchedExtensions ) == null ) || ( mTouchedExtensions.contains ( com.android.builder.internal.compiler.InputPath.getExtension ( file ) ) ) ) ; }
Source:
private void removeConferenceParticipant ( com.android.services.telephony.ConferenceParticipantConnection participant ) { android.telecom.Log.d ( this , "removeConferenceParticipant: %s" , participant ) ; participant.removeConnectionListener ( mParticipantListener ) ; synchronized ( mUpdateSyncRoot ) { mConferenceParticipantConnections.remove ( participant.getUserEntity ( ) ) ; } mTelephonyConnectionService.removeConnection ( participant ) ; }

Target:
private void removeConferenceParticipant ( com.android.services.telephony.ConferenceParticipantConnection participant ) { android.telecom.Log.i ( this , "removeConferenceParticipant: %s" , participant ) ; participant.removeConnectionListener ( mParticipantListener ) ; synchronized ( mUpdateSyncRoot ) { mConferenceParticipantConnections.remove ( participant.getUserEntity ( ) ) ; } mTelephonyConnectionService.removeConnection ( participant ) ; }
Source:
void clearValue ( java.lang.String optionName , java.util.Map < java.lang.String , com.google.devtools.common.options.OptionsParser.OptionValueDescription > clearedValues ) throws com.google.devtools.common.options.OptionsParsingException { java.lang.reflect.Field field = optionsData.getFieldFromName ( optionName ) ; if ( field == null ) { throw new java.lang.IllegalArgumentException ( ( ( "No such option '" + optionName ) + "'" ) ) ; } com.google.devtools.common.options.Option option = field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; canonicalizeValues.removeAll ( field ) ; com.google.devtools.common.options.OptionsParser.OptionValueDescription removed = parsedValues.remove ( field ) ; if ( removed != null ) { clearedValues.put ( option.name ( ) , removed ) ; } }

Target:
com.google.devtools.common.options.OptionsParser.OptionValueDescription clearValue ( java.lang.String optionName ) throws com.google.devtools.common.options.OptionsParsingException { java.lang.reflect.Field field = optionsData.getFieldFromName ( optionName ) ; if ( field == null ) { throw new java.lang.IllegalArgumentException ( ( ( "No such option '" + optionName ) + "'" ) ) ; } canonicalizeValues.removeAll ( field ) ; return parsedValues.remove ( field ) ; }
Source:
public boolean addTestCase ( java.lang.String name , int result ) { if ( isFull ( ) ) return false ; long parentId = this . key.getId ( ) ; this . testCases.add ( new com.android.vts.entity.TestCaseRunEntity.TestCase ( parentId , this . testCases.size ( ) , name , result ) ) ; return true ; }

Target:
public boolean addTestCase ( java.lang.String name , int result ) { if ( isFull ( ) ) return false ; this . testCases.add ( new com.android.vts.entity.TestCaseRunEntity.TestCase ( this . id , this . testCases.size ( ) , name , result ) ) ; return true ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ! ( preserveJls ) ) && ( ! ( method.isAbstract ( ) ) ) ) && ( ! ( method.isNative ( ) ) ) ) { if ( com.android.jack.optimizations.common.OptimizerUtils.isConstructor ( method ) ) { new com.android.jack.optimizations.valuepropagation.field.FvpCollectFieldAssignments.ConstructorAnalyzer ( method ) . analyze ( ) ; } else { analyzeRegularMethod ( method ) ; } } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( ! ( method.isAbstract ( ) ) ) && ( ! ( method.isNative ( ) ) ) ) { if ( com.android.jack.optimizations.common.OptimizerUtils.isConstructor ( method ) ) { new com.android.jack.optimizations.valuepropagation.field.FvpCollectFieldAssignments.ConstructorAnalyzer ( method ) . analyze ( ) ; } else { analyzeRegularMethod ( method ) ; } } }
Source:
public void test_unwrap_ByteBuffer_ByteBuffer_02 ( ) { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) . asReadOnlyBuffer ( ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; sse.setUseClientMode ( true ) ; try { sse.unwrap ( bbs , bbd ) ; fail ( "ReadOnlyBufferException wasn't thrown" ) ; } catch ( java.nio.ReadOnlyBufferException iobe ) { } catch ( java.lang.Exception e ) { fail ( ( e + " was thrown instead of ReadOnlyBufferException" ) ) ; } }

Target:
public void test_unwrap_ByteBuffer_ByteBuffer_02 ( ) throws java.lang.Exception { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) . asReadOnlyBuffer ( ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; sse.setUseClientMode ( true ) ; try { sse.unwrap ( bbs , bbd ) ; fail ( "ReadOnlyBufferException wasn't thrown" ) ; } catch ( java.nio.ReadOnlyBufferException iobe ) { } catch ( java.lang.Exception e ) { fail ( ( e + " was thrown instead of ReadOnlyBufferException" ) ) ; } }
Source:
private com.android.jack.ir.ast.JCatchBlock createCatchBlock ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass exceptionType ) { com.android.jack.ir.ast.JLocal catchLocal = new com.android.jack.ir.ast.JLocal ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , "ex" , exceptionType , com.android.jack.ir.ast.JModifier.SYNTHETIC , ( ( com.android.jack.ir.ast.JMethodBody ) ( syntheticSwitchMapInitializer.getBody ( ) ) ) ) ; com.android.jack.ir.ast.JCatchBlock catchBlock = new com.android.jack.ir.ast.JCatchBlock ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , java.util.Collections.< com.android.jack.ir.ast.JClass > singletonList ( exceptionType ) , catchLocal ) ; return catchBlock ; }

Target:
private com.android.jack.ir.ast.JCatchBlock createCatchBlock ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass exceptionType ) { assert ( syntheticSwitchMapInitializer ) != null ; com.android.jack.ir.ast.JLocal catchLocal = new com.android.jack.ir.ast.JLocal ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , "ex" , exceptionType , com.android.jack.ir.ast.JModifier.SYNTHETIC , ( ( com.android.jack.ir.ast.JMethodBody ) ( syntheticSwitchMapInitializer.getBody ( ) ) ) ) ; com.android.jack.ir.ast.JCatchBlock catchBlock = new com.android.jack.ir.ast.JCatchBlock ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , java.util.Collections.< com.android.jack.ir.ast.JClass > singletonList ( exceptionType ) , catchLocal ) ; return catchBlock ; }
Source:
protected boolean downgradeDatabase ( android.database.sqlite.SQLiteDatabase db , int oldVersion , int newVersion ) { logger.info ( "Enter: downgradeDatabase()" ) ; db.execSQL ( com.android.service.ims.presence.EABProvider.EAB_DROP_STATEMENT ) ; upgradeDatabase ( db , 0 , com.android.service.ims.presence.EABProvider.EAB_DB_VERSION ) ; sendEabResetBroadcast ( ) ; logger.debug ( "Dropped and created new EABPresence table." ) ; logger.info ( "Exit: downgradeDatabase()" ) ; return true ; }

Target:
protected boolean downgradeDatabase ( android.database.sqlite.SQLiteDatabase db , int oldVersion , int newVersion ) { logger.info ( "Enter: downgradeDatabase()" ) ; db.execSQL ( com.android.service.ims.presence.EABProvider.EAB_DROP_STATEMENT ) ; upgradeDatabase ( db , 0 , com.android.service.ims.presence.EABProvider.EAB_DB_VERSION ) ; sendEabResetBroadcast ( ) ; logger.debug ( "Dropped and created new EABPresence table." ) ; logger.debug ( "Exit: downgradeDatabase()" ) ; return true ; }
Source:
private com.android.builder.core.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.core.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , null ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
private static java.security.cert.X509Certificate [ ] createCertChain ( byte [ ] [ ] certificatesBytes ) { if ( certificatesBytes == null ) { return null ; } java.security.cert.X509Certificate [ ] certificates = new java.security.cert.X509Certificate [ certificatesBytes.length ] ; for ( int i = 0 ; i < ( certificatesBytes.length ) ; i ++ ) { try { certificates [ i ] = new org.apache.harmony.security.provider.cert.X509CertImpl ( certificatesBytes [ i ] ) ; } catch ( java.io.IOException e ) { return null ; } } return certificates ; }

Target:
private static java.security.cert.X509Certificate [ ] createCertChain ( byte [ ] [ ] certificatesBytes ) throws java.io.IOException { if ( certificatesBytes == null ) { return null ; } java.security.cert.X509Certificate [ ] certificates = new java.security.cert.X509Certificate [ certificatesBytes.length ] ; for ( int i = 0 ; i < ( certificatesBytes.length ) ; i ++ ) { certificates [ i ] = new org.apache.harmony.security.provider.cert.X509CertImpl ( certificatesBytes [ i ] ) ; } return certificates ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( getClass ( ) . equals ( obj.getClass ( ) ) ) { return java.util.Arrays.equals ( mData , ( ( com.android.ide.eclipse.adt.internal.resources.manager.IntArrayWrapper ) ( obj ) ) . mData ) ; } return super . equals ( obj ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj == null ) { return false ; } if ( getClass ( ) . equals ( obj.getClass ( ) ) ) { return java.util.Arrays.equals ( mData , ( ( com.android.ide.eclipse.adt.internal.resources.manager.IntArrayWrapper ) ( obj ) ) . mData ) ; } return super . equals ( obj ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String [ ] values = new java.lang.String [ this . getPlaceholderCount ( ) ] ; for ( int i = 0 ; i < ( values.length ) ; i ++ ) { values [ i ] = java.lang.String.format ( "{%d}" , i ) ; } return formatAndAppend ( new java.lang.StringBuilder ( ) , null , values ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String [ ] values = new java.lang.String [ getPlaceholderCount ( ) ] ; for ( int i = 0 ; i < ( values.length ) ; i ++ ) { values [ i ] = java.lang.String.format ( "{%d}" , i ) ; } return formatAndAppend ( new java.lang.StringBuilder ( ) , null , values ) . toString ( ) ; }
Source:
public void stopStreaming ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.DeadObjectException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling stopStreaming: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }

Target:
public void stopStreaming ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } }
Source:
private boolean shouldTurnOffSignalStrength ( ) { if ( mIsPowerSaveOn ) { return true ; } if ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_SIGNAL_STRENGTH ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }

Target:
private boolean shouldTurnOffSignalStrength ( ) { if ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_SIGNAL_STRENGTH ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }
Source:
public boolean startStreaming ( android.telephony.MbmsStreamingManager streamingManager ) { try { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) ) ; return true ; } catch ( android.telephony.mbms.MbmsException e ) { android.widget.Toast.makeText ( mActivity , ( "Error starting streaming: " + ( e.getErrorCode ( ) ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } return false ; }

Target:
public boolean startStreaming ( android.telephony.MbmsStreamingManager streamingManager ) { try { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) , null ) ; return true ; } catch ( android.telephony.mbms.MbmsException e ) { android.widget.Toast.makeText ( mActivity , ( "Error starting streaming: " + ( e.getErrorCode ( ) ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } return false ; }
Source:
public static org.jf.dexlib2.analysis.ClassProto.FieldGap newFieldGap ( int offset , int size , int oatVersion ) { { return new org.jf.dexlib2.analysis.ClassProto.FieldGap ( offset , size ) { @ java.lang.Override public int compareTo ( org.jf.dexlib2.analysis.ClassProto.FieldGap o ) { int result = com.google.common.primitives.Ints.compare ( o.size , size ) ; if ( result != 0 ) { return result ; } return com.google.common.primitives.Ints.compare ( offset , o.offset ) ; } } ; } }

Target:
public int compareTo ( org.jf.dexlib2.analysis.ClassProto.FieldGap o ) { int result = com.google.common.primitives.Ints.compare ( size , o.size ) ; if ( result != 0 ) { return result ; } return com.google.common.primitives.Ints.compare ( o.offset , offset ) ; }
Source:
public int removeAllRights ( ) { if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_REMOVE_ALL_RIGHTS ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } return result ; }

Target:
public int removeAllRights ( ) { int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_REMOVE_ALL_RIGHTS ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } return result ; }
Source:
public static java.lang.String [ ] getAvailableIDs ( int rawOffset ) { java.util.List < java.lang.String > matches = new java.util.ArrayList < java.lang.String > ( ) ; for ( int i = 0 , end = libcore.util.ZoneInfoDB.rawUtcOffsets.length ; i < end ; i ++ ) { if ( ( libcore.util.ZoneInfoDB.rawUtcOffsets [ i ] ) == rawOffset ) { matches.add ( libcore.util.ZoneInfoDB.ids [ i ] ) ; } } return matches.toArray ( new java.lang.String [ matches.size ( ) ] ) ; }

Target:
public static java.lang.String [ ] getAvailableIDs ( int rawOffset ) { java.util.List < java.lang.String > matches = new java.util.ArrayList < java.lang.String > ( ) ; for ( int i = 0 , end = libcore.util.ZoneInfoDB.rawUtcOffsets.length ; i < end ; ++ i ) { if ( ( libcore.util.ZoneInfoDB.rawUtcOffsets [ i ] ) == rawOffset ) { matches.add ( libcore.util.ZoneInfoDB.ids [ i ] ) ; } } return matches.toArray ( new java.lang.String [ matches.size ( ) ] ) ; }
Source:
public void conflict ( @ com.android.annotations.NonNull com.android.manifmerger.Severity severity , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location1 , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location2 , @ com.android.annotations.NonNull java.lang.String message , java.lang.Object ... msgParams ) { switch ( severity ) { case INFO : sdkLog.printf ( "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; case WARNING : sdkLog.warning ( "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; case ERROR : sdkLog.error ( null , "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; } }

Target:
public void conflict ( @ com.android.annotations.NonNull com.android.manifmerger.Severity severity , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location1 , @ com.android.annotations.NonNull com.android.manifmerger.FileAndLine location2 , @ com.android.annotations.NonNull java.lang.String message , java.lang.Object ... msgParams ) { switch ( severity ) { case INFO : sdkLog.info ( "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; case WARNING : sdkLog.warning ( "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; case ERROR : sdkLog.error ( null , "[%1$s, %2$s] %3$s" , location1 , location2 , java.lang.String.format ( message , msgParams ) ) ; break ; } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ( ( ( size ) * 5 ) + 10 ) ) ; sb.append ( '{' ) ; for ( int i = 0 ; i < ( size ) ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( values [ i ] ) ; } sb.append ( '}' ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( ( ( size ) * 5 ) + 10 ) ) ; sb.append ( '{' ) ; for ( int i = 0 ; i < ( size ) ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( values [ i ] ) ; } sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
private void createCaughtVariables ( ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { com.android.jill.frontend.java.Variable declaringCatchVariable = null ; org.objectweb.asm.Type caughtType ; if ( ( tryCatchNode.type ) == null ) { caughtType = org.objectweb.asm.Type.getType ( java.lang.Object.class ) ; } else { caughtType = org.objectweb.asm.Type.getType ( java.lang.Throwable.class ) ; } java.lang.String id = "-e_" + ( ( unusedVarCount ) ++ ) ; declaringCatchVariable = new com.android.jill.frontend.java.Variable ( id , id , caughtType , null ) ; catchBlockToCatchedVariable.put ( tryCatchNode , declaringCatchVariable ) ; } }

Target:
private void createCaughtVariables ( ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { com.android.jill.frontend.java.Variable declaringCatchVariable = null ; org.objectweb.asm.Type caughtType ; if ( ( tryCatchNode.type ) == null ) { caughtType = org.objectweb.asm.Type.getType ( java.lang.Object.class ) ; } else { caughtType = org.objectweb.asm.Type.getType ( java.lang.Throwable.class ) ; } java.lang.String id = "-e_" + ( ( unusedVarCount ) ++ ) ; declaringCatchVariable = new com.android.jill.frontend.java.Variable ( id , id , caughtType ) ; catchBlockToCatchedVariable.put ( tryCatchNode , declaringCatchVariable ) ; } }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { try { java.lang.String response = com.google.gct.testing.launcher.ExperimentalCloudAuthenticator.callTestApi ( ) ; new com.intellij.notification.Notification ( "Cloud API" , "testExecutions.list" , response , com.intellij.notification.NotificationType.INFORMATION , null ) . notify ( e.getProject ( ) ) ; } catch ( java.lang.Exception exception ) { throw new java.lang.RuntimeException ( "Failed to perform the API call" , exception ) ; } }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { try { } catch ( java.lang.Exception exception ) { throw new java.lang.RuntimeException ( "Failed to perform the API call" , exception ) ; } }
Source:
public java.util.List < T > get ( int index ) { int listSize = size ( ) ; com.google.common.base.Preconditions.checkElementIndex ( index , listSize ) ; int start = index * ( size ) ; int end = java.lang.Math.min ( ( start + ( size ) ) , list.size ( ) ) ; return list.subList ( start , end ) ; }

Target:
public java.util.List < T > get ( int index ) { com.google.common.base.Preconditions.checkElementIndex ( index , size ( ) ) ; int start = index * ( size ) ; int end = java.lang.Math.min ( ( start + ( size ) ) , list.size ( ) ) ; return list.subList ( start , end ) ; }
Source:
protected void onListItemClick ( android.widget.ListView listView , android.view.View view , int position , long id ) { super . onListItemClick ( listView , view , position , id ) ; android.widget.ListAdapter adapter = getListAdapter ( ) ; android.content.Intent intent = getIntent ( position ) ; startActivity ( intent ) ; }

Target:
protected void onListItemClick ( android.widget.ListView listView , android.view.View view , int position , long id ) { super . onListItemClick ( listView , view , position , id ) ; android.content.Intent intent = getIntent ( position ) ; startActivity ( intent ) ; }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:+ db=" + db ) ) ; createSimInfoTable ( db ) ; createCarriersTable ( db , com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE ) ; if ( com.android.providers.telephony.TelephonyProvider.apnSourceServiceExists ( mContext ) ) { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Skipping apply APNs from xml." ) ; } else { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Apply apns from xml." ) ; initDatabase ( db ) ; } if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:- db=" + db ) ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:+ db=" + db ) ) ; createSimInfoTable ( db ) ; createCarriersTable ( db , com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE ) ; initDatabase ( db ) ; if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:- db=" + db ) ) ; }
Source:
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 ; }

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 ) ; 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 static org.bouncycastle.asn1.x9.X9ECParameters getByOID ( org.bouncycastle.asn1.ASN1ObjectIdentifier oid ) { org.bouncycastle.asn1.x9.X9ECParameters ecP = org.bouncycastle.asn1.x9.X962NamedCurves.getByOID ( oid ) ; if ( ecP == null ) { ecP = org.bouncycastle.asn1.sec.SECNamedCurves.getByOID ( oid ) ; } if ( ecP == null ) { ecP = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getByOID ( oid ) ; } return ecP ; }

Target:
public static org.bouncycastle.asn1.x9.X9ECParameters getByOID ( org.bouncycastle.asn1.ASN1ObjectIdentifier oid ) { org.bouncycastle.asn1.x9.X9ECParameters ecP = org.bouncycastle.asn1.x9.X962NamedCurves.getByOID ( oid ) ; if ( ecP == null ) { ecP = org.bouncycastle.asn1.sec.SECNamedCurves.getByOID ( oid ) ; } return ecP ; }
Source:
public void testCrashWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; com.android.devtools.systemimage.uitest.utils.AppManager.installApp ( instrumentation , "CrashExample.apk" ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "DisplayingBitmaps" ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.ImageView" ) ) . click ( ) ; }

Target:
public void testCrashWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "DisplayingBitmaps" ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.ImageView" ) ) . click ( ) ; }
Source:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } session = enclosingType.getSession ( ) ; com.android.jack.transformations.ast.ConcatRemover.Visitor visitor = new com.android.jack.transformations.ast.ConcatRemover.Visitor ( method ) ; visitor.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.ast.ConcatRemover.Visitor visitor = new com.android.jack.transformations.ast.ConcatRemover.Visitor ( method ) ; visitor.accept ( method ) ; }
Source:
public void testLastModified ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . addHeader ( "Last-Modified" , "Wed, 27 Nov 2013 11:26:00 GMT" ) . setBody ( "Hello" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.connect ( ) ; assertEquals ( 1385551560000L , connection.getLastModified ( ) ) ; assertEquals ( 1385551560000L , connection.getHeaderFieldDate ( "Last-Modified" , ( - 1 ) ) ) ; }

Target:
public void testLastModified ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . addHeader ( "Last-Modified" , "Wed, 27 Nov 2013 11:26:00 GMT" ) . setBody ( "Hello" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.connect ( ) ; org.junit.Assert.assertEquals ( 1385551560000L , connection.getLastModified ( ) ) ; org.junit.Assert.assertEquals ( 1385551560000L , connection.getHeaderFieldDate ( "Last-Modified" , ( - 1 ) ) ) ; }