auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testDefaultDisconnectedState ( ) { if ( skipTest ( ) ) return ; android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testDefaultDisconnectedState" ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTING , mMceStateMachine.getState ( ) ) ; }

Target:
public void tearDown ( ) { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ) { return ; } if ( ( mMceStateMachine ) != null ) { mMceStateMachine.doQuit ( ) ; } }
Source:
private static native int [ ] nativeGetStyle ( int obj , int idx ) ;

Target:
private static native java.lang.String nativeGetString ( long obj , int idx ) ;
Source:
public static int getState ( int fullState ) { return ( fullState & ( com.android.systemui.statusbar.phone.SignalDrawable.STATE_MASK ) ) > > ( com.android.systemui.statusbar.phone.SignalDrawable.STATE_SHIFT ) ; }

Target:
public static int getState ( int fullState ) { return ( fullState & ( com.android.settingslib.graph.SignalDrawable.STATE_MASK ) ) > > ( com.android.settingslib.graph.SignalDrawable.STATE_SHIFT ) ; }
Source:
private void noresultCase ( java.lang.String file ) { android.util.Log.v ( "Layout test:" , ( file + " no expected result" ) ) ; mResultRecorder.noresult ( file ) ; }

Target:
private void ignoreResultCase ( java.lang.String file ) { android.util.Log.v ( "Layout test:" , ( file + " ignore result" ) ) ; mResultRecorder.ignoreResult ( file ) ; }
Source:
public void test_minusMonths_long_negativeOverYears ( ) { java.time.LocalDate t = TEST_2007_07_15.minusMonths ( ( - 31 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2010 , 2 , 15 ) ) ; }

Target:
public void test_minusMonths_long_negativeOverYears ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.minusMonths ( ( - 31 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2010 , 2 , 15 ) ) ; }
Source:
static boolean isOffsetTag ( short tag ) { return com.android.dialer.callcomposer.camera.exif.ExifInterface.sOffsetTags.contains ( tag ) ; }

Target:
static boolean isOffsetTag ( short tag ) { return com.android.dialer.callcomposer.camera.exif.ExifInterface.offsetTags.contains ( tag ) ; }
Source:
public java.lang.String getAlgorithm ( ) { throw new java.lang.UnsupportedOperationException ( "not implemented" ) ; }

Target:
public java.lang.String getAlgorithm ( ) { return "MOCK" ; }
Source:
public final void onTechnologyChangeFailed ( @ android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech int imsRadioTech , com.android.ims.ImsReasonInfo info ) { onRegistrationChangeFailed ( imsRadioTech , info ) ; }

Target:
public final void onTechnologyChangeFailed ( @ android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech int imsRadioTech , android.telephony.ims.ImsReasonInfo info ) { onRegistrationChangeFailed ( imsRadioTech , info ) ; }
Source:
public boolean getMasterSyncAutomatically ( ) { synchronized ( mAuthorities ) { return mMasterSyncAutomatically ; } }

Target:
public boolean getMasterSyncAutomatically ( int userId ) { synchronized ( mAuthorities ) { java.lang.Boolean auto = mMasterSyncAutomatically.get ( userId ) ; return auto == null ? mDefaultMasterSyncAutomatically : auto ; } }
Source:
public java.lang.Object opt ( java.lang.String name ) { return nameValuePairs.get ( name ) ; }

Target:
public boolean has ( java.lang.String name ) { return nameValuePairs.containsKey ( name ) ; }
Source:
private native void gattClientReadCharacteristicNative ( int conn_id , int service_type , int service_id_inst_id , long service_id_uuid_lsb , long service_id_uuid_msb , int char_id_inst_id , long char_id_uuid_lsb , long char_id_uuid_msb , int authReq ) ;

Target:
private native void gattClientWriteDescriptorNative ( int conn_id , int handle , int write_type , int auth_req , byte [ ] value ) ;
Source:
public abstract int getIntentVerificationStatusAsUser ( java.lang.String packageName , @ android.annotation.UserIdInt int userId ) ;

Target:
public abstract boolean setDefaultBrowserPackageNameAsUser ( java.lang.String packageName , @ android.annotation.UserIdInt int userId ) ;
Source:
public abstract boolean handleChangedGeneratedJavaFile ( org.eclipse.core.resources.IFolder currentSourceFolder , org.eclipse.core.resources.IFile file , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders ) ;

Target:
protected abstract void doCompileFiles ( java.util.List < org.eclipse.core.resources.IFile > filesToCompile , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder builder , org.eclipse.core.resources.IProject project , com.android.sdklib.IAndroidTarget projectTarget , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders , java.util.List < org.eclipse.core.resources.IFile > notCompiledOut , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException ;
Source:
public double get ( int index ) { return byteBuffer.getDouble ( ( index * ( libcore.io.SizeOf.DOUBLE ) ) ) ; }

Target:
public double get ( int index ) { checkIndex ( index ) ; return byteBuffer.getDouble ( ( index * ( libcore.io.SizeOf.DOUBLE ) ) ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( mTag , mAbiType , mAddonVendor , mLocation , mSkins ) ; }

Target:
public int hashCode ( ) { int hashCode = com.google.common.base.Objects.hashCode ( mTag , mAbiType , mAddonVendor , mLocation ) ; hashCode *= 37 ; hashCode += java.util.Arrays.hashCode ( mSkins ) ; return hashCode ; }
Source:
public final float getFloat ( int index ) { checkIndex ( index , SizeOf.FLOAT ) ; return java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + index ) , order ) ) ; }

