auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( true , "keep-first" ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput ; jackOutput = runTest002 ( true , "keep-first" , false ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }
Source:
private int readInt ( java.io.FileInputStream fis , com.android.builder.internal.incremental.DependencyDataStore.ReusableBuffer buffers ) throws java.io.IOException { int read = fis.read ( buffers.intBuffer ) ; if ( read != 4 ) { throw new java.io.IOException ( "Failed to read path length" ) ; } java.nio.ByteBuffer b = java.nio.ByteBuffer.wrap ( buffers.intBuffer ) ; return b.getInt ( ) ; }

Target:
private static int readInt ( @ com.android.annotations.NonNull java.io.FileInputStream fis , @ com.android.annotations.NonNull com.android.builder.internal.incremental.DependencyDataStore.ReusableBuffer buffers ) throws java.io.IOException { int read = fis.read ( buffers.intBuffer ) ; if ( read != 4 ) { throw new java.io.IOException ( "Failed to read path length" ) ; } java.nio.ByteBuffer b = java.nio.ByteBuffer.wrap ( buffers.intBuffer ) ; return b.getInt ( ) ; }
Source:
private int getScanBand ( boolean isFullBandScan ) { if ( isFullBandScan ) { int freqBand = mStateMachine.getFrequencyBand ( ) ; if ( freqBand == ( android.net.wifi.WifiManager.WIFI_FREQUENCY_BAND_5GHZ ) ) { return android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ_WITH_DFS ; } else if ( freqBand == ( android.net.wifi.WifiManager.WIFI_FREQUENCY_BAND_2GHZ ) ) { return android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ ; } else { return android.net.wifi.WifiScanner.WIFI_BAND_BOTH_WITH_DFS ; } } else { return android.net.wifi.WifiScanner.WIFI_BAND_UNSPECIFIED ; } }

Target:
private int getScanBand ( boolean isFullBandScan ) { if ( isFullBandScan ) { return android.net.wifi.WifiScanner.WIFI_BAND_BOTH_WITH_DFS ; } else { return android.net.wifi.WifiScanner.WIFI_BAND_UNSPECIFIED ; } }
Source:
private com.android.internal.telephony.Phone getPhoneForAccount ( android.telecom.PhoneAccountHandle accountHandle , boolean isEmergency ) { if ( isEmergency ) { return com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; } int subId = com.android.phone.PhoneUtils.getSubIdForPhoneAccountHandle ( accountHandle ) ; if ( subId != ( android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID ) ) { int phoneId = com.android.internal.telephony.SubscriptionController.getInstance ( ) . getPhoneId ( subId ) ; return com.android.internal.telephony.PhoneFactory.getPhone ( phoneId ) ; } return null ; }

Target:
public com.android.internal.telephony.Phone getDefaultPhone ( ) { return com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] [ ] cc = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_peer_cert_chain ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertEqualCertificateChains ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) , cc ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] [ ] cc = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_peer_cert_chain ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertEqualCertificateChains ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) , cc ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
private android.graphics.Rect getVisibleBounds ( android.view.accessibility.AccessibilityNodeInfo node ) { if ( ! ( visible ) ) { return new android.graphics.Rect ( ) ; } android.graphics.Rect visibleBounds = getBounds ( ) ; io.appium.droiddriver.uiautomation.UiAutomationElement parent = getParent ( ) ; android.graphics.Rect parentBounds ; while ( parent != null ) { parentBounds = parent.getBounds ( ) ; visibleBounds.intersect ( parentBounds ) ; parent = parent.getParent ( ) ; } return visibleBounds ; }

Target:
private android.graphics.Rect getVisibleBounds ( android.view.accessibility.AccessibilityNodeInfo node ) { if ( ! ( visible ) ) { return new android.graphics.Rect ( ) ; } android.graphics.Rect visibleBounds = getBounds ( ) ; io.appium.droiddriver.uiautomation.UiAutomationElement parent = getParent ( ) ; android.graphics.Rect parentBounds ; while ( parent != null ) { parentBounds = parent.getBounds ( ) ; if ( ! ( visibleBounds.intersect ( parentBounds ) ) ) { return new android.graphics.Rect ( ) ; } parent = parent.getParent ( ) ; } return visibleBounds ; }
Source:
private java.util.List < com.android.jack.analysis.DefinitionMarker > getDefinitions ( @ javax.annotation.Nonnull java.util.List < com.android.jack.analysis.DefinitionMarker > definitions , @ javax.annotation.Nonnull java.util.BitSet in ) { java.util.List < com.android.jack.analysis.DefinitionMarker > reachingDefs = new java.util.ArrayList < com.android.jack.analysis.DefinitionMarker > ( ) ; for ( int i = in.nextSetBit ( 0 ) ; i >= 0 ; i = in.nextSetBit ( ( i + 1 ) ) ) { assert ! ( reachingDefs.contains ( definitions.get ( i ) ) ) ; reachingDefs.add ( definitions.get ( i ) ) ; } return reachingDefs ; }

