auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static long getEarliestEndTime ( java.util.List < com.android.tv.dvr.ScheduledRecording > recordings ) { long earliest = java.lang.Long.MAX_VALUE ; for ( com.android.tv.dvr.ScheduledRecording recording : recordings ) { if ( earliest > ( recording.getEndTimeMs ( ) ) ) { earliest = recording.getEndTimeMs ( ) ; } } return earliest ; }

Target:
private static long getEarliestEndTime ( java.util.List < com.android.tv.dvr.data.ScheduledRecording > recordings ) { long earliest = java.lang.Long.MAX_VALUE ; for ( com.android.tv.dvr.data.ScheduledRecording recording : recordings ) { if ( earliest > ( recording.getEndTimeMs ( ) ) ) { earliest = recording.getEndTimeMs ( ) ; } } return earliest ; }
Source:
protected void runChild ( final vogar.target.junit.VogarTest child , org.junit.runner.notification.RunNotifier notifier ) { runLeaf ( new org.junit.runners.model.Statement ( ) { @ java.lang.Override public void evaluate ( ) throws java.lang.Throwable { child.run ( ) ; } } , describeChild ( child ) , notifier ) ; }

Target:
protected void runChild ( final vogar.target.junit.VogarTest child , org.junit.runner.notification.RunNotifier notifier ) { runLeaf ( new org.junit.runners.model.Statement ( ) { @ java.lang.Override public void evaluate ( ) throws java.lang.Throwable { runWithTimeout ( child ) ; } } , describeChild ( child ) , notifier ) ; if ( vmIsUnstable ) { throw new vogar.target.junit.VmIsUnstableException ( ) ; } }
Source:
public final double getDouble ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }

Target:
final void get ( float [ ] dst , int dstOffset , int floatCount ) { int byteCount = checkGetBounds ( SizeOf.FLOAT , dst.length , dstOffset , floatCount ) ; this . block.peekFloatArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , floatCount , order.needsSwap ) ; position += byteCount ; }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.GOOGLE_PLAY_BUY_BUTTON_RES ) . textContains ( "$" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { android.support.test.uiautomator.UiSelector payButton = ( ( testFramework.getApi ( ) ) >= 27 ) ? new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.Button" ) . packageName ( "com.android.vending" ) : new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.GOOGLE_PLAY_BUY_BUTTON_RES ) ; return device.findObject ( payButton.textContains ( "$" ) ) . exists ( ) ; }
Source:
public int syncModifyPasspointManagementObject ( com.android.internal.util.AsyncChannel channel , java.lang.String fqdn , java.util.List < android.net.wifi.PasspointManagementObjectDefinition > managementObjectDefinitions ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putString ( "FQDN" , fqdn ) ; bundle.putParcelableList ( "MOS" , managementObjectDefinitions ) ; android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_MODIFY_PASSPOINT_MO , bundle ) ; int result = resultMsg.arg1 ; resultMsg.recycle ( ) ; return result ; }

Target:
public void setIpReachabilityDisconnectEnabled ( boolean enabled ) { mIpReachabilityDisconnectEnabled = enabled ; }
Source:
private void updateEnclosingType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { com.android.jack.ir.ast.JClassOrInterface enclosingType = type.getEnclosingType ( ) ; while ( enclosingType instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { if ( ( ! ( mustBeRemovedInternal ( enclosingType ) ) ) || ( enclosingType.isExternal ( ) ) ) { break ; } enclosingType = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( enclosingType ) ) . getEnclosingType ( ) ; } type.setEnclosingType ( enclosingType ) ; }

Target:
private void updateEnclosingType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { com.android.jack.ir.ast.JClassOrInterface enclosingType = type.getEnclosingType ( ) ; while ( enclosingType instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { if ( ( ! ( mustBeRemovedInternal ( enclosingType ) ) ) || ( ! ( enclosingType.isToEmit ( ) ) ) ) { break ; } enclosingType = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( enclosingType ) ) . getEnclosingType ( ) ; } type.setEnclosingType ( enclosingType ) ; }
Source:
public static int getSocketLocalPort ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { java.net.SocketAddress sa = Libcore.os.getsockname ( fd ) ; java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( sa ) ) ; return isa.getPort ( ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static java.net.InetSocketAddress getLocalInetSocketAddress ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { return ( ( java.net.InetSocketAddress ) ( Libcore.os.getsockname ( fd ) ) ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
private static boolean isClassElement ( com.android.ide.eclipse.adt.internal.editors.Hyperlinks.XmlContext context ) { if ( ( context.getAttribute ( ) ) != null ) { return false ; } java.lang.String tag = context.getElement ( ) . getTagName ( ) ; return ( ( tag.indexOf ( '.' ) ) != ( - 1 ) ) && ( com.android.ide.eclipse.adt.internal.editors.Hyperlinks.CLASS_PATTERN.matcher ( tag ) . matches ( ) ) ; }

Target:
private static boolean isClassElement ( com.android.ide.eclipse.adt.internal.editors.Hyperlinks.XmlContext context ) { if ( ( context.getAttribute ( ) ) != null ) { return false ; } java.lang.String tag = context.getElement ( ) . getTagName ( ) ; return com.android.ide.eclipse.adt.internal.editors.Hyperlinks.isViewClassName ( tag ) ; }
Source:
public void check ( final int api ) { }

Target:
public void check ( final int api ) { if ( api == ( org.objectweb.asm.Opcodes.ASM4 ) ) { if ( ( ( visibleTypeAnnotations ) != null ) && ( ( visibleTypeAnnotations.size ( ) ) > 0 ) ) { throw new java.lang.RuntimeException ( ) ; } if ( ( ( invisibleTypeAnnotations ) != null ) && ( ( invisibleTypeAnnotations.size ( ) ) > 0 ) ) { throw new java.lang.RuntimeException ( ) ; } } }
Source:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.parameterAnnotations ) != null ) { return m.parameterAnnotations.get ( parameterIndex ) ; } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = m.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
boolean doRename ( int status , android.content.pm.PackageParser.Package pkg , java.lang.String oldCodePath ) { if ( status != ( android.content.pm.PackageManager.INSTALL_SUCCEEDED ) ) { cleanUp ( move.toUuid ) ; return false ; } pkg.applicationInfo.volumeUuid = pkg.volumeUuid ; pkg.applicationInfo.setCodePath ( pkg.codePath ) ; pkg.applicationInfo.setBaseCodePath ( pkg.baseCodePath ) ; pkg.applicationInfo.setSplitCodePaths ( pkg.splitCodePaths ) ; pkg.applicationInfo.setResourcePath ( pkg.codePath ) ; pkg.applicationInfo.setBaseResourcePath ( pkg.baseCodePath ) ; pkg.applicationInfo.setSplitResourcePaths ( pkg.splitCodePaths ) ; return true ; }

Target:
boolean doRename ( int status , android.content.pm.PackageParser.Package pkg , java.lang.String oldCodePath ) { if ( status != ( android.content.pm.PackageManager.INSTALL_SUCCEEDED ) ) { cleanUp ( move.toUuid ) ; return false ; } pkg.setApplicationVolumeUuid ( pkg.volumeUuid ) ; pkg.setApplicationInfoCodePath ( pkg.codePath ) ; pkg.setApplicationInfoBaseCodePath ( pkg.baseCodePath ) ; pkg.setApplicationInfoSplitCodePaths ( pkg.splitCodePaths ) ; pkg.setApplicationInfoResourcePath ( pkg.codePath ) ; pkg.setApplicationInfoBaseResourcePath ( pkg.baseCodePath ) ; pkg.setApplicationInfoSplitResourcePaths ( pkg.splitCodePaths ) ; return true ; }
Source:
public java.lang.String installRemotePackage ( java.lang.String remoteFilePath , boolean reinstall ) throws com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.Device.InstallReceiver receiver = new com.android.ddmlib.Device.InstallReceiver ( ) ; java.lang.String cmd = java.lang.String.format ( ( reinstall ? "pm install -r \"%1$s\"" : "pm install \"%1$s\"" ) , remoteFilePath ) ; executeShellCommand ( cmd , receiver ) ; return receiver.getErrorMessage ( ) ; }

Target:
public java.lang.String installRemotePackage ( java.lang.String remoteFilePath , boolean reinstall ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.Device.InstallReceiver receiver = new com.android.ddmlib.Device.InstallReceiver ( ) ; java.lang.String cmd = java.lang.String.format ( ( reinstall ? "pm install -r \"%1$s\"" : "pm install \"%1$s\"" ) , remoteFilePath ) ; executeShellCommand ( cmd , receiver , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; return receiver.getErrorMessage ( ) ; }
Source:
public void valid ( java.util.Date now ) throws java.security.cert.CertificateExpiredException , java.security.cert.CertificateNotYetValidException { if ( notBefore.after ( now ) ) { throw new java.security.cert.CertificateNotYetValidException ( ( "NotBefore: " + ( notBefore.toString ( ) ) ) ) ; } if ( notAfter.before ( now ) ) { throw new java.security.cert.CertificateExpiredException ( ( "NotAfter: " + ( notAfter.toString ( ) ) ) ) ; } }

Target:
public void valid ( java.util.Date now ) throws java.security.cert.CertificateExpiredException , java.security.cert.CertificateNotYetValidException { java.util.Objects.requireNonNull ( now ) ; if ( ( ( notBefore ) != null ) && ( notBefore.after ( now ) ) ) { throw new java.security.cert.CertificateNotYetValidException ( ( "NotBefore: " + ( notBefore.toString ( ) ) ) ) ; } if ( ( ( notAfter ) != null ) && ( notAfter.before ( now ) ) ) { throw new java.security.cert.CertificateExpiredException ( ( "NotAfter: " + ( notAfter.toString ( ) ) ) ) ; } }
Source:
public void removeExtras ( java.lang.String callId , java.util.List < java.lang.String > keys ) { if ( hasConnection ( callId ) ) { findConnectionForAction ( callId , "removeExtra" ) . removeExtras ( keys ) ; } else { findConferenceForAction ( callId , "removeExtra" ) . removeExtras ( keys ) ; } }

Target:
public void removeExtras ( java.lang.String callId , java.util.List < java.lang.String > keys , android.telecom.Logging.Session.Info sessionInfo ) { if ( hasConnection ( callId ) ) { findConnectionForAction ( callId , "removeExtra" ) . removeExtras ( keys ) ; } else { findConferenceForAction ( callId , "removeExtra" ) . removeExtras ( keys ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { java.util.OptionalLong ol = java.util.OptionalLong.of ( - 559038737 ) ; java.lang.System.out.println ( ( ( "ol.toString() -> '" + ( ol.toString ( ) ) ) + "'" ) ) ; java.lang.System.out.println ( "Redefining OptionalLong!" ) ; Main.doCommonClassRedefinition ( java.util.OptionalLong.class , Main.CLASS_BYTES , Main.DEX_BYTES ) ; java.lang.System.out.println ( ( ( "ol.toString() -> '" + ( ol.toString ( ) ) ) + "'" ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { art.Main.bindAgentJNIForClass ( Main.class ) ; java.util.OptionalLong ol = java.util.OptionalLong.of ( - 559038737 ) ; java.lang.System.out.println ( ( ( "ol.toString() -> '" + ( ol.toString ( ) ) ) + "'" ) ) ; java.lang.System.out.println ( "Redefining OptionalLong!" ) ; Main.doCommonClassRedefinition ( java.util.OptionalLong.class , Main.CLASS_BYTES , Main.DEX_BYTES ) ; java.lang.System.out.println ( ( ( "ol.toString() -> '" + ( ol.toString ( ) ) ) + "'" ) ) ; }
Source:
public void test_limiting_to_1method_and_run_for_SuiteTest_should_throw_exception ( ) { java.lang.Class < ? > target = vogar.target.junit3.SuiteTest.class ; try { vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "" , "testSimple" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; fail ( "should throw ClassCastException." ) ; } catch ( java.lang.ClassCastException e ) { } }

Target:
public void test_limiting_to_1method_and_run_for_SuiteTest_should_throw_exception ( ) { java.lang.Class < ? > target = vogar.target.junit3.SuiteTest.class ; try { vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "testSimple" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; fail ( "should throw ClassCastException." ) ; } catch ( java.lang.ClassCastException ignored ) { } }
Source:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { testPreloadDensityInner ( res , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }

Target:
public void testPreloadDensity_tvdpi ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final int densityDpi = mResources.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , 213 ) ; verifyPreloadDensityInner ( mResources , 213 ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mProv = new org.apache.harmony.security.tests.support.SpiEngUtils ( ) . new tests.api.javax.net.ssl.MyProvider ( "MySSLContextProvider" , "Provider for testing" , tests.api.javax.net.ssl.SSLContext2Test.srvSSLContext.concat ( "." ) . concat ( tests.api.javax.net.ssl.SSLContext2Test.defaultProtocol ) , tests.api.javax.net.ssl.SSLContext2Test.SSLContextProviderClass ) ; java.security.Security.insertProviderAt ( mProv , 1 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mProv = new org.apache.harmony.security.tests.support.SpiEngUtils ( ) . new org.apache.harmony.tests.javax.net.ssl.MyProvider ( "MySSLContextProvider" , "Provider for testing" , org.apache.harmony.tests.javax.net.ssl.SSLContext2Test.srvSSLContext.concat ( "." ) . concat ( org.apache.harmony.tests.javax.net.ssl.SSLContext2Test.defaultProtocol ) , org.apache.harmony.tests.javax.net.ssl.SSLContext2Test.SSLContextProviderClass ) ; java.security.Security.insertProviderAt ( mProv , 1 ) ; }
Source:
public void setFace ( android.renderscript.Type.CubemapFace cf ) { if ( ! ( mAdaptedAllocation.getType ( ) . hasFaces ( ) ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set Face when the allocation type does not include faces." ) ; } if ( ! ( mConstrainedFace ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set LOD when the adapter includes mipmaps." ) ; } if ( cf == null ) { throw new android.renderscript.RSIllegalArgumentException ( "Cannot set null face." ) ; } mSelectedFace = cf ; }

Target:
public void setFace ( android.renderscript.Type.CubemapFace cf ) { if ( ! ( mAdaptedAllocation.getType ( ) . hasFaces ( ) ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set Face when the allocation type does not include faces." ) ; } if ( mWindow.hasFaces ( ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set face when the adapter includes faces." ) ; } if ( cf == null ) { throw new android.renderscript.RSIllegalArgumentException ( "Cannot set null face." ) ; } mSelectedFace = cf ; updateOffsets ( ) ; }
Source:
public void test001 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST001 ) . addProperty ( "jack.transformations.boost-locked-region-priority" , "true" ) . addProperty ( "jack.transformations.boost-locked-region-priority.classname" , "com.android.jack.transformations.boostlockregionpriority.test001.jack.LockedRegion" ) . addProperty ( "jack.transformations.boost-locked-region-priority.request" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Request#request" ) ) . addProperty ( "jack.transformations.boost-locked-region-priority.reset" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Reset#reset" ) ) . compileAndRunTest ( ) ; }

Target:
public void test001 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST001 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addProperty ( "jack.transformations.boost-locked-region-priority" , "true" ) . addProperty ( "jack.transformations.boost-locked-region-priority.classname" , "com.android.jack.transformations.boostlockregionpriority.test001.jack.LockedRegion" ) . addProperty ( "jack.transformations.boost-locked-region-priority.request" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Request#request" ) ) . addProperty ( "jack.transformations.boost-locked-region-priority.reset" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Reset#reset" ) ) . compileAndRunTest ( ) ; }
Source:
public void setFocusData ( com.android.ddmlib.RawImage image , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { this . image = image ; this . viewNode = viewNode ; this . selected = null ; } notifyFocusChanged ( ) ; }

Target:
public void run ( ) { synchronized ( this ) { if ( ( this . image ) != null ) { this . image.dispose ( ) ; } this . image = image ; this . viewNode = viewNode ; this . selected = null ; } }
Source:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findHorizontalPatch ( int x , int y ) { if ( y < ( ( image.getHeight ( ) ) / 2 ) ) { return getHorizontalPatchTop ( x ) ; } else { return getHorizontalPaddingBottom ( x ) ; } }

Target:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findHorizontalPatch ( int x , int y ) { java.util.List < com.android.draw9patch.ui.Pair < java.lang.Integer > > markers ; com.android.draw9patch.ui.ImageViewer.UpdateRegion region ; if ( y < ( ( image.getHeight ( ) ) / 2 ) ) { markers = patchInfo.horizontalPatchMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.TOP_PATCH ; } else { markers = patchInfo.horizontalPaddingMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.BOTTOM_PADDING ; } return getContainingPatch ( markers , x , region ) ; }
Source:
com.android.sched.vfs.ReadZipFS.ZipVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.ReadZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
com.android.sched.vfs.ReadZipFS.ZipVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.ReadZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element != null ) { if ( element.isVDir ( ) ) { return ( ( com.android.sched.vfs.ReadZipFS.ZipVDir ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotDirectoryException ( getVDirLocation ( parent , name ) ) ; } } else { throw new com.android.sched.util.file.NoSuchFileException ( getVDirLocation ( parent , name ) ) ; } }
Source:
public void test_ja ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex ja = new libcore.icu.AlphabeticIndex ( java.util.Locale.JAPANESE ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ぁ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ァ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "日" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Smith" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "沈" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ᄀ" , "" ) ; }

Target:
public void test_ja ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ja = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.JAPANESE ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ぁ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ァ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "日" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Smith" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "沈" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ᄀ" , "" ) ; }
Source:
public void canUnrequestTethering ( ) throws java.lang.Exception { initTetheredStateMachine ( android.net.ConnectivityManager.TETHERING_BLUETOOTH , null ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_UNREQUESTED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mNMService , mStatsService , mTetherHelper ) ; inOrder.verify ( mNMService ) . untetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_AVAILABLE , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }

Target:
public void canUnrequestTethering ( ) throws java.lang.Exception { initTetheredStateMachine ( android.net.ConnectivityManager.TETHERING_BLUETOOTH , null ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_UNREQUESTED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mNMService , mStatsService , mTetherHelper ) ; inOrder.verify ( mNMService ) . untetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . updateInterfaceState ( mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_AVAILABLE , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; inOrder.verify ( mTetherHelper ) . updateLinkProperties ( org.mockito.Matchers.eq ( mTestedSm ) , org.mockito.Matchers.any ( android.net.LinkProperties.class ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }
Source:
public java.nio.charset.CoderResult call ( com.ibm.icu.charset.CharsetDecoderICU decoder , java.lang.Object context , java.nio.ByteBuffer source , java.nio.CharBuffer target , java.nio.IntBuffer offsets , char [ ] buffer , int length , java.nio.charset.CoderResult cr ) { if ( context == null ) { return java.nio.charset.CoderResult.UNDERFLOW ; } else if ( ( ( java.lang.String ) ( context ) ) . equals ( com.ibm.icu.charset.CharsetCallback.SUB_STOP_ON_ILLEGAL ) ) { if ( ! ( cr.isUnmappable ( ) ) ) { return cr ; } else { return java.nio.charset.CoderResult.UNDERFLOW ; } } return cr ; }

Target:
public java.nio.charset.CoderResult call ( com.ibm.icu.charset.CharsetEncoderICU encoder , java.lang.Object context , java.nio.CharBuffer source , java.nio.ByteBuffer target , java.nio.IntBuffer offsets , char [ ] buffer , int length , int cp , java.nio.charset.CoderResult cr ) { if ( context == null ) { return java.nio.charset.CoderResult.UNDERFLOW ; } else if ( ( ( java.lang.String ) ( context ) ) . equals ( com.ibm.icu.charset.CharsetCallback.SUB_STOP_ON_ILLEGAL ) ) { if ( ! ( cr.isUnmappable ( ) ) ) { return cr ; } else { return java.nio.charset.CoderResult.UNDERFLOW ; } } return cr ; }
Source:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }

Target:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } com.android.build.gradle.ndk.internal.NdkConfiguration.createStripDebugTask ( tasks , binary , buildDir , ndkHandler ) ; }
Source:
protected void sendSms ( com.android.internal.telephony.gsm.SmsTracker tracker ) { java.util.HashMap < java.lang.String , java.lang.Object > map = tracker.mData ; byte [ ] smsc = ( ( byte [ ] ) ( map.get ( "smsc" ) ) ) ; byte [ ] pdu = ( ( byte [ ] ) ( map.get ( "pdu" ) ) ) ; android.os.Message reply = obtainMessage ( com.android.internal.telephony.gsm.EVENT_SEND_SMS_COMPLETE , tracker ) ; mCm.sendSMS ( com.android.internal.telephony.IccUtils.bytesToHexString ( smsc ) , com.android.internal.telephony.IccUtils.bytesToHexString ( pdu ) , reply ) ; }

Target:
protected void sendSms ( com.android.internal.telephony.gsm.SmsTracker tracker ) { java.util.HashMap < java.lang.String , java.lang.Object > map = tracker.mData ; byte [ ] smsc = ( ( byte [ ] ) ( map.get ( "smsc" ) ) ) ; byte [ ] pdu = ( ( byte [ ] ) ( map.get ( "pdu" ) ) ) ; android.os.Message reply = obtainMessage ( com.android.internal.telephony.gsm.EVENT_SEND_SMS_COMPLETE , tracker ) ; mCm.sendSMS ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( smsc ) , com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( pdu ) , reply ) ; }
Source:
public default com.google.common.collect.ImmutableList < java.lang.String > defaultWithLambda ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 1 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.DefaultInterfaceWithLambda.ZERO : java.lang.String.valueOf ( i ) ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }

Target:
public default java.util.List < java.lang.String > defaultWithLambda ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 1 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.DefaultInterfaceWithLambda.ZERO : java.lang.String.valueOf ( i ) ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
void replyFailed ( android.os.Message msg , int reason , java.lang.String description ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_FAILED ; reply.arg2 = msg.arg2 ; reply.obj = new android.net.wifi.WifiScanner.OperationResult ( reason , description ) ; try { msg.replyTo.send ( reply ) ; } catch ( android.os.RemoteException e ) { } } else { } }

Target:
void replySucceeded ( android.os.Message msg ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ; reply.arg2 = msg.arg2 ; if ( ( msg.obj ) != null ) { reply.obj = msg.obj ; } try { msg.replyTo.send ( reply ) ; mLog.trace ( "replySucceeded recvdMessage=%" ) . c ( msg.what ) . flush ( ) ; } catch ( android.os.RemoteException e ) { } } else { } }
Source:
public static com.android.dialer.searchfragment.remote.RemoteContactsCursor newInstance ( android.content.Context context , android.database.Cursor [ ] cursors , java.util.List < com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory > directories ) { com.android.dialer.common.Assert.checkArgument ( ( ( cursors.length ) == ( directories.size ( ) ) ) , "Directories and cursors must be the same size." ) ; android.database.Cursor [ ] cursorsWithHeaders = com.android.dialer.searchfragment.remote.RemoteContactsCursor.insertHeaders ( context , cursors , directories ) ; if ( ( cursorsWithHeaders.length ) > 0 ) { return new com.android.dialer.searchfragment.remote.RemoteContactsCursor ( cursorsWithHeaders ) ; } return null ; }

Target:
public static com.android.dialer.searchfragment.remote.RemoteContactsCursor newInstance ( android.content.Context context , android.database.Cursor [ ] cursors , java.util.List < com.android.dialer.searchfragment.remote.RemoteDirectoriesCursorLoader.Directory > directories ) { com.android.dialer.common.Assert.checkArgument ( ( ( cursors.length ) == ( directories.size ( ) ) ) , "Directories (%d) and cursors (%d) must be the same size." , directories.size ( ) , cursors.length ) ; android.database.Cursor [ ] cursorsWithHeaders = com.android.dialer.searchfragment.remote.RemoteContactsCursor.insertHeaders ( context , cursors , directories ) ; if ( ( cursorsWithHeaders.length ) > 0 ) { return new com.android.dialer.searchfragment.remote.RemoteContactsCursor ( cursorsWithHeaders ) ; } return null ; }
Source:
public java.lang.String toString ( ) { java.lang.String trafficStatsTag = "0x" + ( java.lang.Integer.toHexString ( getTrafficStatsTag ( ) ) ) ; return ( ( ( ( ( ( ( mCanceled ? "[X] " : "[ ] " ) + ( getUrl ( ) ) ) + " " ) + trafficStatsTag ) + " " ) + ( getPriority ( ) ) ) + " " ) + ( mSequence ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String trafficStatsTag = "0x" + ( java.lang.Integer.toHexString ( getTrafficStatsTag ( ) ) ) ; return ( ( ( ( ( ( ( isCanceled ( ) ? "[X] " : "[ ] " ) + ( getUrl ( ) ) ) + " " ) + trafficStatsTag ) + " " ) + ( getPriority ( ) ) ) + " " ) + ( mSequence ) ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { assert ( attribute.getName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) || ( attribute.getLocalName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) ; java.lang.String id = attribute.getValue ( ) ; mFileIds.add ( id ) ; mGlobalIds.add ( id ) ; if ( ( ( id.startsWith ( "@+" ) ) && ( ! ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ) ) && ( ! ( id.startsWith ( "@+android:id/" ) ) ) ) { java.lang.String message = java.lang.String.format ( "ID definitions *must* be of the form @+id/name; try using %1$s" , ( ( com.android.SdkConstants.NEW_ID_PREFIX ) + ( id.substring ( 2 ) . replace ( '/' , '_' ) ) ) ) ; context.report ( com.android.tools.lint.checks.WrongIdDetector.INVALID , attribute , context.getLocation ( attribute ) , message , null ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { assert ( attribute.getName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) || ( attribute.getLocalName ( ) . equals ( com.android.SdkConstants.ATTR_ID ) ) ; java.lang.String id = attribute.getValue ( ) ; mFileIds.add ( id ) ; mGlobalIds.add ( id ) ; if ( ( ( ( id.startsWith ( "@+" ) ) && ( ! ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ) ) && ( ! ( id.startsWith ( "@+android:id/" ) ) ) ) || ( ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) && ( ( id.indexOf ( '/' , com.android.SdkConstants.NEW_ID_PREFIX.length ( ) ) ) != ( - 1 ) ) ) ) { int nameStart = ( id.startsWith ( com.android.SdkConstants.NEW_ID_PREFIX ) ) ? com.android.SdkConstants.NEW_ID_PREFIX.length ( ) : 2 ; java.lang.String suggested = ( com.android.SdkConstants.NEW_ID_PREFIX ) + ( id.substring ( nameStart ) . replace ( '/' , '_' ) ) ; java.lang.String message = java.lang.String.format ( "ID definitions *must* be of the form @+id/name; try using %1$s" , suggested ) ; context.report ( com.android.tools.lint.checks.WrongIdDetector.INVALID , attribute , context.getLocation ( attribute ) , message , null ) ; } }
Source:
private java.nio.channels.SocketChannel openAdbConnection ( ) { com.android.ddmlib.Log.d ( "DeviceMonitor" , "Connecting to adb for Device List Monitoring..." ) ; java.nio.channels.SocketChannel adbChannel = null ; try { adbChannel = java.nio.channels.SocketChannel.open ( AndroidDebugBridge.sSocketAddr ) ; adbChannel.socket ( ) . setTcpNoDelay ( true ) ; } catch ( java.io.IOException e ) { } return adbChannel ; }

Target:
private java.nio.channels.SocketChannel openAdbConnection ( ) { com.android.ddmlib.Log.d ( "DeviceMonitor" , "Connecting to adb for Device List Monitoring..." ) ; java.nio.channels.SocketChannel adbChannel = null ; try { adbChannel = java.nio.channels.SocketChannel.open ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) ) ; adbChannel.socket ( ) . setTcpNoDelay ( true ) ; } catch ( java.io.IOException e ) { } return adbChannel ; }
Source:
private void setPhoto ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { glidePhotoManager.loadQuickContactBadge ( quickContactBadge , com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( voicemailEntry.numberAttributes ( ) ) . setFormattedNumber ( voicemailEntry.formattedNumber ( ) ) . build ( ) ) ; }

Target:
private void setPhoto ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { com.android.dialer.glidephotomanager.PhotoInfo.Builder photoInfoBuilder = com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( voicemailEntry.numberAttributes ( ) ) ; if ( ! ( android.text.TextUtils.isEmpty ( voicemailEntry.formattedNumber ( ) ) ) ) { photoInfoBuilder.setFormattedNumber ( voicemailEntry.formattedNumber ( ) ) ; } glidePhotoManager.loadQuickContactBadge ( quickContactBadge , photoInfoBuilder.build ( ) ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { mWifiManager.setWifiEnabled ( mInitialWiFiState ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { android.net.NetworkInfo.State expectedState = ( mInitialWiFiState ) ? NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED ; android.jobscheduler.cts.ConnectivityConstraintTest.ConnectivityActionReceiver receiver = new android.jobscheduler.cts.ConnectivityConstraintTest.ConnectivityActionReceiver ( android.net.ConnectivityManager.TYPE_WIFI , expectedState ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( ConnectivityManager.CONNECTIVITY_ACTION ) ; mContext.registerReceiver ( receiver , filter ) ; assertTrue ( mWifiManager.setWifiEnabled ( mInitialWiFiState ) ) ; assertTrue ( "Failure to restore previous WiFi state." , receiver.waitForStateChange ( ) ) ; mContext.unregisterReceiver ( receiver ) ; }
Source:
public void reset ( ) { com.intellij.openapi.updateSettings.impl.UpdateSettings settings = com.intellij.openapi.updateSettings.impl.UpdateSettings.getInstance ( ) ; myUpdatesSettingsPanel.myCheckForUpdates.setSelected ( settings.isCheckNeeded ( ) ) ; myUpdatesSettingsPanel.myUseSecureConnection.setSelected ( settings.isSecureConnection ( ) ) ; myUpdatesSettingsPanel.updateLastCheckedLabel ( ) ; myUpdatesSettingsPanel.setSelectedChannelType ( com.intellij.openapi.updateSettings.impl.ChannelStatus.fromCode ( settings.getUpdateChannelType ( ) ) ) ; }

Target:
public void reset ( ) { com.intellij.openapi.updateSettings.impl.UpdateSettings settings = com.intellij.openapi.updateSettings.impl.UpdateSettings.getInstance ( ) ; myUpdatesSettingsPanel.myCheckForUpdates.setSelected ( settings.isCheckNeeded ( ) ) ; myUpdatesSettingsPanel.myUseSecureConnection.setSelected ( settings.isSecureConnection ( ) ) ; myUpdatesSettingsPanel.updateLastCheckedLabel ( ) ; myUpdatesSettingsPanel.setSelectedChannelType ( com.intellij.openapi.updateSettings.impl.ChannelStatus.fromCode ( settings.getUpdateChannelType ( ) ) ) ; myUpdatesSettingsPanel.setEnabledExternalUpdateSources ( settings.getEnabledExternalUpdateSources ( ) ) ; }
Source:
void handleTimerInEmergencyCallbackMode ( int action ) { switch ( action ) { case com.android.internal.telephony.cdma.CDMAPhone.CANCEL_ECM_TIMER : removeCallbacks ( mExitEcmRunnable ) ; mEcmTimerResetRegistrants.notifyResult ( java.lang.Boolean.TRUE ) ; break ; case com.android.internal.telephony.cdma.CDMAPhone.RESTART_ECM_TIMER : long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.cdma.CDMAPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mEcmTimerResetRegistrants.notifyResult ( java.lang.Boolean.FALSE ) ; break ; default : android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "handleTimerInEmergencyCallbackMode, unsupported action " + action ) ) ; } }

Target:
void handleTimerInEmergencyCallbackMode ( int action ) { switch ( action ) { case com.android.internal.telephony.cdma.CDMAPhone.CANCEL_ECM_TIMER : removeCallbacks ( mExitEcmRunnable ) ; mEcmTimerResetRegistrants.notifyResult ( java.lang.Boolean.TRUE ) ; break ; case com.android.internal.telephony.cdma.CDMAPhone.RESTART_ECM_TIMER : long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.cdma.CDMAPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mEcmTimerResetRegistrants.notifyResult ( java.lang.Boolean.FALSE ) ; break ; default : android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "handleTimerInEmergencyCallbackMode, unsupported action " + action ) ) ; } }
Source:
public static java.util.zip.ZipEntry getZipEntry ( java.util.zip.ZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( entry == null ) throw new java.io.IOException ( ( ( "Entry " + entryPath ) + " not found" ) ) ; Runner.logger.info ( ( "entryPath: " + entryPath ) ) ; return entry ; }

Target:
public static java.util.zip.ZipEntry getZipEntry ( com.intellij.updater.MultiZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( entry == null ) throw new java.io.IOException ( ( ( "Entry " + entryPath ) + " not found" ) ) ; Runner.logger.info ( ( "entryPath: " + entryPath ) ) ; return entry ; }
Source:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { java.util.List < com.android.jack.ir.ast.JParameter > parameters = method.getParams ( ) ; int wordCount = ( method.isStatic ( ) ) ? 0 : 1 ; for ( com.android.jack.ir.ast.JParameter param : parameters ) { com.android.jack.ir.ast.JType paramType = param.getType ( ) ; if ( paramType == ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) { wordCount += 2 ; } else if ( paramType == ( JPrimitiveTypeEnum.DOUBLE.getType ( ) ) ) { wordCount += 2 ; } else { wordCount ++ ; } } return wordCount ; }

Target:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) ) . getWordCount ( ) ; } return wordCount ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aget_byte.d.T_aget_byte_1 t = new dot.junit.opcodes.aget_byte.d.T_aget_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aget_byte.d.T_aget_byte_5" , java.lang.VerifyError.class ) ; }
Source:
public final int startActivityWithConfig ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , int startFlags , android.content.res.Configuration config , android.os.Bundle options ) { enforceNotIsolatedCaller ( "startActivityWithConfig" ) ; int ret = mMainStack.startActivityMayWait ( caller , ( - 1 ) , intent , resolvedType , resultTo , resultWho , requestCode , startFlags , null , null , null , config , options , android.os.Binder.getOrigCallingUser ( ) ) ; return ret ; }

Target:
public final void activityResumed ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; mMainStack.activityResumed ( token ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { for ( int i = 0 ; i < 3 ; i ++ ) { com.android.ide.common.api.INode handle = node.appendChild ( LayoutConstants.FQCN_RADIO_BUTTON ) ; handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , java.lang.String.format ( "@+id/radio%d" , i ) ) ; if ( i == 0 ) { handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_CHECKED , com.android.ide.common.layout.LayoutConstants.VALUE_TRUE ) ; } } } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { for ( int i = 0 ; i < 3 ; i ++ ) { com.android.ide.common.api.INode handle = node.appendChild ( LayoutConstants.FQCN_RADIO_BUTTON ) ; handle.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , java.lang.String.format ( "@+id/radio%d" , i ) ) ; if ( i == 0 ) { handle.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_CHECKED , com.android.ide.common.layout.LayoutConstants.VALUE_TRUE ) ; } } } }
Source:
void createAndroidTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.model.AndroidComponentSpec androidSpec , com.android.build.gradle.internal.TaskManager taskManager , com.android.build.gradle.internal.SdkHandler sdkHandler , org.gradle.api.Project project , com.android.build.gradle.model.AndroidComponentModelSourceSet androidSources ) { com.android.build.gradle.model.DefaultAndroidComponentSpec spec = ( ( com.android.build.gradle.model.DefaultAndroidComponentSpec ) ( androidSpec ) ) ; for ( com.android.build.gradle.model.File file : sdkHandler.sdkLoader.repositories ) ; project.repositories.maven = $missing$ ; org.gradle.api.artifacts.repositories.MavenArtifactRepository repo ; repo.url = file.toURI ( ) ; }

