auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected static java.lang.String cstComment ( com.android.jack.dx.dex.code.DalvInsn insn ) { com.android.jack.dx.dex.code.CstInsn ci = ( ( com.android.jack.dx.dex.code.CstInsn ) ( insn ) ) ; if ( ! ( ci.hasIndex ( ) ) ) { return "" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( 20 ) ; int index = ci.getIndex ( ) ; sb.append ( ci.getConstant ( ) . typeName ( ) ) ; sb.append ( '@' ) ; if ( index < 65536 ) { sb.append ( com.android.jack.dx.util.Hex.u2 ( index ) ) ; } else { sb.append ( com.android.jack.dx.util.Hex.u4 ( index ) ) ; } return sb.toString ( ) ; }

Target:
private static java.lang.String insnCommentCstWithIndex ( @ javax.annotation.Nonnull com.android.jack.dx.rop.cst.Constant cst , @ javax.annotation.Nonnegative int firstIndex ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( cst.typeName ( ) ) ; sb.append ( '@' ) ; if ( firstIndex < 65536 ) { sb.append ( com.android.jack.dx.util.Hex.u2 ( firstIndex ) ) ; } else { sb.append ( com.android.jack.dx.util.Hex.u4 ( firstIndex ) ) ; } return sb.toString ( ) ; }
Source:
public void testInvalidPackage ( ) throws java.lang.Exception { boolean output = false ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScoreManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } }

Target:
public void testCannotAccessScanResults_NoCoarseLocationPermission ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mLocationModeSetting = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScoreManager , mWifiInjector ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; }
Source:
private void applyUpdate ( ) { if ( ( mLayer ) == null ) { return ; } synchronized ( mLock ) { if ( mUpdateLayer ) { mUpdateLayer = false ; } else { return ; } } mLayer.update ( getWidth ( ) , getHeight ( ) , mOpaque ) ; if ( ( mListener ) != null ) { mListener.onSurfaceTextureUpdated ( mSurface ) ; } }

Target:
private void applyUpdate ( ) { if ( ( mLayer ) == null ) { return ; } synchronized ( mLock ) { if ( mUpdateLayer ) { mUpdateLayer = false ; } else { return ; } } mLayer.prepare ( getWidth ( ) , getHeight ( ) , mOpaque ) ; mLayer.updateSurfaceTexture ( ) ; if ( ( mListener ) != null ) { mListener.onSurfaceTextureUpdated ( mSurface ) ; } }
Source:
public void testCanInstallAndUninstallACaCert ( ) throws java.security.cert.CertificateException { assertFalse ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ; assertFalse ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; }