Target:
private java.util.List < com.android.jack.analysis.DefinitionMarker > getDefinitions ( @ javax.annotation.Nonnull java.util.List < com.android.jack.analysis.DefinitionMarker > definitions , @ javax.annotation.Nonnull java.util.BitSet in ) { java.util.List < com.android.jack.analysis.DefinitionMarker > reachingDefs = new java.util.ArrayList < com.android.jack.analysis.DefinitionMarker > ( ) ; for ( int i = in.nextSetBit ( 0 ) ; i >= 0 ; i = in.nextSetBit ( ( i + 1 ) ) ) { reachingDefs.add ( definitions.get ( i ) ) ; } return reachingDefs ; }
Source:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( this . equals ( com.android.sched.vfs.VPath.ROOT ) ) ; pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }

Target:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { if ( ! ( this . equals ( com.android.sched.vfs.VPath.ROOT ) ) ) { pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; } pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }
Source:
private void checkReturnType ( com.android.dx.rop.type.Type encountered ) { com.android.dx.rop.type.Type returnType = machine.getPrototype ( ) . getReturnType ( ) ; if ( ! ( com.android.dx.cf.code.Merger.isPossiblyAssignableFrom ( returnType , encountered ) ) ) { throw new com.android.dx.cf.code.SimException ( ( ( ( ( "return type mismatch: prototype " + "indicates " ) + ( returnType.toHuman ( ) ) ) + ", but encountered type " ) + ( encountered.toHuman ( ) ) ) ) ; } }

Target:
private void checkReturnType ( com.android.dx.rop.type.Type encountered ) { com.android.dx.rop.type.Type returnType = machine.getPrototype ( ) . getReturnType ( ) ; if ( ! ( com.android.dx.cf.code.Merger.isPossiblyAssignableFrom ( returnType , encountered ) ) ) { fail ( ( ( ( ( "return type mismatch: prototype " + "indicates " ) + ( returnType.toHuman ( ) ) ) + ", but encountered type " ) + ( encountered.toHuman ( ) ) ) ) ; } }
Source:
public void notifySignalStrength ( ) { if ( ( mSignalStrength ) == null ) { mSignalStrength = new android.telephony.SignalStrength ( 20 , 0 , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , true ) ; } if ( ( mSignalStrengthRegistrant ) != null ) { mSignalStrengthRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , mSignalStrength , null ) ) ; } }

Target:
public void notifySignalStrength ( ) { if ( ( mSignalStrength ) == null ) { mSignalStrength = new android.telephony.SignalStrength ( 20 , 0 , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID ) ; } if ( ( mSignalStrengthRegistrant ) != null ) { mSignalStrengthRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , mSignalStrength , null ) ) ; } }
Source:
static void setInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int 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 setInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int 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 append ( @ javax.annotation.Nonnull com.android.sched.scheduler.ManagedRunnable runner ) { assert runner != null ; assert runner.getRunOn ( ) . equals ( runOn ) : ( ( ( "Expect '" + ( runner.getRunOn ( ) ) ) + "', have '" ) + ( runOn ) ) + "'" ; plan.appendStep ( new com.android.sched.scheduler.PlanStep ( runner ) ) ; }

Target:
public void append ( @ javax.annotation.Nonnull com.android.sched.scheduler.ManagedRunnable runner ) { assert runner != null ; assert runner.getRunOn ( ) . equals ( runOn ) : ( ( ( "Expect '" + ( runner.getRunOn ( ) . toString ( ) ) ) + "', have '" ) + ( runOn.toString ( ) ) ) + "'" ; plan.appendStep ( new com.android.sched.scheduler.PlanStep ( runner ) ) ; }
Source:
private void runStackStart ( ) throws java.lang.Exception { java.lang.String displayIdStr = nextArgRequired ( ) ; int displayId = java.lang.Integer.valueOf ( displayIdStr ) ; android.content.Intent intent = makeIntent ( UserHandle.USER_CURRENT ) ; try { android.app.IActivityContainer container = mAm.createStackOnDisplay ( displayId ) ; if ( container != null ) { container.startActivity ( intent ) ; } } catch ( android.os.RemoteException e ) { } }

