auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = createClient ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } for ( java.io.File f : files ) { deleteFile ( f ) ; } return result ; }

Target:
protected java.lang.String checkLint ( com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient , java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } for ( java.io.File f : files ) { deleteFile ( f ) ; } return result ; }
Source:
public void lconst ( final long cst ) { if ( ( cst == 0L ) || ( cst == 1L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.LCONST_0 ) + ( ( int ) ( cst ) ) ) ) ; } else { mv.visitLdcInsn ( new java.lang.Long ( cst ) ) ; } }

Target:
public void lconst ( final long cst ) { if ( ( cst == 0L ) || ( cst == 1L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.LCONST_0 ) + ( ( int ) ( cst ) ) ) ) ; } else { mv.visitLdcInsn ( cst ) ; } }
Source:
private void deleteDir ( java.io.File root ) { if ( root.exists ( ) ) { for ( java.io.File file : root.listFiles ( ) ) { if ( file.isDirectory ( ) ) { deleteDir ( file ) ; } else { file.delete ( ) ; } } root.delete ( ) ; } }

Target:
protected void deleteDir ( java.io.File root ) { if ( root.exists ( ) ) { for ( java.io.File file : root.listFiles ( ) ) { if ( file.isDirectory ( ) ) { deleteDir ( file ) ; } else { file.delete ( ) ; } } root.delete ( ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { assert getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( curClass.type ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { assert getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( curClass.type ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public static int getChannelDataVersion ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , com.android.tv.tuner.TunerPreferences.CHANNEL_DATA_VERSION_NOT_SET ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , com.android.tv.tuner.TunerPreferences.CHANNEL_DATA_VERSION_NOT_SET ) ; } }

Target:
public static synchronized int getChannelDataVersion ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , com.android.tv.tuner.TunerPreferences.CHANNEL_DATA_VERSION_NOT_SET ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_CHANNEL_DATA_VERSION , com.android.tv.tuner.TunerPreferences.CHANNEL_DATA_VERSION_NOT_SET ) ; } }
Source:
void putHexString ( java.lang.String original ) { java.lang.String s = checkString ( original , 16 ) ; this . makeValid ( ) ; int usedLen = java.math.NativeBN.BN_hex2bn ( this . bignum , s ) ; java.math.BigInt.Check ( ( usedLen > 0 ) ) ; if ( usedLen < ( s.length ( ) ) ) { throw invalidBigInteger ( original ) ; } }

Target:
void putHexString ( java.lang.String original ) { java.lang.String s = checkString ( original , 16 ) ; this . makeValid ( ) ; int usedLen = java.math.NativeBN.BN_hex2bn ( this . bignum , s ) ; if ( usedLen < ( s.length ( ) ) ) { throw invalidBigInteger ( original ) ; } }
Source:
private static boolean isValidSplit ( com.android.build.gradle.tasks.List < java.lang.String > densities , com.android.build.gradle.tasks.List < java.lang.String > languages , @ com.android.annotations.NonNull java.lang.String splitWithOptionalSuffix ) { for ( java.lang.String density : densities ) { if ( splitWithOptionalSuffix.startsWith ( density ) ) { densities.remove ( density ) ; return true ; } } java.lang.String mangledName = com.android.build.gradle.tasks.PackageSplitRes.unMangleSplitName ( splitWithOptionalSuffix ) ; if ( languages.contains ( mangledName ) ) { languages.remove ( mangledName ) ; return true ; } return false ; }

Target:
private static boolean isValidSplit ( java.util.List < java.lang.String > densities , java.util.List < java.lang.String > languages , @ com.android.annotations.NonNull java.lang.String splitWithOptionalSuffix ) { for ( java.lang.String density : densities ) { if ( splitWithOptionalSuffix.startsWith ( density ) ) { densities.remove ( density ) ; return true ; } } java.lang.String mangledName = com.android.build.gradle.tasks.PackageSplitRes.unMangleSplitName ( splitWithOptionalSuffix ) ; if ( languages.contains ( mangledName ) ) { languages.remove ( mangledName ) ; return true ; } return false ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainRunner ( monitor , klass ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainRunner ( monitor , klass , args ) ; } else { return null ; } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = heap.getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
protected int getOutputSizeForFinal ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx ) ; if ( ( getPadding ( ) ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { int extraBlockSize = ( isEncrypting ( ) ) ? modeBlockSize : 0 ; final int totalLen = ( inputLen + buffered ) + extraBlockSize ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }

Target:
protected int getOutputSizeForFinal ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.conscrypt.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx ) ; if ( ( getPadding ( ) ) == ( org.conscrypt.OpenSSLCipher.Padding.NOPADDING ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
public void testConfigurationUpdatesWhenRotatingWhileDocked ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes orientationASizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; setDeviceRotation ( 1 ) ; final android.server.cts.ReportedSizes orientationBSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesRotate ( orientationASizes , orientationBSizes ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingWhileDocked ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes orientationASizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; setDeviceRotation ( 1 ) ; final android.server.cts.ReportedSizes orientationBSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; assertSizesRotate ( orientationASizes , orientationBSizes ) ; }
Source:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setView ( view , viewSpacingLeft , viewSpacingTop , viewSpacingRight , viewSpacingBottom ) ; mDialog = mBuilder.show ( ) ; mFrameLayout = ( ( android.widget.FrameLayout ) ( mDialog.getWindow ( ) . findViewById ( R.id.custom ) ) ) ; mView = mFrameLayout.getChildAt ( 0 ) ; }

Target:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setView ( view ) ; mDialog = mBuilder.show ( ) ; mView = mDialog.getWindow ( ) . findViewById ( 100 ) ; }
Source:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "disconnect(): device=" + device ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.disconnect ( device ) ; }

Target:
public boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "disconnect(): device=" + device ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.disconnect ( device ) ; }
Source:
static void getFloat ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , float value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final float got = ( v == null ) ? ( ( float ) ( m.invokeExact ( ) ) ) : ( ( float ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void getFloat ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , float value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final float got = ( v == null ) ? ( ( float ) ( m.invokeExact ( ) ) ) : ( ( float ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { if ( context.getDriver ( ) . isSuppressed ( com.android.tools.lint.checks.AlwaysShowActionDetector.ISSUE , attribute ) ) { mIgnoreFile = true ; return ; } if ( ( mFileAttributes ) == null ) { mFileAttributes = new java.util.ArrayList < org.w3c.dom.Attr > ( ) ; } mFileAttributes.add ( attribute ) ; }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { if ( context.getDriver ( ) . isSuppressed ( context , com.android.tools.lint.checks.AlwaysShowActionDetector.ISSUE , attribute ) ) { mIgnoreFile = true ; return ; } if ( ( mFileAttributes ) == null ) { mFileAttributes = new java.util.ArrayList < org.w3c.dom.Attr > ( ) ; } mFileAttributes.add ( attribute ) ; }
Source:
public boolean contains ( java.lang.Object o ) { if ( ! ( o instanceof java.util.Map.Entry ) ) return false ; java.util.Map.Entry < ? , ? > e = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; V v = this . get ( e.getKey ( ) ) ; return ( v != null ) && ( v.equals ( e.getValue ( ) ) ) ; }

Target:
public abstract boolean contains ( java.lang.Object o ) ;
Source:
public boolean onUpdateSource ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.Package [ ] newPackages ) { final boolean changed = mDiffLogic.updateSourcePackages ( displaySortByApi , source , newPackages ) ; syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( changed || ( ( mITreeViewer.getInput ( ) ) != ( mDiffLogic.getCategories ( isSortByApi ( ) ) ) ) ) { refreshViewerInput ( ) ; } } } ) ; return ! ( isUiDisposed ( ) ) ; }

