auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void handle ( @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.router.ErrorContainer.logger.log ( java.util.logging.Level.WARNING , ( ( "Unknown request: '" + ( request.toString ( ) ) ) + "'" ) ) ; response.setStatus ( status ) ; try { response.close ( ) ; } catch ( java.io.IOException e ) { com.android.jack.server.router.ErrorContainer.logger.log ( java.util.logging.Level.SEVERE , "Exception during close: " , e ) ; } }

Target:
public void handle ( @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.router.ErrorContainer.logger.log ( java.util.logging.Level.WARNING , ( ( "Unknown request: '" + ( request.toString ( ) ) ) + "'" ) ) ; response.setContentLength ( 0 ) ; response.setStatus ( status ) ; try { response.close ( ) ; } catch ( java.io.IOException e ) { com.android.jack.server.router.ErrorContainer.logger.log ( java.util.logging.Level.SEVERE , "Exception during close: " , e ) ; } }
Source:
protected void dispatchQueuedEvents ( ) { if ( isDispatching.get ( ) ) { return ; } isDispatching.set ( true ) ; try { while ( true ) { com.google.common.eventbus.EventBus.EventWithHandler eventWithHandler = eventsToDispatch.get ( ) . poll ( ) ; if ( eventWithHandler == null ) { break ; } dispatch ( eventWithHandler.event , eventWithHandler.handler ) ; } } finally { isDispatching.set ( false ) ; } }

Target:
void enqueueEvent ( java.lang.Object event , com.google.common.eventbus.EventSubscriber subscriber ) { eventsToDispatch.get ( ) . offer ( new com.google.common.eventbus.EventBus.EventWithSubscriber ( event , subscriber ) ) ; }
Source:
protected void onPreExecute ( ) { super . onPreExecute ( ) ; progressDialog = new android.app.ProgressDialog ( this ) ; progressDialog.setMessage ( "Loading Volume" ) ; progressDialog.setIndeterminate ( true ) ; progressDialog.setCancelable ( false ) ; progressDialog.setProgress ( 0 ) ; progressDialog.setMax ( 100 ) ; progressDialog.show ( ) ; mLoader.setProgressListener ( new com.example.android.rs.vr.loaders.VolumeLoader.ProgressListener ( ) { @ java.lang.Override public void progress ( int n , int total ) { publishProgress ( n , total ) ; } } ) ; }

Target:
protected void onPreExecute ( ) { super . onPreExecute ( ) ; progressDialog = new android.app.ProgressDialog ( this ) ; progressDialog.setMessage ( ( message = "Loading Volume" ) ) ; progressDialog.setIndeterminate ( true ) ; progressDialog.setCancelable ( false ) ; progressDialog.setProgress ( 0 ) ; progressDialog.setMax ( 100 ) ; progressDialog.show ( ) ; mLoader.setProgressListener ( new com.example.android.rs.vr.loaders.VolumeLoader.ProgressListener ( ) { @ java.lang.Override public void progress ( int n , int total ) { publishProgress ( n , total ) ; } } ) ; }
Source:
public static void assertEquals ( java.lang.String message , double expected , double actual , double delta ) { if ( ( java.lang.Double.compare ( expected , actual ) ) == 0 ) return ; if ( ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) <= delta ) ) org.junit.Assert.failNotEquals ( message , new java.lang.Double ( expected ) , new java.lang.Double ( actual ) ) ; }

Target:
public static void assertEquals ( java.lang.String message , double expected , double actual , double delta ) { if ( org.junit.Assert.doubleIsDifferent ( expected , actual , delta ) ) { org.junit.Assert.failNotEquals ( message , java.lang.Double.valueOf ( expected ) , java.lang.Double.valueOf ( actual ) ) ; } }
Source:
public void timeSort_vector ( int nreps ) { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , false ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input ) ; } }