Target:
public void testUninstallationIsSelective ( ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ; assertInstalled ( FAKE_RSA_1.caCertificate ) ; assertUninstalled ( FAKE_DSA_1.caCertificate ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ; }
Source:
public void testCall911 ( ) { android.content.Intent intent = new android.content.Intent ( "android.intent.action.CALL_PRIVILEGED" , android.net.Uri.parse ( "tel:911" ) ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; try { mContext.startActivity ( intent ) ; fail ( "startActivity(Intent.ACTION_CALL_PRIVILEGED) did not throw SecurityException as expected" ) ; } catch ( java.lang.SecurityException e ) { } }

Target:
public void testCall911 ( ) { android.content.pm.PackageManager packageManager = getContext ( ) . getPackageManager ( ) ; if ( packageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { android.content.Intent intent = new android.content.Intent ( "android.intent.action.CALL_PRIVILEGED" , android.net.Uri.parse ( "tel:911" ) ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; try { mContext.startActivity ( intent ) ; fail ( ( "startActivity(Intent.ACTION_CALL_PRIVILEGED) did not throw " + "SecurityException as expected" ) ) ; } catch ( java.lang.SecurityException e ) { } } }
Source:
public void run ( ) { java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > reachableObjs = new java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > ( ) ; for ( int i = 0 ; i < ( org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.reachableObjNum ) ; i ++ ) { reachableObjs.add ( new org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass ( true ) ) ; } for ( int i = 0 ; i < ( org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.unreachableObjNum ) ; i ++ ) { new org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass ( false ) ; } synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; logWriter.println ( "--> Debuggee: InstancesDebuggee..." ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; }

Target:
public void run ( ) { java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > reachableObjs = new java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > ( ) ; org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.allocateReachableObjects ( reachableObjs ) ; org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.allocateUnreachableObjects ( ) ; synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; logWriter.println ( "--> Debuggee: InstancesDebuggee..." ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; }
Source:
private static void validateAttributes ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.ActionRecorder recorder , com.android.utils.ILogger logger ) { java.util.Collection < java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > > attributeOperations = xmlElement.getAttributeOperations ( ) ; for ( java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation : attributeOperations ) { switch ( attributeOperation.getValue ( ) ) { case REMOVE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { logger.warning ( ( "%1$s@%2$s was tagged at %3$s:%4$d to remove other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ; } break ; case REPLACE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { logger.warning ( ( "%1$s@%2$s was tagged at %3$s:%4$d to replace other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ; } break ; } } }

Target:
private static void validateAttributes ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.ActionRecorder recorder , com.android.manifmerger.MergingReport.Builder mergingReport ) { java.util.Collection < java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > > attributeOperations = xmlElement.getAttributeOperations ( ) ; for ( java.util.Map.Entry < com.android.manifmerger.XmlNode.NodeName , com.android.manifmerger.AttributeOperationType > attributeOperation : attributeOperations ) { switch ( attributeOperation.getValue ( ) ) { case REMOVE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to remove other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; case REPLACE : if ( ! ( com.android.manifmerger.PostValidator.isAttributeOperationPresent ( xmlElement , attributeOperation , recorder , ActionType.REJECTED ) ) ) { mergingReport.addWarning ( java.lang.String.format ( ( "%1$s@%2$s was tagged at %3$s:%4$d to replace other" + " declarations but no other declaration present" ) , xmlElement.getId ( ) , attributeOperation.getKey ( ) , xmlElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) , xmlElement.getPosition ( ) . getLine ( ) ) ) ; } break ; } } }
Source:
public void testInstallWithMissingBundleVersionFile ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithoutFormatVersionFile ( "2030a" ) ; assertFalse ( install ( tzData ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstallWithMissingBundleVersionFile ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithoutFormatVersionFile ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertFalse ( installer.install ( tzData.getBundleBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void testOpenLink_TargetViewNotSpanned ( ) { try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.send_title ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.openLinkWithText ( "altavista.com" ) ) ; fail ( "Expected previous call to fail" ) ; } catch ( android.support.test.espresso.PerformException expected ) { android.support.test.espresso.matcher.ViewMatchers.assertThat ( expected.getCause ( ) . getMessage ( ) , org.hamcrest.Matchers.containsString ( "has-links=false" ) ) ; } }

Target:
public void openLink_TargetViewNotSpanned ( ) { expectedException.expect ( android.support.test.espresso.PerformException.class ) ; expectedException.expectCause ( new org.hamcrest.CustomTypeSafeMatcher < java.lang.Throwable > ( "message contains has-links=false" ) { @ java.lang.Override protected boolean matchesSafely ( java.lang.Throwable throwable ) { return throwable.getMessage ( ) . contains ( "has-links=false" ) ; } } ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.send_title ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.openLinkWithText ( "altavista.com" ) ) ; }
Source:
private void onProgramsUpdated ( ) { ( ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ( getRowsAdapter ( ) ) ) . setPrograms ( mPrograms ) ; if ( ( ( mPrograms ) == null ) || ( mPrograms.isEmpty ( ) ) ) { showEmptyMessage ( R.string.dvr_series_schedules_empty_state ) ; } else { hideEmptyMessage ( ) ; } }

Target:
private void onProgramsUpdated ( ) { ( ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ( getRowsAdapter ( ) ) ) . setPrograms ( mPrograms ) ; updateEmptyMessage ( ) ; }
Source:
private void handleCopyItemSelected ( ) { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , getListAdapter ( ) ) ; android.text.ClipboardManager clipboardManager = ( ( android.text.ClipboardManager ) ( getSystemService ( com.android.cts.verifier.CLIPBOARD_SERVICE ) ) ) ; clipboardManager.setText ( report.getBody ( ) ) ; android.widget.Toast.makeText ( this , R.string.test_results_copied , Toast.LENGTH_SHORT ) . show ( ) ; }

Target:
private void handleCopyItemSelected ( ) { com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; android.text.ClipboardManager clipboardManager = ( ( android.text.ClipboardManager ) ( getSystemService ( com.android.cts.verifier.CLIPBOARD_SERVICE ) ) ) ; clipboardManager.setText ( report.getBody ( ) ) ; android.widget.Toast.makeText ( this , R.string.test_results_copied , Toast.LENGTH_SHORT ) . show ( ) ; }
Source:
public boolean parse ( @ com.android.annotations.NonNull java.lang.String line , @ com.android.annotations.NonNull com.android.ide.common.blame.parser.util.OutputLineReader reader , @ com.android.annotations.NonNull java.util.List < com.android.ide.common.blame.output.GradleMessage > messages , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.ide.common.blame.parser.ParsingFailedException { java.util.regex.Matcher m = com.android.ide.common.blame.parser.aapt.Error7Parser.MSG_PATTERN.matcher ( line ) ; if ( ! ( m.matches ( ) ) ) { return false ; } java.lang.String sourcePath = m.group ( 2 ) ; java.lang.String text = m.group ( 1 ) ; com.android.ide.common.blame.output.GradleMessage msg = createMessage ( GradleMessage.Kind.ERROR , text , sourcePath , null , "" , logger ) ; messages.add ( msg ) ; return true ; }

Target:
public boolean parse ( @ com.android.annotations.NonNull java.lang.String line , @ com.android.annotations.NonNull com.android.ide.common.blame.parser.util.OutputLineReader reader , @ com.android.annotations.NonNull java.util.List < com.android.ide.common.blame.Message > messages , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.ide.common.blame.parser.ParsingFailedException { java.util.regex.Matcher m = com.android.ide.common.blame.parser.aapt.Error7Parser.MSG_PATTERN.matcher ( line ) ; if ( ! ( m.matches ( ) ) ) { return false ; } java.lang.String sourcePath = m.group ( 2 ) ; java.lang.String text = m.group ( 1 ) ; com.android.ide.common.blame.Message msg = createMessage ( Message.Kind.ERROR , text , sourcePath , null , "" , logger ) ; messages.add ( msg ) ; return true ; }
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getDevConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_BUCKET_DURATION , android.text.format.DateUtils.HOUR_IN_MILLIS ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }
Source:
public void setDataOnRoamingEnabled ( boolean enabled ) { if ( ( getDataOnRoamingEnabled ( ) ) != enabled ) { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; Settings.Secure.putInt ( resolver , Settings.Secure.DATA_ROAMING , ( enabled ? 1 : 0 ) ) ; } }

Target:
public void setDataOnRoamingEnabled ( boolean enabled ) { if ( ( getDataOnRoamingEnabled ( ) ) != enabled ) { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; Settings.Global.putInt ( resolver , Settings.Global.DATA_ROAMING , ( enabled ? 1 : 0 ) ) ; } }
Source:
private static android.os.Message verifyHandleMessageAndGetMessage ( org.mockito.InOrder order , android.os.Handler handler , final int what ) { org.mockito.internal.matchers.CapturingMatcher < android.os.Message > messageMatcher = new org.mockito.internal.matchers.CapturingMatcher < android.os.Message > ( ) { public boolean matches ( java.lang.Object argument ) { android.os.Message message = ( ( android.os.Message ) ( argument ) ) ; return ( message.what ) == what ; } } ; order.verify ( handler ) . handleMessage ( argThat ( messageMatcher ) ) ; return messageMatcher.getLastValue ( ) ; }

Target:
private static android.os.Message verifyHandleMessageAndGetMessage ( org.mockito.InOrder order , android.os.Handler handler , final int what ) { org.mockito.compat.CapturingMatcher < android.os.Message > messageMatcher = new org.mockito.compat.CapturingMatcher < android.os.Message > ( ) { public boolean matchesObject ( java.lang.Object argument ) { android.os.Message message = ( ( android.os.Message ) ( argument ) ) ; return ( message.what ) == what ; } } ; order.verify ( handler ) . handleMessage ( argThat ( messageMatcher ) ) ; return messageMatcher.getLastValue ( ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.INode [ ] getChildren ( ) { if ( ( mNode ) != null ) { java.util.ArrayList < com.android.ide.eclipse.adt.editors.layout.gscripts.INode > nodes = new java.util.ArrayList < com.android.ide.eclipse.adt.editors.layout.gscripts.INode > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiChild : mNode.getUiChildren ( ) ) { if ( uiChild instanceof com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) { nodes.add ( mFactory.create ( ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( uiChild ) ) ) ) ; } } return nodes.toArray ( new com.android.ide.eclipse.adt.editors.layout.gscripts.INode [ nodes.size ( ) ] ) ; } return new com.android.ide.eclipse.adt.editors.layout.gscripts.INode [ 0 ] ; }

Target:
public com.android.ide.common.api.INode [ ] getChildren ( ) { if ( ( mNode ) != null ) { java.util.ArrayList < com.android.ide.common.api.INode > nodes = new java.util.ArrayList < com.android.ide.common.api.INode > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiChild : mNode.getUiChildren ( ) ) { if ( uiChild instanceof com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) { nodes.add ( mFactory.create ( ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( uiChild ) ) ) ) ; } } return nodes.toArray ( new com.android.ide.common.api.INode [ nodes.size ( ) ] ) ; } return new com.android.ide.common.api.INode [ 0 ] ; }
Source:
protected int computeVerticalScrollRange ( ) { if ( mDrawHistory ) { return mHistoryHeight ; } else { int height = contentToView ( mContentHeight ) ; if ( mFindIsUp ) { height += android.webkit.WebView.FIND_HEIGHT ; } return height ; } }

Target:
private void calcOurVisibleRect ( android.graphics.Rect r ) { android.graphics.Point p = new android.graphics.Point ( ) ; getGlobalVisibleRect ( r , p ) ; r.offset ( ( - ( p.x ) ) , ( - ( p.y ) ) ) ; if ( mFindIsUp ) { r.bottom -= mFindHeight ; } }
Source:
public java.security.spec.ECPoint getECPoint ( ) { final byte [ ] [ ] generatorCoords = org.conscrypt.NativeCrypto.EC_POINT_get_affine_coordinates ( group.getContext ( ) , pointCtx ) ; final java.math.BigInteger x = new java.math.BigInteger ( generatorCoords [ 0 ] ) ; final java.math.BigInteger y = new java.math.BigInteger ( generatorCoords [ 1 ] ) ; return new java.security.spec.ECPoint ( x , y ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof org.conscrypt.OpenSSLECPointContext ) ) { return false ; } final org.conscrypt.OpenSSLECPointContext other = ( ( org.conscrypt.OpenSSLECPointContext ) ( o ) ) ; if ( ! ( org.conscrypt.NativeCrypto.EC_GROUP_cmp ( group.getNativeRef ( ) , other.group.getNativeRef ( ) ) ) ) { return false ; } return org.conscrypt.NativeCrypto.EC_POINT_cmp ( group.getNativeRef ( ) , pointCtx , other.pointCtx ) ; }
Source:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyName ( ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; typePath.addSuffix ( fileType.getFileExtension ( ) ) ; return outputVDir.createOutputVFile ( typePath ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyPrefix ( ) , java.lang.String.valueOf ( true ) ) ; addFileType ( fileType ) ; typePath.addSuffix ( fileType.getFileExtension ( ) ) ; typePath.prependPath ( fileType.getVPathPrefix ( ) ) ; return outputVDir.createOutputVFile ( typePath ) ; }
Source:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile vFile ) throws com.android.sched.util.file.WrongPermissionException , java.io.IOException { java.io.InputStream is = getInputStream ( ) ; java.io.OutputStream os = vFile.getOutputStream ( ) ; try { new com.android.sched.util.stream.ByteStreamSucker ( is , os ) . suck ( ) ; } finally { os.close ( ) ; is.close ( ) ; } }

Target:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile vFile ) throws com.android.sched.util.file.WrongPermissionException , java.io.IOException { java.io.InputStream is = getInputStream ( ) ; java.io.OutputStream os = vFile.getOutputStream ( ) ; try { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , this , vFile ) . suck ( ) ; } finally { os.close ( ) ; is.close ( ) ; } }
Source:
private int getArrayLength ( int res ) { int offset = android.icu.impl.ICUResourceBundleReader.RES_GET_OFFSET ( res ) ; if ( offset == 0 ) { return 0 ; } int type = android.icu.impl.ICUResourceBundleReader.RES_GET_TYPE ( res ) ; if ( type == ( android.icu.util.UResourceBundle.ARRAY ) ) { offset = getResourceByteOffset ( offset ) ; return getInt ( offset ) ; } else if ( type == ( ICUResourceBundle.ARRAY16 ) ) { return b16BitUnits.charAt ( offset ) ; } else { return 0 ; } }

Target:
public android.icu.impl.UResource.Table getTable ( ) { android.icu.impl.ICUResourceBundleReader.Table table = reader.getTable ( res ) ; if ( table == null ) { throw new android.icu.util.UResourceTypeMismatchException ( "" ) ; } return table ; }
Source:
public void testFrequencyLimits ( ) throws java.lang.Exception { try { runRecurrenceIteratorTest ( ( "RRULE:FREQ=SECONDLY;BYSECOND=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14," + ( ( "15,16,17,18,19,20,21,22,23,24,25,26,27,28,29," + "30,31,32,33,34,35,36,37,38,39,40,41,42,43,44," ) + "45,46,47,48,49,50,51,52,53,54,55,56,57,58,59" ) ) , "20000101" , 1 , "" ) ; fail ( "Don't do that" ) ; } catch ( com.android.calendarcommon2.DateException ex ) { } }

Target:
public void testFrequencyLimits ( ) throws java.lang.Exception { final long tenSeconds = 10000 ; long start = java.lang.System.currentTimeMillis ( ) ; runRecurrenceIteratorTest ( ( "RRULE:FREQ=SECONDLY;BYSECOND=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14," + ( ( "15,16,17,18,19,20,21,22,23,24,25,26,27,28,29," + "30,31,32,33,34,35,36,37,38,39,40,41,42,43,44," ) + "45,46,47,48,49,50,51,52,53,54,55,56,57,58,59" ) ) , "20000101" , 1 , "20000101" ) ; if ( ( ( java.lang.System.currentTimeMillis ( ) ) - start ) > tenSeconds ) { fail ( "Don't do that" ) ; } }
Source:
private java.util.concurrent.Future < java.lang.String > expectEnqueueNotification ( ) throws java.lang.Exception { final com.android.server.NetworkPolicyManagerServiceTest.FutureCapture < java.lang.String > tag = new com.android.server.NetworkPolicyManagerServiceTest.FutureCapture < java.lang.String > ( ) ; mNotifManager.enqueueNotificationWithTag ( org.easymock.EasyMock.isA ( java.lang.String.class ) , org.easymock.EasyMock.isA ( java.lang.String.class ) , org.easymock.EasyMock.capture ( tag.capture ) , org.easymock.EasyMock.anyInt ( ) , org.easymock.EasyMock.isA ( android.app.Notification.class ) , org.easymock.EasyMock.isA ( int [ ] . class ) , android.os.UserHandle.myUserId ( ) ) ; return tag ; }

Target:
private java.util.concurrent.Future < java.lang.String > expectEnqueueNotification ( ) throws java.lang.Exception { final com.android.server.NetworkPolicyManagerServiceTest.FutureAnswer < java.lang.String > futureAnswer = new com.android.server.NetworkPolicyManagerServiceTest.FutureAnswer < java.lang.String > ( 2 ) ; org.mockito.Mockito.doAnswer ( futureAnswer ) . when ( mNotifManager ) . enqueueNotificationWithTag ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.isA ( android.app.Notification.class ) , org.mockito.Matchers.isA ( int [ ] . class ) , org.mockito.Matchers.anyInt ( ) ) ; return futureAnswer ; }
Source:
public java.lang.String getSmsFormat ( ) throws com.android.ims.ImsException { try { return mMmTelFeatureConnection.getSmsFormat ( ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSmsFormat()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void sendSms ( int token , int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) throws com.android.ims.ImsException { try { mMmTelFeatureConnection.sendSms ( token , messageRef , format , smsc , isRetry , pdu ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "sendSms()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void getSimIdentity2DigitMnc ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "321560123456789" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "32156" ) ; assertEquals ( "1321560123456789@wlan.mnc056.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , WifiEnterpriseConfig.Eap.SIM ) ) ; }

Target:
public void getSimIdentityEapAkaPrime ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "3214561234567890" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "321456" ) ; assertEquals ( "63214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.AKA_PRIME , WifiEnterpriseConfig.Phase2.NONE ) ) ) ; assertEquals ( "63214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.PEAP , WifiEnterpriseConfig.Phase2.AKA_PRIME ) ) ) ; }
Source:
void recordDefaultNodeAction ( com.android.manifmerger.XmlElement xmlElement ) { if ( ! ( mRecords.containsKey ( xmlElement.getId ( ) ) ) ) { recordNodeAction ( xmlElement , Actions.ActionType.ADDED ) ; for ( com.android.manifmerger.XmlAttribute xmlAttribute : xmlElement.getAttributes ( ) ) { com.android.manifmerger.AttributeOperationType attributeOperation = xmlElement.getAttributeOperationType ( xmlAttribute.getName ( ) ) ; recordAttributeAction ( xmlAttribute , Actions.ActionType.ADDED , attributeOperation ) ; } for ( com.android.manifmerger.XmlElement childNode : xmlElement.getMergeableElements ( ) ) { recordDefaultNodeAction ( childNode ) ; } } }

