auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.DistroVersion distroVersion = new libcore.tzdata.update2.DistroVersion ( DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , DistroVersion.CURRENT_FORMAT_MINOR_VERSION , "2016c" , 1 ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; try ( java.util.zip.ZipOutputStream zipOutputStream = new java.util.zip.ZipOutputStream ( baos ) ) { libcore.tzdata.update2.TimeZoneDistroTest.addZipEntry ( zipOutputStream , TimeZoneDistro.DISTRO_VERSION_FILE_NAME , distroVersion.toBytes ( ) ) ; } libcore.tzdata.update2.TimeZoneDistro distro = new libcore.tzdata.update2.TimeZoneDistro ( baos.toByteArray ( ) ) ; assertEquals ( distroVersion , distro.getDistroVersion ( ) ) ; }

Target:
public void testGetDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.shared2.DistroVersion distroVersion = new libcore.tzdata.shared2.DistroVersion ( DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , DistroVersion.CURRENT_FORMAT_MINOR_VERSION , "2016c" , 1 ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; try ( java.util.zip.ZipOutputStream zipOutputStream = new java.util.zip.ZipOutputStream ( baos ) ) { libcore.tzdata.shared2.TimeZoneDistroTest.addZipEntry ( zipOutputStream , TimeZoneDistro.DISTRO_VERSION_FILE_NAME , distroVersion.toBytes ( ) ) ; } libcore.tzdata.shared2.TimeZoneDistro distro = new libcore.tzdata.shared2.TimeZoneDistro ( baos.toByteArray ( ) ) ; assertEquals ( distroVersion , distro.getDistroVersion ( ) ) ; }
Source:
private void parseStatusCode ( java.lang.String line ) { java.lang.String value = line.substring ( com.android.ddmlib.testrunner.InstrumentationResultParser.Prefixes.STATUS_CODE.length ( ) ) . trim ( ) ; com.android.ddmlib.testrunner.InstrumentationResultParser.TestResult testInfo = getCurrentTestInfo ( ) ; try { testInfo.mCode = java.lang.Integer.parseInt ( value ) ; } catch ( java.lang.NumberFormatException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.testrunner.InstrumentationResultParser.LOG_TAG , ( "Expected integer status code, received: " + value ) ) ; } reportResult ( testInfo ) ; clearCurrentTestInfo ( ) ; }

Target:
private void parseStatusCode ( java.lang.String line ) { java.lang.String value = line.substring ( com.android.ddmlib.testrunner.InstrumentationResultParser.Prefixes.STATUS_CODE.length ( ) ) . trim ( ) ; com.android.ddmlib.testrunner.InstrumentationResultParser.TestResult testInfo = getCurrentTestInfo ( ) ; testInfo.mCode = com.android.ddmlib.testrunner.InstrumentationResultParser.StatusCodes.ERROR ; try { testInfo.mCode = java.lang.Integer.parseInt ( value ) ; } catch ( java.lang.NumberFormatException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.testrunner.InstrumentationResultParser.LOG_TAG , ( "Expected integer status code, received: " + value ) ) ; } if ( ( testInfo.mCode ) != ( com.android.ddmlib.testrunner.InstrumentationResultParser.StatusCodes.IN_PROGRESS ) ) { reportResult ( testInfo ) ; clearCurrentTestInfo ( ) ; } }
Source:
public void testVerify_NONEwithRSA_Key_WrongSignature_Failure ( ) throws java.lang.Exception { java.security.KeyFactory kf = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.spec.RSAPublicKeySpec pubKeySpec = new java.security.spec.RSAPublicKeySpec ( libcore.java.security.SignatureTest.RSA_2048_modulus , libcore.java.security.SignatureTest.RSA_2048_publicExponent ) ; java.security.PublicKey pubKey = kf.generatePublic ( pubKeySpec ) ; java.security.Signature sig = java.security.Signature.getInstance ( "NONEwithRSA" ) ; sig.initVerify ( pubKey ) ; sig.update ( libcore.java.security.SignatureTest.Vector1Data ) ; assertFalse ( "Invalid signature must not verify" , sig.verify ( "Invalid" . getBytes ( ) ) ) ; }

