auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
android.content.Context getContext ( ) { android.content.Context context = org.mockito.Mockito.mock ( android.content.Context.class ) ; android.content.res.Resources resource = org.mockito.Mockito.mock ( android.content.res.Resources.class ) ; org.mockito.Mockito.when ( context.getResources ( ) ) . thenReturn ( mResource ) ; org.mockito.Mockito.when ( context.getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) . thenReturn ( mScoreManager ) ; return context ; }

Target:
android.content.Context getContext ( ) { android.content.Context context = mock ( android.content.Context.class ) ; android.content.res.Resources resource = mock ( android.content.res.Resources.class ) ; when ( context.getResources ( ) ) . thenReturn ( mResource ) ; when ( context.getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) . thenReturn ( mScoreManager ) ; return context ; }
Source:
private void resetPlayback ( ) { long timestamp ; long oldTimestamp ; timestamp = android.os.SystemClock.elapsedRealtime ( ) ; stopPlayback ( ) ; stopCaptionTrack ( ) ; if ( com.android.tv.tuner.tvinput.TunerSessionWorker.ENABLE_PROFILER ) { oldTimestamp = timestamp ; timestamp = android.os.SystemClock.elapsedRealtime ( ) ; android.util.Log.i ( com.android.tv.tuner.tvinput.TunerSessionWorker.TAG , ( ( "[Profiler] stopPlayback() takes " + ( timestamp - oldTimestamp ) ) + " ms" ) ) ; } if ( ( mChannelBlocked ) || ( ( mSurface ) == null ) ) { return ; } preparePlayback ( ) ; }

Target:
private void resetPlayback ( ) { long timestamp ; long oldTimestamp ; timestamp = android.os.SystemClock.elapsedRealtime ( ) ; stopPlayback ( false ) ; stopCaptionTrack ( ) ; if ( com.android.tv.tuner.tvinput.TunerSessionWorker.ENABLE_PROFILER ) { oldTimestamp = timestamp ; timestamp = android.os.SystemClock.elapsedRealtime ( ) ; android.util.Log.i ( com.android.tv.tuner.tvinput.TunerSessionWorker.TAG , ( ( "[Profiler] stopPlayback() takes " + ( timestamp - oldTimestamp ) ) + " ms" ) ) ; } if ( ( mChannelBlocked ) || ( ( mSurface ) == null ) ) { return ; } preparePlayback ( ) ; }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { recordAttributeAction ( attribute , attribute.getPosition ( ) , actionType , attributeOperationType ) ; }
Source:
public void test_isUnicodeIdentifierStartC ( ) { assertTrue ( "'a' returned false" , java.lang.Character.isUnicodeIdentifierStart ( 'a' ) ) ; assertTrue ( "'2' returned true" , ( ! ( java.lang.Character.isUnicodeIdentifierStart ( '2' ) ) ) ) ; assertTrue ( "'+' returned true" , ( ! ( java.lang.Character.isUnicodeIdentifierStart ( '+' ) ) ) ) ; }