Target:
private void runStackStart ( ) throws java.lang.Exception { java.lang.String displayIdStr = nextArgRequired ( ) ; int displayId = java.lang.Integer.parseInt ( displayIdStr ) ; android.content.Intent intent = makeIntent ( UserHandle.USER_CURRENT ) ; try { android.app.IActivityContainer container = mAm.createStackOnDisplay ( displayId ) ; if ( container != null ) { container.startActivity ( intent ) ; } } catch ( android.os.RemoteException e ) { } }
Source:
private static void assertSslSocket ( libcore.java.net.URLConnectionTest.TlsFallbackDisabledScsvSSLSocket socket , boolean expectedWasFallbackScsvSet , java.lang.String ... expectedEnabledProtocols ) { java.util.Set < java.lang.String > enabledProtocols = new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( socket.getEnabledProtocols ( ) ) ) ; java.util.Set < java.lang.String > expectedProtocolsSet = new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( expectedEnabledProtocols ) ) ; assertEquals ( enabledProtocols , expectedProtocolsSet ) ; assertEquals ( expectedWasFallbackScsvSet , socket.wasTlsFallbackScsvSet ( ) ) ; }

Target:
private static void assertSslSocket ( libcore.java.net.URLConnectionTest.TlsFallbackDisabledScsvSSLSocket socket , boolean expectedWasFallbackScsvSet , java.lang.String ... expectedEnabledProtocols ) { java.util.Set < java.lang.String > enabledProtocols = new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( socket.getEnabledProtocols ( ) ) ) ; java.util.Set < java.lang.String > expectedProtocolsSet = new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( expectedEnabledProtocols ) ) ; assertEquals ( expectedProtocolsSet , enabledProtocols ) ; assertEquals ( expectedWasFallbackScsvSet , socket.wasTlsFallbackScsvSet ( ) ) ; }
Source:
public void set ( int n , int value ) { throwIfImmutable ( ) ; if ( n >= ( size ) ) { throw new java.lang.IndexOutOfBoundsException ( "n >= size()" ) ; } try { values [ n ] = value ; sorted = false ; } catch ( java.lang.ArrayIndexOutOfBoundsException ex ) { if ( n < 0 ) { throw new java.lang.IllegalArgumentException ( "n < 0" ) ; } } }