Target:
public void testVerify_NONEwithRSA_Key_WrongSignature_Failure ( ) throws java.lang.Exception { java.security.KeyFactory kf = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.spec.RSAPublicKeySpec pubKeySpec = new java.security.spec.RSAPublicKeySpec ( libcore.java.security.SignatureTest.RSA_2048_modulus , libcore.java.security.SignatureTest.RSA_2048_publicExponent ) ; java.security.PublicKey pubKey = kf.generatePublic ( pubKeySpec ) ; java.security.Signature sig = java.security.Signature.getInstance ( "NONEwithRSA" ) ; sig.initVerify ( pubKey ) ; sig.update ( libcore.java.security.SignatureTest.Vector1Data ) ; assertFalse ( "Invalid signature must not verify" , sig.verify ( "Invalid" . getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ) ; }
Source:
public void testNextIntBadBounds ( ) { try { int f = java.util.concurrent.ThreadLocalRandom.current ( ) . nextInt ( 17 , 2 ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testNextIntBoundNonPositive ( ) { java.util.concurrent.ThreadLocalRandom rnd = java.util.concurrent.ThreadLocalRandom.current ( ) ; for ( int bound : new int [ ] { 0 , - 17 , java.lang.Integer.MIN_VALUE } ) { try { rnd.nextInt ( bound ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } } }
Source:
public static java.lang.String getStringInternal ( int foo ) { try { java.lang.Class < ? > theClass = java.lang.Class.forName ( "com.android.tests.basic.StringProvider" ) ; java.lang.reflect.Method method = theClass.getDeclaredMethod ( "getString" , int . class ) ; return ( ( java.lang.String ) ( method.invoke ( null , foo ) ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static java.lang.String getString2 ( int foo ) { return com.android.tests.basic.StringGetter.getStringInternal ( foo ) ; }
Source:
public static java.lang.String $noinline$intToDoubleToIntPrint ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static long $noinline$intAndLargeLongConstant ( int value ) { return value & 9876543210L ; }
Source:
private java.lang.String getPersonReference ( com.android.incallui.ContactInfoCache.ContactCacheEntry contactInfo , android.telecom.Call call ) { java.lang.String number = com.android.incallui.util.TelecomCallUtil.getNumber ( call ) ; if ( ( ( contactInfo.lookupUri ) != null ) && ( ( contactInfo.userType ) != ( com.android.contacts.common.ContactsUtils.USER_TYPE_WORK ) ) ) { return contactInfo.lookupUri.toString ( ) ; } else if ( ! ( android.text.TextUtils.isEmpty ( number ) ) ) { return android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , number , null ) . toString ( ) ; } return "" ; }

Target:
private java.lang.String getPersonReference ( com.android.incallui.ContactInfoCache.ContactCacheEntry contactInfo , android.telecom.Call call ) { java.lang.String number = com.android.dialer.telecom.TelecomCallUtil.getNumber ( call ) ; if ( ( ( contactInfo.lookupUri ) != null ) && ( ( contactInfo.userType ) != ( com.android.contacts.common.ContactsUtils.USER_TYPE_WORK ) ) ) { return contactInfo.lookupUri.toString ( ) ; } else if ( ! ( android.text.TextUtils.isEmpty ( number ) ) ) { return android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , number , null ) . toString ( ) ; } return "" ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { updatePlugged ( intent ) ; updateDockKeepingScreenOn ( ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_DOCK_EVENT.equals ( intent.getAction ( ) ) ) { mDockMode = intent.getIntExtra ( Intent.EXTRA_DOCK_STATE , Intent.EXTRA_DOCK_STATE_UNDOCKED ) ; } else { try { android.app.IUiModeManager uiModeService = IUiModeManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.UI_MODE_SERVICE ) ) ; mUiMode = uiModeService.getCurrentModeType ( ) ; } catch ( android.os.RemoteException e ) { } } updateRotation ( Surface.FLAGS_ORIENTATION_ANIMATION_DISABLE ) ; updateOrientationListenerLp ( ) ; }
Source:
public void iccTransmitApduBasicChannel ( int cla , int command , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { mCi.iccTransmitApduBasicChannel ( cla , command , p1 , p2 , p3 , data , obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_TRANSMIT_APDU_BASIC_CHANNEL_DONE , response ) ) ; }

Target:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { loglocal ( ( "iccCloseLogicalChannel: " + channel ) ) ; mCi.iccCloseLogicalChannel ( channel , mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_CLOSE_LOGICAL_CHANNEL_DONE , response ) ) ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { org.objectweb.asm.MethodVisitor visitor = super . cv.visitMethod ( access , name , desc , signature , exceptions ) ; return ( visitor == null ) || ( shouldCurrentClassBeIgnored ) ? visitor : new com.google.devtools.build.android.desugar.TryWithResourcesRewriter.TryWithResourceVisitor ( visitor , classLoader ) ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( exceptions != null ) && ( ( exceptions.length ) > 0 ) ) { java.util.Collections.addAll ( visitedExceptionTypes , exceptions ) ; } org.objectweb.asm.MethodVisitor visitor = super . cv.visitMethod ( access , name , desc , signature , exceptions ) ; return ( visitor == null ) || ( shouldCurrentClassBeIgnored ) ? visitor : new com.google.devtools.build.android.desugar.TryWithResourcesRewriter.TryWithResourceVisitor ( ( name + desc ) , visitor , classLoader ) ; }
Source:
public void run ( ) { try { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( true ) ; if ( conv.getRecipients ( ) . isEmpty ( ) ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.LogTag.debug ( "asyncUpdateDraftSmsMessage no recipients, not saving" ) ; } return ; } long threadId = conv.ensureThreadId ( ) ; conv.setDraftState ( true ) ; updateDraftSmsMessage ( conv , contents ) ; } finally { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( false ) ; } }

Target:
public void run ( ) { try { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( true ) ; if ( conv.getRecipients ( ) . isEmpty ( ) ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.LogTag.debug ( "asyncUpdateDraftSmsMessage no recipients, not saving" ) ; } return ; } ensureThreadIdIfNeeded ( conv , isStopping ) ; conv.setDraftState ( true ) ; updateDraftSmsMessage ( conv , contents ) ; } finally { com.android.mms.util.DraftCache.getInstance ( ) . setSavingDraft ( false ) ; } }
Source:
public boolean hasResolutions ( org.eclipse.core.resources.IMarker marker ) { java.lang.String message = null ; try { message = ( ( java.lang.String ) ( marker.getAttribute ( IMarker.MESSAGE ) ) ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } return ( message != null ) && ( message.contains ( com.android.ide.eclipse.adt.internal.build.AaptQuickFix.getTargetMarkerErrorMessage ( ) ) ) ; }

Target:
public boolean hasResolutions ( org.eclipse.core.resources.IMarker marker ) { java.lang.String message = null ; try { message = ( ( java.lang.String ) ( marker.getAttribute ( IMarker.MESSAGE ) ) ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } return ( message != null ) && ( ( message.contains ( com.android.ide.eclipse.adt.internal.build.AaptQuickFix.getTargetMarkerErrorMessage ( ) ) ) || ( message.contains ( com.android.ide.eclipse.adt.internal.build.AaptQuickFix.getUnboundErrorMessage ( ) ) ) ) ; }
Source:
protected boolean equals ( java.net.URL u1 , java.net.URL u2 ) { java.lang.String ref1 = u1.getRef ( ) ; java.lang.String ref2 = u2.getRef ( ) ; return ( ( ref1 == ref2 ) || ( ( ref1 != null ) && ( ref1.equals ( ref2 ) ) ) ) && ( sameFile ( u1 , u2 ) ) ; }

Target:
protected boolean equals ( java.net.URL u1 , java.net.URL u2 ) { return ( ( java.util.Objects.equals ( u1.getRef ( ) , u2.getRef ( ) ) ) && ( java.util.Objects.equals ( u1.getQuery ( ) , u2.getQuery ( ) ) ) ) && ( sameFile ( u1 , u2 ) ) ; }
Source:
private static java.io.File getMergedBlobFolder ( java.io.File folder ) throws java.io.IOException { java.io.File originalMerger = new java.io.File ( folder , ResourceMerger.FN_MERGER_XML ) ; java.lang.String content = com.google.common.io.Files.toString ( originalMerger , com.google.common.base.Charsets.UTF_8 ) ; content = content.replaceAll ( "\\$TOP\\$" , folder.getAbsolutePath ( ) ) . replaceAll ( "\\$SEP\\$" , java.io.File.separator ) ; java.io.File tempFolder = com.google.common.io.Files.createTempDir ( ) ; com.google.common.io.Files.write ( content , new java.io.File ( tempFolder , ResourceMerger.FN_MERGER_XML ) , com.google.common.base.Charsets.UTF_8 ) ; return tempFolder ; }

Target:
private static java.io.File getMergedBlobFolder ( java.io.File folder ) throws java.io.IOException { java.io.File originalMerger = new java.io.File ( folder , ResourceMerger.FN_MERGER_XML ) ; java.lang.String content = com.google.common.io.Files.toString ( originalMerger , com.google.common.base.Charsets.UTF_8 ) ; content = content.replaceAll ( "\\$TOP\\$" , java.util.regex.Matcher.quoteReplacement ( folder.getAbsolutePath ( ) ) ) . replaceAll ( "\\$SEP\\$" , java.util.regex.Matcher.quoteReplacement ( java.io.File.separator ) ) ; java.io.File tempFolder = com.google.common.io.Files.createTempDir ( ) ; com.google.common.io.Files.write ( content , new java.io.File ( tempFolder , ResourceMerger.FN_MERGER_XML ) , com.google.common.base.Charsets.UTF_8 ) ; return tempFolder ; }
Source:
private int setUpConnectingState ( ) { mHeadsetStateMachine.sendMessage ( HeadsetStateMachine.CONNECT , mTestDevice ) ; verify ( mHeadsetService , timeout ( com.android.bluetooth.hfp.HeadsetStateMachineTest.ASYNC_CALL_TIMEOUT_MILLIS ) ) . sendBroadcastAsUser ( mIntentArgument.capture ( ) , eq ( UserHandle.ALL ) , eq ( HeadsetService.BLUETOOTH_PERM ) ) ; com.android.bluetooth.hfp.HeadsetStateMachineTest.verifyConnectionStateBroadcast ( mTestDevice , BluetoothProfile.STATE_CONNECTING , BluetoothProfile.STATE_DISCONNECTED , mIntentArgument.getValue ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Connecting.class ) ) ; return 1 ; }

Target:
private int setUpConnectingState ( ) { mHeadsetStateMachine.sendMessage ( HeadsetStateMachine.CONNECT , mTestDevice ) ; verify ( mHeadsetService , timeout ( com.android.bluetooth.hfp.HeadsetStateMachineTest.ASYNC_CALL_TIMEOUT_MILLIS ) ) . sendBroadcastAsUser ( mIntentArgument.capture ( ) , eq ( UserHandle.ALL ) , eq ( HeadsetService.BLUETOOTH_PERM ) ) ; com.android.bluetooth.hfp.HeadsetTestUtils.verifyConnectionStateBroadcast ( mTestDevice , BluetoothProfile.STATE_CONNECTING , BluetoothProfile.STATE_DISCONNECTED , mIntentArgument.getValue ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Connecting.class ) ) ; return 1 ; }
Source:
public java.lang.String toString ( ) { org.json.JSONObject json = new org.json.JSONObject ( ) ; try { json.put ( "status" , mBmsgStatus ) ; json.put ( "type" , mBmsgType ) ; json.put ( "folder" , mBmsgFolder ) ; json.put ( "message" , mMessage ) ; } catch ( org.json.JSONException e ) { } return json.toString ( ) ; }

Target:
public java.lang.String toString ( ) { org.json.JSONObject json = new org.json.JSONObject ( ) ; try { json.put ( "status" , mBmsgStatus ) ; json.put ( "type" , mBmsgType ) ; json.put ( "folder" , mBmsgFolder ) ; json.put ( "charset" , mBbodyCharset ) ; json.put ( "message" , mMessage ) ; } catch ( org.json.JSONException e ) { } return json.toString ( ) ; }
Source:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { if ( ( instance != null ) && ( ! ( instance.mCleaningUp ) ) ) { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - set to: " + ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) ) ) ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; } else { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { if ( ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) == null ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service not available" ) ; } else if ( com.android.bluetooth.btservice.AdapterService.sAdapterService.mCleaningUp ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service is cleaning up" ) ; } } } }

Target:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - trying to set service to " + instance ) ) ; if ( instance == null ) { return ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; }
Source:
public void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.startSession ( "CSW.pE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.putExtras ( Call.SOURCE_CONNECTION_SERVICE , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void putExtras ( java.lang.String callId , android.os.Bundle extras , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.pE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.putExtras ( Call.SOURCE_CONNECTION_SERVICE , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
protected com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.ide.common.internal.CommandLineRunner commandLineRunner = new com.android.ide.common.internal.CommandLineRunner ( logger ) ; java.io.File aapt = new java.io.File ( getSdkDir ( ) , "build-tools/android-21/aapt" ) ; assertTrue ( ( "Test requires build-tools 21.0.0 in " + ( aapt.getAbsolutePath ( ) ) ) , aapt.isFile ( ) ) ; return new com.android.ide.common.internal.AaptCruncher ( aapt.getAbsolutePath ( ) , commandLineRunner ) ; }

Target:
protected com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.ide.common.internal.CommandLineRunner commandLineRunner = new com.android.ide.common.internal.CommandLineRunner ( logger ) ; java.io.File aapt = new java.io.File ( getSdkDir ( ) , "build-tools/20.0.0/aapt" ) ; assertTrue ( ( "Test requires build-tools 20.0.0 in " + ( aapt.getAbsolutePath ( ) ) ) , aapt.isFile ( ) ) ; return new com.android.ide.common.internal.AaptCruncher ( aapt.getAbsolutePath ( ) , commandLineRunner ) ; }
Source:
private static void copyOptions ( com.drawelements.deqp.runner.DeqpTestRunner destination , com.drawelements.deqp.runner.DeqpTestRunner source ) { destination.mDeqpPackage = source.mDeqpPackage ; destination.mConfigName = source.mConfigName ; destination.mCaselistFile = source.mCaselistFile ; destination.mScreenRotation = source.mScreenRotation ; destination.mSurfaceType = source.mSurfaceType ; destination.mIncludeFilters = new java.util.ArrayList < > ( source.mIncludeFilters ) ; destination.mExcludeFilters = new java.util.ArrayList < > ( source.mExcludeFilters ) ; destination.mAbi = source.mAbi ; destination.mLogData = source.mLogData ; }

Target:
private static void copyOptions ( com.drawelements.deqp.runner.DeqpTestRunner destination , com.drawelements.deqp.runner.DeqpTestRunner source ) { destination.mDeqpPackage = source.mDeqpPackage ; destination.mConfigName = source.mConfigName ; destination.mCaselistFile = source.mCaselistFile ; destination.mScreenRotation = source.mScreenRotation ; destination.mSurfaceType = source.mSurfaceType ; destination.mConfigRequired = source.mConfigRequired ; destination.mIncludeFilters = new java.util.ArrayList < > ( source.mIncludeFilters ) ; destination.mExcludeFilters = new java.util.ArrayList < > ( source.mExcludeFilters ) ; destination.mAbi = source.mAbi ; destination.mLogData = source.mLogData ; }
Source:
public void testE2 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_1 t = new dot.junit.opcodes.aput_object.d.T_aput_object_1 ( ) ; java.lang.String [ ] arr = new java.lang.String [ 2 ] ; try { t.run ( arr , ( - 1 ) , "abc" ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_1" , java.lang.ArrayIndexOutOfBoundsException.class , new java.lang.String [ 2 ] , ( - 1 ) , "abc" ) ; }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve cFp239v2 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "883423532389192164791648750360308885314476597252960362792450860609699839" ) , new java.math.BigInteger ( "7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc" , 16 ) , new java.math.BigInteger ( "617fab6832576cbbfed50d99f0249c3fee58b94ba0038c7ae84c8c832f2c" , 16 ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp239v2 , cFp239v2.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0238af09d98727705120c921bb5e9e26296a3cdcf2f35757a0eafd87b830e7" ) ) , new java.math.BigInteger ( "7fffffffffffffffffffffff800000cfa7e8594377d414c03821bc582063" , 16 ) , java.math.BigInteger.valueOf ( 1 ) , org.bouncycastle.util.encoders.Hex.decode ( "e8b4011604095303ca3b8099982be09fcb9ae616" ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551" , 16 ) ; java.math.BigInteger h = java.math.BigInteger.valueOf ( 1 ) ; org.bouncycastle.math.ec.ECCurve cFp256v1 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "115792089210356248762697446949407573530086143415290314195533631308867097853951" ) , new java.math.BigInteger ( "ffffffff00000001000000000000000000000000fffffffffffffffffffffffc" , 16 ) , new java.math.BigInteger ( "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b" , 16 ) , n , h ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp256v1 , cFp256v1.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" ) ) , n , h , org.bouncycastle.util.encoders.Hex.decode ( "c49d360886e704936a6678e1139d26b7819f7e90" ) ) ; }
Source:
private static void insertNewSimpleSuccessor ( com.android.jack.ir.ast.cfg.JBasicBlock block , com.android.jack.ir.ast.cfg.JBasicBlock other ) { com.android.jack.ir.ast.cfg.JSimpleBasicBlock newSucc = new com.android.jack.ir.ast.cfg.JSimpleBasicBlock ( block.getCfg ( ) , other ) ; block.replaceAllSuccessors ( other , newSucc ) ; }

