auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void loop6 ( boolean incoming ) { for ( long i = java.lang.System.nanoTime ( ) ; i < 42 ; ++ i ) { java.lang.System.out.println ( incoming ) ; for ( long j = java.lang.System.currentTimeMillis ( ) ; j != 42 ; ++ j ) { } } }

Target:
public static void loop6 ( boolean incoming ) { for ( long i = java.lang.System.nanoTime ( ) ; i < 42 ; ++ i ) { java.lang.System.out.println ( incoming ) ; for ( long j = java.lang.System.currentTimeMillis ( ) ; j != 42 ; ++ j ) { java.lang.System.out.print ( j ) ; } } }
Source:
private java.io.FileDescriptor openSocketFd ( java.lang.String host , int port , int timeoutMs ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( host , port ) ; s.setSoTimeout ( timeoutMs ) ; return android.os.ParcelFileDescriptor.fromSocket ( s ) . getFileDescriptor ( ) ; }

Target:
private java.io.FileDescriptor openSocketFd ( java.lang.String host , int port , int timeoutMs ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( host , port ) ; s.setSoTimeout ( timeoutMs ) ; java.io.FileDescriptor fd = android.system.Os.dup ( android.os.ParcelFileDescriptor.fromSocket ( s ) . getFileDescriptor ( ) ) ; s.close ( ) ; return fd ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , int [ ] d ) { validateIsInt32 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
private void setExistingXUserX ( int userSetting , int iFlags , int iloc ) { int rFlags = PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_UNSPECIFIED ) ; int origSetting = getDefaultInstallLoc ( ) ; try { setInstallLoc ( userSetting ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , iloc ) ; } finally { setInstallLoc ( origSetting ) ; } }