Target:
public void set ( int n , int value ) { throwIfImmutable ( ) ; values [ n ] = value ; sorted = false ; }
Source:
private java.lang.String fromHex ( java.lang.String hexPassword ) { if ( hexPassword == null ) { return null ; } final byte [ ] bytes ; try { bytes = libcore.util.HexEncoding.decode ( hexPassword.toCharArray ( ) , false ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } return new java.lang.String ( bytes , java.nio.charset.StandardCharsets.UTF_8 ) ; }

Target:
private static java.lang.String fromHex ( java.lang.String hexPassword ) throws java.lang.IllegalArgumentException { if ( hexPassword == null ) { return null ; } final byte [ ] bytes = libcore.util.HexEncoding.decode ( hexPassword.toCharArray ( ) , false ) ; return new java.lang.String ( bytes , java.nio.charset.StandardCharsets.UTF_8 ) ; }
Source:
public void onReceivedTouchIconUrl ( android.webkit.WebView view , java.lang.String url , boolean precomposed ) { final android.content.ContentResolver cr = mContext.getContentResolver ( ) ; if ( precomposed && ( ( mTouchIconLoader ) != null ) ) { mTouchIconLoader.cancel ( false ) ; mTouchIconLoader = null ; } if ( ( mTouchIconLoader ) == null ) { mTouchIconLoader = new com.android.browser.DownloadTouchIcon ( this , mContext , cr , view ) ; mTouchIconLoader.execute ( url ) ; } }

Target:
public void onReceivedTouchIconUrl ( android.webkit.WebView view , java.lang.String url , boolean precomposed ) { final android.content.ContentResolver cr = mContext.getContentResolver ( ) ; if ( precomposed && ( ( mTouchIconLoader ) != null ) ) { mTouchIconLoader.cancel ( false ) ; mTouchIconLoader = null ; } if ( ( mTouchIconLoader ) == null ) { mTouchIconLoader = new com.android.browser.DownloadTouchIcon ( this , cr , view ) ; mTouchIconLoader.execute ( url ) ; } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
public static android.renderscript.FileA3D createFromAsset ( android.renderscript.RenderScript rs , android.content.res.AssetManager mgr , java.lang.String path ) { rs.validate ( ) ; int fileId = rs.nFileA3DCreateFromAsset ( mgr , path ) ; if ( fileId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create a3d file from asset " + path ) ) ; } android.renderscript.FileA3D fa3d = new android.renderscript.FileA3D ( fileId , rs , null ) ; fa3d.initEntries ( ) ; return fa3d ; }

Target:
public static android.renderscript.FileA3D createFromAsset ( android.renderscript.RenderScript rs , android.content.res.AssetManager mgr , java.lang.String path ) { rs.validate ( ) ; long fileId = rs.nFileA3DCreateFromAsset ( mgr , path ) ; if ( fileId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create a3d file from asset " + path ) ) ; } android.renderscript.FileA3D fa3d = new android.renderscript.FileA3D ( fileId , rs , null ) ; fa3d.initEntries ( ) ; return fa3d ; }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable lombok.ast.Node scope , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( scope != null ) && ( mDriver.isSuppressed ( this , issue , scope ) ) ) { return ; } super . report ( issue , location , message , data ) ; }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable lombok.ast.Node scope , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { if ( ( scope != null ) && ( mDriver.isSuppressed ( this , issue , scope ) ) ) { return ; } super . report ( issue , location , message ) ; }
Source:
private void updateCapabilities ( com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData ) { if ( targetData != null ) { com.android.ide.common.rendering.LayoutLibrary layoutLib = targetData.getLayoutLibrary ( ) ; setClippingSupport ( layoutLib.supports ( Capability.UNBOUND_RENDERING ) ) ; if ( ( ( mIncludedWithin ) != null ) && ( ! ( layoutLib.supports ( Capability.EMBEDDED_LAYOUT ) ) ) ) { showIn ( null ) ; } } }

Target:
private void updateCapabilities ( com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData ) { if ( targetData != null ) { com.android.ide.common.rendering.LayoutLibrary layoutLib = targetData.getLayoutLibrary ( ) ; if ( ( ( mIncludedWithin ) != null ) && ( ! ( layoutLib.supports ( Capability.EMBEDDED_LAYOUT ) ) ) ) { showIn ( null ) ; } } }
Source:
private static boolean willWorkForMulticast ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( ( ( ( ( iface.isUp ( ) ) && ( ( ( libcore.java.nio.channels.DatagramChannelMulticastTest.getOsFlags ( iface ) ) & ( android.system.OsConstants.IFF_RUNNING ) ) != 0 ) ) && ( ! ( iface.isLoopback ( ) ) ) ) && ( ! ( iface.isPointToPoint ( ) ) ) ) && ( iface.supportsMulticast ( ) ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }

Target:
private static boolean willWorkForMulticast ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( ( ( iface.isUp ( ) ) && ( ! ( iface.isLoopback ( ) ) ) ) && ( iface.supportsMulticast ( ) ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }
Source:
public void testInvalidICMPv6NDLength ( ) { final java.lang.String packet = "807ABF6F48F3 100E7E263FC1 86DD" + ( ( ( ( ( ( ( ( "600000000068 3A FF" + "FE80000000000000FA000004FD000001" ) + "FE80000000000000827ABFFFFE6F48F3" ) + "86 00 8141" ) + "40 00 0E10" ) + "00000000" ) + "00000000" ) + "01 01 00005E000265" ) + "00 00 0102030405D6" ) ; final java.lang.String expected = "RX 10:0e:7e:26:3f:c1 > 80:7a:bf:6f:48:f3 ipv6" + ( " fe80::fa00:4:fd00:1 > fe80::827a:bfff:fe6f:48f3 icmp6" + " ra slla 00:00:5e:00:02:65 <malformed>" ) ; assertEquals ( expected , getSummary ( packet ) ) ; }

Target:
public void testInvalidICMPv6NDLength ( ) { final java.lang.String packet = "807ABF6F48F3 100E7E263FC1 86DD" + ( ( ( ( ( ( ( ( "600000000068 3A FF" + "FE80000000000000FA000004FD000001" ) + "FE80000000000000827ABFFFFE6F48F3" ) + "86 00 8141" ) + "40 00 0E10" ) + "00000000" ) + "00000000" ) + "01 01 00005E000265" ) + "00 00 0102030405D6" ) ; final java.lang.String expected = "RX 10:0e:7e:26:3f:c1 > 80:7a:bf:6f:48:f3 ipv6" + ( " fe80::fa00:4:fd00:1 > fe80::827a:bfff:fe6f:48f3 icmp6" + " ra slla 00:00:5e:00:02:65 <malformed>" ) ; org.junit.Assert.assertEquals ( expected , getSummary ( packet ) ) ; }
Source:
private void check ( java.lang.String [ ] [ ] tests , java.util.Set < java.lang.String > keys , com.ibm.icu.impl.ValidIdentifiers.Datasubtype ... datasubtypes ) { int count = 0 ; com.ibm.icu.impl.locale.LocaleValidityChecker localeValidityChecker = new com.ibm.icu.impl.locale.LocaleValidityChecker ( datasubtypes ) ; for ( java.lang.String [ ] test : tests ) { if ( ( test [ 1 ] . endsWith ( "-va-posix" ) ) && ( logKnownIssue ( "12615" , "Validity check wrong for -va-posix?" ) ) ) continue ; check ( ( ++ count ) , localeValidityChecker , test [ 0 ] , test [ 1 ] , keys ) ; } }

Target:
private void check ( java.lang.String [ ] [ ] tests , java.util.Set < java.lang.String > keys , com.ibm.icu.impl.ValidIdentifiers.Datasubtype ... datasubtypes ) { int count = 0 ; com.ibm.icu.impl.locale.LocaleValidityChecker localeValidityChecker = new com.ibm.icu.impl.locale.LocaleValidityChecker ( datasubtypes ) ; for ( java.lang.String [ ] test : tests ) { check ( ( ++ count ) , localeValidityChecker , test [ 0 ] , test [ 1 ] , keys ) ; } }
Source:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) { return ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.statistics.BlockCountMarker bcm = session.getMarker ( com.android.jack.statistics.BlockCountMarker.class ) ; if ( bcm == null ) { com.android.jack.statistics.BlockCountMarker newbcm = new com.android.jack.statistics.BlockCountMarker ( ) ; bcm = session.addMarker ( newbcm ) ; } com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor statistics = new com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor ( bcm ) ; statistics.accept ( method ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) { return ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.statistics.BlockCountMarker bcm = session.getMarker ( com.android.jack.statistics.BlockCountMarker.class ) ; if ( bcm == null ) { bcm = new com.android.jack.statistics.BlockCountMarker ( ) ; session.addMarker ( bcm ) ; } com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor statistics = new com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor ( bcm ) ; statistics.accept ( method ) ; }
Source:
protected void tearDownConnectionService ( android.telecom.PhoneAccountHandle accountHandle ) throws java.lang.Exception { assertNumConnections ( this . connectionService , 0 ) ; mTelecomManager.unregisterPhoneAccount ( accountHandle ) ; android.telecom.cts.CtsConnectionService.tearDown ( ) ; assertCtsConnectionServiceUnbound ( ) ; this . connectionService = null ; }

Target:
protected void tearDownConnectionService ( android.telecom.PhoneAccountHandle accountHandle ) throws java.lang.Exception { if ( ( this . connectionService ) != null ) { assertNumConnections ( this . connectionService , 0 ) ; } mTelecomManager.unregisterPhoneAccount ( accountHandle ) ; android.telecom.cts.CtsConnectionService.tearDown ( ) ; assertCtsConnectionServiceUnbound ( ) ; this . connectionService = null ; }
Source:
private static java.lang.String getNewerVersionAvailableMessage ( com.android.ide.common.repository.GradleCoordinate dependency , com.android.sdklib.repository.FullRevision version , boolean includeMicro ) { java.lang.String versionString = ( ( includeMicro || ( ( version.getMicro ( ) ) != 0 ) ) || ( version.isPreview ( ) ) ) ? version.toString ( ) : ( ( version.getMajor ( ) ) + "." ) + ( version.getMinor ( ) ) ; return com.android.tools.lint.checks.GradleDetector.getNewerVersionAvailableMessage ( dependency , versionString ) ; }

Target:
private static java.lang.String getNewerVersionAvailableMessage ( com.android.ide.common.repository.GradleCoordinate dependency , com.android.sdklib.repository.FullRevision version ) { return com.android.tools.lint.checks.GradleDetector.getNewerVersionAvailableMessage ( dependency , version.toString ( ) ) ; }
Source:
private static org.eclipse.core.resources.IProject validateProjectExists ( java.lang.String name ) { org.eclipse.core.resources.IProject iproject = com.android.ide.eclipse.adt.internal.editors.layout.refactoring.AdtProjectTest.getProject ( name ) ; assertTrue ( java.lang.String.format ( "%s project not created" , name ) , iproject.exists ( ) ) ; assertTrue ( java.lang.String.format ( "%s project not opened" , name ) , iproject.isOpen ( ) ) ; return iproject ; }

Target:
protected static org.eclipse.core.resources.IProject validateProjectExists ( java.lang.String name ) { org.eclipse.core.resources.IProject iproject = com.android.ide.eclipse.adt.internal.editors.layout.refactoring.AdtProjectTest.getProject ( name ) ; assertTrue ( java.lang.String.format ( "%s project not created" , name ) , iproject.exists ( ) ) ; assertTrue ( java.lang.String.format ( "%s project not opened" , name ) , iproject.isOpen ( ) ) ; return iproject ; }
Source:
synchronized void nScriptForEach ( int id , int slot , int ain , int aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }
Source:
void setActiveDevice ( java.lang.String address ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , ( "setActiveDevice: address=" + address ) ) ; android.bluetooth.BluetoothDevice d = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) . getRemoteDevice ( address.toUpperCase ( ) ) ; if ( d == null ) { android.util.Log.wtfStack ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , ( "setActiveDevice: could not find device with address " + address ) ) ; } com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) . setActiveDevice ( d ) ; }

Target:
void setActiveDevice ( java.lang.String address ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , ( "setActiveDevice: address=" + address ) ) ; android.bluetooth.BluetoothDevice d = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) . getRemoteDevice ( address ) ; if ( d == null ) { android.util.Log.wtfStack ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , ( "setActiveDevice: could not find device with address " + address ) ) ; } com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) . setActiveDevice ( d ) ; }
Source:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; when ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) . thenReturn ( true ) ; when ( mWifiConfigStore.areStoresPresent ( ) ) . thenReturn ( false ) ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }

Target:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( nat.toHuman ( ) ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( nat.toHuman ( ) ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
private static java.lang.String getAbiList ( java.io.BufferedWriter writer , java.io.DataInputStream inputStream ) throws android.os.ZygoteStartFailedEx { try { writer.write ( "1" ) ; writer.newLine ( ) ; writer.write ( "--query-abi-list" ) ; writer.newLine ( ) ; writer.flush ( ) ; int numBytes = inputStream.readInt ( ) ; byte [ ] bytes = new byte [ numBytes ] ; inputStream.readFully ( bytes ) ; return new java.lang.String ( bytes , java.nio.charset.StandardCharsets.US_ASCII ) ; } catch ( java.io.IOException ioe ) { throw new android.os.ZygoteStartFailedEx ( ioe ) ; } }

Target:
private static java.lang.String getAbiList ( java.io.BufferedWriter writer , java.io.DataInputStream inputStream ) throws java.io.IOException { writer.write ( "1" ) ; writer.newLine ( ) ; writer.write ( "--query-abi-list" ) ; writer.newLine ( ) ; writer.flush ( ) ; int numBytes = inputStream.readInt ( ) ; byte [ ] bytes = new byte [ numBytes ] ; inputStream.readFully ( bytes ) ; return new java.lang.String ( bytes , java.nio.charset.StandardCharsets.US_ASCII ) ; }
Source:
private boolean isDexFilledNewArrayCompatible ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNewArray newArray ) { com.android.jack.ir.ast.JType elementType = newArray.getArrayType ( ) . getElementType ( ) ; java.util.List < com.android.jack.ir.ast.JExpression > initializers = newArray.getInitializers ( ) ; if ( ( ( ( ! ( initializers.isEmpty ( ) ) ) && ( ( initializers.size ( ) ) <= 5 ) ) && ( ( newArray.getDims ( ) . size ( ) ) == 1 ) ) && ( elementType.isSameType ( JPrimitiveTypeEnum.INT.getType ( ) ) ) ) { return true ; } return false ; }

Target:
private boolean isDexFilledNewArrayCompatible ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNewArray newArray ) { com.android.jack.ir.ast.JType elementType = newArray.getArrayType ( ) . getElementType ( ) ; java.util.List < com.android.jack.ir.ast.JExpression > initializers = newArray.getInitializers ( ) ; if ( ( ( ( ! ( initializers.isEmpty ( ) ) ) && ( ( initializers.size ( ) ) <= 5 ) ) && ( ( newArray.getDims ( ) . size ( ) ) == 1 ) ) && ( elementType == ( JPrimitiveTypeEnum.INT.getType ( ) ) ) ) { return true ; } return false ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.intellij.openapi.project.Project project = PlatformDataKeys.PROJECT.getData ( e.getDataContext ( ) ) ; if ( project == null ) { project = com.intellij.openapi.project.ProjectManager.getInstance ( ) . getDefaultProject ( ) ; } if ( com.intellij.ide.actions.ShowStructureSettingsAction.isGradleProject ( project ) ) { com.intellij.ide.actions.ShowStructureSettingsAction.showDisabledProjectStructureDialogMessage ( ) ; return ; } com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( project , OptionsEditorDialog.DIMENSION_KEY , com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( project ) ) ; }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.intellij.openapi.project.Project project = PlatformDataKeys.PROJECT.getData ( e.getDataContext ( ) ) ; if ( project == null ) { project = com.intellij.openapi.project.ProjectManager.getInstance ( ) . getDefaultProject ( ) ; } if ( com.intellij.ide.actions.ShowStructureSettingsAction.isGradleProject ( project ) ) { com.intellij.ide.actions.ShowStructureSettingsAction.showDisabledProjectStructureDialogMessage ( ) ; } com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( project , OptionsEditorDialog.DIMENSION_KEY , com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( project ) ) ; }
Source:
public void testIllegalMethodInsnReturnDesc ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , "m" , "()VV" ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void testIllegalMethodInsnReturnDesc ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , "m" , "()VV" , false ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }
Source:
protected void decodeParams ( ) throws java.io.IOException { java.lang.String algidString = algid.toString ( ) ; try { algParams = java.security.AlgorithmParameters.getInstance ( algidString ) ; } catch ( java.security.NoSuchAlgorithmException e ) { try { algParams = java.security.AlgorithmParameters.getInstance ( algidString , sun.security.ec.ECKeyFactory.ecInternalProvider ) ; } catch ( java.security.NoSuchAlgorithmException ee ) { algParams = null ; return ; } } algParams.init ( params.toByteArray ( ) ) ; }