Target:
public boolean onUpdateSource ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.Package [ ] newPackages ) { final boolean changed = mDiffLogic.updateSourcePackages ( source , newPackages ) ; syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( changed || ( ( mITreeViewer.getInput ( ) ) != ( mDiffLogic.getCategories ( ) ) ) ) { refreshViewerInput ( ) ; } } } ) ; return ! ( isUiDisposed ( ) ) ; }
Source:
protected void finalize ( ) { debugLog ( ( "finalize() - clean up object " + ( this ) ) ) ; cleanup ( ) ; if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }

Target:
public void finalize ( ) { debugLog ( ( "finalize() - clean up object " + ( this ) ) ) ; cleanup ( ) ; if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mGLView = new com.android.graphics.benchmark.example.MyGLSurfaceView ( this ) ; setContentView ( mGLView ) ; mHandler = new android.os.Handler ( ) ; mTask = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { broadcastIntent ( ) ; mHandler.postDelayed ( this , com.android.graphics.benchmark.example.SampleActivity.LOOP_PERIOD_MS ) ; } } ; mHandler.postDelayed ( mTask , com.android.graphics.benchmark.example.SampleActivity.LOOP_PERIOD_MS ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mGLView = new com.android.graphics.benchmark.example.MyGLSurfaceView ( this ) ; setContentView ( mGLView ) ; mHandler = new android.os.Handler ( ) ; mTask = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { broadcastIntent ( ) ; mHandler.postDelayed ( this , com.android.graphics.benchmark.example.SampleActivity.LOOP_PERIOD_MS ) ; } } ; }
Source:
public boolean implies ( java.security.Permission p ) { if ( ! ( p instanceof java.io.FilePermission ) ) return false ; java.io.FilePermission that = ( ( java.io.FilePermission ) ( p ) ) ; return ( ( ( this . mask ) & ( that.mask ) ) == ( that.mask ) ) && ( impliesIgnoreMask ( that ) ) ; }