Target:
public void timeSort_arrayList ( int nreps ) throws java.lang.Exception { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , java.util.ArrayList.class ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input ) ; } }
Source:
public void callOnSelected ( com.android.ide.common.api.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy selectedNode , java.lang.String displayName , boolean isMultipleSelection ) { com.android.ide.common.api.IViewRule rule = loadRule ( selectedNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onSelected ( gc , selectedNode , displayName , isMultipleSelection ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onSelected() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public java.util.List < java.lang.String > callGetSelectionHint ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy parentNode , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy childNode ) { com.android.ide.common.api.IViewRule rule = loadRule ( parentNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.getSelectionHint ( parentNode , childNode ) ; } catch ( java.lang.Exception e ) { logError ( "%getSelectionHint() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
public static java.net.NetworkInterface getByIndex ( int index ) throws java.net.SocketException { if ( index < 0 ) throw new java.lang.IllegalArgumentException ( "Interface index can't be negative" ) ; return java.net.NetworkInterface.getByIndex0 ( index ) ; }

Target:
public static java.net.NetworkInterface getByIndex ( int index ) throws java.net.SocketException { if ( index < 0 ) throw new java.lang.IllegalArgumentException ( "Interface index can't be negative" ) ; java.net.NetworkInterface [ ] nis = java.net.NetworkInterface.getAll ( ) ; for ( java.net.NetworkInterface ni : nis ) { if ( ( ni.getIndex ( ) ) == index ) { return ni ; } } return null ; }
Source:
public void testOkClasses ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING ) ; assertEquals ( ( "AndroidManifest.xml:13: Error: Class referenced in the manifest, test.pkg.TestProvider, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( " <activity android:name=\".TestProvider\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.TestProvider2, was not found in the project or the libraries [MissingRegistered]\n" ) + " <service android:name=\"test.pkg.TestProvider2\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:15: Error: Class referenced in the manifest, test.pkg.TestService, was not found in the project or the libraries [MissingRegistered]\n" ) + " <provider android:name=\".TestService\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:16: Error: Class referenced in the manifest, test.pkg.OnClickActivity, was not found in the project or the libraries [MissingRegistered]\n" ) + " <receiver android:name=\"OnClickActivity\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:17: Error: Class referenced in the manifest, test.pkg.TestReceiver, was not found in the project or the libraries [MissingRegistered]\n" ) + " <service android:name=\"TestReceiver\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "5 errors, 0 warnings\n" ) ) , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "bytecode/.classpath=>.classpath" ) ) ; }
Source:
private void resizeScrollbar ( ) { int sx = ( ( int ) ( ( mImgSize ) * ( mScale ) ) ) ; int cx = ( mClientSize ) - ( 2 * ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas.ScaleInfo.IMAGE_MARGIN ) ) ; if ( sx < cx ) { mScrollbar.setEnabled ( false ) ; } else { mScrollbar.setEnabled ( true ) ; mScrollbar.setMaximum ( sx ) ; mScrollbar.setThumb ( cx ) ; } }

Target:
private void resizeScrollbar ( ) { int sx = ( ( int ) ( ( mImgSize ) * ( mScale ) ) ) ; int cx = ( mClientSize ) - ( 2 * ( IMAGE_MARGIN ) ) ; if ( sx < cx ) { mScrollbar.setEnabled ( false ) ; } else { mScrollbar.setEnabled ( true ) ; mScrollbar.setMaximum ( sx ) ; mScrollbar.setThumb ( cx ) ; } }
Source:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String testName = request.getParameter ( "testName" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.TABLE , testName , ( "?testName=" + testName ) ) ) ; links.add ( new com.android.vts.servlet.Page ( PageType.PERFORMANCE , ( "?testName=" + testName ) ) ) ; return links ; }

Target:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String testName = request.getParameter ( "testName" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.TABLE , testName , ( "?testName=" + testName ) ) ) ; links.add ( new com.android.vts.servlet.Page ( PageType.PERFORMANCE_DIGEST , ( "?testName=" + testName ) ) ) ; return links ; }
Source:
static java.lang.String normalizeCalendarType ( java.lang.String requestID ) { java.lang.String type ; if ( ( requestID.equals ( "gregory" ) ) || ( requestID.equals ( "iso8601" ) ) ) { type = "gregorian" ; } else if ( requestID.startsWith ( "islamic" ) ) { type = "islamic" ; } else { type = requestID ; } return type ; }

Target:
static java.lang.String normalizeCalendarType ( java.lang.String requestID ) { java.lang.String type ; if ( ( requestID.equals ( "gregory" ) ) || ( requestID.equals ( "iso8601" ) ) ) { type = sun.util.locale.provider.CalendarDataUtility.GREGORIAN_CALENDAR ; } else if ( requestID.startsWith ( sun.util.locale.provider.CalendarDataUtility.ISLAMIC_CALENDAR ) ) { type = sun.util.locale.provider.CalendarDataUtility.ISLAMIC_CALENDAR ; } else { type = requestID ; } return type ; }
Source:
public static com.android.dialer.contactsfragment.ContactsCursorLoader createInstanceDisplayNamePrimary ( android.content.Context context , java.lang.String sortKey ) { return new com.android.dialer.contactsfragment.ContactsCursorLoader ( context , com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACTS_PROJECTION_DISPLAY_NAME_PRIMARY , sortKey ) ; }