Target:
public final float getFloat ( int index ) { checkNotFreed ( ) ; checkIndex ( index , SizeOf.FLOAT ) ; return java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + index ) , order ) ) ; }
Source:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVFile file ) throws com.android.sched.util.file.WrongPermissionException { return new java.util.zip.InflaterInputStream ( vfs.openRead ( file ) , new java.util.zip.Inflater ( ) ) ; }

Target:
com.android.sched.vfs.VPath getPathFromRoot ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVFile file ) { return vfs.getPathFromRoot ( file.getWrappedFile ( ) ) ; }
Source:
private native void gattClientScanFilterEnableNative ( int client_if , boolean enable ) ;

Target:
private native void gattClientScanFilterEnableNative ( int clientIf , boolean enable ) ;
Source:
private native void gattServerSendResponseNative ( int server_if , int conn_id , int trans_id , int status , int handle , int offset , byte [ ] val , int auth_req ) ;

Target:
private native void gattServerSendResponseNative ( int serverIf , int connId , int transId , int status , int handle , int offset , byte [ ] val , int authReq ) ;
Source:
private void notifyCharacteristicReadRequest ( ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "notifyCharacteristicReadRequest" ) ; android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_CHARACTERISTIC_READ_REQUEST ) ; sendBroadcast ( intent ) ; }

Target:
private void notifyCharacteristicReadRequest ( boolean resetValues ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "notifyCharacteristicReadRequest" ) ; } android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleServerService.BLE_CHARACTERISTIC_READ_REQUEST ) ; sendBroadcast ( intent ) ; if ( resetValues ) { resetValues ( ) ; } }
Source:
public void run ( ) { if ( ! ( isDisposed ( ) ) ) { updateErrorIndicator ( hasLintWarnings ) ; } }

Target:
public void run ( ) { if ( ! ( isDisposed ( ) ) ) { updateErrorIndicator ( markerCount ) ; } }
Source:
public java.lang.String imsGetWfcMode ( ) { if ( ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) == false ) { return TelephonyConstants.WFC_MODE_DISABLED ; } return com.googlecode.android_scripting.facade.telephony.TelephonyUtils.getWfcModeString ( com.android.ims.ImsManager.getWfcMode ( mContext ) ) ; }

Target:
public java.lang.String imsGetWfcMode ( ) { if ( ! ( mImsManager.isWfcEnabledByUserForSlot ( ) ) ) { return TelephonyConstants.WFC_MODE_DISABLED ; } return com.googlecode.android_scripting.facade.telephony.TelephonyUtils.getWfcModeString ( mImsManager.getWfcModeForSlot ( ) ) ; }
Source:
public int select ( long timeout ) throws java.io.IOException { if ( timeout < 0 ) { throw new java.lang.IllegalArgumentException ( ) ; } return selectInternal ( ( timeout == 0 ? - 1 : timeout ) ) ; }