Target:
public boolean implies ( java.security.Permission p ) { return true ; }
Source:
public java.nio.ByteBuffer putFloat ( float x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putFloat ( ix ( nextPutIndex ( SizeOf.FLOAT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putFloat ( float x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putFloat ( ix ( nextPutIndex ( SizeOf.FLOAT ) ) , x ) ; return this ; }
Source:
public static com.android.internal.telephony.cdma.SmsMessage.SubmitPdu getSubmitPdu ( java.lang.String scAddr , java.lang.String destAddr , java.lang.String message , boolean statusReportRequested , com.android.internal.telephony.SmsHeader smsHeader , int priority ) { if ( ( message == null ) || ( destAddr == null ) ) { return null ; } com.android.internal.telephony.cdma.sms.UserData uData = new com.android.internal.telephony.cdma.sms.UserData ( ) ; uData.payloadStr = message ; uData.userDataHeader = smsHeader ; return com.android.internal.telephony.cdma.SmsMessage.privateGetSubmitPdu ( destAddr , statusReportRequested , uData , priority ) ; }

Target:
public static com.android.internal.telephony.cdma.SmsMessage.SubmitPdu getSubmitPdu ( java.lang.String scAddr , java.lang.String destAddr , java.lang.String message , boolean statusReportRequested , com.android.internal.telephony.SmsHeader smsHeader ) { if ( ( message == null ) || ( destAddr == null ) ) { return null ; } com.android.internal.telephony.cdma.sms.UserData uData = new com.android.internal.telephony.cdma.sms.UserData ( ) ; uData.payloadStr = message ; uData.userDataHeader = smsHeader ; return com.android.internal.telephony.cdma.SmsMessage.privateGetSubmitPdu ( destAddr , statusReportRequested , uData ) ; }
Source:
public java.lang.String [ ] getLockTaskPackages ( @ android.annotation.NonNull android.content.ComponentName admin ) { throwIfParentInstance ( "getLockTaskPackages" ) ; if ( ( mService ) != null ) { try { return mService.getLockTaskPackages ( admin ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }

Target:
public java.lang.String [ ] getLockTaskPackages ( @ android.annotation.NonNull android.content.ComponentName admin ) { throwIfParentInstance ( "getLockTaskPackages" ) ; if ( ( mService ) != null ) { try { return mService.getLockTaskPackages ( admin ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return new java.lang.String [ 0 ] ; }
Source:
public boolean isEmpty ( ) { int n = names.length ; if ( n == 0 ) { return true ; } for ( int i = 0 ; i < n ; i ++ ) { if ( ( names [ i ] . assertion.length ) != 0 ) { return false ; } } return true ; }

Target:
public boolean isEmpty ( ) { int n = names.length ; for ( int i = 0 ; i < n ; i ++ ) { if ( ( names [ i ] . assertion.length ) != 0 ) { return false ; } } return true ; }
Source:
private com.android.jack.ir.ast.JExpression generateGetClassFollowedByConstant ( com.android.jack.ir.ast.JExpression result , com.android.jack.ir.ast.JLiteral cst ) { assert result instanceof com.android.jack.ir.ast.JFieldRef ; java.util.List < com.android.jack.ir.ast.JExpression > exprs = new java.util.ArrayList < com.android.jack.ir.ast.JExpression > ( ) ; com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = result.getSourceInfo ( ) ; com.android.jack.ir.ast.JMethodCall getClassCall = com.android.jack.ir.impl.JackIrBuilder.makeMethodCall ( sourceInfo , ( ( com.android.jack.ir.ast.JFieldRef ) ( result ) ) . getInstance ( ) , javaLangObject , getGetClassMethod ( ) ) ; exprs.add ( getClassCall ) ; exprs.add ( cst ) ; return new com.android.jack.ir.ast.JMultiExpression ( sourceInfo , exprs ) ; }

Target:
private com.android.jack.ir.ast.JExpression generateGetClassFollowedByConstant ( com.android.jack.ir.ast.JExpression result , com.android.jack.ir.ast.JLiteral cst ) { assert result instanceof com.android.jack.ir.ast.JFieldRef ; com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = result.getSourceInfo ( ) ; com.android.jack.ir.ast.JMethodCall getClassCall = com.android.jack.ir.impl.JackIrBuilder.makeMethodCall ( sourceInfo , ( ( com.android.jack.ir.ast.JFieldRef ) ( result ) ) . getInstance ( ) , javaLangObject , getGetClassMethod ( ) ) ; return new com.android.jack.ir.ast.JMultiExpression ( sourceInfo , getClassCall , cst ) ; }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( ( ( "onDestroy - mIsResponseSent[" + ( mIsResponseSent ) ) + "], sim id: " ) + ( mSlotId ) ) ) ; if ( ( ! ( mIsResponseSent ) ) && ( ! ( appService.isDialogPending ( mSlotId ) ) ) ) { sendResponse ( StkAppService.RES_ID_CONFIRM , false ) ; } cancelTimeOut ( ) ; if ( ( mBroadcastReceiver ) != null ) { unregisterReceiver ( mBroadcastReceiver ) ; } }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( ( ( "onDestroy - mIsResponseSent[" + ( mIsResponseSent ) ) + "], sim id: " ) + ( mSlotId ) ) ) ; if ( ( appService ) == null ) { return ; } if ( ( ! ( mIsResponseSent ) ) && ( ! ( appService.isDialogPending ( mSlotId ) ) ) ) { sendResponse ( StkAppService.RES_ID_CONFIRM , false ) ; } cancelTimeOut ( ) ; if ( ( mBroadcastReceiver ) != null ) { unregisterReceiver ( mBroadcastReceiver ) ; } }
Source:
public static org.conscrypt.OpenSSLKey getInstance ( java.security.interfaces.ECPublicKey ecPublicKey ) throws java.security.InvalidKeyException { try { org.conscrypt.OpenSSLECGroupContext group = org.conscrypt.OpenSSLECGroupContext.getInstance ( ecPublicKey.getParams ( ) ) ; org.conscrypt.OpenSSLECPointContext pubKey = org.conscrypt.OpenSSLECPointContext.getInstance ( org.conscrypt.NativeCrypto.get_EC_GROUP_type ( group.getNativeRef ( ) ) , group , ecPublicKey.getW ( ) ) ; return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_EC_KEY ( group.getNativeRef ( ) , pubKey.getNativeRef ( ) , null ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }

Target:
public static org.conscrypt.OpenSSLKey getInstance ( java.security.interfaces.ECPublicKey ecPublicKey ) throws java.security.InvalidKeyException { try { org.conscrypt.OpenSSLECGroupContext group = org.conscrypt.OpenSSLECGroupContext.getInstance ( ecPublicKey.getParams ( ) ) ; org.conscrypt.OpenSSLECPointContext pubKey = org.conscrypt.OpenSSLECPointContext.getInstance ( group , ecPublicKey.getW ( ) ) ; return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_EC_KEY ( group.getNativeRef ( ) , pubKey.getNativeRef ( ) , null ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }
Source:
private void setNetworkRestriction ( ) { mRestrictedNetworkOverride = false ; boolean noRestrictedRequests = true ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.keySet ( ) ) { noRestrictedRequests &= apnContext.hasNoRestrictedRequests ( true ) ; } if ( noRestrictedRequests ) { return ; } if ( ! ( mApnSetting.isMetered ( mPhone.getContext ( ) , mPhone.getSubId ( ) , mPhone.getServiceState ( ) . getDataRoaming ( ) ) ) ) { return ; } mRestrictedNetworkOverride = ! ( mDct.isDataEnabled ( ) ) ; }

Target:
private void setNetworkRestriction ( ) { mRestrictedNetworkOverride = false ; boolean noRestrictedRequests = true ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.keySet ( ) ) { noRestrictedRequests &= apnContext.hasNoRestrictedRequests ( true ) ; } if ( noRestrictedRequests ) { return ; } if ( ! ( mApnSetting.isMetered ( mPhone ) ) ) { return ; } mRestrictedNetworkOverride = ! ( mDct.isDataEnabled ( ) ) ; }
Source:
void loadConfig ( android.net.wifi.WifiConfiguration config ) { if ( config.isPasspoint ( ) ) ssid = config.providerFriendlyName ; else ssid = ( ( config.SSID ) == null ) ? "" : com.android.settingslib.wifi.AccessPoint.removeDoubleQuotes ( config.SSID ) ; bssid = config.BSSID ; security = com.android.settingslib.wifi.AccessPoint.getSecurity ( config ) ; networkId = config.networkId ; mConfig = config ; }

Target:
void loadConfig ( android.net.wifi.WifiConfiguration config ) { ssid = ( ( config.SSID ) == null ) ? "" : com.android.settingslib.wifi.AccessPoint.removeDoubleQuotes ( config.SSID ) ; bssid = config.BSSID ; security = com.android.settingslib.wifi.AccessPoint.getSecurity ( config ) ; networkId = config.networkId ; mConfig = config ; }
Source:
public void parseCacheHeaders_serverRelative ( ) { long now = java.lang.System.currentTimeMillis ( ) ; headers.put ( "Date" , com.android.volley.toolbox.HttpHeaderParserTest.rfc1123Date ( ( now + ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) ) ; headers.put ( "Expires" , com.android.volley.toolbox.HttpHeaderParserTest.rfc1123Date ( ( now + ( 4 * ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) ) ) ; com.android.volley.Cache.Entry entry = com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders ( response ) ; assertEqualsWithin ( ( now + ( 3 * ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) , entry.ttl , com.android.volley.toolbox.HttpHeaderParserTest.ONE_MINUTE_MILLIS ) ; assertEquals ( entry.softTtl , entry.ttl ) ; }

Target:
public void parseCacheHeaders_serverRelative ( ) { long now = java.lang.System.currentTimeMillis ( ) ; headers.put ( "Date" , com.android.volley.toolbox.HttpHeaderParserTest.rfc1123Date ( ( now + ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) ) ; headers.put ( "Expires" , com.android.volley.toolbox.HttpHeaderParserTest.rfc1123Date ( ( now + ( 4 * ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) ) ) ; com.android.volley.Cache.Entry entry = com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders ( response ) ; assertEqualsWithin ( ( now + ( 3 * ( com.android.volley.toolbox.HttpHeaderParserTest.ONE_HOUR_MILLIS ) ) ) , entry.ttl , com.android.volley.toolbox.HttpHeaderParserTest.ONE_MINUTE_MILLIS ) ; org.junit.Assert.assertEquals ( entry.softTtl , entry.ttl ) ; }
Source:
public void testExtract4 ( ) throws java.lang.Exception { java.util.Map < org.eclipse.core.runtime.IPath , java.lang.String > extraFiles = new java.util.HashMap < org.eclipse.core.runtime.IPath , java.lang.String > ( ) ; extraFiles.put ( getTestDataFile ( getProject ( ) , "sample3-variation1.xml" , "res/layout-land/sample3.xml" ) . getProjectRelativePath ( ) , "sample3-variation1.xml" ) ; extraFiles.put ( getTestDataFile ( getProject ( ) , "sample3-variation2.xml" , "res/layout-xlarge-land/sample3.xml" ) . getProjectRelativePath ( ) , "sample3-variation2.xml" ) ; checkRefactoring ( "sample3.xml" , "newlayout3" , true , extraFiles , 4 , "@+id/android_logo" ) ; }

Target:
public void testExtract4 ( ) throws java.lang.Exception { java.util.Map < org.eclipse.core.runtime.IPath , java.lang.String > extraFiles = new java.util.HashMap < org.eclipse.core.runtime.IPath , java.lang.String > ( ) ; extraFiles.put ( getTestDataFile ( getProject ( ) , "sample3-variation1.xml" , "res/layout-land/sample3.xml" ) . getProjectRelativePath ( ) , "sample3-variation1.xml" ) ; extraFiles.put ( getTestDataFile ( getProject ( ) , "sample3-variation2.xml" , "res/layout-xlarge-land/sample3.xml" ) . getProjectRelativePath ( ) , "sample3-variation2.xml" ) ; checkRefactoring ( "sample3.xml" , "newlayout3" , true , extraFiles , 4 , false , "@+id/android_logo" ) ; }
Source:
public boolean cleanup ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; } stopListeners ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } return true ; }

Target:
protected void cleanup ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; } stopListeners ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } }
Source:
public < T extends com.android.jack.ir.ast.JExpression > T cloneExpression ( @ javax.annotation.Nonnull T expr ) { expression = null ; this . accept ( expr ) ; if ( ( expression ) == null ) { throw new java.lang.AssertionError ( ( "Unable to clone expression " + expr ) ) ; } for ( com.android.sched.marker.Marker m : expr.getAllMarkers ( ) ) { expression.addMarker ( m.cloneIfNeeded ( ) ) ; } assert ( expression ) != null ; return ( ( T ) ( expression ) ) ; }

Target:
public < T extends com.android.jack.ir.ast.JExpression > T cloneExpression ( @ javax.annotation.Nonnull T expr ) { expression = null ; this . accept ( expr ) ; if ( ( expression ) == null ) { throw new java.lang.AssertionError ( ( "Unable to clone expression " + ( expr.toString ( ) ) ) ) ; } for ( com.android.sched.marker.Marker m : expr.getAllMarkers ( ) ) { expression.addMarker ( m.cloneIfNeeded ( ) ) ; } assert ( expression ) != null ; return ( ( T ) ( expression ) ) ; }
Source:
static void native_setScale ( int native_object , float sx , float sy , float px , float py ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } d.mValues = android.graphics.Matrix_Delegate.getScale ( sx , sy , px , py ) ; }

Target:
static void native_setScale ( long native_object , float sx , float sy , float px , float py ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } d.mValues = android.graphics.Matrix_Delegate.getScale ( sx , sy , px , py ) ; }
Source:
public boolean resetLogHandler ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.resetLogHandler ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( ( com.android.server.wifi.WifiNative.sLogCmdId ) == ( - 1 ) ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "Can not reset handler Before set any handler" ) ; return false ; } com.android.server.wifi.WifiNative.sWifiLoggerEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetLogHandlerNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sLogCmdId ) ) { com.android.server.wifi.WifiNative.sLogCmdId = - 1 ; return true ; } else { return false ; } } else { return false ; } } } }