Target:
private void setExistingXUserX ( int userSetting , int iFlags , int iloc ) { int rFlags = android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_UNSPECIFIED ) ; int origSetting = getDefaultInstallLoc ( ) ; try { setInstallLoc ( userSetting ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , iloc ) ; } finally { setInstallLoc ( origSetting ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( Main.triggerArrayOOM ( Main.holder ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }

Target:
static boolean triggerArrayOOM ( ) { Main.ArrayMemEater.blowup ( new char [ 128 * 1024 ] [ ] ) ; return Main.ArrayMemEater.sawOome ; }
Source:
public void setChannelIdEnabled ( boolean enabled ) { if ( getUseClientMode ( ) ) { throw new java.lang.IllegalStateException ( "Client mode" ) ; } synchronized ( stateLock ) { if ( ( state ) != ( org.conscrypt.OpenSSLSocketImpl.STATE_NEW ) ) { throw new java.lang.IllegalStateException ( ( "Could not enable/disable Channel ID after the initial handshake has" + " begun." ) ) ; } } this . channelIdEnabled = enabled ; }

Target:
public void setChannelIdEnabled ( boolean enabled ) { if ( getUseClientMode ( ) ) { throw new java.lang.IllegalStateException ( "Client mode" ) ; } synchronized ( stateLock ) { if ( ( state ) != ( org.conscrypt.OpenSSLSocketImpl.STATE_NEW ) ) { throw new java.lang.IllegalStateException ( ( "Could not enable/disable Channel ID after the initial handshake has" + " begun." ) ) ; } } sslParameters.channelIdEnabled = enabled ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getProjectResources ( org.eclipse.core.resources.IProject project ) { synchronized ( mMap ) { return mMap.get ( project ) ; } }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources getProjectResources ( org.eclipse.core.resources.IProject project ) { synchronized ( mMap ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = mMap.get ( project ) ; if ( resources == null ) { resources = new com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources ( project ) ; mMap.put ( project , resources ) ; } return resources ; } }
Source:
public void onServiceDiscovered ( int peerId , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , peerId ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mEventFacade.postEvent ( "WifiNanSessionOnServiceDiscovered" , mResults ) ; }

Target:
public void onServiceDiscovered ( java.lang.Object peerHandle , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( java.lang.Integer ) ( peerHandle ) ) ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mEventFacade.postEvent ( "WifiNanSessionOnServiceDiscovered" , mResults ) ; }
Source:
public void setAudioRoute ( int route ) { try { android.telecom.Log.startSession ( LogUtils.Sessions.ICA_SET_AUDIO_ROUTE , mOwnerComponentName ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mCallsManager.setAudioRoute ( route ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void setAudioRoute ( int route , java.lang.String bluetoothAddress ) { try { android.telecom.Log.startSession ( LogUtils.Sessions.ICA_SET_AUDIO_ROUTE , mOwnerComponentName ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mCallsManager.setAudioRoute ( route , bluetoothAddress ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public boolean hasIccCardUsingSlotIndex ( int slotIndex ) { int [ ] subId = mSubscriptionController.getSubIdUsingSlotIndex ( slotIndex ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( ( subId != null ) && ( phone != null ) ) { return phone.getIccCard ( ) . hasIccCard ( ) ; } else { return false ; } }

Target:
public void sendDialerSpecialCode ( java.lang.String callingPackage , java.lang.String inputCode ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; java.lang.String defaultDialer = android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , defaultDialer ) ) ) { enforceCarrierPrivilege ( getDefaultSubscription ( ) ) ; } mPhone.sendDialerSpecialCode ( inputCode ) ; }
Source:
public java.lang.String getColumnText ( java.lang.Object element , int index ) { if ( ! ( element instanceof com.android.ddmuilib.logcat.LogCatFilter ) ) { return null ; } com.android.ddmuilib.logcat.LogCatFilter f = ( ( com.android.ddmuilib.logcat.LogCatFilter ) ( element ) ) ; if ( ( f.getUnreadCount ( ) ) == 0 ) { return f.getName ( ) ; } else { return java.lang.String.format ( "%s (%d)" , f.getName ( ) , f.getUnreadCount ( ) ) ; } }

Target:
public java.lang.String getColumnText ( java.lang.Object element , int index ) { if ( ! ( element instanceof com.android.ddmlib.logcat.LogCatFilter ) ) { return null ; } com.android.ddmlib.logcat.LogCatFilter f = ( ( com.android.ddmlib.logcat.LogCatFilter ) ( element ) ) ; com.android.ddmuilib.logcat.LogCatFilterData fd = mFilterData.get ( f ) ; if ( ( fd != null ) && ( ( fd.getUnreadCount ( ) ) > 0 ) ) { return java.lang.String.format ( "%s (%d)" , f.getName ( ) , fd.getUnreadCount ( ) ) ; } else { return f.getName ( ) ; } }
Source:
public void destroy ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { destroy ( ) ; } } ) ; return ; } mAwContents.destroy ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.destroy ( ) ; mGLfunctor = null ; } }

Target:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JThrowBasicBlock bb ) { com.android.jack.dx.rop.code.InsnList il = createInsnList ( instructions , 0 ) ; il.setImmutable ( ) ; com.android.jack.dx.util.IntList successors = new com.android.jack.dx.util.IntList ( ) ; int primarySuccessor = - 1 ; if ( ! ( bb.getCatchBlocks ( ) . isEmpty ( ) ) ) { addCatchBlockSuccessors ( bb.getCatchBlocks ( ) , successors ) ; } successors.setImmutable ( ) ; ropBb.createBasicBlock ( getBlockId ( bb ) , il , successors , primarySuccessor ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JReturnBasicBlock bb ) { java.util.List < com.android.jack.dx.ssa.SsaInsn > il = createInsnList ( instructions , 0 ) ; ssaBb.setRopLabel ( getBlockId ( bb ) ) ; ssaBb.setInsns ( il ) ; ssaBb.setSuccessors ( IntList.EMPTY , ( - 1 ) ) ; return false ; }
Source:
public boolean isPackageFrozen ( java.lang.String packageName ) { synchronized ( mPackages ) { final com.android.server.pm.PackageSetting ps = mSettings.mPackages.get ( packageName ) ; if ( ps != null ) { return ps.frozen ; } } android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( ( "Package " + packageName ) + " is missing; assuming frozen" ) ) ; return true ; }

Target:
private java.lang.String getRequiredSharedLibraryLPr ( java.lang.String libraryName ) { synchronized ( mPackages ) { com.android.server.pm.PackageManagerService.SharedLibraryEntry libraryEntry = mSharedLibraries.get ( libraryName ) ; if ( libraryEntry == null ) { throw new java.lang.IllegalStateException ( ( "Missing required shared library:" + libraryName ) ) ; } return libraryEntry.apk ; } }
Source:
public static android.app.admin.DevicePolicyManager create ( android.content.Context context ) { android.app.admin.DevicePolicyManager me = new android.app.admin.DevicePolicyManager ( context , false ) ; return ( me.mService ) != null ? me : null ; }

Target:
public boolean setResetPasswordToken ( android.content.ComponentName admin , byte [ ] token ) { throwIfParentInstance ( "setResetPasswordToken" ) ; if ( ( mService ) != null ) { try { return mService.setResetPasswordToken ( admin , token ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public void callSessionConferenceExtendFailed ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { loge ( ( "callSessionConferenceExtendFailed :: reasonInfo=" + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionConferenceExtendFailed :: not supported for transient " + "conference session=" ) + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; mUpdateRequest = com.android.ims.ImsCall.UPDATE_NONE ; } if ( listener != null ) { try { listener.onCallConferenceExtendFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionConferenceExtendFailed :: " , t ) ; } } }

Target:
public void callSessionConferenceExtendFailed ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { loge ( ( "callSessionConferenceExtendFailed :: reasonInfo=" + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionConferenceExtendFailed :: not supported for transient " + "conference session=" ) + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; mUpdateRequest = com.android.ims.ImsCall.UPDATE_NONE ; } if ( listener != null ) { try { listener.onCallConferenceExtendFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionConferenceExtendFailed :: " , t ) ; } } }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { try { java.util.List < git4idea.GitCommit > commits = git4idea.history.GitHistoryUtils.history ( project , repository.getRoot ( ) , ( targetBranch + ".." ) ) ; java.util.Collection < com.intellij.openapi.vcs.changes.Change > diff = git4idea.changes.GitChangeUtils.getDiff ( repository.getProject ( ) , repository.getRoot ( ) , targetBranch , currentBranch , null ) ; infoRef.set ( new org.jetbrains.plugins.github.GithubCreatePullRequestAction.DiffInfo ( targetBranch , currentBranch , commits , diff ) ) ; } catch ( com.intellij.openapi.vcs.VcsException e ) { org.jetbrains.plugins.github.GithubCreatePullRequestAction.LOG.info ( e ) ; } }

Target:
public org.jetbrains.plugins.github.GithubCreatePullRequestAction.DiffInfo convert ( com.intellij.openapi.progress.ProgressIndicator indicator ) throws com.intellij.openapi.vcs.VcsException { java.util.List < git4idea.GitCommit > commits = git4idea.history.GitHistoryUtils.history ( project , repository.getRoot ( ) , ( targetBranch + ".." ) ) ; java.util.Collection < com.intellij.openapi.vcs.changes.Change > diff = git4idea.changes.GitChangeUtils.getDiff ( repository.getProject ( ) , repository.getRoot ( ) , targetBranch , currentBranch , null ) ; return new org.jetbrains.plugins.github.GithubCreatePullRequestAction.DiffInfo ( targetBranch , currentBranch , commits , diff ) ; }
Source:
public void test_availableCharsets ( ) throws java.lang.Exception { java.lang.ClassLoader originalClassLoader = java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) ; try { java.lang.Thread.currentThread ( ) . setContextClassLoader ( null ) ; java.util.SortedMap < java.lang.String , java.nio.charset.Charset > charsets = java.nio.charset.Charset.availableCharsets ( ) ; assertTrue ( charsets.containsKey ( "mockCharset00" ) ) ; } finally { java.lang.Thread.currentThread ( ) . setContextClassLoader ( originalClassLoader ) ; } }

Target:
public void testConstructor_NullAliase ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "mock" , null } ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void testMultilineTextMatcher ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.ellipsized ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.LayoutMatchers.hasMultilineText ( ) ) ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.wrap ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.LayoutMatchers.hasMultilineText ( ) ) ) ; }