Target:
protected void decodeParams ( ) throws java.io.IOException { java.lang.String algidString = algid.toString ( ) ; try { algParams = java.security.AlgorithmParameters.getInstance ( algidString ) ; } catch ( java.security.NoSuchAlgorithmException e ) { algParams = null ; return ; } algParams.init ( params.toByteArray ( ) ) ; }
Source:
public static < T > T [ ] copyOf ( T [ ] original , int newLength ) { if ( original == null ) { throw new java.lang.NullPointerException ( ) ; } if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }

Target:
public static short [ ] copyOf ( short [ ] original , int newLength ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( java.lang.Integer.toString ( newLength ) ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }
Source:
private void getRcFeaturesRequestFromNative ( byte [ ] address , int features ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getRcFeaturesRequestFromNative: address=" + ( address.toString ( ) ) ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_RC_FEATURES , features , 0 , com.android.bluetooth.Utils.getAddressStringFromByte ( address ) ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void getRcFeaturesRequestFromNative ( byte [ ] address , int features ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_RC_FEATURES , features , 0 , com.android.bluetooth.Utils.getAddressStringFromByte ( address ) ) ; mHandler.sendMessage ( msg ) ; }
Source:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" , false ) ; }

Target:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" ) ; }
Source:
public com.android.jack.test.comparator.ComparatorDex createDexFileComparator ( ) { com.android.jack.test.comparator.ComparatorDex comparator = new com.android.jack.test.comparator.ComparatorDex ( candidateDex , refDex ) ; comparator.setWithDebugInfo ( withDebugInfos ) ; comparator.setStrict ( false ) ; comparator.setCompareDebugInfoBinary ( false ) ; comparator.setCompareInstructionNumber ( false ) ; comparator.setInstructionNumberTolerance ( 0.0F ) ; return comparator ; }

Target:
public com.android.jack.test.comparator.ComparatorDex createDexFileComparator ( ) { com.android.jack.test.comparator.ComparatorDex comparator = new com.android.jack.test.comparator.ComparatorDex ( refDex , candidateDex ) ; comparator.setWithDebugInfo ( withDebugInfos ) ; comparator.setStrict ( false ) ; comparator.setCompareDebugInfoBinary ( false ) ; comparator.setCompareInstructionNumber ( false ) ; comparator.setInstructionNumberTolerance ( 0.0F ) ; return comparator ; }
Source:
private com.android.internal.telephony.cat.ResultCode setIcons ( java.lang.Object data ) { android.graphics.Bitmap [ ] icons = null ; int iconIndex = 0 ; if ( data == null ) { return ResultCode.PRFRMD_ICON_NOT_DISPLAYED ; } switch ( mIconLoadState ) { case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_SINGLE_ICON : mCmdParams.setIcon ( ( ( android.graphics.Bitmap ) ( data ) ) ) ; break ; case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_MULTI_ICONS : icons = ( ( android.graphics.Bitmap [ ] ) ( data ) ) ; for ( android.graphics.Bitmap icon : icons ) { mCmdParams.setIcon ( icon ) ; } break ; } return ResultCode.OK ; }

Target:
private com.android.internal.telephony.cat.ResultCode setIcons ( java.lang.Object data ) { android.graphics.Bitmap [ ] icons = null ; int iconIndex = 0 ; if ( data == null ) { return ResultCode.OK ; } switch ( mIconLoadState ) { case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_SINGLE_ICON : mCmdParams.setIcon ( ( ( android.graphics.Bitmap ) ( data ) ) ) ; break ; case com.android.internal.telephony.cat.CommandParamsFactory.LOAD_MULTI_ICONS : icons = ( ( android.graphics.Bitmap [ ] ) ( data ) ) ; for ( android.graphics.Bitmap icon : icons ) { mCmdParams.setIcon ( icon ) ; } break ; } return ResultCode.OK ; }
Source:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action , boolean emulateStudio_1_0 ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , action , emulateStudio_1_0 ) ; } finally { connection.close ( ) ; } }