Target:
private static java.lang.String getWhere ( android.content.Context context , boolean hasPhoneNumbers ) { java.lang.String where = ( com.android.dialer.contactsfragment.ContactsCursorLoader.getProjection ( context ) [ com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACT_DISPLAY_NAME ] ) + " IS NOT NULL" ; if ( hasPhoneNumbers ) { where += ( " AND " + ( android.provider.ContactsContract.Contacts.HAS_PHONE_NUMBER ) ) + "=1" ; } return where ; }
Source:
public static com.android.newbubble.NewBubbleInfo.Builder from ( @ android.support.annotation.NonNull com.android.newbubble.NewBubbleInfo bubbleInfo ) { return com.android.newbubble.NewBubbleInfo.builder ( ) . setPrimaryColor ( bubbleInfo.getPrimaryColor ( ) ) . setPrimaryIcon ( bubbleInfo.getPrimaryIcon ( ) ) . setStartingYPosition ( bubbleInfo.getStartingYPosition ( ) ) . setActions ( bubbleInfo.getActions ( ) ) ; }

Target:
public static com.android.newbubble.NewBubbleInfo.Builder from ( @ android.support.annotation.NonNull com.android.newbubble.NewBubbleInfo bubbleInfo ) { return com.android.newbubble.NewBubbleInfo.builder ( ) . setPrimaryColor ( bubbleInfo.getPrimaryColor ( ) ) . setPrimaryIcon ( bubbleInfo.getPrimaryIcon ( ) ) . setStartingYPosition ( bubbleInfo.getStartingYPosition ( ) ) . setActions ( bubbleInfo.getActions ( ) ) . setAvatar ( bubbleInfo.getAvatar ( ) ) ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { com.android.ide.eclipse.adt.internal.project.ExportHelper.export ( project , new java.io.File ( saveLocation ) , null , null , monitor ) ; com.android.ide.eclipse.adt.AdtPlugin.displayWarning ( "Android IDE Plug-in" , java.lang.String.format ( ( "An unsigned package of the application was saved at\n%1$s\n\n" + ( ( ( ( "Before publishing the application you will need to:\n" + "- Sign the application with your release key,\n" ) + "- run zipalign on the signed package. ZipAlign is located in <SDK>/tools/\n\n" ) + "Aligning applications allows Android to use application resources\n" ) + "more efficiently." ) ) , saveLocation ) ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; } catch ( org.eclipse.core.runtime.CoreException e ) { return e.getStatus ( ) ; } }

Target:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk ( project , new java.io.File ( saveLocation ) , null , null , monitor ) ; com.android.ide.eclipse.adt.AdtPlugin.displayWarning ( "Android IDE Plug-in" , java.lang.String.format ( ( "An unsigned package of the application was saved at\n%1$s\n\n" + ( ( ( ( "Before publishing the application you will need to:\n" + "- Sign the application with your release key,\n" ) + "- run zipalign on the signed package. ZipAlign is located in <SDK>/tools/\n\n" ) + "Aligning applications allows Android to use application resources\n" ) + "more efficiently." ) ) , saveLocation ) ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.displayError ( "Android IDE Plug-in" , java.lang.String.format ( "Error exporting application:\n\n%1$s" , e.getMessage ( ) ) ) ; return e.getStatus ( ) ; } }
Source:
public void testDismissKeyguardActivity ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "DismissKeyguardActivity" ) ; mAmWmState.waitForKeyguardShowingAndOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "DismissKeyguardActivity" } ) ; mAmWmState.assertVisibility ( "DismissKeyguardActivity" , true ) ; assertShowingAndOccluded ( ) ; }

Target:
public void testDismissKeyguardActivity ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "DismissKeyguardActivity" ) ; mAmWmState.waitForKeyguardShowingAndOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "DismissKeyguardActivity" } ) ; mAmWmState.assertVisibility ( "DismissKeyguardActivity" , true ) ; assertShowingAndOccluded ( ) ; }
Source:
public void onChange ( boolean selfChange ) { if ( ( mAutoRequery ) && ( ( mCursor ) != null ) ) { if ( false ) android.util.Log.v ( "Cursor" , ( ( "Auto requerying " + ( mCursor ) ) + " due to update" ) ) ; mDataValid = mCursor.requery ( ) ; } }

Target:
public void onChange ( boolean selfChange ) { if ( ( ( mAutoRequery ) && ( ( mCursor ) != null ) ) && ( ! ( mCursor.isClosed ( ) ) ) ) { if ( false ) android.util.Log.v ( "Cursor" , ( ( "Auto requerying " + ( mCursor ) ) + " due to update" ) ) ; mDataValid = mCursor.requery ( ) ; } }
Source:
public static void computeMix ( android.renderscript.cts.TestMix.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.Target.Floaty start = t.new32 ( args.inStart ) ; android.renderscript.cts.Target.Floaty stop = t.new32 ( args.inStop ) ; android.renderscript.cts.Target.Floaty diff = t.subtract ( stop , start ) ; args.out = t.add ( start , t.multiply ( diff , t.new32 ( args.inAmount ) ) ) ; }