Target:
private static void insertNewSimpleSuccessor ( com.android.jack.ir.ast.cfg.JBasicBlock block , com.android.jack.ir.ast.cfg.JBasicBlock other ) { com.android.jack.ir.ast.cfg.JSimpleBasicBlock newSucc = new com.android.jack.ir.ast.cfg.JSimpleBasicBlock ( block.getCfg ( ) , other ) ; com.android.jack.ir.ast.cfg.JGotoBlockElement jGoto = new com.android.jack.ir.ast.cfg.JGotoBlockElement ( other.getSourceInfo ( ) , com.android.jack.ir.ast.cfg.ExceptionHandlingContext.EMPTY ) ; newSucc.insertElement ( 0 , jGoto ) ; block.replaceAllSuccessors ( other , newSucc ) ; }
Source:
public static void recordBooleanHistogram ( java.lang.String name , boolean sample ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordBooleanHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordBooleanHistogram ( java.lang.String name , boolean sample ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordBooleanHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
public org.w3c.dom.Document getMetadataDocument ( ) { java.lang.String xml = readTemplateTextResource ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.TEMPLATE_XML ) ; if ( xml != null ) { return com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , true ) ; } else { return null ; } }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.templates.TemplateMetadata getTemplate ( java.lang.String templateName ) { java.lang.String relative = ( ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.getTemplatePath ( templateName ) ) + '/' ) + ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.TEMPLATE_XML ) ; java.lang.String xml = com.android.ide.eclipse.adt.AdtPlugin.readEmbeddedTextFile ( relative ) ; org.w3c.dom.Document doc = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , true ) ; if ( ( doc != null ) && ( ( doc.getDocumentElement ( ) ) != null ) ) { return new com.android.ide.eclipse.adt.internal.wizards.templates.TemplateMetadata ( doc ) ; } return null ; }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { try { byte [ ] out = cipher.doFinal ( sigBytes ) ; byte [ ] dataBytes = data.toByteArray ( ) ; data.reset ( ) ; return java.util.Arrays.equals ( out , dataBytes ) ; } catch ( javax.crypto.BadPaddingException e ) { return false ; } catch ( javax.crypto.IllegalBlockSizeException e ) { throw new java.security.SignatureException ( "doFinal() failed" , e ) ; } }