Target:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action , boolean emulateStudio_1_0 ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return buildModel ( connection , action , emulateStudio_1_0 ) ; } finally { connection.close ( ) ; } }
Source:
public byte [ ] getData ( ) throws java.io.IOException { if ( ( ( contentType.equals ( sun.security.pkcs.ContentInfo.DATA_OID ) ) || ( contentType.equals ( sun.security.pkcs.ContentInfo.OLD_DATA_OID ) ) ) || ( contentType.equals ( sun.security.pkcs.ContentInfo.TIMESTAMP_TOKEN_INFO_OID ) ) ) { if ( ( content ) == null ) return null ; else return content.getOctetString ( ) ; } throw new java.io.IOException ( ( "content type is not DATA: " + ( contentType ) ) ) ; }

Target:
public byte [ ] getData ( ) throws java.io.IOException { if ( ( ( contentType.equals ( ( ( java.lang.Object ) ( sun.security.pkcs.ContentInfo.DATA_OID ) ) ) ) || ( contentType.equals ( ( ( java.lang.Object ) ( sun.security.pkcs.ContentInfo.OLD_DATA_OID ) ) ) ) ) || ( contentType.equals ( ( ( java.lang.Object ) ( sun.security.pkcs.ContentInfo.TIMESTAMP_TOKEN_INFO_OID ) ) ) ) ) { if ( ( content ) == null ) return null ; else return content.getOctetString ( ) ; } throw new java.io.IOException ( ( "content type is not DATA: " + ( contentType ) ) ) ; }
Source:
static android.telephony.SmsCbMessage createMessage ( int serialNumber ) { return new android.telephony.SmsCbMessage ( 1 , 2 , serialNumber , new android.telephony.SmsCbLocation ( ) , com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL , "language" , "body" , android.telephony.SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY , null , new android.telephony.SmsCbCmasInfo ( 1 , 2 , 3 , 4 , 5 , 6 ) ) ; }