Target:
public static void computeMix ( android.renderscript.cts.TestMix.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.Target.Floaty start = t.new32 ( args.inStart ) ; android.renderscript.cts.Target.Floaty stop = t.new32 ( args.inStop ) ; android.renderscript.cts.Target.Floaty diff = t.subtract ( stop , start ) ; args.out = t.add ( start , t.multiply ( diff , t.new32 ( args.inFraction ) ) ) ; }
Source:
public synchronized void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , new java.lang.Integer ( tc ) ) ; }

Target:
public synchronized void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; try { getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , tc ) ; } catch ( java.net.SocketException se ) { if ( ! ( isConnected ( ) ) ) throw se ; } }
Source:
public void test_addHandshakeCompletedListener ( ) throws java.io.IOException { javax.net.ssl.SSLSocket ssl = getSSLSocket ( ) ; javax.net.ssl.HandshakeCompletedListener ls = new tests.api.javax.net.ssl.SSLSocketTest.HandshakeCL ( ) ; try { ssl.addHandshakeCompletedListener ( null ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } ssl.addHandshakeCompletedListener ( ls ) ; ssl.close ( ) ; }

Target:
public void test_addHandshakeCompletedListener ( ) throws java.io.IOException { javax.net.ssl.SSLSocket ssl = getSSLSocket ( ) ; javax.net.ssl.HandshakeCompletedListener ls = new org.apache.harmony.tests.javax.net.ssl.SSLSocketTest.HandshakeCL ( ) ; try { ssl.addHandshakeCompletedListener ( null ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } ssl.addHandshakeCompletedListener ( ls ) ; ssl.close ( ) ; }
Source:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( outputOffset < 0 ) { throw new java.lang.IllegalArgumentException ( ( "outputOffset < 0. outputOffset=" + outputOffset ) ) ; } return spiImpl.engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }

Target:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( outputOffset < 0 ) { throw new java.lang.IllegalArgumentException ( ( "outputOffset < 0. outputOffset=" + outputOffset ) ) ; } return getSpi ( ) . engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need RSA public key" ) ; } try { int result = org.conscrypt.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getPkeyContext ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { return false ; } finally { resetContext ( ) ; } }

Target:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need RSA public key" ) ; } try { int result = org.conscrypt.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getNativeRef ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { return false ; } finally { resetContext ( ) ; } }
Source:
public void testRSUnitTest ( ) throws java.lang.Exception { java.lang.String thisDeviceName = android.os.Build.DEVICE ; int thisApiVersion = android.os.Build.VERSION.SDK_INT ; android.util.Log.i ( com.android.rs.testbackward.RSBackwardCompatibilityTests.TAG , java.lang.String.format ( ( "RenderScript backward compatibility testing (%s) " + "on device %s, API version %d" ) , mTest.toString ( ) , thisDeviceName , thisApiVersion ) ) ; mTest.runTest ( ) ; org.junit.Assert.assertTrue ( mTest.getSuccess ( ) ) ; }

Target:
public void testRSUnitTest ( ) throws java.lang.Exception { mTest.logStart ( com.android.rs.testbackward.RSBackwardCompatibilityTests.TAG , "RenderScript Backward Compatibility Testing" ) ; mTest.runTest ( ) ; mTest.logEnd ( com.android.rs.testbackward.RSBackwardCompatibilityTests.TAG ) ; org.junit.Assert.assertTrue ( mTest.getSuccess ( ) ) ; }
Source:
public void outcomeFinished ( vogar.Result result ) { com.google.caliper.internal.gson.JsonObject jsonObject = new com.google.caliper.internal.gson.JsonObject ( ) ; jsonObject.addProperty ( "result" , result.name ( ) ) ; writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }

Target:
public void outcomeFinished ( vogar.Result result ) { com.google.gson.JsonObject jsonObject = new com.google.gson.JsonObject ( ) ; jsonObject.addProperty ( "result" , result.name ( ) ) ; writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }
Source:
private int getNextDebuggerPort ( ) { synchronized ( mDebuggerPorts ) { if ( ! ( mDebuggerPorts.isEmpty ( ) ) ) { int port = mDebuggerPorts.get ( 0 ) ; mDebuggerPorts.remove ( 0 ) ; if ( mDebuggerPorts.isEmpty ( ) ) { mDebuggerPorts.add ( ( port + 1 ) ) ; } return port ; } } return - 1 ; }

Target:
void addPortToAvailableList ( int port ) { if ( port > 0 ) { synchronized ( mDebuggerPorts ) { if ( ( mDebuggerPorts.indexOf ( port ) ) == ( - 1 ) ) { int count = mDebuggerPorts.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { if ( port < ( mDebuggerPorts.get ( i ) ) ) { mDebuggerPorts.add ( i , port ) ; break ; } } } } } }
Source:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; try { getSectionVFS ( fileType ) . getRootInputOutputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; try { getSectionVFS ( fileType ) . getRootDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public boolean enableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "ENABLE_NETWORK " + netId ) ) ; }