Target:
public void test_isUnicodeIdentifierStartC ( ) { assertTrue ( "'a' returned false" , java.lang.Character.isUnicodeIdentifierStart ( 'a' ) ) ; assertFalse ( "'2' returned true" , java.lang.Character.isUnicodeIdentifierStart ( '2' ) ) ; assertFalse ( "'+' returned true" , java.lang.Character.isUnicodeIdentifierStart ( '+' ) ) ; }
Source:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; com.android.server.wifi.nan.WifiNanHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onNanDownNotification ( WifiNanAttachCallback.REASON_OTHER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; com.android.server.wifi.nan.WifiNanHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onNanDownNotification ( WifiNanNative.NAN_STATUS_DE_FAILURE ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }
Source:
public void test_SSLSocketFactory_getSupportedCipherSuites ( ) { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; java.lang.String [ ] cipherSuites = sf.getSupportedCipherSuites ( ) ; libcore.java.security.StandardNames.assertValidCipherSuites ( StandardNames.CIPHER_SUITES , cipherSuites ) ; assertNotSame ( cipherSuites , sf.getSupportedCipherSuites ( ) ) ; }

Target:
public void test_SSLSocketFactory_getSupportedCipherSuites ( ) { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; java.lang.String [ ] cipherSuites = sf.getSupportedCipherSuites ( ) ; libcore.java.security.StandardNames.assertValidCipherSuites ( cipherSuites ) ; assertNotSame ( cipherSuites , sf.getSupportedCipherSuites ( ) ) ; }
Source:
static void native_drawARGB ( int nativeCanvas , int a , int r , int g , int b ) { android.graphics.Canvas_Delegate.native_drawColor ( nativeCanvas , ( ( ( ( a << 24 ) | ( ( r & 255 ) << 16 ) ) | ( ( g & 255 ) << 8 ) ) | ( b & 255 ) ) , PorterDuff.Mode.SRC_OVER.nativeInt ) ; }

Target:
static void native_drawARGB ( long nativeCanvas , int a , int r , int g , int b ) { android.graphics.Canvas_Delegate.native_drawColor ( nativeCanvas , ( ( ( ( a << 24 ) | ( ( r & 255 ) << 16 ) ) | ( ( g & 255 ) << 8 ) ) | ( b & 255 ) ) , PorterDuff.Mode.SRC_OVER.nativeInt ) ; }
Source:
public static java.lang.String makeSigAlg ( java.lang.String digAlg , java.lang.String encAlg ) { digAlg = digAlg.replace ( "-" , "" ) . toUpperCase ( java.util.Locale.ENGLISH ) ; if ( digAlg.equalsIgnoreCase ( "SHA" ) ) digAlg = "SHA1" ; encAlg = encAlg.toUpperCase ( java.util.Locale.ENGLISH ) ; if ( encAlg.equals ( "EC" ) ) encAlg = "ECDSA" ; return ( digAlg + "with" ) + encAlg ; }

Target:
public static java.lang.String makeSigAlg ( java.lang.String digAlg , java.lang.String encAlg ) { digAlg = digAlg.replace ( "-" , "" ) ; if ( encAlg.equalsIgnoreCase ( "EC" ) ) encAlg = "ECDSA" ; return ( digAlg + "with" ) + encAlg ; }
Source:
public com.android.sdklib.devices.DeviceManager.DeviceStatus getDeviceStatus ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String manufacturer , int hashCode ) { com.android.sdklib.devices.Device d = getDevice ( name , manufacturer ) ; if ( d == null ) { return com.android.sdklib.devices.DeviceManager.DeviceStatus.MISSING ; } else { return ( d.hashCode ( ) ) == hashCode ? com.android.sdklib.devices.DeviceManager.DeviceStatus.EXISTS : com.android.sdklib.devices.DeviceManager.DeviceStatus.CHANGED ; } }

Target:
public com.android.sdklib.devices.DeviceManager.DeviceStatus getDeviceStatus ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String manufacturer ) { com.android.sdklib.devices.Device d = getDevice ( name , manufacturer ) ; if ( d == null ) { return com.android.sdklib.devices.DeviceManager.DeviceStatus.MISSING ; } return com.android.sdklib.devices.DeviceManager.DeviceStatus.EXISTS ; }
Source:
public static < R extends java.lang.Readable & java.io.Closeable > java.lang.String readFirstLine ( com.google.common.io.InputSupplier < R > supplier ) throws java.io.IOException { boolean threw = true ; R r = supplier.getInput ( ) ; try { java.lang.String line = new com.google.common.io.LineReader ( r ) . readLine ( ) ; threw = false ; return line ; } finally { com.google.common.io.Closeables.close ( r , threw ) ; } }

Target:
public void close ( ) { }
Source:
private int getDexoptNeeded ( java.lang.String path , java.lang.String isa , java.lang.String compilerFilter , boolean newProfile ) { int dexoptNeeded ; try { dexoptNeeded = dalvik.system.DexFile.getDexOptNeeded ( path , isa , compilerFilter , newProfile ) ; } catch ( java.io.IOException ioe ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , ( "IOException reading apk: " + path ) , ioe ) ; return com.android.server.pm.PackageDexOptimizer.DEX_OPT_FAILED ; } return adjustDexoptNeeded ( dexoptNeeded ) ; }

Target:
private int getDexoptNeeded ( java.lang.String path , java.lang.String isa , java.lang.String compilerFilter , boolean newProfile ) { int dexoptNeeded ; try { dexoptNeeded = dalvik.system.DexFile.getDexOptNeeded ( path , isa , compilerFilter , newProfile , false ) ; } catch ( java.io.IOException ioe ) { android.util.Slog.w ( com.android.server.pm.PackageDexOptimizer.TAG , ( "IOException reading apk: " + path ) , ioe ) ; return com.android.server.pm.PackageDexOptimizer.DEX_OPT_FAILED ; } return adjustDexoptNeeded ( dexoptNeeded ) ; }
Source:
public PS getLinkedProjectSettings ( @ org.jetbrains.annotations.NotNull java.lang.String linkedProjectPath ) { PS ps = myLinkedProjectsSettings.get ( linkedProjectPath ) ; com.intellij.openapi.externalSystem.settings.AbstractExternalSystemSettings.HEAD ( 9.0 ) ; com.intellij.openapi.externalSystem.settings.c61f Merge ; com.intellij.openapi.externalSystem.settings.into idea ; ps = myLinkedProjectsSettings.get ( com.intellij.openapi.util.io.FileUtil.toSystemIndependentName ( linkedProjectPath ) ) ; for ( PS ps1 : myLinkedProjectsSettings.values ( ) ) { for ( java.lang.String modulePath : ps1.getModules ( ) ) { if ( linkedProjectPath.equals ( modulePath ) ) return ps1 ; } } com.intellij.openapi.externalSystem.settings.AbstractExternalSystemSettings.BRANCH ( 86680.0 ) ; }