Target:
public void createAndroidTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.model.AndroidComponentSpec androidSpec , com.android.build.gradle.internal.TaskManager taskManager , com.android.build.gradle.internal.SdkHandler sdkHandler , org.gradle.api.Project project , com.android.build.gradle.model.AndroidComponentModelSourceSet androidSources ) { for ( final java.io.File file : sdkHandler.getSdkLoader ( ) . getRepositories ( ) ) { project.getRepositories ( ) . maven ( new org.gradle.api.Action < org.gradle.api.artifacts.repositories.MavenArtifactRepository > ( ) { @ java.lang.Override public void execute ( org.gradle.api.artifacts.repositories.MavenArtifactRepository repo ) { repo.setUrl ( file.toURI ( ) ) ; } } ) ; } }
Source:
public void testWithId_describeWithFailedResourceLookup ( ) { android.view.View view = new android.view.View ( context ) ; org.hamcrest.Matcher < android.view.View > matcher = android.support.test.espresso.matcher.ViewMatchers.withId ( 5 ) ; matcher.matches ( view ) ; android.support.test.espresso.matcher.ViewMatchers.assertThat ( matcher.toString ( ) , org.hamcrest.Matchers.is ( "with id: 5 (resource name not found)" ) ) ; }

Target:
public void withId_describeWithFailedResourceLookup ( ) { android.view.View view = new android.view.View ( context ) ; org.hamcrest.Matcher < android.view.View > matcher = android.support.test.espresso.matcher.ViewMatchers.withId ( 5 ) ; matcher.matches ( view ) ; android.support.test.espresso.matcher.ViewMatchers.assertThat ( matcher.toString ( ) , org.hamcrest.Matchers.is ( "with id: 5 (resource name not found)" ) ) ; }
Source:
public void ext ( ) throws java.lang.Exception { java.io.File extJack = com.android.jack.TestTools.createTempFile ( "ext" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.NoClasspathTest.EXT_SOURCELIST , com.android.jack.NoClasspathTest.corePath , extJack , true ) ; java.io.File ext = com.android.jack.TestTools.createTempFile ( "ext" , ".dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , extJack , ext , false ) ; }

Target:
public void ext ( ) throws java.lang.Exception { java.io.File extJack = com.android.jack.TestTools.createTempFile ( "ext" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.NoClasspathTest.EXT_SOURCELIST , com.android.jack.NoClasspathTest.corePath , extJack , true ) ; java.io.File extFolder = com.android.jack.TestTools.createTempDir ( "ext" , "dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , extJack , extFolder , false ) ; }
Source:
private void updateConfigForPhoneId ( int phoneId ) { if ( ( ( mConfigFromCarrierApp [ phoneId ] ) != null ) && ( ( getCarrierPackageForPhoneId ( phoneId ) ) == null ) ) { mConfigFromCarrierApp [ phoneId ] = null ; } mHandler.sendMessage ( mHandler.obtainMessage ( com.android.phone.CarrierConfigLoader.EVENT_FETCH_DEFAULT , phoneId , ( - 1 ) ) ) ; }

Target:
private void updateConfigForPhoneId ( int phoneId ) { if ( ( ( mConfigFromCarrierApp [ phoneId ] ) != null ) && ( ( getCarrierPackageForPhoneId ( phoneId ) ) == null ) ) { mConfigFromCarrierApp [ phoneId ] = null ; } mHandler.sendMessage ( mHandler.obtainMessage ( com.android.phone.CarrierConfigLoader.EVENT_DO_FETCH_DEFAULT , phoneId , ( - 1 ) ) ) ; }