Target:
void recordDefaultNodeAction ( com.android.manifmerger.XmlElement xmlElement ) { if ( ! ( mRecords.containsKey ( xmlElement.getOriginalId ( ) ) ) ) { recordNodeAction ( xmlElement , Actions.ActionType.ADDED ) ; for ( com.android.manifmerger.XmlAttribute xmlAttribute : xmlElement.getAttributes ( ) ) { com.android.manifmerger.AttributeOperationType attributeOperation = xmlElement.getAttributeOperationType ( xmlAttribute.getName ( ) ) ; recordAttributeAction ( xmlAttribute , Actions.ActionType.ADDED , attributeOperation ) ; } for ( com.android.manifmerger.XmlElement childNode : xmlElement.getMergeableElements ( ) ) { recordDefaultNodeAction ( childNode ) ; } } }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { java.lang.String [ ] names = sun.util.locale.provider.CalendarDataUtility.getNames ( id , field , style , locale ) ; java.util.Map < java.lang.String , java.lang.Integer > result = new java.util.LinkedHashMap < > ( ) ; for ( int i = 0 ; i < ( names.length ) ; i ++ ) { result.put ( names [ i ] , i ) ; } return result ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement negate ( ) { java.math.BigInteger x2 ; if ( ( x.signum ( ) ) == 0 ) { x2 = x ; } else if ( org.bouncycastle.math.ec.ONE.equals ( r ) ) { x2 = q.xor ( x ) ; } else { x2 = q.subtract ( x ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x2 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modSubtract ( x , b.toBigInteger ( ) ) ) ; }
Source:
private static org.jetbrains.plugins.github.GithubPullRequest createPullRequest ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.GithubAuthData auth , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.GithubFullPath targetRepo , @ org.jetbrains.annotations.NotNull java.lang.String title , @ org.jetbrains.annotations.NotNull java.lang.String description , @ org.jetbrains.annotations.NotNull java.lang.String from , @ org.jetbrains.annotations.NotNull java.lang.String onto ) { try { return org.jetbrains.plugins.github.GithubApiUtil.createPullRequest ( auth , targetRepo.getUser ( ) , targetRepo.getRepository ( ) , title , description , from , onto ) ; } catch ( java.io.IOException e ) { org.jetbrains.plugins.github.GithubNotifications.showError ( project , org.jetbrains.plugins.github.GithubCreatePullRequestAction.CANNOT_CREATE_PULL_REQUEST , e ) ; return null ; } }

Target:
private static org.jetbrains.plugins.github.GithubPullRequest createPullRequest ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.GithubFullPath targetRepo , @ org.jetbrains.annotations.NotNull java.lang.String title , @ org.jetbrains.annotations.NotNull java.lang.String description , @ org.jetbrains.annotations.NotNull java.lang.String from , @ org.jetbrains.annotations.NotNull java.lang.String onto ) { try { return org.jetbrains.plugins.github.GithubApiUtil.createPullRequest ( auth , targetRepo.getUser ( ) , targetRepo.getRepository ( ) , title , description , from , onto ) ; } catch ( java.io.IOException e ) { org.jetbrains.plugins.github.util.GithubNotifications.showError ( project , org.jetbrains.plugins.github.GithubCreatePullRequestAction.CANNOT_CREATE_PULL_REQUEST , e ) ; return null ; } }
Source:
public final byte [ ] update ( byte [ ] input , int inputOffset , int inputLen ) { checkCipherState ( ) ; if ( ( ( ( input == null ) || ( inputOffset < 0 ) ) || ( inputLen > ( ( input.length ) - inputOffset ) ) ) || ( inputLen < 0 ) ) { throw new java.lang.IllegalArgumentException ( "Bad arguments" ) ; } chooseFirstProvider ( ) ; if ( inputLen == 0 ) { return null ; } return spi.engineUpdate ( input , inputOffset , inputLen ) ; }