Target:
public int select ( long timeout ) throws java.io.IOException { if ( timeout < 0 ) { throw new java.lang.IllegalArgumentException ( ( "timeout < 0: " + timeout ) ) ; } return selectInternal ( ( timeout == 0 ? - 1 : timeout ) ) ; }
Source:
public void test3rdPartyTests ( ) throws java.lang.Exception { runTasksOn ( new java.io.File ( testDir , "3rdPartyTests" ) , BasePlugin.GRADLE_TEST_VERSION , "clean" , "deviceCheck" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; manualDir = new java.io.File ( testDir , FOLDER_TEST_MANUAL ) ; regularDir = new java.io.File ( testDir , FOLDER_TEST_REGULAR ) ; }
Source:
private final native void destroyAsset ( int asset ) ;

Target:
private final native long getAssetRemainingLength ( long asset ) ;
Source:
public void testDuplicateActivity ( ) throws java.lang.Exception { assertEquals ( ( "AndroidManifest.xml:16: Error: Duplicate registration for activity com.example.helloworld.HelloWorld [DuplicateActivity]\n" + ( ( ( " <activity android:name=\"com.example.helloworld.HelloWorld\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "duplicate-manifest.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }

Target:
public void testDuplicateActivity ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestOrderDetector.DUPLICATE_ACTIVITY ) ; assertEquals ( ( "AndroidManifest.xml:16: Error: Duplicate registration for activity com.example.helloworld.HelloWorld [DuplicateActivity]\n" + ( ( ( " <activity android:name=\"com.example.helloworld.HelloWorld\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "duplicate-manifest.xml=>AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }
Source:
public void testRunStopped ( long arg0 ) { }

Target:
public void testRunStopped ( long elapsedTime ) { mRunResult.testRunStopped ( elapsedTime ) ; }
Source:
public int get ( int index ) { return byteBuffer.getInt ( ( index * ( libcore.io.SizeOf.INT ) ) ) ; }

Target:
public int get ( int index ) { checkIndex ( index ) ; return byteBuffer.getInt ( ( index * ( libcore.io.SizeOf.INT ) ) ) ; }
Source:
public void run ( ) { canRestart [ 0 ] = org.eclipse.jface.dialogs.MessageDialog.openQuestion ( getWindowShell ( ) , "ADB Restart" , ( "A package that depends on ADB has been updated. It is recommended " + ( "to restart ADB. Is it OK to do it now? If not, you can restart it " + "manually later." ) ) ) ; }

Target:
public void run ( ) { canRestart [ 0 ] = org.eclipse.jface.dialogs.MessageDialog.openQuestion ( getWindowShell ( ) , "ADB Restart" , ( "A package that depends on ADB has been updated. \n" + "Do you want to restart ADB now?" ) ) ; }
Source:
static float $opt$ByteToFloat ( byte a ) { return ( ( float ) ( a ) ) ; }

Target:
static double $opt$ByteToDouble ( byte a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.AnnotationMethodDeclaration x , org.eclipse.jdt.internal.compiler.lookup.ClassScope classScope ) { popMethodInfo ( ) ; }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.AnnotationMethodDeclaration x , org.eclipse.jdt.internal.compiler.lookup.ClassScope classScope ) { addAnnotations ( x.annotations , curMethod.method ) ; popMethodInfo ( ) ; }
Source:
synchronized void nAllocationRead ( long id , int [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nScriptSetVarD ( long id , int slot , double val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarD ( curCon , id , slot , val , mUseInc ) ; }
Source:
public static double ReturnDouble34 ( ) { long imm = 34L ; return ( ( double ) ( imm ) ) ; }

Target:
public static double ReturnDouble34 ( ) { long imm = Main.$inline$long ( 34L ) ; return ( ( double ) ( imm ) ) ; }
Source:
public void set ( int x , int y , int w , int h ) { this . x = x ; this . y = y ; this . w = w ; this . h = h ; }

Target:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Rect set ( int x , int y , int w , int h ) { this . x = x ; this . y = y ; this . w = w ; this . h = h ; return this ; }
Source:
public static java.net.InetAddress getLoopbackAddress ( ) { return java.net.InetAddress.impl.loopbackAddress ( ) ; }

Target:
public static void clearDnsCache ( ) { java.net.InetAddress.impl.clearAddressCache ( ) ; }
Source:
static com.android.sched.vfs.VPath getFilePath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return new com.android.sched.vfs.VPath ( ( ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( type ) ) + ( BinaryKind.DEX.getFileExtension ( ) ) ) , '/' ) ; }

Target:
static com.android.sched.vfs.VPath getFilePath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return new com.android.sched.vfs.VPath ( ( ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( type ) ) + ( FileType.DEX.getFileExtension ( ) ) ) , '/' ) ; }
Source:
public static native int getDexOptNeeded ( java.lang.String fileName , java.lang.String instructionSet , java.lang.String compilerFilter , boolean newProfile , boolean downgrade ) throws java.io.FileNotFoundException , java.io.IOException ;

Target:
public static native int getDexOptNeeded ( java.lang.String fileName , java.lang.String instructionSet , java.lang.String compilerFilter , java.lang.String classLoaderContext , boolean newProfile , boolean downgrade ) throws java.io.FileNotFoundException , java.io.IOException ;
Source:
private void fixParentAfterDisconnect ( ) { setParentCall ( null ) ; }

Target:
public android.content.Intent getOriginalCallIntent ( ) { return mOriginalCallIntent ; }
Source:
public void deleteManualPreviews ( ) { disposePreviews ( ) ; selectMode ( RenderPreviewMode.NONE ) ; mCanvas.setFitScale ( true , true ) ; if ( ( mManualList ) != null ) { mManualList.delete ( ) ; } }

Target:
public void deleteManualPreviews ( ) { disposePreviews ( ) ; selectMode ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewMode.NONE ) ; mCanvas.setFitScale ( true , true ) ; if ( ( mManualList ) != null ) { mManualList.delete ( ) ; } }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Point copy ( ) { return new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( x , y ) ; }

Target:
public com.android.ide.common.api.Point copy ( ) { return new com.android.ide.common.api.Point ( x , y ) ; }
Source:
public void test_available ( ) throws java.io.IOException { assertEquals ( "Test 1: Returned incorrect number of available bytes;" , libcore.java.io.OldFilterInputStreamTest.testLength , is.available ( ) ) ; is.close ( ) ; try { is.available ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_available ( ) throws java.io.IOException { assertEquals ( "Test 1: Returned incorrect number of available bytes;" , libcore.java.io.OldFilterInputStreamTest.INPUT_LENGTH , is.available ( ) ) ; is.close ( ) ; try { is.available ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }
Source:
public void carrierActionSetRadioEnabled ( boolean enabled ) { if ( ( mDcTracker ) != null ) { mDcTracker.carrierActionSetRadioEnabled ( enabled ) ; } }

Target:
public void carrierActionSetRadioEnabled ( boolean enabled ) { mCarrierActionAgent.carrierActionSetRadioEnabled ( enabled ) ; }
Source:
public static void computeAsin ( android.renderscript.cts.TestAsin.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.asin ( args.in ) ) ) ; }

Target:
public static void computeRsqrt ( android.renderscript.cts.TestRsqrt.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( ( 1.0F / ( android.renderscript.cts.CoreMathVerifier.sqrt ( args.in ) ) ) , 2 , 2 ) ; }
Source:
public java.io.File getZipAlign ( ) { return getTool ( SdkConstants.FN_ZIPALIGN ) ; }

Target:
public java.io.File getZipAlign ( ) { if ( ( mZipAlign ) == null ) { mZipAlign = new java.io.File ( getHostToolsFolder ( ) , com.android.SdkConstants.FN_ZIPALIGN ) ; } return mZipAlign ; }
Source:
public boolean setCodecConfigPreference ( android.bluetooth.BluetoothCodecConfig [ ] codecConfigArray ) { return setCodecConfigPreferenceNative ( codecConfigArray ) ; }

Target:
public boolean setCodecConfigPreference ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothCodecConfig [ ] codecConfigArray ) { return setCodecConfigPreferenceNative ( getByteAddress ( device ) , codecConfigArray ) ; }
Source:
public int readInt ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_INT ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; return com.android.dx.util.EncodedValueUtils.readSignedInt ( in , arg ) ; }

Target:
public int readInt ( ) { checkType ( com.android.dex.EncodedValueReader.ENCODED_INT ) ; type = com.android.dex.EncodedValueReader.MUST_READ ; return com.android.dex.EncodedValueCodec.readSignedInt ( in , arg ) ; }
Source:
void startNetworkScan ( android.os.Message response ) ;

Target:
void startNetworkScan ( android.telephony.NetworkScanRequest nsr , android.os.Message response ) ;
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSwitchStatement x ) { assert ( block ) instanceof com.android.jack.ir.ast.cfg.JSwitchBasicBlock ; addElement ( new com.android.jack.ir.ast.cfg.JSwitchBlockElement ( x.getSourceInfo ( ) , x.getExpr ( ) ) ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSwitchStatement x ) { assert ( block ) instanceof com.android.jack.ir.ast.cfg.JSwitchBasicBlock ; addElement ( x , new com.android.jack.ir.ast.cfg.JSwitchBlockElement ( x.getSourceInfo ( ) , ExceptionHandlingContext.EMPTY , x.getExpr ( ) ) ) ; return false ; }
Source:
public synchronized boolean check ( ) { return mExpectedResult.equals ( mActualResult ) ; }

Target:
public void run ( ) { super . run ( ) ; synchronized ( this ) { junit.framework.Assert.assertEquals ( mExpectedResult , mActualResult ) ; } }
Source:
private com.android.dx.cf.code.RegisterSpec getSynchReg ( ) { int reg = getNormalRegCount ( ) ; return com.android.dx.cf.code.RegisterSpec.make ( ( reg < 1 ? 1 : reg ) , Type.OBJECT ) ; }

Target:
private com.android.dx.rop.code.RegisterSpec getSynchReg ( ) { int reg = getNormalRegCount ( ) ; return com.android.dx.rop.code.RegisterSpec.make ( ( reg < 1 ? 1 : reg ) , Type.OBJECT ) ; }
Source:
private void testExplicitSize ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = 200 ; params.height = 200 ; } ) ; }

Target:
private void testExplicitSize ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = ( 200 - ( mOutsets.left ) ) - ( mOutsets.right ) ; params.height = ( 200 - ( mOutsets.bottom ) ) - ( mOutsets.top ) ; } ) ; }
Source:
private boolean getAutoTime ( ) { try { return ( Settings.Global.getInt ( mCr , Settings.Global.AUTO_TIME ) ) > 0 ; } catch ( android.provider.Settings snfe ) { return true ; } }