Target:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }
Source:
public void run ( ) { java.util.List < com.android.ddmuilib.logcat.LogCatMessage > selectedMessages = getSelectedLogCatMessages ( ) ; if ( ( selectedMessages.size ( ) ) == 0 ) { addNewFilter ( ) ; } else { com.android.ddmuilib.logcat.LogCatMessage m = selectedMessages.get ( 0 ) ; addNewFilter ( m.getTag ( ) , m.getMessage ( ) , m.getPid ( ) , m.getAppName ( ) , m.getLogLevel ( ) ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ! ( mAutoScrollLock ) ) { return ; } boolean isAtBottom = ( ( vbar.getThumb ( ) ) + ( vbar.getSelection ( ) ) ) == ( vbar.getMaximum ( ) ) ; setScrollToLatestLog ( isAtBottom ) ; mScrollLockCheckBox.setSelection ( isAtBottom ) ; }
Source:
public void testIsSupported_IllegalName ( ) { try { java.nio.charset.Charset.isSupported ( " ///#$$" ) ; fail ( "Should throw IllegalCharsetNameException!" ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }

Target:
public void test_guaranteedCharsetsAvailable ( ) throws java.lang.Exception { assertNotNull ( java.nio.charset.Charset.forName ( "ISO-8859-1" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "US-ASCII" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16BE" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-16LE" ) ) ; assertNotNull ( java.nio.charset.Charset.forName ( "UTF-8" ) ) ; }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charsetValue = getStaticFieldValue ( debuggeeClassId , "CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( charsetValue ) ; }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charArrayValue = getStaticFieldValue ( debuggeeClassId , "CHAR_ARRAY" ) ; constructorArguments.add ( charArrayValue ) ; }
Source:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { return Libcore.os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }

Target:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { android.util.MutableLong internalInOffset = new android.util.MutableLong ( inOffset.value ) ; try { return Libcore.os.sendfile ( outFd , inFd , internalInOffset , byteCount ) ; } finally { inOffset.value = internalInOffset.value ; } }
Source:
private static void checkMergingFolder ( java.io.File file ) throws com.android.builder.packaging.PackagerException { if ( file.isFile ( ) ) { throw new com.android.builder.packaging.PackagerException ( "%s is a file!" , file ) ; } if ( file.exists ( ) ) { if ( ! ( file.canWrite ( ) ) ) { throw new com.android.builder.packaging.PackagerException ( "Cannot write %s" , file ) ; } com.android.utils.FileUtils.deleteFolder ( file ) ; } if ( ! ( file.mkdirs ( ) ) ) { throw new com.android.builder.packaging.PackagerException ( "Failed to create %s" , file ) ; } }

Target:
private static void checkMergingFolder ( java.io.File file ) throws com.android.builder.packaging.PackagerException { if ( file.isFile ( ) ) { throw new com.android.builder.packaging.PackagerException ( "%s is a file!" , file ) ; } if ( file.exists ( ) ) { if ( ! ( file.canWrite ( ) ) ) { throw new com.android.builder.packaging.PackagerException ( "Cannot write %s" , file ) ; } } try { com.android.utils.FileUtils.emptyFolder ( file ) ; } catch ( java.io.IOException e ) { throw new com.android.builder.packaging.PackagerException ( e ) ; } }
Source:
public static java.lang.String getCurveName ( java.security.spec.ECParameterSpec spec ) { if ( ( org.conscrypt.Platform.m_getCurveName ) == null ) { return null ; } try { return ( ( java.lang.String ) ( org.conscrypt.Platform.m_getCurveName.invoke ( spec ) ) ) ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
static java.lang.String getCurveName ( java.security.spec.ECParameterSpec spec ) { if ( ( org.conscrypt.Platform.GET_CURVE_NAME_METHOD ) != null ) { try { return ( ( java.lang.String ) ( org.conscrypt.Platform.GET_CURVE_NAME_METHOD.invoke ( spec ) ) ) ; } catch ( java.lang.Exception ignored ) { } } return null ; }
Source:
public void saveWebArchive ( final java.lang.String basename , final boolean autoname , final android.webkit.ValueCallback < java.lang.String > callback ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { saveWebArchive ( basename , autoname , callback ) ; } } ) ; return ; } mAwContents.saveWebArchive ( basename , autoname , callback ) ; }

Target:
public void stopLoading ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { stopLoading ( ) ; } } ) ; return ; } mAwContents.stopLoading ( ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { com.android.ide.common.api.INode linearLayout = node.appendChild ( com.android.ide.common.layout.FQCN_LINEAR_LAYOUT ) ; linearLayout.setAttribute ( com.android.ide.common.layout.ANDROID_URI , LinearLayoutRule.ATTR_ORIENTATION , LinearLayoutRule.VALUE_HORIZONTAL ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { com.android.ide.common.api.INode linearLayout = node.appendChild ( com.android.ide.common.layout.LayoutConstants.FQCN_LINEAR_LAYOUT ) ; linearLayout.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION , com.android.ide.common.layout.LayoutConstants.VALUE_HORIZONTAL ) ; } }
Source:
private void markConnectionFailed ( android.bluetooth.BluetoothSocket s ) { try { s.close ( ) ; } catch ( java.io.IOException e ) { if ( com.android.bluetooth.opp.BluetoothOppTransfer.V ) android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , "Error when close socket" ) ; } mSessionHandler.obtainMessage ( com.android.bluetooth.opp.BluetoothOppTransfer.RFCOMM_ERROR ) . sendToTarget ( ) ; return ; }