Target:
public boolean resetLogHandler ( ) { return mWifiVendorHal.resetLogHandler ( ) ; }
Source:
public com.android.server.connectivity.DnsManager.PrivateDnsConfig updatePrivateDns ( android.net.Network network , com.android.server.connectivity.DnsManager.PrivateDnsConfig cfg ) { android.util.Slog.w ( com.android.server.connectivity.DnsManager.TAG , ( ( ( ( "updatePrivateDns(" + network ) + ", " ) + cfg ) + ")" ) ) ; return cfg != null ? mPrivateDnsMap.put ( network.netId , cfg ) : mPrivateDnsMap.remove ( network ) ; }

Target:
public com.android.server.connectivity.DnsManager.PrivateDnsConfig updatePrivateDns ( android.net.Network network , com.android.server.connectivity.DnsManager.PrivateDnsConfig cfg ) { android.util.Slog.w ( com.android.server.connectivity.DnsManager.TAG , ( ( ( ( "updatePrivateDns(" + network ) + ", " ) + cfg ) + ")" ) ) ; return cfg != null ? mPrivateDnsMap.put ( network.netId , cfg ) : mPrivateDnsMap.remove ( network.netId ) ; }
Source:
public void setImeWindowStatus ( android.os.IBinder token , int vis , int backDisposition ) { boolean altBack = ( backDisposition == ( android.inputmethodservice.InputMethodService.BACK_DISPOSITION_WILL_DISMISS ) ) || ( ( vis & ( android.inputmethodservice.InputMethodService.IME_VISIBLE ) ) != 0 ) ; mCommandQueue.setNavigationIconHints ( ( altBack ? ( mNavigationIconHints ) | ( android.app.StatusBarManager.NAVIGATION_HINT_BACK_ALT ) : ( mNavigationIconHints ) & ( ~ ( android.app.StatusBarManager.NAVIGATION_HINT_BACK_ALT ) ) ) ) ; if ( ( mQS ) != null ) mQS.setImeWindowStatus ( ( vis > 0 ) ) ; }