Target:
private boolean iccCardExists ( ) { boolean iccCardExist = false ; if ( ( mUiccApplcation ) != null ) { iccCardExist = ( mUiccApplcation.getState ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN ) ; } return iccCardExist ; }
Source:
public java.lang.String deriveValue ( @ org.jetbrains.annotations.NotNull com.google.gct.idea.samples.ScopedStateStore state , com.android.tools.idea.wizard.ScopedStateStore.Key changedKey , @ org.jetbrains.annotations.Nullable java.lang.String currentValue ) { java.lang.String name = state.get ( com.google.gct.idea.samples.SampleImportWizardPath.SAMPLE_NAME ) ; if ( name == null ) { return "" ; } return com.google.gct.idea.samples.SampleSetupStep.getFileLocation ( name ) . getAbsolutePath ( ) ; }

Target:
public java.lang.String deriveValue ( @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.dynamic.ScopedStateStore state , com.android.tools.idea.wizard.dynamic.ScopedStateStore.Key changedKey , @ org.jetbrains.annotations.Nullable java.lang.String currentValue ) { java.lang.String name = state.get ( com.google.gct.idea.samples.SampleImportWizardPath.SAMPLE_NAME ) ; if ( name == null ) { return "" ; } return com.google.gct.idea.samples.SampleSetupStep.getFileLocation ( name ) . getAbsolutePath ( ) ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { try { runTasksOnProject ( projectName , gradleVersion , "check" ) ; } finally { } }

Target:
protected void runTest ( ) throws java.lang.Throwable { try { runTasksOnProject ( projectName , gradleVersion , "deviceCheck" ) ; } finally { } }
Source:
private void updatePassState ( android.view.View postTarget , java.lang.Runnable failCallback ) { if ( ( mTuneVerified ) && ( mOverlayViewVerified ) ) { postTarget.removeCallbacks ( failCallback ) ; getPassButton ( ) . setEnabled ( true ) ; } }

Target:
private void goToNextState ( android.view.View postTarget , java.lang.Runnable failCallback ) { if ( ( mTuneVerified ) && ( mOverlayViewVerified ) ) { postTarget.removeCallbacks ( failCallback ) ; setButtonEnabled ( mGoToEpgItem , true ) ; } }
Source:
public com.android.ide.common.rendering.api.AdapterBinding getAdapterBinding ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie ) { return null ; }

Target:
public com.android.ide.common.rendering.api.AdapterBinding getAdapterBinding ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , java.lang.Object viewObject ) { return null ; }
Source:
private boolean isScoAcceptable ( ) { return ( mVoiceRecognitionStarted ) || ( isInCall ( ) ) ; }

Target:
private native boolean setScoAllowedNative ( boolean value ) ;
Source:
private void processAtBiev ( int ind_id , int ind_value , android.bluetooth.BluetoothDevice device ) { log ( ( ( ( " Process AT + BIEV Command : " + ind_id ) + ", " ) + ind_value ) ) ; sendIndicatorIntent ( device , ind_id , ind_value ) ; }

Target:
private void processAtBiev ( int indId , int indValue , android.bluetooth.BluetoothDevice device ) { log ( ( ( ( "processAtBiev: ind_id=" + indId ) + ", ind_value=" ) + indValue ) ) ; sendIndicatorIntent ( device , indId , indValue ) ; }
Source:
public void onPlayFromSearch ( java.lang.String query , android.os.Bundle extras ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "playFromSearch not supported in AVRCP" ) ; }