Target:
public void multilineTextMatcher ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.ellipsized ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.LayoutMatchers.hasMultilineText ( ) ) ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.wrap ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.LayoutMatchers.hasMultilineText ( ) ) ) ; }
Source:
public void testSendUuidIntent ( ) { mRemoteDevices.updateUuids ( mDevice1 ) ; if ( ( android.os.Looper.myLooper ( ) ) != null ) { android.os.Looper.myLooper ( ) . quitSafely ( ) ; } android.os.Looper.loop ( ) ; verify ( mAdapterService ) . sendBroadcast ( any ( ) , anyString ( ) ) ; verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void sendBroadcast ( android.content.Intent intent , java.lang.String receiverPermission ) { recvd = ( intent.getAction ( ) ) == ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; if ( ( recvd ) || ( android.os.Looper.myQueue ( ) . isIdle ( ) ) ) android.os.Looper.myLooper ( ) . quitSafely ( ) ; }
Source:
public final org.jf.dexlib2.iface.reference.FieldReference enum_literal ( ) throws org.jf.smali.RecognitionException { org.jf.dexlib2.iface.reference.FieldReference value = null ; org.jf.dexlib2.immutable.reference.ImmutableFieldReference field_reference228 = null ; try { { match ( input , org.jf.smali.smaliTreeWalker.I_ENCODED_ENUM , org.jf.smali.smaliTreeWalker.FOLLOW_I_ENCODED_ENUM_in_enum_literal3863 ) ; match ( input , Token.DOWN , null ) ; pushFollow ( org.jf.smali.smaliTreeWalker.FOLLOW_field_reference_in_enum_literal3865 ) ; field_reference228 = field_reference ( ) ; ( state._fsp ) -- ; match ( input , Token.UP , null ) ; value = field_reference228 ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final org.jf.dexlib2.iface.reference.FieldReference field_literal ( ) throws org.jf.smali.RecognitionException { org.jf.dexlib2.iface.reference.FieldReference value = null ; org.jf.dexlib2.immutable.reference.ImmutableFieldReference field_reference221 = null ; try { { match ( input , org.jf.smali.smaliTreeWalker.I_ENCODED_FIELD , org.jf.smali.smaliTreeWalker.FOLLOW_I_ENCODED_FIELD_in_field_literal3702 ) ; match ( input , Token.DOWN , null ) ; pushFollow ( org.jf.smali.smaliTreeWalker.FOLLOW_field_reference_in_field_literal3704 ) ; field_reference221 = field_reference ( ) ; ( state._fsp ) -- ; match ( input , Token.UP , null ) ; value = field_reference221 ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public sun.security.util.DerValue [ ] getSequence ( int startLen ) throws java.io.IOException { tag = ( ( byte ) ( buffer.read ( ) ) ) ; if ( ( tag ) != ( sun.security.util.DerValue.tag_Sequence ) ) throw new java.io.IOException ( "Sequence tag error" ) ; return readVector ( startLen ) ; }

Target:
public sun.security.util.DerValue [ ] getSequence ( int startLen , boolean originalEncodedFormRetained ) throws java.io.IOException { tag = ( ( byte ) ( buffer.read ( ) ) ) ; if ( ( tag ) != ( sun.security.util.DerValue.tag_Sequence ) ) throw new java.io.IOException ( "Sequence tag error" ) ; return readVector ( startLen , originalEncodedFormRetained ) ; }
Source:
public java.lang.String getStringValue ( ) { if ( ( mValue ) != null ) { return mValue.getDisplayValue ( ) ; } return "" ; }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( reference ) ) ; if ( ( compareQualifier.getValue ( ) ) == ( referenceQualifier.getValue ( ) ) ) { return false ; } else if ( ( mValue ) == ( com.android.sdklib.resources.DockMode.NONE ) ) { return true ; } return false ; }
Source:
public void onCreate ( ) { super . onCreate ( ) ; if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService.TAG , "onCreate" ) ; } mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; mTelecomManager = ( ( android.telecom.TelecomManager ) ( getSystemService ( Context.TELECOM_SERVICE ) ) ) ; mAdapter.getProfileProxy ( this , mServiceListener , BluetoothProfile.HEADSET_CLIENT ) ; }

Target:
public void onCreate ( ) { super . onCreate ( ) ; if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService.TAG , "onCreate" ) ; } mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; mTelecomManager = ( ( android.telecom.TelecomManager ) ( getSystemService ( Context.TELECOM_SERVICE ) ) ) ; if ( ( mTelecomManager ) != null ) mTelecomManager.clearPhoneAccounts ( ) ; mAdapter.getProfileProxy ( this , mServiceListener , BluetoothProfile.HEADSET_CLIENT ) ; }
Source:
public void invokevirtual ( final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { mv.visitMethodInsn ( Opcodes.INVOKEVIRTUAL , owner , name , desc ) ; }

Target:
public void invokevirtual ( final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { if ( ( api ) >= ( org.objectweb.asm.Opcodes.ASM5 ) ) { invokevirtual ( owner , name , desc , false ) ; return ; } mv.visitMethodInsn ( Opcodes.INVOKEVIRTUAL , owner , name , desc ) ; }
Source:
private void addRemoteSource ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.IPkgDesc d = com.android.sdklib.repository.descriptors.PkgDesc.newSource ( version , revision ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }

Target:
private void addRemoteSource ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newSource ( version , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }
Source:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final long ctx = org.conscrypt.NativeCrypto.EVP_SignInit ( "RSA-SHA256" ) ; assertTrue ( ( ctx != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; org.conscrypt.NativeCrypto.EVP_MD_CTX_destroy ( ctx ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( "foobar" ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final org.conscrypt.OpenSSLDigestContext ctx = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; assertEquals ( 1 , org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "SHA-256" ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , 0 ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public void stopBatchedScan ( ) { synchronized ( mSettingsLock ) { if ( com.android.server.wifi.scanner.WificondScannerImpl.DBG ) android.util.Log.d ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "Stopping scan" ) ; mBackgroundScanSettings = null ; mBackgroundScanEventHandler = null ; mPendingBackgroundScanSettings = null ; mPendingBackgroundScanEventHandler = null ; mBackgroundScanPaused = false ; mBackgroundScanPeriodPending = false ; unscheduleScansLocked ( ) ; } processPendingScans ( ) ; }

Target:
public void stopBatchedScan ( ) { synchronized ( mSettingsLock ) { if ( com.android.server.wifi.scanner.WificondScannerImpl.DBG ) android.util.Log.d ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "Stopping scan" ) ; mBackgroundScanSettings = null ; mBackgroundScanEventHandler = null ; mPendingBackgroundScanSettings = null ; mPendingBackgroundScanEventHandler = null ; mBackgroundScanPaused = false ; mBackgroundScanPeriodPending = false ; unscheduleScansLocked ( ) ; } android.util.Log.d ( com.android.server.wifi.scanner.WificondScannerImpl.TAG , "processPendingScans in request of stopBatchedScan" ) ; processPendingScans ( ) ; }
Source:
private static void assertValues ( android.net.NetworkStats.Entry entry , java.lang.String iface , int uid , int set , int tag , int metered , int roaming ) { org.junit.Assert.assertEquals ( iface , entry.iface ) ; org.junit.Assert.assertEquals ( uid , entry.uid ) ; org.junit.Assert.assertEquals ( set , entry.set ) ; org.junit.Assert.assertEquals ( tag , entry.tag ) ; org.junit.Assert.assertEquals ( metered , entry.metered ) ; org.junit.Assert.assertEquals ( roaming , entry.roaming ) ; }

Target:
private static void assertValues ( android.net.NetworkStats.Entry entry , java.lang.String iface , int uid , int set , int tag , int metered , int roaming , int defaultNetwork ) { org.junit.Assert.assertEquals ( iface , entry.iface ) ; org.junit.Assert.assertEquals ( uid , entry.uid ) ; org.junit.Assert.assertEquals ( set , entry.set ) ; org.junit.Assert.assertEquals ( tag , entry.tag ) ; org.junit.Assert.assertEquals ( metered , entry.metered ) ; org.junit.Assert.assertEquals ( roaming , entry.roaming ) ; org.junit.Assert.assertEquals ( defaultNetwork , entry.defaultNetwork ) ; }
Source:
private void assertLinkAddressesNotEqual ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { assertFalse ( ( ( l1 + " unexpectedly equal to " ) + l2 ) , l1.equals ( l2 ) ) ; assertFalse ( ( ( l2 + " unexpectedly equal to " ) + l1 ) , l2.equals ( l1 ) ) ; }

Target:
private void assertLinkAddressesNotEqual ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { org.junit.Assert.assertFalse ( ( ( l1 + " unexpectedly equal to " ) + l2 ) , l1.equals ( l2 ) ) ; org.junit.Assert.assertFalse ( ( ( l2 + " unexpectedly equal to " ) + l1 ) , l2.equals ( l1 ) ) ; }
Source:
public void dumpShowsPendingConnectionTrace ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect" ) ; org.junit.Assert.assertTrue ( getDumpString ( ) . contains ( "rdev_connect" ) ) ; }

Target:
public void dumpShowsFailureTraceEvenIfConnectionIdIncreases ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect" ) ; mLastMileLogger.reportConnectionEvent ( ( ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID ) + 1 ) , BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.junit.Assert.assertTrue ( getDumpString ( ) . contains ( "--- Last failed" ) ) ; org.junit.Assert.assertTrue ( getDumpString ( ) . contains ( "rdev_connect" ) ) ; }
Source:
public boolean performDexOptIfNeeded ( java.lang.String packageName , java.lang.String instructionSet ) { return performDexOpt ( packageName , instructionSet , false ) ; }

Target:
public android.graphics.Bitmap getEphemeralApplicationIcon ( java.lang.String packageName , int userId ) { if ( com.android.server.pm.PackageManagerService.DISABLE_EPHEMERAL_APPS ) { return null ; } mContext.enforceCallingOrSelfPermission ( Manifest.permission.ACCESS_EPHEMERAL_APPS , "getEphemeralApplicationIcon" ) ; enforceCrossUserPermission ( android.os.Binder.getCallingUid ( ) , userId , true , false , "getEphemeralApplicationIcon" ) ; synchronized ( mPackages ) { return mEphemeralApplicationRegistry.getEphemeralApplicationIconLPw ( packageName , userId ) ; } }
Source:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { if ( ( values.length ) < ( com.ibm.icu.impl.SimplePatternFormatter.getPlaceholderCount ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return com.ibm.icu.impl.SimplePatternFormatter.format ( compiledPattern , appendTo , null , true , offsets , values ) ; }

Target:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { int valuesLength = ( values != null ) ? values.length : 0 ; if ( valuesLength < ( com.ibm.icu.impl.SimplePatternFormatter.getPlaceholderCount ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return com.ibm.icu.impl.SimplePatternFormatter.format ( compiledPattern , values , appendTo , null , true , offsets ) ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo f = findField ( field ) ; if ( f == null ) { return null ; } if ( ( f.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : f.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = m.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
public boolean onCreateOptionsMenu ( android.view.Menu menu ) { super . onCreateOptionsMenu ( menu ) ; menu.add ( 0 , com.android.settings.ApnSettings.MENU_NEW , 0 , getResources ( ) . getString ( R.string.menu_new ) ) . setIcon ( android.R.drawable.ic_menu_add ) ; menu.add ( 0 , com.android.settings.ApnSettings.MENU_RESTORE , 0 , getResources ( ) . getString ( R.string.menu_restore ) ) . setIcon ( android.R.drawable.ic_menu_upload ) ; return true ; }

Target:
public boolean onCreateOptionsMenu ( android.view.Menu menu ) { super . onCreateOptionsMenu ( menu ) ; menu.add ( 0 , com.android.settings.ApnSettings.MENU_NEW , 0 , getResources ( ) . getString ( R.string.menu_new ) ) . setIcon ( android.R.drawable.ic_menu_add ) . setShowAsAction ( MenuItem.SHOW_AS_ACTION_IF_ROOM ) ; menu.add ( 0 , com.android.settings.ApnSettings.MENU_RESTORE , 0 , getResources ( ) . getString ( R.string.menu_restore ) ) . setIcon ( android.R.drawable.ic_menu_upload ) ; return true ; }
Source:
private void processRemovedNoMediaPath ( final java.lang.String path ) { android.media.MediaScanner.clearMediaPathCache ( false , true ) ; final com.android.providers.media.MediaProvider.DatabaseHelper helper ; if ( path.startsWith ( com.android.providers.media.MediaProvider.mExternalStoragePaths [ 0 ] ) ) { helper = getDatabaseForUri ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) ; } else { helper = getDatabaseForUri ( MediaStore.Audio.Media.INTERNAL_CONTENT_URI ) ; } android.database.sqlite.SQLiteDatabase db = helper.getWritableDatabase ( ) ; new com.android.providers.media.MediaProvider.ScannerClient ( getContext ( ) , db , path ) ; }

Target:
private void processRemovedNoMediaPath ( final java.lang.String path ) { android.media.MediaScanner.clearMediaPathCache ( false , true ) ; final com.android.providers.media.MediaProvider.DatabaseHelper helper ; if ( path.startsWith ( mExternalStoragePaths [ 0 ] ) ) { helper = getDatabaseForUri ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) ; } else { helper = getDatabaseForUri ( MediaStore.Audio.Media.INTERNAL_CONTENT_URI ) ; } android.database.sqlite.SQLiteDatabase db = helper.getWritableDatabase ( ) ; new com.android.providers.media.MediaProvider.ScannerClient ( getContext ( ) , db , path ) ; }
Source:
final java.lang.String readFile ( java.lang.String filename ) { try { java.io.FileInputStream fs = new java.io.FileInputStream ( filename ) ; byte [ ] inp = new byte [ 8192 ] ; int size = fs.read ( inp ) ; fs.close ( ) ; return new java.lang.String ( inp , 0 , 0 , size ) ; } catch ( java.io.IOException e ) { } return "" ; }

Target:
public final int startActivityWithConfig ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.net.Uri [ ] grantedUriPermissions , int grantedMode , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , boolean onlyIfNeeded , boolean debug , android.content.res.Configuration config ) { return startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , null , config ) ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { internalName = name ; this . access = access ; this . signature = signature ; this . superName = superName ; this . interfaces = interfaces ; isInterface = com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( java.lang.Math.min ( version , Opcodes.V1_7 ) , access , name , signature , superName , interfaces ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { internalName = name ; this . access = access ; this . signature = signature ; this . superName = superName ; this . interfaces = interfaces ; isInterface = com.google.devtools.build.android.desugar.io.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( java.lang.Math.min ( version , Opcodes.V1_7 ) , access , name , signature , superName , interfaces ) ; }
Source:
public void testStarted ( com.android.ddmlib.testrunner.TestIdentifier test ) { mCurrentCaseResult = mCurrentModuleResult.getOrCreateResult ( test.getClassName ( ) ) ; mCurrentResult = mCurrentCaseResult.getOrCreateResult ( test.getTestName ( ) . trim ( ) ) ; mCurrentResult.reset ( ) ; ( mCurrentTestNum ) ++ ; }

Target:
public void testStarted ( com.android.ddmlib.testrunner.TestIdentifier test ) { mCurrentCaseResult = mCurrentModuleResult.getOrCreateResult ( test.getClassName ( ) ) ; mCurrentResult = mCurrentCaseResult.getOrCreateResult ( test.getTestName ( ) . trim ( ) ) ; if ( mCurrentResult.isRetry ( ) ) { mCurrentResult.reset ( ) ; } ( mCurrentTestNum ) ++ ; }
Source:
public void adjustSuggestedStreamVolume ( int direction , int suggestedStreamType , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { if ( mUseMasterVolume ) { service.adjustMasterVolume ( direction , flags , mApplicationContext.getOpPackageName ( ) ) ; } else { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( mApplicationContext ) ; helper.sendAdjustVolumeBy ( suggestedStreamType , direction , flags ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in adjustSuggestedStreamVolume" , e ) ; } }

Target:
public void adjustSuggestedStreamVolume ( int direction , int suggestedStreamType , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { if ( mUseMasterVolume ) { service.adjustMasterVolume ( direction , flags , getContext ( ) . getOpPackageName ( ) ) ; } else { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( getContext ( ) ) ; helper.sendAdjustVolumeBy ( suggestedStreamType , direction , flags ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in adjustSuggestedStreamVolume" , e ) ; } }
Source:
public void selectionChanged ( org.eclipse.ui.IWorkbenchPart part , org.eclipse.jface.viewers.ISelection selection ) { if ( part instanceof org.eclipse.ui.IEditorPart ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate delegate = com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.fromEditor ( ( ( org.eclipse.ui.IEditorPart ) ( part ) ) ) ; if ( delegate != null ) { setSelection ( selection ) ; } } }

Target:
public void selectionChanged ( org.eclipse.ui.IWorkbenchPart part , org.eclipse.jface.viewers.ISelection selection ) { if ( mIgnoreSelection ) { return ; } if ( part instanceof org.eclipse.ui.IEditorPart ) { com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate delegate = com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.fromEditor ( ( ( org.eclipse.ui.IEditorPart ) ( part ) ) ) ; if ( delegate != null ) { try { mIgnoreSelection = true ; setSelection ( selection ) ; if ( ( mPropertySheet ) != null ) { mPropertySheet.selectionChanged ( part , selection ) ; } } finally { mIgnoreSelection = false ; } } } }
Source:
public void updateControl ( com.android.ide.eclipse.gltrace.model.GLTrace trace , com.android.ide.eclipse.gltrace.model.GLCall call ) { com.android.ide.eclipse.gldebugger.GLEnum type = ( ( com.android.ide.eclipse.gldebugger.GLEnum ) ( call.getProperty ( GLCall.PROPERTY_VERTEX_ATTRIB_POINTER_TYPE ) ) ) ; byte [ ] data = ( ( byte [ ] ) ( call.getProperty ( GLCall.PROPERTY_VERTEX_ATTRIB_POINTER_DATA ) ) ) ; mText.setText ( com.android.ide.eclipse.gltrace.GLUtils.formatData ( data , type ) ) ; }

Target:
public void updateControl ( com.android.ide.eclipse.gltrace.model.GLTrace trace , com.android.ide.eclipse.gltrace.model.GLCall call ) { com.android.ide.eclipse.gltrace.GLEnum type = ( ( com.android.ide.eclipse.gltrace.GLEnum ) ( call.getProperty ( GLCall.PROPERTY_VERTEX_ATTRIB_POINTER_TYPE ) ) ) ; byte [ ] data = ( ( byte [ ] ) ( call.getProperty ( GLCall.PROPERTY_VERTEX_ATTRIB_POINTER_DATA ) ) ) ; mText.setText ( com.android.ide.eclipse.gltrace.GLUtils.formatData ( data , type ) ) ; }
Source:
public void loggedRun ( ) { synchronized ( mLock ) { if ( ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) == 0 ) { android.telecom.Log.wtf ( this , "Over-releasing focus for tone player." ) ; } else if ( ( -- ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) ) == 0 ) { mCallAudioManager.setIsTonePlaying ( false ) ; } } }

Target:
private void cleanUpTonePlayer ( ) { mMainThreadHandler.post ( new java.lang.Runnable ( "ICTP.cUTP" , mLock ) { @ java.lang.Override public void loggedRun ( ) { if ( ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) == 0 ) { android.telecom.Log.wtf ( this , "Over-releasing focus for tone player." ) ; } else if ( ( -- ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) ) == 0 ) { mCallAudioManager.setIsTonePlaying ( false ) ; } } } . prepare ( ) ) ; }
Source:
public int invokeOemRilRequestRaw ( byte [ ] oemReq , byte [ ] oemResp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.invokeOemRilRequestRaw ( oemReq , oemResp ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return - 1 ; }

Target:
public void setNetworkSelectionModeAutomatic ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setNetworkSelectionModeAutomatic ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }
Source:
public void testInvalidClasspathEntry ( ) throws java.lang.Exception { java.io.File srcDir = com.android.jack.TestTools.getJackTestsWithJackFolder ( "classpath/test004" ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "Classpath004.java" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "invalid.jack" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "notjack.zip" ) ) ; }

Target:
public void testInvalidClasspathEntry ( ) throws java.lang.Exception { java.io.File srcDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.classpath.test004.jack" ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "Classpath004.java" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "invalid.jack" ) ) ; compileWithInvalidClasspathEntry ( srcDir , new java.io.File ( srcDir , "notjack.zip" ) ) ; }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitArrayInstance ( this ) ; if ( ( mType ) == ( Type.OBJECT ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } } }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitArrayInstance ( this ) ; if ( ( mType ) == ( Type.OBJECT ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; } }
Source:
static void destroy ( com.android.bluetooth.hfp.HeadsetStateMachine stateMachine ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "destroy" ) ; if ( stateMachine == null ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "destroy(), stateMachine is null" ) ; return ; } stateMachine.doQuit ( ) ; stateMachine.cleanup ( ) ; }

Target:
static void destroy ( com.android.bluetooth.hfp.HeadsetStateMachine stateMachine ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "destroy" ) ; if ( stateMachine == null ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "destroy(), stateMachine is null" ) ; return ; } stateMachine.quitNow ( ) ; stateMachine.cleanup ( ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newSource ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SOURCES ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } } ; }

Target:
public static com.android.sdklib.repository.descriptors.IPkgDesc newSource ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SOURCES ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }
Source:
public java.lang.String obtainVerificationCodeFromUserInteraction ( java.lang.String title , com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeRequestUrl authCodeRequestUrl ) { return null ; }

Target:
public java.lang.String obtainVerificationCodeFromUserInteraction ( java.lang.String title , com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeRequestUrl authCodeRequestUrl ) { com.google.gct.login.ui.GoogleLoginCopyAndPasteDialog dialog = new com.google.gct.login.ui.GoogleLoginCopyAndPasteDialog ( myButton , authCodeRequestUrl , "Google Login" ) ; dialog.show ( ) ; if ( ( dialog.getExitCode ( ) ) == ( com.intellij.openapi.ui.DialogWrapper.CANCEL_EXIT_CODE ) ) { return null ; } return com.google.common.base.Strings.emptyToNull ( dialog.getVerificationCode ( ) ) ; }
Source:
private boolean needFullRebuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; assert ( libraryDependencies ) != null ; return ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }

Target:
private boolean needFullBuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; return ( ( ( incrementalInputLibrary ) == null ) || ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }
Source:
public void testTypicalHexParse ( ) throws java.lang.Exception { byte [ ] sixBytes = new byte [ 6 ] ; mWifiVendorHal.parseUnquotedMacStrToByteArray ( "61:52:43:34:25:16" , sixBytes ) ; org.junit.Assert.assertArrayEquals ( new byte [ ] { 97 , 82 , 67 , 52 , 37 , 22 } , sixBytes ) ; }

Target:
public void testTypicalHexParse ( ) throws java.lang.Exception { byte [ ] sixBytes = new byte [ 6 ] ; mWifiVendorHal.parseUnquotedMacStrToByteArray ( "61:52:43:34:25:16" , sixBytes ) ; org.junit.Assert.Assert.assertArrayEquals ( new byte [ ] { 97 , 82 , 67 , 52 , 37 , 22 } , sixBytes ) ; }