Target:
public PS getLinkedProjectSettings ( @ org.jetbrains.annotations.NotNull java.lang.String linkedProjectPath ) { PS ps = myLinkedProjectsSettings.get ( linkedProjectPath ) ; if ( ps == null ) { for ( PS ps1 : myLinkedProjectsSettings.values ( ) ) { for ( java.lang.String modulePath : ps1.getModules ( ) ) { if ( linkedProjectPath.equals ( modulePath ) ) return ps1 ; } } } if ( ps == null ) { ps = myLinkedProjectsSettings.get ( com.intellij.openapi.util.io.FileUtil.toSystemIndependentName ( linkedProjectPath ) ) ; } return ps ; }
Source:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onVisibilityChanged ( changedView , visibility ) ; }

Target:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.onVisibilityChanged ( changedView , visibility ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } method.removeMarker ( com.android.jack.cfg.ControlFlowGraph.class ) ; com.android.jack.cfg.CfgMarkerRemover.Visitor v = new com.android.jack.cfg.CfgMarkerRemover.Visitor ( ) ; v.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 ; } method.removeMarker ( com.android.jack.cfg.ControlFlowGraph.class ) ; com.android.jack.cfg.CfgMarkerRemover.Visitor v = new com.android.jack.cfg.CfgMarkerRemover.Visitor ( ) ; v.accept ( method ) ; }
Source:
public java.nio.ByteBuffer putDouble ( int i , double x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putDouble ( ix ( checkIndex ( i , SizeOf.DOUBLE ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putDouble ( int i , double x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putDouble ( ix ( checkIndex ( i , SizeOf.DOUBLE ) ) , x ) ; return this ; }
Source:
public void testSetLogLevel ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mISupplicantMock.setDebugParams ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyBoolean ( ) , org.mockito.Matchers.anyBoolean ( ) ) ) . thenReturn ( mStatusSuccess ) ; assertFalse ( mDut.setLogLevel ( SupplicantStaIfaceHal.LOG_LEVEL_DEBUG ) ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( mDut.setLogLevel ( SupplicantStaIfaceHal.LOG_LEVEL_DEBUG ) ) ; org.mockito.Mockito.verify ( mISupplicantMock ) . setDebugParams ( org.mockito.Matchers.eq ( ISupplicant.DebugLevel.DEBUG ) , org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.eq ( false ) ) ; }

Target:
public void testSetLogLevel ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mISupplicantMock.setDebugParams ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyBoolean ( ) , org.mockito.Matchers.anyBoolean ( ) ) ) . thenReturn ( mStatusSuccess ) ; assertFalse ( mDut.setLogLevel ( true ) ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( mDut.setLogLevel ( true ) ) ; org.mockito.Mockito.verify ( mISupplicantMock ) . setDebugParams ( org.mockito.Matchers.eq ( ISupplicant.DebugLevel.DEBUG ) , org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.eq ( false ) ) ; }
Source:
public final java.nio.ByteBuffer putInt ( int i , int x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( checkIndex ( i , SizeOf.INT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putInt ( int i , int x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putInt ( ix ( checkIndex ( i , SizeOf.INT ) ) , x ) ; return this ; }
Source:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }
Source:
private static void reportMismatch ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Attr idNode , org.w3c.dom.Node inputTypeNode , java.lang.String message ) { com.android.tools.lint.detector.api.Location location ; if ( inputTypeNode != null ) { location = context.getLocation ( inputTypeNode ) ; com.android.tools.lint.detector.api.Location secondary = context.getLocation ( idNode ) ; secondary.setMessage ( "id defined here" ) ; location.setSecondary ( secondary ) ; } else { location = context.getLocation ( idNode ) ; } context.report ( com.android.tools.lint.checks.TextFieldDetector.ISSUE , idNode.getOwnerElement ( ) , location , message , null ) ; }

Target:
private static void reportMismatch ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Attr idNode , org.w3c.dom.Node inputTypeNode , java.lang.String message ) { com.android.tools.lint.detector.api.Location location ; if ( inputTypeNode != null ) { location = context.getLocation ( inputTypeNode ) ; com.android.tools.lint.detector.api.Location secondary = context.getLocation ( idNode ) ; secondary.setMessage ( "id defined here" ) ; location.setSecondary ( secondary ) ; } else { location = context.getLocation ( idNode ) ; } context.report ( com.android.tools.lint.checks.TextFieldDetector.ISSUE , idNode.getOwnerElement ( ) , location , message ) ; }
Source:
public void test_getX ( ) throws java.lang.Exception { java.security.KeyPairGenerator keyGen = java.security.KeyPairGenerator.getInstance ( "DSA" ) ; keyGen.initialize ( new java.security.spec.DSAParameterSpec ( Util.P , Util.Q , Util.G ) , new java.security.SecureRandom ( new tests.security.interfaces.MySecureRandomSpi ( ) , null ) { } ) ; java.security.KeyPair keyPair = keyGen.generateKeyPair ( ) ; java.security.interfaces.DSAPrivateKey key = ( ( java.security.interfaces.DSAPrivateKey ) ( keyPair.getPrivate ( ) ) ) ; assertNotNull ( "Invalid X value" , key.getX ( ) ) ; }