Target:
private void markConnectionFailed ( android.bluetooth.BluetoothSocket s ) { if ( com.android.bluetooth.opp.BluetoothOppTransfer.V ) android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , ( "markConnectionFailed " + s ) ) ; try { if ( s != null ) { s.close ( ) ; } } catch ( java.io.IOException e ) { if ( com.android.bluetooth.opp.BluetoothOppTransfer.V ) android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppTransfer.TAG , "Error when close socket" ) ; } mSessionHandler.obtainMessage ( com.android.bluetooth.opp.BluetoothOppTransfer.TRANSPORT_ERROR ) . sendToTarget ( ) ; return ; }
Source:
public void endSession ( int slotId , int featureType , int sessionId ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.endSession ( sessionId ) ; } } }

Target:
public void endSession ( int slotId , int featureType , int sessionId ) throws android.os.RemoteException { synchronized ( mFeatures ) { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "endSession" ) ; android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.endSession ( sessionId ) ; } } }
Source:
private void parseThread ( java.lang.String line ) { int index = line.indexOf ( '\t' ) ; if ( index < 0 ) { return ; } try { int id = java.lang.Integer.decode ( line.substring ( 0 , index ) ) ; java.lang.String name = line.substring ( index ) . trim ( ) ; mTraceDataBuilder.addThread ( id , name ) ; } catch ( java.lang.NumberFormatException e ) { return ; } }

Target:
private void parseThread ( java.lang.String line ) { int index = line.indexOf ( '\t' ) ; if ( index < 0 ) { return ; } try { int id = java.lang.Integer.decode ( line.substring ( 0 , index ) ) ; java.lang.String name = line.substring ( index ) . trim ( ) ; mTraceDataBuilder.addThread ( id , name ) ; } catch ( java.lang.NumberFormatException ignored ) { } }
Source:
public void requestNothing ( byte [ ] checkTokenBytes , boolean success ) { mPermissionHelper.enforceCallerHasPermission ( com.android.server.timezone.RulesManagerService.REQUIRED_UPDATER_PERMISSION ) ; com.android.server.timezone.CheckToken checkToken = null ; if ( checkTokenBytes != null ) { checkToken = com.android.server.timezone.RulesManagerService.createCheckTokenOrThrow ( checkTokenBytes ) ; } mPackageTracker.recordCheckResult ( checkToken , success ) ; }

Target:
public void requestNothing ( byte [ ] checkTokenBytes , boolean success ) { mPermissionHelper.enforceCallerHasPermission ( com.android.server.timezone.RulesManagerService.REQUIRED_UPDATER_PERMISSION ) ; com.android.server.timezone.CheckToken checkToken = null ; if ( checkTokenBytes != null ) { checkToken = com.android.server.timezone.RulesManagerService.createCheckTokenOrThrow ( checkTokenBytes ) ; } com.android.server.EventLogTags.writeTimezoneRequestNothing ( com.android.server.timezone.RulesManagerService.toStringOrNull ( checkToken ) ) ; mPackageTracker.recordCheckResult ( checkToken , success ) ; com.android.server.EventLogTags.writeTimezoneNothingComplete ( com.android.server.timezone.RulesManagerService.toStringOrNull ( checkToken ) ) ; }
Source:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { if ( com.android.bluetooth.avrcp.AddressedMediaPlayer.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; mMediaInterface.trackChangedRsp ( type , track ) ; mLastTrackIdSent = qid ; updateNowPlayingList ( mediaController ) ; }

Target:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; if ( type == ( AvrcpConstants.NOTIFICATION_TYPE_CHANGED ) ) sendNowPlayingListChanged ( ) ; mMediaInterface.trackChangedRsp ( type , track ) ; mLastTrackIdSent = qid ; }
Source:
public org.gradle.internal.classpath.ClassPath getToolingImplementationClasspath ( org.gradle.logging.ProgressLoggerFactory progressLoggerFactory , java.io.File userHomeDir ) { org.gradle.logging.ProgressLogger progressLogger = progressLoggerFactory.newOperation ( org.gradle.tooling.internal.consumer.DistributionFactory.class ) ; progressLogger.setDescription ( "Validate distribution" ) ; progressLogger.started ( ) ; try { return getToolingImpl ( ) ; } finally { progressLogger.completed ( ) ; } }