Target:
public void onFastForward ( ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "onFastForward" ) ; mAvrcpCommandQueue.obtainMessage ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.MSG_AVRCP_PASSTHRU , AvrcpControllerService.PASS_THRU_CMD_ID_FF ) . sendToTarget ( ) ; }
Source:
public android.net.http.SslCertificate call ( ) { return getCertificate ( ) ; }

Target:
public java.lang.Boolean call ( ) { return overlayVerticalScrollbar ( ) ; }
Source:
static long $opt$ShortToLong ( short a ) { return ( ( long ) ( a ) ) ; }

Target:
static long $opt$ShortToLong ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }
Source:
private void introspectClass ( java.lang.Class < ? > clazz ) { introspect ( clazz.getGenericSuperclass ( ) ) ; for ( java.lang.reflect.Type interfaceType : clazz.getGenericInterfaces ( ) ) { introspect ( interfaceType ) ; } }

Target:
void visitClass ( java.lang.Class < ? > clazz ) { visit ( clazz.getGenericSuperclass ( ) ) ; visit ( clazz.getGenericInterfaces ( ) ) ; }
Source:
public boolean isConflicting ( com.android.tv.dvr.ScheduledRecording schedule ) { return ( ( schedule != null ) && ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) && ( mScheduleManager.isConflicting ( schedule ) ) ; }

Target:
public boolean isConflicting ( com.android.tv.dvr.data.ScheduledRecording schedule ) { return ( ( schedule != null ) && ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) && ( mScheduleManager.isConflicting ( schedule ) ) ; }
Source:
public void testFindView_NotFound ( ) { android.view.View root = setUpViewHierarchy ( ) ; try { android.support.test.espresso.assertion.PositionAssertions.findView ( android.support.test.espresso.matcher.ViewMatchers.withText ( "does not exist" ) , root ) ; } catch ( android.support.test.espresso.NoMatchingViewException expected ) { return ; } fail ( "NoMatchingViewException is expected." ) ; }