Target:
static android.telephony.SmsCbMessage createMessage ( int serialNumber ) { return new android.telephony.SmsCbMessage ( 1 , 2 , serialNumber , new android.telephony.SmsCbLocation ( ) , com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL , "language" , "body" , android.telephony.SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY , null , new android.telephony.SmsCbCmasInfo ( 0 , 2 , 3 , 4 , 5 , 6 ) ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.Block x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JBlock block = popBlock ( info , x.statements ) ; push ( block ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.Block x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JBlock block = popBlock ( info , x.statements ) ; push ( block ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public int getIndex ( java.lang.String qName ) { if ( qName == null ) { throw new java.lang.NullPointerException ( "qName == null" ) ; } int pointer = getPointer ( ) ; if ( pointer == 0 ) { return - 1 ; } return org.apache.harmony.xml.ExpatAttributes.getIndexForQName ( pointer , qName ) ; }

Target:
public int getIndex ( java.lang.String qName ) { if ( qName == null ) { throw new java.lang.NullPointerException ( "qName == null" ) ; } long pointer = getPointer ( ) ; if ( pointer == 0 ) { return - 1 ; } return org.apache.harmony.xml.ExpatAttributes.getIndexForQName ( pointer , qName ) ; }
Source:
private final java.lang.String getOwnerPhoneNumberVcardFromProfile ( final boolean vcardType21 , final byte [ ] filter ) { int vcardType ; if ( vcardType21 ) { vcardType = com.android.vcard.VCardConfig.VCARD_TYPE_V21_GENERIC ; } else { vcardType = com.android.vcard.VCardConfig.VCARD_TYPE_V30_GENERIC ; } if ( ! ( com.android.bluetooth.pbap.BluetoothPbapConfig.includePhotosInVcard ( ) ) ) { vcardType |= com.android.vcard.VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT ; } return com.android.bluetooth.pbap.BluetoothPbapUtils.createProfileVCard ( mContext , vcardType , filter ) ; }

Target:
private java.lang.String getOwnerPhoneNumberVcardFromProfile ( final boolean vcardType21 , final byte [ ] filter ) { int vcardType ; if ( vcardType21 ) { vcardType = com.android.vcard.VCardConfig.VCARD_TYPE_V21_GENERIC ; } else { vcardType = com.android.vcard.VCardConfig.VCARD_TYPE_V30_GENERIC ; } if ( ! ( com.android.bluetooth.pbap.BluetoothPbapConfig.includePhotosInVcard ( ) ) ) { vcardType |= com.android.vcard.VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT ; } return com.android.bluetooth.pbap.BluetoothPbapUtils.createProfileVCard ( mContext , vcardType , filter ) ; }
Source:
public void testSetCurrentNetworkBssid ( ) throws java.lang.Exception { java.lang.String bssidStr = "34:34:12:12:12:90" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ) . thenReturn ( true ) ; executeAndValidateInitializationSequence ( ) ; assertFalse ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertTrue ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock ) . setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ; }

Target:
public void testSetCurrentNetworkBssid ( ) throws java.lang.Exception { java.lang.String bssidStr = "34:34:12:12:12:90" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ) . thenReturn ( true ) ; executeAndValidateInitializationSequence ( ) ; assertFalse ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ; executeAndValidateConnectSequence ( 4 , false ) ; assertTrue ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock ) . setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ; }
Source:
public void test_unwrap_ByteBuffer_ByteBuffer_04 ( ) { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; try { sse.unwrap ( bbs , bbd ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( java.lang.IllegalStateException iobe ) { } catch ( java.lang.Exception e ) { fail ( ( e + " was thrown instead of IllegalStateException" ) ) ; } }

Target:
public void test_unwrap_ByteBuffer_ByteBuffer_04 ( ) throws java.lang.Exception { java.lang.String host = "new host" ; int port = 8080 ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 10 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 100 ) ; javax.net.ssl.SSLEngine sse = getEngine ( host , port ) ; try { sse.unwrap ( bbs , bbd ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( java.lang.IllegalStateException expected ) { } }