Target:
public void test_getX ( ) throws java.lang.Exception { java.security.KeyPairGenerator keyGen = java.security.KeyPairGenerator.getInstance ( "DSA" ) ; keyGen.initialize ( new java.security.spec.DSAParameterSpec ( Util.P , Util.Q , Util.G ) , new java.security.SecureRandom ( ) ) ; java.security.KeyPair keyPair = keyGen.generateKeyPair ( ) ; java.security.interfaces.DSAPrivateKey key = ( ( java.security.interfaces.DSAPrivateKey ) ( keyPair.getPrivate ( ) ) ) ; assertNotNull ( "Invalid X value" , key.getX ( ) ) ; }
Source:
public java.lang.String toShortDisplayString ( ) { if ( isDefault ( ) ) { return "default" ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; int index = 0 ; while ( index < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ) { com.android.ide.common.resources.configuration.ResourceQualifier qualifier = mQualifiers [ ( index ++ ) ] ; if ( qualifier != null ) { if ( ( result.length ( ) ) > 0 ) { result.append ( ',' ) ; } result.append ( qualifier.getShortDisplayValue ( ) ) ; } } return result.toString ( ) ; }

Target:
public java.lang.String toShortDisplayString ( ) { if ( isDefault ( ) ) { return "default" ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( 100 ) ; int index = 0 ; while ( index < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ) { com.android.ide.common.resources.configuration.ResourceQualifier qualifier = mQualifiers [ ( index ++ ) ] ; if ( qualifier != null ) { if ( ( result.length ( ) ) > 0 ) { result.append ( ',' ) ; } result.append ( qualifier.getShortDisplayValue ( ) ) ; } } return result.toString ( ) ; }
Source:
public java.lang.String iccTransmitApduBasicChannel ( int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }
Source:
public void dismissKeyguardLw ( ) { if ( ( ( mKeyguardDelegate ) != null ) && ( mKeyguardDelegate.isShowing ( ) ) ) { mHandler.post ( new java.lang.Runnable ( ) { public void run ( ) { if ( mKeyguardDelegate.isDismissable ( ) ) { mKeyguardDelegate.keyguardDone ( false , true ) ; } else { mKeyguardDelegate.dismiss ( ) ; } } } ) ; } }

Target:
public void dismissKeyguardLw ( ) { if ( ( ( mKeyguardDelegate ) != null ) && ( mKeyguardDelegate.isShowing ( ) ) ) { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mKeyguardDelegate.dismiss ( ) ; } } ) ; } }
Source:
private static void assertValues ( android.net.NetworkStatsHistory stats , long start , long end , long rxBytes , long rxPackets , long txBytes , long txPackets , int operations ) { final android.net.NetworkStatsHistory.Entry entry = stats.getValues ( start , end , null ) ; assertEquals ( "unexpected rxBytes" , rxBytes , entry.rxBytes ) ; assertEquals ( "unexpected rxPackets" , rxPackets , entry.rxPackets ) ; assertEquals ( "unexpected txBytes" , txBytes , entry.txBytes ) ; assertEquals ( "unexpected txPackets" , txPackets , entry.txPackets ) ; assertEquals ( "unexpected operations" , operations , entry.operations ) ; }

Target:
private static void assertValues ( android.net.NetworkStatsHistory stats , long start , long end , long rxBytes , long rxPackets , long txBytes , long txPackets , int operations ) { final android.net.NetworkStatsHistory.Entry entry = stats.getValues ( start , end , null ) ; org.junit.Assert.assertEquals ( "unexpected rxBytes" , rxBytes , entry.rxBytes ) ; org.junit.Assert.assertEquals ( "unexpected rxPackets" , rxPackets , entry.rxPackets ) ; org.junit.Assert.assertEquals ( "unexpected txBytes" , txBytes , entry.txBytes ) ; org.junit.Assert.assertEquals ( "unexpected txPackets" , txPackets , entry.txPackets ) ; org.junit.Assert.assertEquals ( "unexpected operations" , operations , entry.operations ) ; }
Source:
private com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }

Target:
private com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 , null , null ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }
Source:
private void checkSame ( java.io.File source , java.io.File dest ) { if ( source.equals ( dest ) ) { java.util.logging.Logger.getAnonymousLogger ( ) . info ( java.lang.String.format ( "%s l:%d ts:%d" , source , source.length ( ) , source.lastModified ( ) ) ) ; } }

Target:
private static void checkSame ( @ com.android.annotations.NonNull java.io.File source , @ com.android.annotations.NonNull java.io.File dest ) { if ( source.equals ( dest ) ) { java.util.logging.Logger.getAnonymousLogger ( ) . info ( java.lang.String.format ( "%s l:%d ts:%d" , source , source.length ( ) , source.lastModified ( ) ) ) ; } }
Source:
public static com.android.jack.library.OutputJackLibrary getOutputLibrary ( @ javax.annotation.Nonnull com.android.sched.vfs.InputOutputVFS vfs , @ javax.annotation.Nonnull java.lang.String emitterId , @ javax.annotation.Nonnull java.lang.String emitterVersion ) { if ( com.android.sched.util.config.ThreadConfig.get ( com.android.jack.library.JackLibraryFactory.GENERATE_JACKLIB_DIGEST ) . booleanValue ( ) ) { vfs = new com.android.sched.vfs.MessageDigestInputOutputVFS ( vfs , com.android.sched.util.config.ThreadConfig.get ( com.android.jack.library.JackLibraryFactory.MESSAGE_DIGEST_ALGO ) ) ; } return new com.android.jack.library.v0001.OutputJackLibraryImpl ( vfs , emitterId , emitterVersion ) ; }

Target:
public static com.android.jack.library.OutputJackLibrary getOutputLibrary ( @ javax.annotation.Nonnull com.android.sched.vfs.InputOutputVFS vfs , @ javax.annotation.Nonnull java.lang.String emitterId , @ javax.annotation.Nonnull java.lang.String emitterVersion ) { return new com.android.jack.library.v0001.OutputJackLibraryImpl ( vfs , emitterId , emitterVersion ) ; }
Source:
protected final java.lang.Object get0 ( int n ) { try { java.lang.Object result = arr [ n ] ; if ( result == null ) { throw new java.lang.NullPointerException ( ( "unset: " + n ) ) ; } return result ; } catch ( java.lang.ArrayIndexOutOfBoundsException ex ) { return throwIndex ( n ) ; } }