Target:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { try { byte [ ] out = cipher.doFinal ( sigBytes ) ; byte [ ] dataBytes = data.toByteArray ( ) ; data.reset ( ) ; return java.security.MessageDigest.isEqual ( out , dataBytes ) ; } catch ( javax.crypto.BadPaddingException e ) { return false ; } catch ( javax.crypto.IllegalBlockSizeException e ) { throw new java.security.SignatureException ( "doFinal() failed" , e ) ; } }
Source:
public void scheduleAtFixedRate ( java.util.TimerTask task , java.util.Date when , long period ) { if ( ( period <= 0 ) || ( ( when.getTime ( ) ) < 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } long delay = ( when.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ; scheduleImpl ( task , delay , period , true ) ; }

Target:
public void schedule ( java.util.TimerTask task , java.util.Date when , long period ) { validateScheduling ( task , when , 1 , period ) ; doSchedule ( task , when.getTime ( ) , period ) ; }
Source:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return com.android.dialer.common.Assert.isNotNull ( phoneLookupInfo.getPeopleApiInfo ( ) . getLookupUri ( ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return com.android.dialer.common.Assert.isNotNull ( phoneLookupInfo.getPeopleApiInfo ( ) . getLookupUri ( ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public static java.lang.String toJCASignatureAlgorithmDigest ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return "SHA256" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }

Target:
public static java.lang.String toJCASignatureAlgorithmDigest ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Digest.MD5 : return "MD5" ; case android.security.KeyStoreKeyConstraints.Digest.SHA1 : return "SHA1" ; case android.security.KeyStoreKeyConstraints.Digest.SHA224 : return "SHA224" ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return "SHA256" ; case android.security.KeyStoreKeyConstraints.Digest.SHA384 : return "SHA384" ; case android.security.KeyStoreKeyConstraints.Digest.SHA512 : return "SHA512" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }
Source:
public void testOnSetUpPushFileException ( ) throws java.lang.Exception { org.easymock.EasyMock.expect ( mMockDevice.pushFile ( org.easymock.EasyMock.anyObject ( ) , org.easymock.EasyMock.anyObject ( ) ) ) . andThrow ( new java.util.NoSuchElementException ( "file not found." ) ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; try { mPreparer.setUp ( mMockDevice , mMockBuildInfo ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; } catch ( java.lang.RuntimeException e ) { return ; } org.junit.Assert.fail ( ) ; }

Target:
public void testOnSetUpPushFileException ( ) throws java.lang.Exception { org.easymock.EasyMock.expect ( mMockDevice.pushFile ( org.easymock.EasyMock.anyObject ( ) , org.easymock.EasyMock.anyObject ( ) ) ) . andThrow ( new java.util.NoSuchElementException ( "file not found." ) ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; try { mPreparer.setUp ( mMockDevice , mMockBuildInfo ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; } catch ( com.android.tradefed.targetprep.TargetSetupError e ) { org.junit.Assert.assertEquals ( "Could not push profiler." , e.getMessage ( ) ) ; return ; } org.junit.Assert.fail ( ) ; }
Source:
public void sendTerminalResponse ( java.lang.String contents , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( contents ) ; send ( rr ) ; }

Target:
public void queryCLIP ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_QUERY_CLIP , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getClip ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "queryCLIP" , e ) ; } } }
Source:
private boolean mode ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_reduce_backward s ) { final byte [ ] inputArray = createInputArrayByte ( 100000 , 12 ) ; final com.android.rs.test.Int2 javaRslt = mode ( RS , inputArray ) ; final com.android.rs.test.Int2 rsRslt = s.reduce_mode ( inputArray ) . get ( ) ; return result ( "mode" , javaRslt , rsRslt ) ; }

Target:
private boolean mode ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_reduce_backward s ) { final byte [ ] inputArray = createInputArrayByte ( 100000 , 12 ) ; final android.renderscript.Int2 javaRslt = mode ( RS , inputArray ) ; final android.renderscript.Int2 rsRslt = s.reduce_mode ( inputArray ) . get ( ) ; return result ( "mode" , javaRslt , rsRslt ) ; }
Source:
public void expectCause ( org.hamcrest.Matcher < ? extends java.lang.Throwable > expectedCause ) { expect ( org.junit.internal.matchers.ThrowableCauseMatcher.hasCause ( expectedCause ) ) ; }

Target:
public void evaluate ( ) throws java.lang.Throwable { try { fNext.evaluate ( ) ; } catch ( java.lang.Throwable e ) { if ( ( fMatcher ) == null ) throw e ; org.junit.Assert.assertThat ( e , fMatcher ) ; return ; } if ( ( fMatcher ) != null ) throw new java.lang.AssertionError ( ( "Expected test to throw " + ( org.hamcrest.StringDescription.toString ( fMatcher ) ) ) ) ; }
Source:
public void testPskNetworkWifiConfigurationSaveLoad ( ) throws java.lang.Exception { android.net.wifi.WifiConfiguration config = com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ; config.requirePMF = true ; testWifiConfigurationSaveLoad ( config ) ; }

Target:
public void testPskNetworkWifiConfigurationSaveLoad ( ) throws java.lang.Exception { android.net.wifi.WifiConfiguration config = com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ; config.preSharedKey = "945ef00c463c2a7c2496376b13263d1531366b46377179a4b17b393687450779" ; testWifiConfigurationSaveLoad ( config ) ; org.mockito.Mockito.verify ( mISupplicantStaNetworkMock ) . setPsk ( org.mockito.Mockito.any ( byte [ ] . class ) ) ; org.mockito.Mockito.verify ( mISupplicantStaNetworkMock ) . getPsk ( org.mockito.Mockito.any ( ISupplicantStaNetwork.getPskCallback.class ) ) ; org.mockito.Mockito.verify ( mISupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . setPskPassphrase ( org.mockito.Mockito.anyString ( ) ) ; org.mockito.Mockito.verify ( mISupplicantStaNetworkMock ) . getPskPassphrase ( org.mockito.Mockito.any ( ISupplicantStaNetwork.getPskPassphraseCallback.class ) ) ; }
Source:
public void goToUnlockScreen ( ) { final com.android.internal.telephony.SimCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( stuckOnLockScreenBecauseSimMissing ( ) ) || ( simState == ( SimCard.State.PUK_REQUIRED ) ) ) { return ; } if ( ! ( isSecure ( ) ) ) { getCallback ( ) . keyguardDone ( true ) ; } else { updateScreen ( com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ) ; } }

Target:
public void goToUnlockScreen ( ) { final com.android.internal.telephony.IccCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( stuckOnLockScreenBecauseSimMissing ( ) ) || ( simState == ( IccCard.State.PUK_REQUIRED ) ) ) { return ; } if ( ! ( isSecure ( ) ) ) { getCallback ( ) . keyguardDone ( true ) ; } else { updateScreen ( com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ) ; } }
Source:
public boolean onPreDraw ( ) { ( mCurrentDraws ) ++ ; if ( ( mCurrentDraws ) < ( ( android.uirendering.cts.testinfrastructure.DrawActivity.MIN_NUMBER_OF_DRAWS ) + ( mExtraDraws ) ) ) { mView.postInvalidate ( ) ; } else { synchronized ( mLock ) { mLock.set ( mViewWrapper.getLeft ( ) , mViewWrapper.getTop ( ) ) ; mLock.notify ( ) ; } mView.getViewTreeObserver ( ) . removeOnPreDrawListener ( this ) ; } return true ; }

Target:
public boolean onPreDraw ( ) { ( mCurrentDraws ) ++ ; if ( ( mCurrentDraws ) < ( ( android.uirendering.cts.testinfrastructure.DrawActivity.MIN_NUMBER_OF_DRAWS ) + ( mExtraDraws ) ) ) { mView.postInvalidate ( ) ; } else { synchronized ( mLock ) { final int [ ] locationOnScreen = mViewWrapper.getLocationOnScreen ( ) ; mLock.set ( locationOnScreen [ 0 ] , locationOnScreen [ 1 ] ) ; mLock.notify ( ) ; } mView.getViewTreeObserver ( ) . removeOnPreDrawListener ( this ) ; } return true ; }
Source:
public static java.lang.String getPersistProp ( boolean functions ) { java.lang.String bootMode = android.os.SystemProperties.get ( com.android.server.usb.UsbDeviceManager.BOOT_MODE_PROPERTY , "unknown" ) ; java.lang.String persistProp = com.android.server.usb.UsbDeviceManager.USB_PERSISTENT_CONFIG_PROPERTY ; if ( ! ( ( bootMode.equals ( com.android.server.usb.UsbDeviceManager.NORMAL_BOOT ) ) || ( bootMode.equals ( "unknown" ) ) ) ) { if ( functions ) { persistProp = ( "persist.sys.usb." + bootMode ) + ".func" ; } else { persistProp = ( "persist.sys.usb." + bootMode ) + ".config" ; } } return persistProp ; }

Target:
private java.lang.String getPersistProp ( boolean functions ) { java.lang.String bootMode = android.os.SystemProperties.get ( com.android.server.usb.UsbDeviceManager.BOOT_MODE_PROPERTY , "unknown" ) ; java.lang.String persistProp = com.android.server.usb.UsbDeviceManager.UsbHandler.USB_PERSISTENT_CONFIG_PROPERTY ; if ( ! ( ( bootMode.equals ( com.android.server.usb.UsbDeviceManager.NORMAL_BOOT ) ) || ( bootMode.equals ( "unknown" ) ) ) ) { if ( functions ) { persistProp = ( "persist.sys.usb." + bootMode ) + ".func" ; } else { persistProp = ( "persist.sys.usb." + bootMode ) + ".config" ; } } return persistProp ; }
Source:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) { return ( ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) ( element ) ) . getLicenseRef ( ) ; } else if ( element instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ) { com.android.sdkuilib.internal.repository.ArchiveInfo ai = ( ( com.android.sdkuilib.internal.repository.ArchiveInfo ) ( element ) ) ; java.lang.String desc = ai.getShortDescription ( ) ; if ( ai.isDependencyFor ( ) ) { desc += " [*]" ; } return desc ; } assert ( element instanceof java.lang.String ) || ( element instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ) ; return null ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) { return ( ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) ( element ) ) . getLicenseRef ( ) ; } else if ( element instanceof com.android.sdklib.internal.repository.updater.ArchiveInfo ) { com.android.sdklib.internal.repository.updater.ArchiveInfo ai = ( ( com.android.sdklib.internal.repository.updater.ArchiveInfo ) ( element ) ) ; java.lang.String desc = ai.getShortDescription ( ) ; if ( ai.isDependencyFor ( ) ) { desc += " [*]" ; } return desc ; } assert ( element instanceof java.lang.String ) || ( element instanceof com.android.sdklib.internal.repository.updater.ArchiveInfo ) ; return null ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExceptionRuntimeValue expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldRef expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JFieldRef other = otherOrMe ( expr ) ; ensure ( ( ( ( expr.getInstance ( ) ) == null ) == ( ( other.getInstance ( ) ) == null ) ) ) ; ensure ( equal ( expr.getReceiverType ( ) , other.getReceiverType ( ) ) ) ; ensure ( expr.getFieldId ( ) . equals ( other.getFieldId ( ) ) ) ; }
Source:
void hold ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "hold" ) ) ) { try { logOutgoing ( "hold %s" , callId ) ; mServiceInterface.hold ( callId ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void silence ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "silence" ) ) ) { try { logOutgoing ( "silence %s" , callId ) ; mServiceInterface.silence ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private static sun.security.util.DisabledAlgorithmConstraints.KeySizeConstraints getKeySizeConstraints ( java.lang.String [ ] disabledAlgorithms , java.lang.String propertyName ) { synchronized ( sun.security.util.DisabledAlgorithmConstraints.keySizeConstraintsMap ) { if ( ! ( sun.security.util.DisabledAlgorithmConstraints.keySizeConstraintsMap.containsKey ( propertyName ) ) ) { sun.security.util.DisabledAlgorithmConstraints.KeySizeConstraints keySizeConstraints = new sun.security.util.DisabledAlgorithmConstraints.KeySizeConstraints ( disabledAlgorithms ) ; sun.security.util.DisabledAlgorithmConstraints.keySizeConstraintsMap.put ( propertyName , keySizeConstraints ) ; } return sun.security.util.DisabledAlgorithmConstraints.keySizeConstraintsMap.get ( propertyName ) ; } }

Target:
public boolean checkProperty ( java.lang.String param ) { param = param.toLowerCase ( java.util.Locale.ENGLISH ) ; for ( java.lang.String block : disabledAlgorithms ) { if ( ( block.toLowerCase ( java.util.Locale.ENGLISH ) . indexOf ( param ) ) >= 0 ) { return true ; } } return false ; }
Source:
public void onDraw ( final android.graphics.Canvas canvas ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDraw ( canvas ) ; } } ) ; return ; } mAwContents.onDraw ( canvas ) ; }