Target:
public org.gradle.internal.classpath.ClassPath getToolingImplementationClasspath ( org.gradle.logging.ProgressLoggerFactory progressLoggerFactory , java.io.File userHomeDir , org.gradle.initialization.BuildCancellationToken cancellationToken ) { org.gradle.logging.ProgressLogger progressLogger = progressLoggerFactory.newOperation ( org.gradle.tooling.internal.consumer.DistributionFactory.class ) ; progressLogger.setDescription ( "Validate distribution" ) ; progressLogger.started ( ) ; try { return getToolingImpl ( ) ; } finally { progressLogger.completed ( ) ; } }
Source:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { long contactId = cursor.getLong ( Projections.ID ) ; java.lang.String lookupKey = cursor.getString ( Projections.LOOKUP_KEY ) ; return android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) . buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }

Target:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { java.lang.String lookupKey = cursor.getString ( Projections.LOOKUP_KEY ) ; android.net.Uri baseUri ; if ( com.android.dialer.common.cp2.DirectoryCompat.isOnlyEnterpriseDirectoryId ( cursor.getDirectoryId ( ) ) ) { baseUri = android.net.Uri.withAppendedPath ( Contacts.CONTENT_LOOKUP_URI , lookupKey ) ; } else { long contactId = cursor.getLong ( Projections.ID ) ; baseUri = android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) ; } return baseUri.buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }
Source:
private void resetNetworkModeToDefault ( ) { mButtonPreferredNetworkMode.setValue ( java.lang.Integer.toString ( com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ) ; android.provider.Settings.Secure.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Secure.PREFERRED_NETWORK_MODE , com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ; mPhone.setPreferredNetworkType ( com.android.phone.MobileNetworkSettings.preferredNetworkMode , this . obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_SET_PREFERRED_NETWORK_TYPE ) ) ; }

Target:
private void handleSetPreferredNetworkTypeResponse ( android.os.Message msg ) { android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; if ( ( ar.exception ) == null ) { int networkMode = java.lang.Integer.valueOf ( mButtonPreferredNetworkMode.getValue ( ) ) . intValue ( ) ; android.provider.Settings.Global.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Global.PREFERRED_NETWORK_MODE , networkMode ) ; } else { mPhone.getPreferredNetworkType ( obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_GET_PREFERRED_NETWORK_TYPE ) ) ; } }
Source:
public void stopCallWaiting ( ) { com.android.server.telecom.Log.v ( this , "stop call waiting." ) ; if ( ( mCallWaitingPlayer ) != null ) { if ( ( mCallWaitingCall ) != null ) { com.android.server.telecom.Log.event ( mCallWaitingCall , Log.Events.STOP_CALL_WAITING_TONE ) ; mCallWaitingCall = null ; } mCallWaitingPlayer.stopTone ( ) ; mCallWaitingPlayer = null ; } }

Target:
public void stopCallWaiting ( ) { android.telecom.Log.v ( this , "stop call waiting." ) ; if ( ( mCallWaitingPlayer ) != null ) { if ( ( mCallWaitingCall ) != null ) { android.telecom.Log.addEvent ( mCallWaitingCall , LogUtils.Events.STOP_CALL_WAITING_TONE ) ; mCallWaitingCall = null ; } mCallWaitingPlayer.stopTone ( ) ; mCallWaitingPlayer = null ; } }
Source:
private void createTypes ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.ir.impl.ReferenceMapper refMap , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration ) { com.android.jack.ir.impl.EcjSourceTypeLoader.createType ( refMap , enclosingPackage , typeDeclaration.binding , typeDeclaration , new com.android.sched.util.location.FileLocation ( new java.io.File ( new java.lang.String ( typeDeclaration.compilationResult.fileName ) ) ) ) ; if ( ( typeDeclaration.memberTypes ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration memberType : typeDeclaration.memberTypes ) { createTypes ( enclosingPackage , refMap , memberType ) ; } } }