Target:
protected final java.lang.Object get0 ( int n ) { java.lang.Object result = arr [ n ] ; assert result != null ; return result ; }
Source:
public void initialize ( int strength , java.security.SecureRandom random ) { this . strength = strength ; if ( random != null ) { this . random = random ; } java.security.spec.ECGenParameterSpec ecParams = ( ( java.security.spec.ECGenParameterSpec ) ( org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi.EC.ecParameters.get ( org.bouncycastle.util.Integers.valueOf ( strength ) ) ) ) ; if ( ecParams != null ) { try { initialize ( ecParams , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidParameterException ( "key size not configurable." ) ; } } else { throw new java.security.InvalidParameterException ( "unknown key size." ) ; } }

Target:
public void initialize ( int strength , java.security.SecureRandom random ) { this . strength = strength ; if ( random != null ) { this . random = random ; } java.security.spec.ECGenParameterSpec ecParams = ( ( java.security.spec.ECGenParameterSpec ) ( org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi.EC.ecParameters.get ( org.bouncycastle.util.Integers.valueOf ( strength ) ) ) ) ; if ( ecParams == null ) { throw new java.security.InvalidParameterException ( "unknown key size." ) ; } try { initialize ( ecParams , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidParameterException ( "key size not configurable." ) ; } }
Source:
public void onCameraPermissionGranted ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.onCameraPermissionGranted" , "" ) ; com.android.dialer.util.PermissionsUtil.setCameraPrivacyToastShown ( mContext ) ; enableCamera ( mPrimaryCall.getVideoCall ( ) , isCameraRequired ( ) ) ; showVideoUi ( mPrimaryCall.getVideoState ( ) , mPrimaryCall.getState ( ) , mPrimaryCall.getVideoTech ( ) . getSessionModificationState ( ) , mPrimaryCall.isRemotelyHeld ( ) ) ; com.android.incallui.InCallPresenter.getInstance ( ) . getInCallCameraManager ( ) . onCameraPermissionGranted ( ) ; }

Target:
public void onCameraPermissionGranted ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.onCameraPermissionGranted" , "" ) ; com.android.dialer.util.PermissionsUtil.setCameraPrivacyToastShown ( mContext ) ; enableCamera ( mPrimaryCall , isCameraRequired ( ) ) ; showVideoUi ( mPrimaryCall.getVideoState ( ) , mPrimaryCall.getState ( ) , mPrimaryCall.getVideoTech ( ) . getSessionModificationState ( ) , mPrimaryCall.isRemotelyHeld ( ) ) ; com.android.incallui.InCallPresenter.getInstance ( ) . getInCallCameraManager ( ) . onCameraPermissionGranted ( ) ; }
Source:
public synchronized void kill ( ) { if ( sendCommand ( com.android.ddmlib.EmulatorConsole.COMMAND_KILL ) ) { com.android.ddmlib.EmulatorConsole.removeConsole ( mPort ) ; try { mSocketChannel.close ( ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.w ( com.android.ddmlib.EmulatorConsole.LOG_TAG , "Failed to close EmulatorConsole channel" ) ; } } }

Target:
public synchronized void close ( ) { if ( ( mPort ) == ( - 1 ) ) { return ; } com.android.ddmlib.EmulatorConsole.removeConsole ( mPort ) ; try { if ( ( mSocketChannel ) != null ) { mSocketChannel.close ( ) ; } mSocketChannel = null ; mPort = - 1 ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.w ( com.android.ddmlib.EmulatorConsole.LOG_TAG , "Failed to close EmulatorConsole channel" ) ; } }
Source:
private static java.lang.String sanitize ( @ com.android.annotations.NonNull java.lang.String str ) { if ( str.startsWith ( AndroidTargetHash.PLATFORM_HASH_PREFIX ) ) { java.lang.String platform = str.substring ( AndroidTargetHash.PLATFORM_HASH_PREFIX.length ( ) ) ; if ( ( ! ( platform.isEmpty ( ) ) ) && ( ! ( java.lang.Character.isDigit ( platform.charAt ( 0 ) ) ) ) ) { return str ; } } str = str.toLowerCase ( java.util.Locale.US ) . replaceAll ( "[^a-z0-9_.-]+" , "_" ) . replaceAll ( "_+" , "_" ) ; return str ; }

Target:
private static java.lang.String sanitize ( @ com.android.annotations.NonNull java.lang.String str ) { str = str.toLowerCase ( java.util.Locale.US ) . replaceAll ( "[^a-z0-9_.-]+" , "_" ) . replaceAll ( "_+" , "_" ) ; return str ; }
Source:
private void initif ( java.lang.String hostName , byte [ ] addr , java.net.NetworkInterface nif ) throws java.net.UnknownHostException { holder ( ) . hostName = hostName ; int family = - 1 ; holder6.init ( addr , nif ) ; if ( ( addr.length ) == ( java.net.Inet6Address.INADDRSZ ) ) { family = AF_INET6 ; } holder.init ( hostName , family ) ; }

Target:
private void initif ( java.lang.String hostName , byte [ ] addr , java.net.NetworkInterface nif ) throws java.net.UnknownHostException { int family = - 1 ; holder6.init ( addr , nif ) ; if ( ( addr.length ) == ( java.net.Inet6Address.INADDRSZ ) ) { family = AF_INET6 ; } holder.init ( hostName , family ) ; }
Source:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.IllegalStateException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.internal.stub.SmsImplBase.DELIVER_STATUS_ERROR ) ; } } }

Target:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.RuntimeException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.RuntimeException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.internal.stub.SmsImplBase.DELIVER_STATUS_ERROR ) ; } } }
Source:
private void updatePlayPause ( ) { android.widget.ImageButton b = ( ( android.widget.ImageButton ) ( findViewById ( R.id.playpause ) ) ) ; if ( b != null ) { if ( mPlayer.isPlaying ( ) ) { b.setImageResource ( R.drawable.btn_playback_ic_pause_small ) ; } else { b.setImageResource ( R.drawable.btn_playback_ic_play_small ) ; mProgressRefresher.removeCallbacksAndMessages ( null ) ; } } }

Target:
private void updatePlayPause ( ) { android.widget.ImageButton b = ( ( android.widget.ImageButton ) ( findViewById ( R.id.playpause ) ) ) ; if ( ( b != null ) && ( ( mPlayer ) != null ) ) { if ( mPlayer.isPlaying ( ) ) { b.setImageResource ( R.drawable.btn_playback_ic_pause_small ) ; } else { b.setImageResource ( R.drawable.btn_playback_ic_play_small ) ; mProgressRefresher.removeCallbacksAndMessages ( null ) ; } } }
Source:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { result = com.google.devtools.common.options.OptionsData.of ( optionsClasses ) ; com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }

Target:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { result = com.google.devtools.common.options.OptionsData.from ( optionsClasses ) ; com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getFrameworkResources ( ) { if ( ( mEditedFile ) != null ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( target ) ; if ( data != null ) { return data.getFrameworkResources ( ) ; } } } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getFrameworkResources ( com.android.sdklib.IAndroidTarget target ) { if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTargetData ( target ) ; if ( data != null ) { return data.getFrameworkResources ( ) ; } } return null ; }
Source:
static void setFloat ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , float value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void setFloat ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , float value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public void testDelete ( ) throws java.lang.Exception { assertTrue ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.password ( android.security.tests.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.put ( android.security.tests.KeyStoreTest.TEST_KEYNAME , android.security.tests.KeyStoreTest.TEST_KEYVALUE ) ; assertTrue ( java.util.Arrays.equals ( android.security.tests.KeyStoreTest.TEST_KEYVALUE , mKeyStore.get ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ) ; assertTrue ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; assertNull ( mKeyStore.get ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; }

Target:
public void testDelete ( ) throws java.lang.Exception { assertFalse ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.password ( android.security.tests.KeyStoreTest.TEST_PASSWD ) ; assertFalse ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.put ( android.security.tests.KeyStoreTest.TEST_KEYNAME , android.security.tests.KeyStoreTest.TEST_KEYVALUE ) ; assertTrue ( java.util.Arrays.equals ( android.security.tests.KeyStoreTest.TEST_KEYVALUE , mKeyStore.get ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ) ; assertTrue ( mKeyStore.delete ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; assertNull ( mKeyStore.get ( android.security.tests.KeyStoreTest.TEST_KEYNAME ) ) ; }
Source:
public void run ( ) { getUiElementNode ( ) . getEditor ( ) . editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { if ( mCheckbox.getSelection ( ) ) { boolean create = true ; if ( ( mUndoXmlNode ) != null ) { create = ! ( restoreApplicationNode ( ) ) ; } if ( create ) { getUiElementNode ( ) . createXmlNode ( ) ; } } else { removeApplicationNode ( ) ; } } } ) ; }

Target:
public void run ( ) { if ( mCheckbox.getSelection ( ) ) { boolean create = true ; if ( ( mUndoXmlNode ) != null ) { create = ! ( restoreApplicationNode ( ) ) ; } if ( create ) { getUiElementNode ( ) . createXmlNode ( ) ; } } else { removeApplicationNode ( ) ; } }
Source:
public android.util.Pair < java.lang.Long , java.lang.Long > getBackoff ( android.accounts.Account account , java.lang.String providerName ) { synchronized ( mAuthorities ) { android.content.SyncStorageEngine.AuthorityInfo authority = getAuthorityLocked ( account , providerName , "getBackoff" ) ; if ( ( authority == null ) || ( ( authority.backoffTime ) < 0 ) ) { return null ; } return android.util.Pair.create ( authority.backoffTime , authority.backoffDelay ) ; } }

Target:
public android.util.Pair < java.lang.Long , java.lang.Long > getBackoff ( android.accounts.Account account , int userId , java.lang.String providerName ) { synchronized ( mAuthorities ) { android.content.SyncStorageEngine.AuthorityInfo authority = getAuthorityLocked ( account , userId , providerName , "getBackoff" ) ; if ( ( authority == null ) || ( ( authority.backoffTime ) < 0 ) ) { return null ; } return android.util.Pair.create ( authority.backoffTime , authority.backoffDelay ) ; } }
Source:
protected void runImpl ( final java.lang.String javaPkgName , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { try { if ( ! ( mTestStop ) ) { com.android.cts.Log.d ( "run in individual mode..." ) ; runInIndividualMode ( javaPkgName , profile ) ; } } catch ( com.android.cts.DeviceDisconnectedException e ) { cleanUp ( ) ; throw e ; } }

Target:
protected void runImpl ( final java.lang.String javaPkgName ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { try { if ( ! ( mTestStop ) ) { com.android.cts.Log.d ( "run in individual mode..." ) ; runInIndividualMode ( javaPkgName ) ; } } catch ( com.android.cts.DeviceDisconnectedException e ) { cleanUp ( ) ; throw e ; } }
Source:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTarget ( mEditedFile.getProject ( ) ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.dialogs.Dialog.OK ) ) { final com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }

Target:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.dialogs.Dialog.OK ) ) { final com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }
Source:
public void run ( ) { while ( ! ( mCurrentDevice.isOnline ( ) ) ) { try { java.lang.Thread.sleep ( com.android.ddmuilib.logcat.LogCatReceiver.DEVICE_POLL_INTERVAL_MSEC ) ; } catch ( java.lang.InterruptedException e ) { return ; } } try { mCurrentDevice.executeShellCommand ( com.android.ddmuilib.logcat.LogCatReceiver.LOGCAT_COMMAND , mCurrentLogCatOutputReceiver , 0 ) ; } catch ( java.lang.Exception e ) { com.android.ddmlib.Log.e ( "Unexpected error while launching logcat. Try reselecting the device." , e ) ; } }

Target:
public void run ( ) { while ( ( ( mCurrentDevice ) != null ) && ( ! ( mCurrentDevice.isOnline ( ) ) ) ) { try { java.lang.Thread.sleep ( com.android.ddmuilib.logcat.LogCatReceiver.DEVICE_POLL_INTERVAL_MSEC ) ; } catch ( java.lang.InterruptedException e ) { return ; } } try { if ( ( mCurrentDevice ) != null ) { mCurrentDevice.executeShellCommand ( com.android.ddmuilib.logcat.LogCatReceiver.LOGCAT_COMMAND , mCurrentLogCatOutputReceiver , 0 ) ; } } catch ( java.lang.Exception e ) { com.android.ddmlib.Log.e ( "Unexpected error while launching logcat. Try reselecting the device." , e ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { boolean success = false ; try { new com.android.commands.sm.Sm ( ) . run ( args ) ; success = true ; } catch ( java.lang.Exception e ) { if ( e instanceof java.lang.IllegalArgumentException ) { com.android.commands.sm.Sm.showUsage ( ) ; } android.util.Log.e ( com.android.commands.sm.Sm.TAG , "Error" , e ) ; java.lang.System.err.println ( ( "Error: " + e ) ) ; } java.lang.System.exit ( ( success ? 0 : 1 ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { boolean success = false ; try { new com.android.commands.sm.Sm ( ) . run ( args ) ; success = true ; } catch ( java.lang.Exception e ) { if ( e instanceof java.lang.IllegalArgumentException ) { com.android.commands.sm.Sm.showUsage ( ) ; java.lang.System.exit ( 1 ) ; } android.util.Log.e ( com.android.commands.sm.Sm.TAG , "Error" , e ) ; java.lang.System.err.println ( ( "Error: " + e ) ) ; } java.lang.System.exit ( ( success ? 0 : 1 ) ) ; }
Source:
public com.android.ide.common.api.DropFeedback onDropMove ( @ com.android.annotations.NonNull com.android.ide.common.api.INode targetNode , @ com.android.annotations.NonNull com.android.ide.common.api.IDragElement [ ] elements , @ com.android.annotations.Nullable com.android.ide.common.api.DropFeedback feedback , @ com.android.annotations.NonNull com.android.ide.common.api.Point p ) { feedback.requestPaint = true ; com.android.ide.common.layout.grid.GridDropHandler handler = ( ( com.android.ide.common.layout.grid.GridDropHandler ) ( feedback.userData ) ) ; handler.computeMatches ( feedback , p ) ; return feedback ; }

Target:
public com.android.ide.common.api.DropFeedback onDropMove ( @ com.android.annotations.NonNull com.android.ide.common.api.INode targetNode , @ com.android.annotations.NonNull com.android.ide.common.api.IDragElement [ ] elements , @ com.android.annotations.Nullable com.android.ide.common.api.DropFeedback feedback , @ com.android.annotations.NonNull com.android.ide.common.api.Point p ) { if ( feedback == null ) { return null ; } feedback.requestPaint = true ; com.android.ide.common.layout.grid.GridDropHandler handler = ( ( com.android.ide.common.layout.grid.GridDropHandler ) ( feedback.userData ) ) ; handler.computeMatches ( feedback , p ) ; return feedback ; }
Source:
private void set ( final int local , final java.lang.Object type ) { maxLocals = java.lang.Math.max ( maxLocals , local ) ; while ( local >= ( locals.size ( ) ) ) { locals.add ( Opcodes.TOP ) ; } locals.set ( local , type ) ; }

Target:
private void set ( final int local , final java.lang.Object type ) { maxLocals = java.lang.Math.max ( maxLocals , ( local + 1 ) ) ; while ( local >= ( locals.size ( ) ) ) { locals.add ( Opcodes.TOP ) ; } locals.set ( local , type ) ; }
Source:
public final java.nio.ByteBuffer putDouble ( int i , double x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putDouble ( ix ( checkIndex ( i , SizeOf.DOUBLE ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putDouble ( int i , double x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putDouble ( ix ( checkIndex ( i , SizeOf.DOUBLE ) ) , x ) ; return this ; }
Source:
void test ( ) { java.util.List < java.lang.String > result = new java.util.ArrayList ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . mPosted ) ; if ( ( result.size ( ) ) == 0 ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; BRANCH ( ( ( 39808.0 - ( cts ) ) - ( dev ) ) ) ; } next ( ) ; }

Target:
protected void test ( ) { if ( ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) ) == null ) { status = PASS ; } else { java.util.List < java.lang.String > result = new java.util.ArrayList ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . mPosted ) ; if ( ( result.size ( ) ) == 0 ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } } next ( ) ; }