auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.ast.MultiDimensionNewArrayRemover.Visitor visitor = new com.android.jack.transformations.ast.MultiDimensionNewArrayRemover.Visitor ( tr , enclosingType.getSession ( ) ) ; visitor.accept ( method ) ; tr.commit ( ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.ast.MultiDimensionNewArrayRemover.Visitor visitor = new com.android.jack.transformations.ast.MultiDimensionNewArrayRemover.Visitor ( tr ) ; visitor.accept ( method ) ; tr.commit ( ) ; }
Source:
private void pushFileTokenizer ( @ javax.annotation.Nonnull java.lang.String fileName ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException , com.android.sched.util.file.WrongPermissionException { com.android.sched.util.file.InputStreamFile file ; try { file = new com.android.sched.util.file.InputStreamFile ( fileName , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { throw new java.lang.AssertionError ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( ) ; } catch ( com.android.sched.util.file.CannotSetPermissionException e ) { throw new java.lang.AssertionError ( ) ; } tokenizers.push ( getTokenizer ( file ) ) ; locations.push ( new com.android.sched.util.location.FileLocation ( file.getPath ( ) ) ) ; }

Target:
private void pushFileTokenizer ( @ javax.annotation.Nonnull java.lang.String fileName ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException , com.android.sched.util.file.WrongPermissionException { com.android.sched.util.file.InputStreamFile file = new com.android.sched.util.file.InputStreamFile ( fileName ) ; tokenizers.push ( getTokenizer ( file ) ) ; locations.push ( new com.android.sched.util.location.FileLocation ( file.getPath ( ) ) ) ; }
Source:
protected void checkReportedError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ 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 ( issue == ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ) { assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getOldValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; } }

Target:
protected void checkReportedError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { if ( issue == ( com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ) { assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getOldValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; assertNotNull ( message , com.android.tools.lint.checks.MissingClassDetector.getNewValue ( issue , message , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; } }
Source:
public void resetCountryCodeWhenAirplaneModeEnabled ( ) throws java.lang.Exception { mWifiCountryCode.setCountryCode ( mTelephonyCountryCode , false ) ; mWifiCountryCode.setReadyForChange ( true ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.simCardRemoved ( ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setReadyForChange ( true ) ; org.mockito.Mockito.verify ( mWifiNative , org.mockito.Mockito.times ( 2 ) ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mDefaultCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }

Target:
public void resetCountryCodeWhenAirplaneModeEnabled ( ) throws java.lang.Exception { mWifiCountryCode.setCountryCode ( mTelephonyCountryCode ) ; mWifiCountryCode.setReadyForChange ( true ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.simCardRemoved ( ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setReadyForChange ( true ) ; org.mockito.Mockito.verify ( mWifiNative , org.mockito.Mockito.times ( 2 ) ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mDefaultCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }
Source:
private com.android.ahat.heapdump.Value getDumpedValue ( java.lang.String name , com.android.ahat.heapdump.AhatSnapshot snapshot ) { com.android.ahat.heapdump.AhatClassObj main = snapshot.findClass ( "Main" ) ; com.android.ahat.heapdump.AhatInstance stuff = null ; for ( com.android.ahat.heapdump.FieldValue field : main.getStaticFieldValues ( ) ) { if ( "stuff" . equals ( field.name ) ) { stuff = field.value.asAhatInstance ( ) ; } } return stuff.getField ( name ) ; }

Target:
private static com.android.ahat.heapdump.Value getDumpedValue ( java.lang.String name , com.android.ahat.heapdump.AhatClassObj main ) { com.android.ahat.heapdump.AhatInstance stuff = null ; for ( com.android.ahat.heapdump.FieldValue field : main.getStaticFieldValues ( ) ) { if ( "stuff" . equals ( field.name ) ) { stuff = field.value.asAhatInstance ( ) ; } } return stuff.getField ( name ) ; }
Source:
public static int insertProviderAt ( java.security.Provider provider , int position ) { synchronized ( org.apache.harmony.security.fortress.Services.providers ) { int size = org.apache.harmony.security.fortress.Services.providers.size ( ) ; if ( ( position < 1 ) || ( position > size ) ) { position = size + 1 ; } org.apache.harmony.security.fortress.Services.providers.add ( ( position - 1 ) , provider ) ; org.apache.harmony.security.fortress.Services.providersNames.put ( provider.getName ( ) , provider ) ; org.apache.harmony.security.fortress.Services.setNeedRefresh ( ) ; return position ; } }

Target:
public static synchronized int insertProviderAt ( java.security.Provider provider , int position ) { int size = org.apache.harmony.security.fortress.Services.providers.size ( ) ; if ( ( position < 1 ) || ( position > size ) ) { position = size + 1 ; } org.apache.harmony.security.fortress.Services.providers.add ( ( position - 1 ) , provider ) ; org.apache.harmony.security.fortress.Services.providersNames.put ( provider.getName ( ) , provider ) ; org.apache.harmony.security.fortress.Services.setNeedRefresh ( ) ; return position ; }
Source:
private static android.security.cts.OpenSSLHeartbleedTest.AlertMessage tryParse ( android.security.cts.OpenSSLHeartbleedTest.TlsRecord record ) { if ( ( record.protocol ) != ( android.security.cts.OpenSSLHeartbleedTest.TlsProtocols.ALERT ) ) { return null ; } if ( ( record.fragment.length ) < 2 ) { return null ; } android.security.cts.OpenSSLHeartbleedTest.AlertMessage result = new android.security.cts.OpenSSLHeartbleedTest.AlertMessage ( ) ; result.level = ( record.fragment [ 0 ] ) & 255 ; result.description = ( record.fragment [ 1 ] ) & 255 ; return result ; }

Target:
public static android.security.cts.OpenSSLHeartbleedTest.AlertMessage tryParse ( android.security.cts.OpenSSLHeartbleedTest.TlsRecord record ) { if ( ( record.protocol ) != ( android.security.cts.OpenSSLHeartbleedTest.TlsProtocols.ALERT ) ) { return null ; } if ( ( record.fragment.length ) < 2 ) { return null ; } android.security.cts.OpenSSLHeartbleedTest.AlertMessage result = new android.security.cts.OpenSSLHeartbleedTest.AlertMessage ( ) ; result.level = ( record.fragment [ 0 ] ) & 255 ; result.description = ( record.fragment [ 1 ] ) & 255 ; return result ; }
Source:
private boolean initDefaultDevices ( ) { synchronized ( mLock ) { if ( ( mDefaultDevices ) == null ) { try { mDefaultDevices = com.android.sdklib.devices.DeviceParser.parse ( com.android.sdklib.devices.DeviceManager.class . getResourceAsStream ( SdkConstants.FN_DEVICES_XML ) ) ; return true ; } catch ( java.lang.IllegalStateException e ) { mLog.error ( e , null ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } catch ( java.lang.Exception e ) { mLog.error ( null , "Error reading default devices" ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } } } return false ; }

Target:
private boolean initDefaultDevices ( ) { synchronized ( mLock ) { if ( ( mDefaultDevices ) == null ) { try { mDefaultDevices = com.android.sdklib.devices.DeviceParser.parse ( com.android.sdklib.devices.DeviceManager.class . getResourceAsStream ( SdkConstants.FN_DEVICES_XML ) ) ; return true ; } catch ( java.lang.IllegalStateException e ) { mLog.error ( e , null ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } catch ( java.lang.Exception e ) { mLog.error ( e , "Error reading default devices" ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } } } return false ; }
Source:
public void tearDown ( ) throws java.lang.Exception { setMobileDataAlwaysOn ( false ) ; if ( ( mCellNetworkAgent ) != null ) { mCellNetworkAgent.disconnect ( ) ; mCellNetworkAgent = null ; } if ( ( mWiFiNetworkAgent ) != null ) { mWiFiNetworkAgent.disconnect ( ) ; mWiFiNetworkAgent = null ; } if ( ( mEthernetNetworkAgent ) != null ) { mEthernetNetworkAgent.disconnect ( ) ; mEthernetNetworkAgent = null ; } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { setMobileDataAlwaysOn ( false ) ; if ( ( mCellNetworkAgent ) != null ) { mCellNetworkAgent.disconnect ( ) ; mCellNetworkAgent = null ; } if ( ( mWiFiNetworkAgent ) != null ) { mWiFiNetworkAgent.disconnect ( ) ; mWiFiNetworkAgent = null ; } if ( ( mEthernetNetworkAgent ) != null ) { mEthernetNetworkAgent.disconnect ( ) ; mEthernetNetworkAgent = null ; } }
Source:
private void getElementAttrRequestFromNative ( byte [ ] address , byte numAttr , int [ ] attrs ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getElementAttrRequestFromNative: numAttr=" + numAttr ) ) ; com.android.bluetooth.avrcp.AvrcpCmd avrcpCmdobj = new com.android.bluetooth.avrcp.AvrcpCmd ( ) ; com.android.bluetooth.avrcp.AvrcpCmd.ElementAttrCmd elemAttr = avrcpCmdobj.new com.android.bluetooth.avrcp.ElementAttrCmd ( address , numAttr , attrs ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_ELEM_ATTRS ) ; msg.obj = elemAttr ; mHandler.sendMessage ( msg ) ; }

Target:
private void getElementAttrRequestFromNative ( byte [ ] address , byte numAttr , int [ ] attrs ) { com.android.bluetooth.avrcp.AvrcpCmd avrcpCmdobj = new com.android.bluetooth.avrcp.AvrcpCmd ( ) ; com.android.bluetooth.avrcp.AvrcpCmd.ElementAttrCmd elemAttr = avrcpCmdobj.new com.android.bluetooth.avrcp.ElementAttrCmd ( address , numAttr , attrs ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_ELEM_ATTRS ) ; msg.obj = elemAttr ; mHandler.sendMessage ( msg ) ; }
Source:
public final void verify ( java.security.PublicKey key , java.lang.String sigProvider ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { java.lang.String sigName = org.bouncycastle.jcajce.provider.asymmetric.x509.X509SignatureUtil.getSignatureName ( c.getSignatureAlgorithm ( ) ) ; java.security.Signature signature = java.security.Signature.getInstance ( sigName , sigProvider ) ; checkSignature ( key , signature ) ; }

Target:
public final void verify ( java.security.PublicKey key , java.lang.String sigProvider ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { java.lang.String sigName = org.bouncycastle.jcajce.provider.asymmetric.x509.X509SignatureUtil.getSignatureName ( c.getSignatureAlgorithm ( ) ) ; java.security.Signature signature ; if ( sigProvider != null ) { signature = java.security.Signature.getInstance ( sigName , sigProvider ) ; } else { signature = java.security.Signature.getInstance ( sigName ) ; } checkSignature ( key , signature ) ; }
Source:
public void setTimeout ( ) { if ( myState.isFinal ( ) ) { return ; } myState = new com.google.gct.testing.results.GoogleCloudTestingTimeoutState ( this ) ; final java.util.List < ? extends com.google.gct.testing.results.GoogleCloudTestProxy > children = getChildren ( ) ; for ( com.google.gct.testing.results.GoogleCloudTestProxy child : children ) { child.setTimeout ( ) ; } fireOnNewPrintable ( myState ) ; }

Target:
public void setTimeout ( ) { if ( myState.isFinal ( ) ) { return ; } myState = new com.google.gct.testing.results.GoogleCloudTestingTimeoutState ( this ) ; for ( com.google.gct.testing.results.GoogleCloudTestProxy child : getChildren ( ) ) { child.setTimeout ( ) ; } fireOnNewPrintable ( myState ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { ConcreteSub.main ( ) ; try { ConcreteSub2 blah = new ConcreteSub2 ( ) ; blah.doStuff ( ) ; java.lang.System.err.println ( "Succeeded unexpectedly" ) ; } catch ( java.lang.VerifyError ve ) { java.lang.System.out.println ( "Got expected failure" ) ; } catch ( java.lang.AbstractMethodError ame ) { java.lang.System.out.println ( "Got expected failure" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { ConcreteSub.main ( ) ; try { ConcreteSub2 blah = new ConcreteSub2 ( ) ; blah.doStuff ( ) ; java.lang.System.out.println ( "Succeeded unexpectedly" ) ; } catch ( java.lang.VerifyError ve ) { java.lang.System.out.println ( "Got expected failure" ) ; } catch ( java.lang.AbstractMethodError ame ) { java.lang.System.out.println ( "Got expected failure" ) ; } }
Source:
public void test_isIdentifierIgnorableC ( ) { assertTrue ( "Ignorable whitespace returned false" , java.lang.Character.isIdentifierIgnorable ( '' ) ) ; assertTrue ( "Ignorable non - whitespace control returned false" , java.lang.Character.isIdentifierIgnorable ( '' ) ) ; assertTrue ( "Ignorable join control returned false" , java.lang.Character.isIdentifierIgnorable ( '‎' ) ) ; assertTrue ( "Ignorable bidi control returned false" , java.lang.Character.isIdentifierIgnorable ( '‫' ) ) ; assertTrue ( "Ignorable format control returned false" , java.lang.Character.isIdentifierIgnorable ( '⁬' ) ) ; assertTrue ( "Ignorable zero-width no-break returned false" , java.lang.Character.isIdentifierIgnorable ( '﻿' ) ) ; assertTrue ( "Non-Ignorable returned true" , ( ! ( java.lang.Character.isIdentifierIgnorable ( 'e' ) ) ) ) ; }

Target:
public void test_isIdentifierIgnorableC ( ) { assertTrue ( "Ignorable whitespace returned false" , java.lang.Character.isIdentifierIgnorable ( '' ) ) ; assertTrue ( "Ignorable non - whitespace control returned false" , java.lang.Character.isIdentifierIgnorable ( '' ) ) ; assertTrue ( "Ignorable join control returned false" , java.lang.Character.isIdentifierIgnorable ( '‎' ) ) ; assertTrue ( "Ignorable bidi control returned false" , java.lang.Character.isIdentifierIgnorable ( '‫' ) ) ; assertTrue ( "Ignorable format control returned false" , java.lang.Character.isIdentifierIgnorable ( '⁬' ) ) ; assertTrue ( "Ignorable zero-width no-break returned false" , java.lang.Character.isIdentifierIgnorable ( '﻿' ) ) ; assertFalse ( "Non-Ignorable returned true" , java.lang.Character.isIdentifierIgnorable ( 'e' ) ) ; }
Source:
public void string ( java.lang.String v ) throws java.io.IOException { try { byte [ ] bytes = v.getBytes ( "UTF-8" ) ; int32 ( ( ( short ) ( bytes.length ) ) ) ; for ( byte b : bytes ) { int8 ( b ) ; } } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void string ( @ org.jetbrains.annotations.Nullable java.lang.String v ) throws java.io.IOException { try { if ( v == null ) { int32 ( 0 ) ; return ; } byte [ ] bytes = v.getBytes ( "UTF-8" ) ; int32 ( ( ( short ) ( bytes.length ) ) ) ; for ( byte b : bytes ) { int8 ( b ) ; } } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public java.lang.String getLine1AlphaTagForDisplay ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getLine1AlphaTagForDisplay" ) ) ) { return null ; } java.lang.String iccId = getIccId ( subId ) ; if ( iccId != null ) { java.lang.String alphaTagPrefKey = ( com.android.phone.PhoneInterfaceManager.PREF_CARRIERS_ALPHATAG_PREFIX ) + iccId ; return mTelephonySharedPreferences.getString ( alphaTagPrefKey , null ) ; } return null ; }

Target:
public java.lang.String getLine1AlphaTagForDisplay ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getLine1AlphaTagForDisplay" ) ) ) { return null ; } java.lang.String iccId = getIccId ( subId ) ; if ( iccId != null ) { java.lang.String alphaTagPrefKey = ( com.android.phone.PhoneInterfaceManager.PREF_CARRIERS_ALPHATAG_PREFIX ) + iccId ; return mTelephonySharedPreferences.getString ( alphaTagPrefKey , null ) ; } return null ; }
Source:
private void assertCommand ( java.lang.String [ ] cmd ) { org.junit.Assert.assertEquals ( cmd [ 0 ] , ( ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.PYTHON_DIR ) + ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.PYTHON_BINARY ) ) ) ; org.junit.Assert.assertEquals ( cmd [ 1 ] , "-m" ) ; org.junit.Assert.assertEquals ( cmd [ 2 ] , com.android.tradefed.testtype.VtsMultiDeviceTestTest.TEST_CASE_PATH.replace ( "/" , "." ) ) ; org.junit.Assert.assertTrue ( cmd [ 3 ] . endsWith ( ".json" ) ) ; org.junit.Assert.assertEquals ( cmd.length , 4 ) ; }

Target:
private void assertCommand ( java.lang.String [ ] cmd ) { org.junit.Assert.assertEquals ( cmd [ 0 ] , com.android.tradefed.testtype.VtsMultiDeviceTestTest.PYTHON_BINARY ) ; org.junit.Assert.assertEquals ( cmd [ 1 ] , "-m" ) ; org.junit.Assert.assertEquals ( cmd [ 2 ] , com.android.tradefed.testtype.VtsMultiDeviceTestTest.TEST_CASE_PATH.replace ( "/" , "." ) ) ; org.junit.Assert.assertTrue ( cmd [ 3 ] . endsWith ( ".json" ) ) ; org.junit.Assert.assertEquals ( cmd.length , 4 ) ; }
Source:
public com.android.jack.ir.ast.JLocalRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JLocalRef jLocalRef = JLocalUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jLocalRef ) ) ; for ( com.android.jack.jayce.v0004.nodes.NMarker nmarker : markers ) { com.android.sched.marker.Marker marker = nmarker.exportAsJast ( exportSession ) ; assert ( ! ( marker instanceof com.android.jack.debug.DebugVariableInfoMarker ) ) || ( marker != ( com.android.jack.debug.DebugVariableInfoMarker.NO_DEBUG_INFO ) ) ; jLocalRef.addMarker ( marker ) ; } return jLocalRef ; }

Target:
public com.android.jack.ir.ast.JLocalRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JLocalRef jLocalRef = JLocalUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jLocalRef ) ) ; for ( com.android.jack.jayce.v0004.nodes.NMarker marker : markers ) { jLocalRef.addMarker ( marker.exportAsJast ( exportSession ) ) ; } return jLocalRef ; }
Source:
public void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.incallui.NewReturnToCallController newReturnToCallController = newReturnToCallControllerWeakReference.get ( ) ; if ( newReturnToCallController == null ) { return ; } if ( ( entry.photo ) != null ) { newReturnToCallController.onPhotoAvatarReceived ( entry.photo ) ; } else { com.android.incallui.call.DialerCall dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( callId ) ; newReturnToCallController.onLetterTileAvatarReceived ( newReturnToCallController.createLettleTileDrawable ( dialerCall , entry ) ) ; } }

Target:
public void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.incallui.NewReturnToCallController newReturnToCallController = newReturnToCallControllerWeakReference.get ( ) ; if ( newReturnToCallController == null ) { return ; } if ( ( entry.photo ) != null ) { newReturnToCallController.onPhotoAvatarReceived ( entry.photo ) ; } else { com.android.incallui.call.DialerCall dialerCall = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( callId ) ; if ( dialerCall != null ) { newReturnToCallController.onLetterTileAvatarReceived ( newReturnToCallController.createLettleTileDrawable ( dialerCall , entry ) ) ; } } }
Source:
public com.android.jack.dx.dex.file.StringIdItem intern ( com.android.jack.dx.rop.cst.CstString string ) { if ( string == null ) { throw new java.lang.NullPointerException ( "string == null" ) ; } throwIfPrepared ( ) ; com.android.jack.dx.dex.file.StringIdItem already = strings.get ( string ) ; if ( already != null ) { return already ; } com.android.jack.dx.dex.file.StringIdItem result = new com.android.jack.dx.dex.file.StringIdItem ( string ) ; strings.put ( string , result ) ; return result ; }

Target:
public com.android.jack.dx.dex.file.StringIdItem intern ( com.android.jack.dx.rop.cst.CstString string ) { assert string != null ; throwIfPrepared ( ) ; com.android.jack.dx.dex.file.StringIdItem already = strings.get ( string ) ; if ( already != null ) { return already ; } com.android.jack.dx.dex.file.StringIdItem result = new com.android.jack.dx.dex.file.StringIdItem ( string ) ; strings.put ( string , result ) ; return result ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) , Element.DataType.FLOAT_32 ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }
Source:
public android.graphics.Bitmap getDrawingCache ( boolean autoScale ) { if ( ( ( mViewFlags ) & ( android.view.View.WILL_NOT_CACHE_DRAWING ) ) == ( android.view.View.WILL_NOT_CACHE_DRAWING ) ) { return null ; } if ( ( ( mViewFlags ) & ( android.view.View.DRAWING_CACHE_ENABLED ) ) == ( android.view.View.DRAWING_CACHE_ENABLED ) ) { buildDrawingCache ( autoScale ) ; } return autoScale ? ( mDrawingCache ) == null ? null : mDrawingCache.get ( ) : ( mUnscaledDrawingCache ) == null ? null : mUnscaledDrawingCache.get ( ) ; }

Target:
public android.graphics.Bitmap getDrawingCache ( boolean autoScale ) { if ( ( ( mViewFlags ) & ( android.view.View.WILL_NOT_CACHE_DRAWING ) ) == ( android.view.View.WILL_NOT_CACHE_DRAWING ) ) { return null ; } if ( ( ( mViewFlags ) & ( android.view.View.DRAWING_CACHE_ENABLED ) ) == ( android.view.View.DRAWING_CACHE_ENABLED ) ) { buildDrawingCache ( autoScale ) ; } return autoScale ? mDrawingCache : mUnscaledDrawingCache ; }
Source:
static void getString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final java.lang.String got = ( v == null ) ? ( ( java.lang.String ) ( m.invokeExact ( ) ) ) : ( ( java.lang.String ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( got.equals ( value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void getString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final java.lang.String got = ( v == null ) ? ( ( java.lang.String ) ( m.invokeExact ( ) ) ) : ( ( java.lang.String ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( got.equals ( value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccSlotTest.UICCCARD_UPDATE_CARD_STATE_EVENT : mUiccSlot.update ( mContext , mSimulatedCommands , mIccCardStatus , 0 ) ; setReady ( true ) ; break ; default : logd ( ( "Unknown Event " + ( msg.what ) ) ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccSlotTest.UICCCARD_UPDATE_CARD_STATE_EVENT : mUiccSlot.update ( mSimulatedCommands , mIccCardStatus , 0 ) ; setReady ( true ) ; break ; default : logd ( ( "Unknown Event " + ( msg.what ) ) ) ; break ; } }
Source:
public static com.android.incallui.incall.protocol.PrimaryCallState createEmptyPrimaryCallStateWithState ( int state , java.lang.String customLabel ) { return new com.android.incallui.incall.protocol.PrimaryCallState ( state , false , com.android.incallui.videotech.utils.SessionModificationState.NO_REQUEST , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.UNKNOWN ) , null , null , null , null , null , false , false , false , false , false , false , false , 0 , false , false , false , true , com.android.incallui.incall.protocol.PrimaryCallState.ButtonState.NOT_SUPPORT , false , customLabel ) ; }

Target:
public static com.android.incallui.incall.protocol.PrimaryCallState createEmptyPrimaryCallStateWithState ( int state , java.lang.String customLabel ) { return new com.android.incallui.incall.protocol.PrimaryCallState ( state , false , com.android.incallui.videotech.utils.SessionModificationState.NO_REQUEST , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.UNKNOWN ) , null , null , null , null , null , false , false , false , false , false , false , false , 0 , false , false , false , true , com.android.incallui.incall.protocol.PrimaryCallState.ButtonState.NOT_SUPPORT , false , customLabel , null ) ; }
Source:
public com.android.server.wifi.WifiConfigStoreData read ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { long readStartTime = mClock.getElapsedSinceBootMillis ( ) ; byte [ ] sharedDataBytes = mSharedStore.readRawData ( ) ; byte [ ] userDataBytes = mUserStore.readRawData ( ) ; long readTime = ( mClock.getElapsedSinceBootMillis ( ) ) - readStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Reading from stores completed in " + readTime ) + " ms." ) ) ; return com.android.server.wifi.WifiConfigStoreData.parseRawData ( sharedDataBytes , userDataBytes ) ; }

Target:
public com.android.server.wifi.WifiConfigStoreData read ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { long readStartTime = mClock.getElapsedSinceBootMillis ( ) ; byte [ ] sharedDataBytes = mSharedStore.readRawData ( ) ; byte [ ] userDataBytes = null ; if ( ( mUserStore ) != null ) { userDataBytes = mUserStore.readRawData ( ) ; } long readTime = ( mClock.getElapsedSinceBootMillis ( ) ) - readStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Reading from stores completed in " + readTime ) + " ms." ) ) ; return com.android.server.wifi.WifiConfigStoreData.parseRawData ( sharedDataBytes , userDataBytes ) ; }
Source:
public com.google.common.collect.ImmutableSortedMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return this ; }

Target:
public com.google.common.collect.ImmutableSortedMap.Builder < K , V > put ( K key , V value ) { super . put ( key , value ) ; return this ; }
Source:
public boolean removeHeaderView ( android.view.View v ) { if ( ( mHeaderViewInfos.size ( ) ) > 0 ) { boolean result = false ; if ( ( ( android.widget.HeaderViewListAdapter ) ( mAdapter ) ) . removeHeader ( v ) ) { mDataSetObserver.onChanged ( ) ; result = true ; } removeFixedViewInfo ( v , mHeaderViewInfos ) ; return result ; } return false ; }

Target:
public boolean removeHeaderView ( android.view.View v ) { if ( ( mHeaderViewInfos.size ( ) ) > 0 ) { boolean result = false ; if ( ( ( mAdapter ) != null ) && ( ( ( android.widget.HeaderViewListAdapter ) ( mAdapter ) ) . removeHeader ( v ) ) ) { if ( ( mDataSetObserver ) != null ) { mDataSetObserver.onChanged ( ) ; } result = true ; } removeFixedViewInfo ( v , mHeaderViewInfos ) ; return result ; } return false ; }
Source:
public void test_EVP_CIPHER_iv_length ( ) throws java.lang.Exception { long aes128ecb = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; assertEquals ( 0 , org.conscrypt.NativeCrypto.EVP_CIPHER_iv_length ( aes128ecb ) ) ; long aes128cbc = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-cbc" ) ; assertEquals ( 16 , org.conscrypt.NativeCrypto.EVP_CIPHER_iv_length ( aes128cbc ) ) ; }

Target:
public void test_EVP_CIPHER_iv_length ( ) throws java.lang.Exception { long aes128ecb = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.junit.Assert.assertEquals ( 0 , org.conscrypt.NativeCrypto.EVP_CIPHER_iv_length ( aes128ecb ) ) ; long aes128cbc = org.conscrypt.NativeCrypto.EVP_get_cipherbyname ( "aes-128-cbc" ) ; org.junit.Assert.assertEquals ( 16 , org.conscrypt.NativeCrypto.EVP_CIPHER_iv_length ( aes128cbc ) ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String actionName , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( com.google.caliper.SimpleBenchmark.class . isAssignableFrom ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( com.google.caliper.SimpleBenchmark.class . isAssignableFrom ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass ) ; } else { return null ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAssertStatement assertStatement ) { com.android.jack.ir.ast.JExpression clonedArg = cloneExpression ( assertStatement.getArg ( ) ) ; com.android.jack.ir.ast.JExpression clonedTestExpr = cloneExpression ( assertStatement.getTestExpr ( ) ) ; statement = updateCatchBlockList ( new com.android.jack.ir.ast.JAssertStatement ( assertStatement.getSourceInfo ( ) , clonedTestExpr , clonedArg ) , assertStatement ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAssertStatement assertStatement ) { com.android.jack.ir.ast.JExpression arg = assertStatement.getArg ( ) ; com.android.jack.ir.ast.JExpression clonedArg ; if ( arg != null ) { clonedArg = cloneExpression ( arg ) ; } else { clonedArg = null ; } com.android.jack.ir.ast.JExpression clonedTestExpr = cloneExpression ( assertStatement.getTestExpr ( ) ) ; statement = updateCatchBlockList ( new com.android.jack.ir.ast.JAssertStatement ( assertStatement.getSourceInfo ( ) , clonedTestExpr , clonedArg ) , assertStatement ) ; return false ; }
Source:
public static void main ( java.lang.String [ ] args ) { Holder holder = new Holder ( ) ; Blah blah = new Blah ( ) ; holder.mValue = blah ; java.lang.System.out.println ( "Assignment was allowed" ) ; try { holder.mValue.run ( ) ; java.lang.System.err.println ( "ERROR: did not get expected ICCE" ) ; } catch ( java.lang.IncompatibleClassChangeError icce ) { java.lang.System.out.println ( "Got expected IncompatibleClassChangeError" ) ; } java.lang.Comparable cmp = ( ( java.lang.Comparable ) ( holder.mValue ) ) ; cmp.compareTo ( cmp ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Holder holder = new Holder ( ) ; Blah blah = new Blah ( ) ; holder.mValue = blah ; java.lang.System.out.println ( "Assignment was allowed" ) ; try { holder.mValue.run ( ) ; java.lang.System.out.println ( "ERROR: did not get expected ICCE" ) ; } catch ( java.lang.IncompatibleClassChangeError icce ) { java.lang.System.out.println ( "Got expected IncompatibleClassChangeError" ) ; } java.lang.Comparable cmp = ( ( java.lang.Comparable ) ( holder.mValue ) ) ; cmp.compareTo ( cmp ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding targetType = ( ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) ( x.qualification.resolvedType ) ) ; push ( makeThisReference ( info , targetType , true , scope ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding targetType = ( ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) ( x.qualification.resolvedType ) ) ; push ( makeThisReference ( info , targetType , true , scope , x ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public java.nio.DoubleBuffer asDoubleBuffer ( ) { int size = ( this . remaining ( ) ) > > 3 ; int off = position ( ) ; return ( ( java.nio.DoubleBuffer ) ( new java.nio.ByteBufferAsDoubleBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public java.nio.DoubleBuffer asDoubleBuffer ( ) { int size = ( this . remaining ( ) ) > > 3 ; int off = position ( ) ; return new java.nio.ByteBufferAsDoubleBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
public static java.lang.String hex ( byte [ ] s ) { java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( s.length ) ; ++ i ) { if ( i != 0 ) result.append ( ',' ) ; result.append ( com.ibm.icu.dev.test.TestFmwk.hex ( s [ i ] ) ) ; } return result.toString ( ) ; }

Target:
protected static java.lang.String hex ( byte [ ] s ) { java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( s.length ) ; ++ i ) { if ( i != 0 ) result.append ( ',' ) ; result.append ( com.ibm.icu.dev.test.TestFmwk.hex ( s [ i ] ) ) ; } return result.toString ( ) ; }
Source:
public void sendSetDisconnected ( java.lang.String id , int disconnectCause ) throws java.lang.Exception { mConnectionById.get ( id ) . state = android.telecom.Connection.STATE_DISCONNECTED ; mConnectionById.get ( id ) . disconnectCause = new android.telecom.DisconnectCause ( disconnectCause ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter a : mConnectionServiceAdapters ) { a.setDisconnected ( id , mConnectionById.get ( id ) . disconnectCause ) ; } }

Target:
public void sendSetDisconnected ( java.lang.String id , int disconnectCause ) throws java.lang.Exception { mConnectionById.get ( id ) . state = android.telecom.Connection.STATE_DISCONNECTED ; mConnectionById.get ( id ) . disconnectCause = new android.telecom.DisconnectCause ( disconnectCause ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter a : mConnectionServiceAdapters ) { a.setDisconnected ( id , mConnectionById.get ( id ) . disconnectCause , null ) ; } }
Source:
private static boolean getExported ( org.w3c.dom.Element element ) { java.lang.String exportValue = element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_EXPORTED ) ; if ( ( exportValue != null ) && ( ! ( exportValue.isEmpty ( ) ) ) ) { return java.lang.Boolean.valueOf ( exportValue ) ; } else { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.SdkConstants.TAG_INTENT_FILTER ) ) { return true ; } } } return false ; }

Target:
public static boolean getExported ( org.w3c.dom.Element element ) { java.lang.String exportValue = element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_EXPORTED ) ; if ( ( exportValue != null ) && ( ! ( exportValue.isEmpty ( ) ) ) ) { return java.lang.Boolean.valueOf ( exportValue ) ; } else { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.SdkConstants.TAG_INTENT_FILTER ) ) { return true ; } } } return false ; }
Source:
public boolean onCreateActionMode ( android.view.ActionMode mode , android.view.Menu menu ) { if ( ( activity ) != null ) { announceforAccessibility ( activity.getCurrentFocus ( ) , activity.getString ( R.string.description_entering_bulk_action_mode ) ) ; } actionMode = mode ; android.view.MenuInflater inflater = mode.getMenuInflater ( ) ; inflater.inflate ( R.menu.actionbar_delete , menu ) ; multiSelectRemoveView.showMultiSelectRemoveView ( true ) ; actionModeStateChangedListener.onActionModeStateChanged ( true ) ; return true ; }

Target:
public boolean onCreateActionMode ( android.view.ActionMode mode , android.view.Menu menu ) { if ( ( activity ) != null ) { announceforAccessibility ( activity.getCurrentFocus ( ) , activity.getString ( R.string.description_entering_bulk_action_mode ) ) ; } actionMode = mode ; android.view.MenuInflater inflater = mode.getMenuInflater ( ) ; inflater.inflate ( R.menu.actionbar_delete , menu ) ; multiSelectRemoveView.showMultiSelectRemoveView ( true ) ; actionModeStateChangedListener.onActionModeStateChanged ( mode , true ) ; return true ; }
Source:
public void testAvailableSkip ( ) throws java.lang.Exception { byte [ ] deflated = new byte [ ] { 72 , - 119 , 99 , 100 , 102 , 97 , 3 , 0 , 0 , 31 , 0 , 15 , 0 } ; java.io.InputStream in = new java.util.zip.InflaterInputStream ( new java.io.ByteArrayInputStream ( deflated ) ) ; assertEquals ( 1 , in.available ( ) ) ; assertEquals ( 4 , in.skip ( 4 ) ) ; assertEquals ( 0 , in.available ( ) ) ; }

Target:
public void testAvailableSkip ( ) throws java.lang.Exception { byte [ ] deflated = new byte [ ] { 72 , - 119 , 99 , 100 , 102 , 97 , 3 , 0 , 0 , 31 , 0 , 15 , 0 } ; try ( java.io.InputStream in = new java.util.zip.InflaterInputStream ( new java.io.ByteArrayInputStream ( deflated ) ) ) { assertEquals ( 1 , in.available ( ) ) ; assertEquals ( 4 , in.skip ( 4 ) ) ; assertEquals ( 0 , in.available ( ) ) ; } }
Source:
private void preRenderingTargetChangeCleanUp ( com.android.sdklib.IAndroidTarget oldTarget ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( oldTarget ) ; if ( data != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = data.getLayoutLibrary ( ) ; com.android.layoutlib.api.LayoutBridge bridge = layoutLib.getBridge ( ) ; if ( bridge != null ) { bridge.clearCaches ( mEditedFile.getProject ( ) ) ; } } } }

Target:
private void preRenderingTargetChangeCleanUp ( com.android.sdklib.IAndroidTarget oldTarget ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( oldTarget ) ; if ( data != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = data.getLayoutLibrary ( ) ; layoutLib.clearCaches ( mEditedFile.getProject ( ) ) ; } } }
Source:
public void recomputeComponents ( ) { float width = mWidth ; width -= 20.0F * ( com.cooliris.app.App.PIXEL_DENSITY ) ; synchronized ( mComponents ) { int numComponents = mComponents.size ( ) ; for ( int i = 0 ; i < numComponents ; i ++ ) { com.cooliris.media.PathBarLayer.Component component = mComponents.get ( i ) ; width -= ( component.getIconWidth ( ) ) + ( 20.0F * ( com.cooliris.app.App.PIXEL_DENSITY ) ) ; component.computeLabel ( width ) ; } } }

Target:
public void recomputeComponents ( ) { float width = mWidth ; width -= 20.0F * ( com.cooliris.app.App.PIXEL_DENSITY ) ; synchronized ( mComponents ) { int numComponents = mComponents.size ( ) ; for ( int i = 0 ; i < numComponents ; i ++ ) { com.cooliris.media.PathBarLayer.Component component = mComponents.get ( i ) ; if ( component != null ) { width -= ( component.getIconWidth ( ) ) + ( 20.0F * ( com.cooliris.app.App.PIXEL_DENSITY ) ) ; component.computeLabel ( width ) ; } } } }
Source:
public void run ( ) { try { java.lang.System.err.println ( "accepting..." ) ; java.net.Socket client = ss.accept ( ) ; java.lang.System.err.println ( "accepted..." ) ; java.lang.Thread.sleep ( ( 30 * 1000 ) ) ; java.lang.System.err.println ( "server exiting..." ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } }

Target:
public void run ( ) { try { client = ss.accept ( ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } }
Source:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( node , 0 , 0 ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }

Target:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( node , ( - 1 ) , ( - 1 ) ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }
Source:
public void testLang ( ) throws java.lang.Exception { assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 311 ) , "en" ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 232 ) , "de" ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 230 ) , "cs" ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 204 ) , "nl" ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 274 ) , "is" ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 0 ) , null ) ; assertEquals ( com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 2000 ) , null ) ; }

Target:
public void testLang ( ) throws java.lang.Exception { assertEquals ( "en" , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 311 ) ) ; assertEquals ( "de" , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 232 ) ) ; assertEquals ( "cs" , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 230 ) ) ; assertEquals ( "nl" , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 204 ) ) ; assertEquals ( "is" , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 274 ) ) ; assertEquals ( null , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 0 ) ) ; assertEquals ( null , com.android.internal.telephony.MccTable.defaultLanguageForMcc ( 2000 ) ) ; }