Target:
private void createTypes ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.ir.impl.ReferenceMapper refMap , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration ) { if ( ( hasErrors ) || ( com.android.jack.ir.impl.JackIrBuilder.hasError ( typeDeclaration ) ) ) { hasErrors = true ; return ; } com.android.jack.ir.impl.EcjSourceTypeLoader.createType ( refMap , enclosingPackage , typeDeclaration.binding , typeDeclaration , new com.android.sched.util.location.FileLocation ( new java.io.File ( new java.lang.String ( typeDeclaration.compilationResult.fileName ) ) ) ) ; if ( ( typeDeclaration.memberTypes ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration memberType : typeDeclaration.memberTypes ) { createTypes ( enclosingPackage , refMap , memberType ) ; } } }
Source:
void foo3 ( int [ ] array , int end , boolean expectInterpreter ) { for ( int i = 3 ; i <= end ; i ++ ) { if ( expectInterpreter ) { Main.assertIsInterpreted ( ) ; } else { Main.assertIsManaged ( ) ; } array [ i ] = 1 ; sum += array [ i ] ; } }

Target:
void foo3 ( int [ ] array , int end , boolean expectInterpreter ) { if ( end < 0 ) throw new java.lang.Error ( "" ) ; for ( int i = 3 ; i <= end ; i ++ ) { if ( expectInterpreter ) { Main.assertIsInterpreted ( ) ; } else { Main.assertIsManaged ( ) ; } array [ i ] = 1 ; sum += array [ i ] ; } }
Source:
public void beginServiceDeclaration ( int serverIf , int srvcType , int srvcInstanceId , int minHandles , android.os.ParcelUuid srvcId , boolean advertisePreferred ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.beginServiceDeclaration ( serverIf , srvcType , srvcInstanceId , minHandles , srvcId.getUuid ( ) , advertisePreferred ) ; }

Target:
public void sendNotification ( int serverIf , java.lang.String address , int handle , boolean confirm , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.sendNotification ( serverIf , address , handle , confirm , value ) ; }
Source:
private void verifyNoInsertionInUser ( int userId ) { try { android.net.Uri uri = android.content.ContentProvider.maybeAddUserId ( CallLog.Calls.CONTENT_URI , userId ) ; org.mockito.Mockito.verify ( getContentProviderForUser ( userId ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.CallLogManagerTest.TEST_TIMEOUT_MILLIS ) . never ( ) ) . insert ( org.mockito.Matchers.any ( java.lang.String.class ) , org.mockito.Matchers.eq ( uri ) , org.mockito.Matchers.any ( android.content.ContentValues.class ) ) ; } catch ( com.android.server.telecom.tests.android e ) { fail ( "Remote exception occurred during test execution" ) ; } }

Target:
private void verifyNoInsertionInUser ( int userId ) { try { android.net.Uri uri = android.content.ContentProvider.maybeAddUserId ( CallLog.Calls.CONTENT_URI , userId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.CallLogManagerTest.TEST_TIMEOUT_MILLIS ) ; org.mockito.Mockito.verify ( getContentProviderForUser ( userId ) , org.mockito.Mockito.never ( ) ) . insert ( org.mockito.Matchers.any ( java.lang.String.class ) , org.mockito.Matchers.eq ( uri ) , org.mockito.Matchers.any ( android.content.ContentValues.class ) ) ; } catch ( com.android.server.telecom.tests.android e ) { fail ( "Remote exception occurred during test execution" ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } }
Source:
private static void assertDecodeBad ( java.lang.String in ) throws java.lang.Exception { try { byte [ ] result = libcore.io.Base64.decode ( in.getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ) ; fail ( ( "should have failed to decode. Actually: " + ( result == null ? result : new java.lang.String ( result , java.nio.charset.StandardCharsets.US_ASCII ) ) ) ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { } }

Target:
private static void assertDecodeBad ( java.lang.String in ) throws java.lang.Exception { try { byte [ ] result = libcore.io.Base64.decode ( libcore.io.Base64Test.asciiToBytes ( in ) ) ; fail ( ( "should have failed to decode. Actually received: " + ( result == null ? result : java.util.Arrays.toString ( libcore.io.Base64Test.bytesToInts ( result ) ) ) ) ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { } }
Source:
com.android.manifmerger.MergingReport.Builder addInfo ( java.lang.String info ) { mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( com.android.manifmerger.MergingReport.Record.Severity.INFO , info ) ) ; return this ; }

Target:
com.android.manifmerger.MergingReport.Builder addMessage ( @ com.android.annotations.NonNull com.android.manifmerger.XmlLoader.SourceLocation errorLocation , int line , int column , @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Record.Severity severity , @ com.android.annotations.NonNull java.lang.String message ) { switch ( severity ) { case ERROR : mHasErrors = true ; break ; case WARNING : mHasWarnings = true ; break ; } mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( errorLocation , line , column , severity , message ) ) ; return this ; }