Target:
public final byte [ ] update ( byte [ ] input , int inputOffset , int inputLen ) { checkCipherState ( ) ; if ( ( ( ( input == null ) || ( inputOffset < 0 ) ) || ( inputLen > ( ( input.length ) - inputOffset ) ) ) || ( inputLen < 0 ) ) { throw new java.lang.IllegalArgumentException ( "Bad arguments" ) ; } updateProviderIfNeeded ( ) ; if ( inputLen == 0 ) { return null ; } return spi.engineUpdate ( input , inputOffset , inputLen ) ; }
Source:
public void run ( ) { if ( ( threadIndex ) == 0 ) { while ( ! ( Main.sEntered ) ) { java.lang.Thread.yield ( ) ; } Main.deoptimizeAll ( ) ; Main.sExitFlag = true ; } else { Main.ensureJitCompiled ( Main.class , "$noinline$foo" ) ; $noinline$foo ( ) ; } }

Target:
public void run ( ) { if ( ( threadIndex ) == 0 ) { synchronized ( Main.class ) { while ( ! ( Main.sEntered ) ) { try { Main.class . wait ( ) ; } catch ( java.lang.InterruptedException e ) { throw new java.lang.Error ( "Unexpected exception." ) ; } } } Main.deoptimizeAll ( ) ; synchronized ( Main.class ) { Main.sExitFlag = true ; Main.class . notify ( ) ; } } else { Main.ensureJitCompiled ( Main.class , "$noinline$foo" ) ; $noinline$foo ( ) ; } }
Source:
public void testNonfullscreenAppOrientationRequests ( ) throws java.lang.Exception { java.lang.String logSeparator = clearLogcat ( ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.PORTRAIT_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialReportedSizes = getLastReportedSizesForActivity ( android.server.cts.ActivityManagerAppConfigurationTests.PORTRAIT_ACTIVITY_NAME , logSeparator ) ; assertEquals ( "portrait activity should be in portrait" , 1 , initialReportedSizes.orientation ) ; logSeparator = clearLogcat ( ) ; launchActivityInComponent ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_CURRENT_PACKAGE , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; assertEquals ( "non-fullscreen activity requested landscape orientation" , 0 , mAmWmState.getWmState ( ) . getLastOrientation ( ) ) ; }

Target:
public void testNonfullscreenAppOrientationRequests ( ) throws java.lang.Exception { if ( ! ( supportsRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } java.lang.String logSeparator = clearLogcat ( ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.PORTRAIT_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialReportedSizes = getLastReportedSizesForActivity ( android.server.cts.ActivityManagerAppConfigurationTests.PORTRAIT_ACTIVITY_NAME , logSeparator ) ; assertEquals ( "portrait activity should be in portrait" , 1 , initialReportedSizes.orientation ) ; logSeparator = clearLogcat ( ) ; launchActivityInComponent ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_CURRENT_PACKAGE , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; assertEquals ( "non-fullscreen activity requested landscape orientation" , 0 , mAmWmState.getWmState ( ) . getLastOrientation ( ) ) ; }
Source:
public void stopStreaming ( java.lang.String serviceId ) { com.android.phone.testapps.embmsmw.AppActiveStreams.StreamCallbackWithState entry = mStreamStates.get ( serviceId ) ; if ( entry != null ) { try { if ( ( entry.getState ( ) ) != ( android.telephony.mbms.StreamingService.STATE_STOPPED ) ) { entry.setState ( StreamingService.STATE_STOPPED ) ; entry.getCallback ( ) . streamStateUpdated ( StreamingService.STATE_STOPPED ) ; } } catch ( android.os.RemoteException e ) { dispose ( serviceId ) ; } } }

Target:
public void stopStreaming ( java.lang.String serviceId , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams.StreamCallbackWithState entry = mStreamStates.get ( serviceId ) ; if ( entry != null ) { try { if ( ( entry.getState ( ) ) != ( android.telephony.mbms.StreamingService.STATE_STOPPED ) ) { entry.setState ( StreamingService.STATE_STOPPED ) ; entry.getCallback ( ) . streamStateUpdated ( StreamingService.STATE_STOPPED , reason ) ; } } catch ( android.os.RemoteException e ) { dispose ( serviceId ) ; } } }
Source:
public void handleMessage ( android.os.Message msg ) { com.android.bluetooth.gatt.ScanClient client = ( ( com.android.bluetooth.gatt.ScanClient ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.bluetooth.gatt.ScanManager.MSG_START_BLE_SCAN : handleStartScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_STOP_BLE_SCAN : handleStopScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_FLUSH_BATCH_RESULTS : handleFlushBatchResults ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_SCAN_TIMEOUT : mScanNative.regularScanTimeout ( client ) ; break ; default : android.util.Log.e ( com.android.bluetooth.gatt.ScanManager.TAG , ( "received an unkown message : " + ( msg.what ) ) ) ; } }

Target:
void handleSuspendScans ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ( ! ( mScanNative.isOpportunisticScanClient ( client ) ) ) && ( ( ( client.filters ) == null ) || ( client.filters.isEmpty ( ) ) ) ) { if ( ( client.stats ) != null ) { client.stats.recordScanSuspend ( client.scannerId ) ; } handleStopScan ( client ) ; mSuspendedScanClients.add ( client ) ; } } }
Source:
protected boolean persistString ( java.lang.String value ) { if ( shouldPersist ( ) ) { if ( value == ( getPersistedString ( null ) ) ) { return true ; } android.content.SharedPreferences.Editor editor = mPreferenceManager.getEditor ( ) ; editor.putString ( mKey , value ) ; tryCommit ( editor ) ; return true ; } return false ; }

Target:
protected boolean persistString ( java.lang.String value ) { if ( shouldPersist ( ) ) { if ( android.text.TextUtils.equals ( value , getPersistedString ( null ) ) ) { return true ; } android.content.SharedPreferences.Editor editor = mPreferenceManager.getEditor ( ) ; editor.putString ( mKey , value ) ; tryCommit ( editor ) ; return true ; } return false ; }
Source:
public int getLengthOfGeographicalAreaCode ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return 0 ; } if ( ( ! ( metadata.hasNationalPrefix ( ) ) ) && ( ! ( number.isItalianLeadingZero ( ) ) ) ) { return 0 ; } if ( ! ( isNumberGeographical ( number ) ) ) { return 0 ; } return getLengthOfNationalDestinationCode ( number ) ; }