Target:
public void setImeWindowStatus ( android.os.IBinder token , int vis , int backDisposition ) { boolean altBack = ( backDisposition == ( android.inputmethodservice.InputMethodService.BACK_DISPOSITION_WILL_DISMISS ) ) || ( ( vis & ( android.inputmethodservice.InputMethodService.IME_VISIBLE ) ) != 0 ) ; setNavigationIconHints ( ( altBack ? ( mNavigationIconHints ) | ( android.app.StatusBarManager.NAVIGATION_HINT_BACK_ALT ) : ( mNavigationIconHints ) & ( ~ ( android.app.StatusBarManager.NAVIGATION_HINT_BACK_ALT ) ) ) ) ; if ( ( mQS ) != null ) mQS.setImeWindowStatus ( ( vis > 0 ) ) ; }
Source:
public void testSendImsCdmaTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_CDMA ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsCdmaSms ( ( ( byte [ ] ) ( org.mockito.Matchers.any ( ) ) ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }

Target:
public void testSendImsCdmaTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_CDMA ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsCdmaSms ( ( ( byte [ ] ) ( org.mockito.Matchers.any ( ) ) ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }
Source:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { if ( ! ( mFailedTests.remove ( test ) ) ) { if ( ( mLogger ) != null ) { mLogger.info ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [32mSUCCESS [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; } } super . testEnded ( test , testMetrics ) ; }

Target:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { if ( ! ( mFailedTests.remove ( test ) ) ) { if ( ( mLogger ) != null ) { mLogger.info ( "\n%1$s > %2$s[%3$s] [32mSUCCESS [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ; } } super . testEnded ( test , testMetrics ) ; }
Source:
public java.lang.StringBuffer format ( double value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; if ( ( roundingMode ) == ( java.math.RoundingMode.UNNECESSARY ) ) { checkRoundingUnnecessary ( value ) ; } buffer.append ( ndf.formatDouble ( value , position ) ) ; return buffer ; }

Target:
public java.lang.StringBuffer format ( double value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; buffer.append ( ndf.formatDouble ( value , position ) ) ; return buffer ; }
Source:
private boolean overridesIsValidFragment ( com.android.tools.lint.client.api.JavaParser.ResolvedClass resolvedClass ) { java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedMethod > resolvedMethods = resolvedClass.getMethods ( com.android.tools.lint.checks.PreferenceActivityDetector.IS_VALID_FRAGMENT ) ; for ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod resolvedMethod : resolvedMethods ) { if ( ( ( resolvedMethod.getArgumentCount ( ) ) == 1 ) && ( resolvedMethod.getArgumentType ( 0 ) . getName ( ) . equals ( com.android.tools.lint.client.api.JavaParser.TYPE_STRING ) ) ) { return true ; } } return false ; }

Target:
private boolean overridesIsValidFragment ( com.android.tools.lint.client.api.JavaParser.ResolvedClass resolvedClass ) { java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedMethod > resolvedMethods = resolvedClass.getMethods ( com.android.tools.lint.checks.PreferenceActivityDetector.IS_VALID_FRAGMENT , false ) ; for ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod resolvedMethod : resolvedMethods ) { if ( ( ( resolvedMethod.getArgumentCount ( ) ) == 1 ) && ( resolvedMethod.getArgumentType ( 0 ) . getName ( ) . equals ( com.android.tools.lint.client.api.JavaParser.TYPE_STRING ) ) ) { return true ; } } return false ; }
Source:
public static < O extends com.google.devtools.common.options.OptionsBase > com.google.devtools.common.options.Options < O > parse ( java.lang.Class < O > optionsClass , java.lang.String ... args ) throws com.google.devtools.common.options.OptionsParsingException { com.google.devtools.common.options.OptionsParser parser = com.google.devtools.common.options.OptionsParser.newOptionsParser ( optionsClass ) ; parser.parse ( OptionPriority.COMMAND_LINE , null , java.util.Arrays.asList ( args ) ) ; java.util.List < java.lang.String > remainingArgs = parser.getResidue ( ) ; return new com.google.devtools.common.options.Options < O > ( parser.getOptions ( optionsClass ) , remainingArgs.toArray ( new java.lang.String [ 0 ] ) ) ; }

Target:
public static < O extends com.google.devtools.common.options.OptionsBase > com.google.devtools.common.options.Options < O > parse ( java.lang.Class < O > optionsClass , java.lang.String ... args ) throws com.google.devtools.common.options.OptionsParsingException { com.google.devtools.common.options.OptionsParser parser = com.google.devtools.common.options.OptionsParser.newOptionsParser ( optionsClass ) ; parser.parse ( OptionPriority.COMMAND_LINE , null , java.util.Arrays.asList ( args ) ) ; java.util.List < java.lang.String > remainingArgs = parser.getResidue ( ) ; return new com.google.devtools.common.options.Options ( parser.getOptions ( optionsClass ) , remainingArgs.toArray ( new java.lang.String [ 0 ] ) ) ; }
Source:
public void testCompile021 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; runTestCase ( TEST021 ) ; }

Target:
public void testCompile021 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; }
Source:
protected void runTestImpl ( final com.android.cts.Test test , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { try { if ( ! ( mTestStop ) ) { mCurrentTestSuite = test.getTestSuite ( ) ; mCurrentTestSuite.run ( mDevice , test , profile ) ; } } catch ( com.android.cts.DeviceDisconnectedException e ) { cleanUp ( ) ; throw e ; } }

Target:
protected void runTestImpl ( final com.android.cts.Test test ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { try { if ( ! ( mTestStop ) ) { mCurrentTestSuite = test.getTestSuite ( ) ; mCurrentTestSuite.run ( mDevice , test ) ; } } catch ( com.android.cts.DeviceDisconnectedException e ) { cleanUp ( ) ; throw e ; } }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { int index = list.getSelectedIndex ( ) ; boolean signedOut = com.google.gct.login.GoogleLogin.getInstance ( ) . logOut ( ) ; if ( signedOut ) { listModel.remove ( index ) ; if ( ( listModel.getSize ( ) ) == 0 ) { signOutButton.setEnabled ( false ) ; listModel.addElement ( NoUsersListItem.INSTANCE ) ; } } }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { com.google.gct.login.GoogleLogin.getInstance ( ) . logOut ( ) ; }
Source:
private com.android.jack.Options getOptions ( @ javax.annotation.Nonnull com.android.jack.errorhandling.TestingEnvironment te ) { com.android.jack.Options options = new com.android.jack.Options ( ) ; java.util.List < java.lang.String > ecjArgs = new java.util.ArrayList < java.lang.String > ( ) ; ecjArgs.add ( te.getSourceFolder ( ) . getAbsolutePath ( ) ) ; options.setEcjArguments ( ecjArgs ) ; options.setClasspath ( ( ( ( com.android.jack.TestTools.getDefaultBootclasspathString ( ) ) + ( java.io.File.pathSeparator ) ) + ( te.getJackFolder ( ) ) ) ) ; options.setOutputDir ( te.getTestingFolder ( ) ) ; return options ; }

Target:
private com.android.jack.Options getOptions ( @ javax.annotation.Nonnull com.android.jack.errorhandling.TestingEnvironment te ) { com.android.jack.Options options = new com.android.jack.Options ( ) ; java.util.List < java.lang.String > ecjArgs = new java.util.ArrayList < java.lang.String > ( ) ; ecjArgs.add ( te.getSourceFolder ( ) . getAbsolutePath ( ) ) ; options.setEcjArguments ( ecjArgs ) ; options.setClasspath ( com.android.jack.TestTools.getDefaultBootclasspathString ( ) ) ; options.setOutputDir ( te.getTestingFolder ( ) ) ; return options ; }
Source:
public static java.security.cert.CertPath fromEncoding ( java.io.InputStream inStream , java.lang.String encoding ) throws java.security.cert.CertificateException { if ( inStream == null ) { throw new java.lang.NullPointerException ( "inStream == null" ) ; } org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding enc = org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding.findByApiName ( encoding ) ; if ( enc == null ) { throw new java.security.cert.CertificateException ( ( "Invalid encoding: " + encoding ) ) ; } return org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.fromEncoding ( inStream , enc ) ; }

Target:
public static java.security.cert.CertPath fromEncoding ( java.io.InputStream inStream , java.lang.String encoding ) throws java.security.cert.CertificateException { if ( inStream == null ) { throw new java.security.cert.CertificateException ( "inStream == null" ) ; } org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding enc = org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding.findByApiName ( encoding ) ; if ( enc == null ) { throw new java.security.cert.CertificateException ( ( "Invalid encoding: " + encoding ) ) ; } return org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.fromEncoding ( inStream , enc ) ; }