Target:
public void findView_NotFound ( ) { android.view.View root = setUpViewHierarchy ( ) ; expectedException.expect ( android.support.test.espresso.NoMatchingViewException.class ) ; android.support.test.espresso.assertion.PositionAssertions.findView ( android.support.test.espresso.matcher.ViewMatchers.withText ( "does not exist" ) , root ) ; }
Source:
public void testManifestInstallLocationFwdLockedSdcard ( ) { installFromRawResource ( "install.apk" , R.raw.install_loc_sdcard , PackageManager.INSTALL_FORWARD_LOCK , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }

Target:
public void testFlagFManifestE ( ) { installFromRawResource ( "install.apk" , R.raw.install_loc_sdcard , PackageManager.INSTALL_FORWARD_LOCK , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }
Source:
protected void visitMethod ( int type , int index ) { constantValue = getCstMethodRef ( dex , index ) ; }

Target:
protected void visitType ( int type , int index ) { assert ( cstIndexMap ) != null ; constantValue = cstIndexMap.getCstType ( index ) ; }
Source:
public void setSelection ( org.eclipse.jface.viewers.ISelection selection , boolean reveal ) { mCanvas.setSelection ( selection ) ; }

Target:
public org.eclipse.jface.viewers.ISelection getSelection ( ) { return mCanvas.getSelectionManager ( ) . getSelection ( ) ; }
Source:
public com.android.layoutlib.api.SceneResult render ( long timeout ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult render ( long timeout ) { return SceneStatus.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
public void setupDataCall ( int radioTechnology , int profile , java.lang.String apn , java.lang.String user , java.lang.String password , int authType , java.lang.String protocol , android.os.Message result ) ;

Target:
default void getCellInfoList ( android.os.Message result , android.os.WorkSource workSource ) { }
Source:
public void enter ( ) { super . enter ( ) ; mWasOnSpeaker = true ; setSpeakerphoneOn ( true ) ; setBluetoothOn ( false ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_SPEAKER , mAvailableRoutes ) ; setSystemAudioState ( newState ) ; updateInternalCallAudioState ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; mWasOnSpeaker = true ; setSpeakerphoneOn ( true ) ; setBluetoothOff ( ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_SPEAKER , mAvailableRoutes ) ; setSystemAudioState ( newState ) ; updateInternalCallAudioState ( ) ; }
Source:
public void onRepeat ( android.view.View v , long howlong , int repcnt ) { scanBackward ( repcnt , howlong ) ; }

Target:
public void onRepeat ( android.view.View v , long howlong , int repcnt ) { scanForward ( repcnt , howlong ) ; }
Source:
public void run ( ) { mFrameLayout.setForeground ( foreground ) ; }

Target:
public void run ( ) { mFrameLayout.setForeground ( foreground ) ; drawWaiter.registerDrawCompleteCallback ( mFrameLayout ) ; }
Source:
public static long AndIntLong ( ) { int lhs = Main.$inline$int ( 10 ) ; long rhs = Main.$inline$long ( 3L ) ; return lhs & rhs ; }

Target:
public static long AndLongInt ( ) { long lhs = 10 ; int rhs = 3 ; return lhs & rhs ; }
Source:
private boolean doLaunchAction ( final com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo info , com.android.ddmlib.IDevice device ) { boolean result = info.getLaunchAction ( ) . doLaunchAction ( info , device ) ; com.android.ide.eclipse.ddms.DdmsPlugin.getDefault ( ) . startLogCatMonitor ( device ) ; return result ; }

Target:
private boolean doLaunchAction ( final com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo info , com.android.ddmlib.IDevice device ) { return doLaunchAction ( info , java.util.Collections.singletonList ( device ) ) ; }
Source:
public void setDescription ( java.lang.String description ) { if ( ! ( com.android.internal.util.Objects.equal ( mMutableInfo.description , description ) ) ) { mMutableInfo.description = description ; mImmutableInfo = null ; } }

Target:
public void setDescription ( java.lang.String description ) { if ( ! ( java.util.Objects.equals ( mMutableInfo.description , description ) ) ) { mMutableInfo.description = description ; mImmutableInfo = null ; } }
Source:
public void enable ( com.google.gct.testing.dimension.CloudTestingType ... types ) { checkIsEditable ( ) ; for ( com.google.gct.testing.dimension.CloudTestingType type : types ) { validateType ( type ) ; enableType ( type ) ; } }

Target:
public void enable ( com.google.gct.testing.dimension.CloudTestingType ... types ) { checkIsEditable ( ) ; for ( com.google.gct.testing.dimension.CloudTestingType type : types ) { if ( getSupportedDomain ( ) . contains ( type ) ) { enableType ( type ) ; } } }
Source:
public com.google.mockwebserver.MockResponse setBody ( java.lang.String body ) { try { return setBody ( body.getBytes ( com.google.mockwebserver.MockWebServer.ASCII ) ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.AssertionError ( ) ; } }

Target:
public com.google.mockwebserver.MockResponse setChunkedBody ( java.lang.String body , int maxChunkSize ) { try { return setChunkedBody ( body.getBytes ( "UTF-8" ) , maxChunkSize ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.AssertionError ( ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JConstructor x ) { return visit ( ( ( com.android.jack.ir.ast.JMethod ) ( x ) ) ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JConstructor constructor ) { return visit ( ( ( com.android.jack.ir.ast.JMethod ) ( constructor ) ) ) ; }
Source:
public void testEncode_String_NullEncoder ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset2 c = new tests.api.java.nio.charset.CharsetTest.MockCharset2 ( "mock2" , null ) ; try { c.encode ( "hehe" ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void testEncode_String_NullEncoder ( ) { org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset2 c = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset2 ( "mock2" , null ) ; try { c.encode ( "hehe" ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void onDisconnect ( int cause ) { com.android.services.telephony.Log.i ( this , "onDisconnect: cause=%s" , android.telephony.DisconnectCause.toString ( cause ) ) ; mHandler.obtainMessage ( com.android.services.telephony.TelephonyConnection.MSG_DISCONNECT ) ; }

Target:
public void onDisconnect ( int cause ) { com.android.services.telephony.Log.i ( this , "onDisconnect: callId=%s, cause=%s" , getTelecomCallId ( ) , android.telephony.DisconnectCause.toString ( cause ) ) ; mHandler.obtainMessage ( com.android.services.telephony.TelephonyConnection.MSG_DISCONNECT ) . sendToTarget ( ) ; }
Source:
private boolean isPlayingState ( int playState ) { boolean isPlaying = false ; switch ( playState ) { case android.media.RemoteControlClient.PLAYSTATE_PLAYING : case android.media.RemoteControlClient.PLAYSTATE_BUFFERING : isPlaying = true ; break ; default : isPlaying = false ; break ; } return isPlaying ; }

Target:
private boolean isPlayingState ( android.media.session.PlaybackState state ) { return ( ( state.getState ( ) ) == ( android.media.session.PlaybackState.STATE_PLAYING ) ) || ( ( state.getState ( ) ) == ( android.media.session.PlaybackState.STATE_BUFFERING ) ) ; }
Source:
public void showSoftInputUnchecked ( int flags , android.os.ResultReceiver resultReceiver ) { try { mService.showSoftInput ( mClient , flags , resultReceiver ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void showSoftInputUnchecked ( int flags , android.os.ResultReceiver resultReceiver ) { try { mService.showSoftInput ( mClient , flags , resultReceiver ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.ViewNode ) { return ( ( com.android.hierarchyviewerlib.device.ViewNode ) ( element ) ) . name ; } return null ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.models.ViewNode ) { return ( ( com.android.hierarchyviewerlib.models.ViewNode ) ( element ) ) . name ; } return null ; }
Source:
public com.android.bluetooth.a2dpsink.mbs.BrowserRoot onGetRoot ( java.lang.String clientPackageName , int clientUid , android.os.Bundle rootHints ) { return new com.android.bluetooth.a2dpsink.mbs.BrowserRoot ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.MEDIA_ID_ROOT , null ) ; }

Target:
public com.android.bluetooth.a2dpsink.mbs.BrowserRoot onGetRoot ( java.lang.String clientPackageName , int clientUid , android.os.Bundle rootHints ) { return new com.android.bluetooth.a2dpsink.mbs.BrowserRoot ( com.android.bluetooth.avrcpcontroller.BrowseTree.ROOT , null ) ; }
Source:
protected int getMetricsCategory ( ) { return com.android.internal.logging.MetricsLogger.DASHBOARD_SEARCH_RESULTS ; }

Target:
protected int getMetricsCategory ( ) { return com.android.internal.logging.MetricsProto.MetricsEvent.DASHBOARD_SEARCH_RESULTS ; }
Source:
public void openSettings ( ) { }

Target:
public boolean onMenuItemClicked ( android.view.MenuItem menuItem ) { if ( ( menuItem.getItemId ( ) ) == ( R.id.settings ) ) { } else if ( ( menuItem.getItemId ( ) ) == ( R.id.clear_frequents ) ) { } return false ; }
Source:
static void init ( @ javax.annotation.Nonnull javax.annotation.processing.ProcessingEnvironment env ) { com.android.sched.build.SchedAnnotationProcessor.Items.env = env ; }

Target:
static void init ( @ javax.annotation.Nonnull javax.annotation.processing.ProcessingEnvironment env ) { com.android.sched.build.SchedAnnotationProcessor.Items.env = env ; com.android.sched.build.SchedAnnotationProcessor.Items.reset ( ) ; }
Source:
private void waitForFilteredIntent ( android.content.ContextWrapper contextWrapper , final java.lang.String action ) throws java.lang.InterruptedException { contextWrapper.sendOrderedBroadcast ( new android.content.Intent ( action ) , null ) ; synchronized ( mLockObj ) { mLockObj.wait ( android.content.cts.ContextWrapperTest.BROADCAST_TIMEOUT ) ; } }

Target:
private void waitForFilteredIntent ( android.content.ContextWrapper contextWrapper , final java.lang.String action ) throws java.lang.InterruptedException { contextWrapper.sendBroadcast ( new android.content.Intent ( action ) , null ) ; synchronized ( mLockObj ) { mLockObj.wait ( android.content.cts.ContextWrapperTest.BROADCAST_TIMEOUT ) ; } }
Source:
public void test_SingletonMap_computeIfAbsent ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . computeIfAbsent ( 1 , ( k ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_SingletonMap_merge ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . merge ( 1 , 5.0 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
private static org.eclipse.jdt.core.dom.TagElement createIcuMarker ( org.eclipse.jdt.core.dom.AST ast ) { return com.google.currysrc.api.transform.ast.AstNodes.createTextTagElement ( ast , "<strong>[icu]</strong>" ) ; }

Target:
private static org.eclipse.jdt.core.dom.TagElement createIcuMarker ( org.eclipse.jdt.core.dom.AST ast ) { return com.google.currysrc.api.process.ast.AstNodes.createTextTagElement ( ast , "<strong>[icu]</strong>" ) ; }
Source:
final void putShort ( int offset , short value ) { sun.nio.ch.NativeObject.unsafe.putShort ( ( offset + ( address ) ) , value ) ; }

Target:
final void putShort ( int offset , short value ) { sun.nio.ch.NativeObject.unsafe.putShort$ ( ( offset + ( address ) ) , value ) ; }
Source:
public void testConfigRequestBuilderClusterLowAboveMax ( ) { new android.net.wifi.nan.ConfigRequest.Builder ( ) . setClusterLow ( ( ( android.net.wifi.nan.ConfigRequest.CLUSTER_ID_MAX ) + 1 ) ) ; }

Target:
public void testConfigRequestBuilderClusterLowAboveMax ( ) { new android.net.wifi.aware.ConfigRequest.Builder ( ) . setClusterLow ( ( ( android.net.wifi.aware.ConfigRequest.CLUSTER_ID_MAX ) + 1 ) ) ; }
Source:
public final com.android.tools.perflib.heap.StackTrace getStackTrace ( int traceSerialNumber ) { return mTraces.get ( traceSerialNumber ) ; }

Target:
public final com.android.tools.perflib.heap.StackTrace getStackTraceAtDepth ( int traceSerialNumber , int depth ) { com.android.tools.perflib.heap.StackTrace trace = mTraces.get ( traceSerialNumber ) ; if ( trace != null ) { trace = trace.fromDepth ( depth ) ; } return trace ; }
Source:
boolean rejectIncomingConnect ( android.bluetooth.BluetoothDevice device ) { return false ; }

Target:
synchronized void onDeviceStateChanged ( com.android.bluetooth.hfp.HeadsetDeviceState deviceState ) { mStateMachine.sendMessage ( HeadsetStateMachine.DEVICE_STATE_CHANGED , deviceState ) ; }
Source:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "stylecycle.xml:3: Error: Potential cycle: PropertyToggle is the implied parent " + "of PropertyToggle.Base and this defines the opposite" ) , lintProject ( "res/values/stylecycle.xml" ) ) ; }

Target:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "res/values/stylecycle.xml:3: Error: Potential cycle: PropertyToggle is the implied parent of PropertyToggle.Base and this defines the opposite [StyleCycle]\n" + ( ( ( " <style name=\"PropertyToggle\" parent=\"@style/PropertyToggle.Base\"></style>\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/values/stylecycle.xml" ) ) ; }
Source:
public void copy1DRangeFrom ( int off , int count , short [ ] d ) { validateIsInt16 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_8 , data.length ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuitePlanBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; suitePlan_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildId ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; buildId_ = value ; onChanged ( ) ; return this ; }
Source:
public void testKeyStore_IsCertificateEntry_NonExist_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertFalse ( "Should return false for non-existent entry" , mKeyStore.isCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_IsCertificateEntry_NonExist_Unencrypted_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertFalse ( "Should return false for non-existent entry" , mKeyStore.isCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
public int initialize ( android.telephony.mbms.IMbmsStreamingManagerCallback listener , java.lang.String appName , int subId ) throws android.os.RemoteException { return 0 ; }

Target:
public int initialize ( android.telephony.mbms.IMbmsStreamingManagerCallback listener , java.lang.String appName , int subscriptionId ) throws android.os.RemoteException { return 0 ; }
Source:
private java.util.List < javax.lang.model.element.TypeElement > generateComponentList ( ) { java.util.List < javax.lang.model.element.TypeElement > list = new java.util.ArrayList < > ( ) ; extractInfoFromMetadata ( com.android.dialer.rootcomponentgenerator.annotation.DialerComponent.class , list :: add ) ; return list ; }

Target:
private java.util.List < javax.lang.model.element.TypeElement > generateComponentList ( ) { java.util.List < javax.lang.model.element.TypeElement > list = new java.util.ArrayList < > ( ) ; extractInfoFromMetadata ( dagger.Subcomponent.class , list :: add ) ; return list ; }
Source:
private void unregisterCurrAppEvents ( ) { if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForNetworkLockedRecordsLoaded ( this ) ; } }

Target:
private void unregisterCurrAppEvents ( ) { if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForLockedRecordsLoaded ( mHandler ) ; mIccRecords.unregisterForNetworkLockedRecordsLoaded ( mHandler ) ; } }
Source:
protected void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { guard.warnIfOpen ( ) ; } free ( ) ; } finally { super . finalize ( ) ; } }

Target:
private void free ( ) { if ( ( sslNativePointer ) == 0 ) { return ; } org.conscrypt.NativeCrypto.SSL_free ( sslNativePointer ) ; sslNativePointer = 0 ; org.conscrypt.Platform.closeGuardClose ( guard ) ; }
Source:
public void folderChanged ( org.eclipse.core.resources.IFolder folder , int kind ) ;

Target:
public void folderChanged ( org.eclipse.core.resources.IFolder folder , int kind , boolean isAndroidProject ) ;
Source:
public static org.junit.runner.Description createTestDescription ( java.lang.Class < ? > clazz , java.lang.String name ) { return org.junit.runner.Description.createTestDescription ( clazz , name , new java.lang.annotation.Annotation [ 0 ] ) ; }

Target:
public static org.junit.runner.Description createTestDescription ( java.lang.Class < ? > clazz , java.lang.String name , java.lang.annotation.Annotation ... annotations ) { return new org.junit.runner.Description ( clazz , org.junit.runner.Description.formatDisplayName ( name , clazz.getName ( ) ) , annotations ) ; }
Source:
public java.lang.reflect.Type [ ] getGenericExceptionTypes ( ) { initGenericTypes ( ) ; return org.apache.harmony.luni.lang.reflect.Types.getClonedTypeArray ( genericExceptionTypes ) ; }

Target:
public java.lang.reflect.Type [ ] getGenericExceptionTypes ( ) { initGenericTypes ( ) ; return libcore.reflect.Types.getClonedTypeArray ( genericExceptionTypes ) ; }
Source:
public void disableScoring ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public void disableScoring ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( isCallerSystemUid ( ) ) ) { } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public static com.android.sdklib.devices.ButtonType getEnum ( java.lang.String value ) { for ( com.android.sdklib.devices.ButtonType n : com.android.sdklib.devices.ButtonType.values ( ) ) { if ( n.mValue.equals ( value ) ) { return n ; } } return null ; }

Target:
public static com.android.sdklib.devices.ButtonType getEnum ( java.lang.String value ) { for ( com.android.sdklib.devices.ButtonType n : com.android.sdklib.devices.ButtonType.values ( ) ) { if ( n.mId.equals ( value ) ) { return n ; } } return null ; }
Source:
public java.lang.String getExplanationAsHtml ( ) { return com.android.tools.lint.detector.api.Issue.convertMarkup ( mExplanation , true ) ; }

Target:
public java.lang.String getExplanation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue.OutputFormat format ) { switch ( format ) { case TEXT : return com.android.tools.lint.detector.api.Issue.convertMarkup ( mExplanation , false ) ; case HTML : return com.android.tools.lint.detector.api.Issue.convertMarkup ( mExplanation , true ) ; case RAW : default : return mExplanation ; } }
Source:
public void copyTo ( int [ ] d ) { validateIsInt32 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d ) ; }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void onPageSelected ( ) { java.util.List < com.android.sdkuilib.internal.repository.sdkman2.PkgCategory > cats = mDiffLogic.getCategories ( isSortByApi ( ) ) ; if ( ( cats == null ) || ( cats.isEmpty ( ) ) ) { loadPackages ( ) ; } }

Target:
public void performFirstLoad ( ) { loadPackages ( true ) ; }
Source:
public void run ( ) { ensureZoomed ( ) ; }

Target:
public void run ( ) { if ( ! ( isDisposed ( ) ) ) { ensureZoomed ( ) ; } }
Source:
public void run ( ) { mToast = android.widget.Toast.makeText ( mActivity , android.widget.cts.ToastTest.TEST_TOAST_TEXT , Toast.LENGTH_SHORT ) ; mToast.setGravity ( Gravity.CENTER , 0 , 0 ) ; mToast.show ( ) ; }

Target:
public void run ( ) { mToast = android.widget.Toast.makeText ( mActivity , android.widget.cts.ToastTest.TEST_TOAST_TEXT , Toast.LENGTH_SHORT ) ; mToast.setGravity ( Gravity.CENTER , 0 , 0 ) ; mToast.show ( ) ; registerLayoutListener ( mToast.getView ( ) ) ; }
Source:
protected void launchActivityOnDisplay ( java.lang.String targetActivityName , int displayId , java.lang.String ... keyValuePairs ) throws java.lang.Exception { executeShellCommand ( android.server.cts.ActivityManagerTestBase.getAmStartCmd ( targetActivityName , displayId , keyValuePairs ) ) ; mAmWmState.waitForValidState ( mDevice , targetActivityName ) ; }

Target:
protected void launchActivityOnDisplay ( java.lang.String targetActivityName , int displayId , java.lang.String ... keyValuePairs ) throws java.lang.Exception { launchActivityOnDisplayNoWait ( targetActivityName , displayId , keyValuePairs ) ; mAmWmState.waitForValidState ( mDevice , targetActivityName ) ; }
Source:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , java.lang.String instructionSet ) ;

Target:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , java.lang.String instructionSet , java.lang.String appDataDir ) ;
Source:
public com.android.tools.lint.client.api.IJavaParser getJavaParser ( ) { return new com.android.tools.lint.LombokParser ( ) ; }

Target:
public com.android.tools.lint.client.api.IJavaParser getJavaParser ( ) { return new com.android.tools.lint.EcjParser ( this ) ; }