Target:
public int getLengthOfGeographicalAreaCode ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return 0 ; } if ( ( metadata.nationalPrefix.equals ( "" ) ) && ( ! ( number.isItalianLeadingZero ( ) ) ) ) { return 0 ; } if ( ! ( isNumberGeographical ( number ) ) ) { return 0 ; } return getLengthOfNationalDestinationCode ( number ) ; }
Source:
public void getAllowedCarriers ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_ALLOWED_CARRIERS , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void getCellInfoList ( android.os.Message result , android.os.WorkSource workSource ) { workSource = getDeafultWorkSourceIfInvalid ( workSource ) ; com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_CELL_INFO_LIST , result , workSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
com.ibm.icu.text.PluralRules.StandardPluralCategories get ( com.ibm.icu.text.PluralRules.StandardPluralCategories start , com.ibm.icu.text.PluralRules.StandardPluralCategories end ) { byte result = data [ ( ( ( start.ordinal ( ) ) * ( com.ibm.icu.text.PluralRules.StandardPluralCategories.COUNT ) ) + ( end.ordinal ( ) ) ) ] ; return result < 0 ? null : StandardPluralCategories.VALUES.get ( result ) ; }

Target:
com.ibm.icu.impl.StandardPlural get ( com.ibm.icu.impl.StandardPlural start , com.ibm.icu.impl.StandardPlural end ) { byte result = data [ ( ( ( start.ordinal ( ) ) * ( com.ibm.icu.impl.StandardPlural.COUNT ) ) + ( end.ordinal ( ) ) ) ] ; return result < 0 ? null : StandardPlural.VALUES.get ( result ) ; }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { try { tokenRef.set ( org.jetbrains.plugins.github.GithubUtil.runWithValidBasicAuthForHost ( myProject , indicator , getHost ( ) , new com.intellij.util.ThrowableConvertor < org.jetbrains.plugins.github.GithubAuthData , java.lang.String , java.io.IOException > ( ) { @ org.jetbrains.annotations.NotNull @ java.lang.Override public java.lang.String convert ( org.jetbrains.plugins.github.GithubAuthData auth ) throws java.io.IOException { return org.jetbrains.plugins.github.api.GithubApiUtil.getReadOnlyToken ( auth , getRepoAuthor ( ) , getRepoName ( ) , "Intellij tasks plugin" ) ; } } ) ) ; } catch ( java.io.IOException e ) { exceptionRef.set ( e ) ; } }

Target:
public java.lang.String convert ( com.intellij.openapi.progress.ProgressIndicator indicator ) throws java.io.IOException { return org.jetbrains.plugins.github.util.GithubUtil.runWithValidBasicAuthForHost ( myProject , indicator , getHost ( ) , new com.intellij.util.ThrowableConvertor < org.jetbrains.plugins.github.util.GithubAuthData , java.lang.String , java.io.IOException > ( ) { @ org.jetbrains.annotations.NotNull @ java.lang.Override public java.lang.String convert ( org.jetbrains.plugins.github.util.GithubAuthData auth ) throws java.io.IOException { return org.jetbrains.plugins.github.api.GithubApiUtil.getReadOnlyToken ( auth , getRepoAuthor ( ) , getRepoName ( ) , "Intellij tasks plugin" ) ; } } ) ; }
Source:
private void tearDown ( ) { android.os.Trace.beginSection ( "InCallServiceImpl.tearDown" ) ; com.android.incallui.Log.v ( this , "tearDown" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . tearDown ( ) ; com.android.incallui.call.TelecomAdapter.getInstance ( ) . clearInCallService ( ) ; if ( ( returnToCallController ) != null ) { returnToCallController.tearDown ( ) ; returnToCallController = null ; } android.os.Trace.endSection ( ) ; }

Target:
private void tearDown ( ) { android.os.Trace.beginSection ( "InCallServiceImpl.tearDown" ) ; com.android.incallui.Log.v ( this , "tearDown" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . tearDown ( ) ; com.android.incallui.call.TelecomAdapter.getInstance ( ) . clearInCallService ( ) ; if ( ( returnToCallController ) != null ) { returnToCallController.tearDown ( ) ; returnToCallController = null ; } if ( ( newReturnToCallController ) != null ) { newReturnToCallController.tearDown ( ) ; newReturnToCallController = null ; } android.os.Trace.endSection ( ) ; }
Source:
public void testClearScores_activeScorer ( ) throws android.os.RemoteException { org.mockito.Mockito.when ( mNetworkScorerAppManager.isCallerActiveScorer ( org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( true ) ; mNetworkScoreService.registerNetworkScoreCache ( NetworkKey.TYPE_WIFI , mNetworkScoreCache ) ; mNetworkScoreService.clearScores ( ) ; org.mockito.Mockito.verify ( mNetworkScoreCache ) . clearScores ( ) ; }

Target:
public void testClearScores_activeScorer ( ) throws android.os.RemoteException { org.mockito.Mockito.when ( mNetworkScorerAppManager.isCallerActiveScorer ( org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( true ) ; mNetworkScoreService.registerNetworkScoreCache ( NetworkKey.TYPE_WIFI , mNetworkScoreCache , android.net.NetworkScoreManager.CACHE_FILTER_NONE ) ; mNetworkScoreService.clearScores ( ) ; org.mockito.Mockito.verify ( mNetworkScoreCache ) . clearScores ( ) ; }
Source:
private void writeCodes ( com.android.dx.dex.file.DexFile file , com.android.dx.util.AnnotatedOutput out ) { com.android.dx.dex.code.DalvInsnList insns = code.getInsns ( ) ; try { insns.writeTo ( out ) ; } catch ( java.lang.RuntimeException ex ) { throw com.android.dx.util.ExceptionWithContext.withContext ( ex , ( ( "...while writing " + "instructions for " ) + ( ref.toHuman ( ) ) ) ) ; } }

Target:
private void writeCodes ( com.android.dx.dex.file.DexFile file , com.android.dx.util.AnnotatedOutput out ) { com.android.dx.dex.code.DalvInsnList insns = code.getInsns ( ) ; try { insns.writeTo ( out ) ; } catch ( java.lang.RuntimeException ex ) { throw com.android.dex.util.ExceptionWithContext.withContext ( ex , ( ( "...while writing " + "instructions for " ) + ( ref.toHuman ( ) ) ) ) ; } }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ! ( originalVFS.isClosed ( ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { if ( ! ( closed ) ) { if ( ( linkedOutputJackLib ) != null ) { linkedOutputJackLib.notifyToClose ( ) ; } else if ( ! ( originalVFS.isClosed ( ) ) ) { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } } closed = true ; } }
Source:
public < T extends com.android.sched.marker.Marker > T removeMarker ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { if ( ( markers ) == null ) { return null ; } return ( ( T ) ( markers.remove ( cls ) ) ) ; }

Target:
public < T extends com.android.sched.marker.Marker > T removeMarker ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { synchronized ( lock ) { if ( ( markers ) == null ) { return null ; } return ( ( T ) ( markers.remove ( cls ) ) ) ; } }