Target:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }
Source:
public void destroyAppData ( java.lang.String uuid , java.lang.String pkgname , int userid , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "destroy_app_data" , uuid , pkgname , userid , flags , ceDataInode ) ; }

Target:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public static com.android.jack.dx.rop.cst.CstFieldRef createFieldRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface receiverType ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( receiverType ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( field ) ; com.android.jack.dx.rop.cst.CstFieldRef fieldRef = new com.android.jack.dx.rop.cst.CstFieldRef ( definingClass , nat ) ; return fieldRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstFieldRef createFieldRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface receiverType ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( receiverType ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( field.getName ( ) ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( field ) ; com.android.jack.dx.rop.cst.CstFieldRef fieldRef = new com.android.jack.dx.rop.cst.CstFieldRef ( definingClass , name , nat ) ; return fieldRef ; }
Source:
private void processResponse ( android.os.Parcel p ) { int type ; type = p.readInt ( ) ; if ( type == ( com.android.internal.telephony.RIL.RESPONSE_UNSOLICITED ) ) { processUnsolicited ( p ) ; } else if ( type == ( com.android.internal.telephony.RIL.RESPONSE_SOLICITED ) ) { processSolicited ( p ) ; } releaseWakeLockIfDone ( ) ; }

Target:
private void processResponse ( android.os.Parcel p ) { int type ; type = p.readInt ( ) ; if ( type == ( com.android.internal.telephony.RIL.RESPONSE_UNSOLICITED ) ) { processUnsolicited ( p ) ; } else if ( type == ( com.android.internal.telephony.RIL.RESPONSE_SOLICITED ) ) { com.android.internal.telephony.RILRequest rr = processSolicited ( p ) ; if ( rr != null ) { rr.release ( ) ; decrementWakeLock ( ) ; } } }
Source:
public boolean isEndpointClass ( com.intellij.psi.PsiElement psiElement ) { com.intellij.psi.PsiClass psiClass = com.google.gct.intellij.endpoints.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , false ) ) { return true ; } else { return false ; } }

Target:
public boolean isEndpointClass ( com.google.gct.intellij.endpoints.validation.PsiElement psiElement ) { com.google.gct.intellij.endpoints.validation.PsiClass psiClass = com.google.gct.intellij.endpoints.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( ( ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , true ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_CLASS , true ) ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_REFERENCE , true ) ) ) { return true ; } else { return false ; } }