auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void generateDocument ( java.io.File reportDir , long elapsedTime ) { java.lang.String timestamp = getTimestamp ( ) ; java.io.OutputStream stream = null ; try { stream = createOutputResultStream ( reportDir ) ; org.kxml2.io.KXmlSerializer serializer = new org.kxml2.io.KXmlSerializer ( ) ; serializer.setOutput ( stream , SdkConstants.UTF_8 ) ; serializer.startDocument ( SdkConstants.UTF_8 , null ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; printTestResults ( serializer , timestamp , elapsedTime ) ; serializer.endDocument ( ) ; java.lang.String msg = java.lang.String.format ( ( "XML test result file generated at %s. Total tests %d, " + "Failed %d, Error %d" ) , getAbsoluteReportPath ( ) , mRunResult.getNumTests ( ) , mRunResult.getNumFailedTests ( ) , mRunResult.getNumErrorTests ( ) ) ; com.android.ddmlib.Log.logAndDisplay ( LogLevel.INFO , com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , msg ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , "Failed to generate report data" ) ; } finally { if ( stream != null ) { try { stream.close ( ) ; } catch ( java.io.IOException ignored ) { } } } }

Target:
private void generateDocument ( java.io.File reportDir , long elapsedTime ) { java.lang.String timestamp = getTimestamp ( ) ; java.io.OutputStream stream = null ; try { stream = createOutputResultStream ( reportDir ) ; org.kxml2.io.KXmlSerializer serializer = new org.kxml2.io.KXmlSerializer ( ) ; serializer.setOutput ( stream , SdkConstants.UTF_8 ) ; serializer.startDocument ( SdkConstants.UTF_8 , null ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; printTestResults ( serializer , timestamp , elapsedTime ) ; serializer.endDocument ( ) ; java.lang.String msg = java.lang.String.format ( "XML test result file generated at %s. %s" , getAbsoluteReportPath ( ) , mRunResult.getTextSummary ( ) ) ; com.android.ddmlib.Log.logAndDisplay ( LogLevel.INFO , com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , msg ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , "Failed to generate report data" ) ; } finally { if ( stream != null ) { try { stream.close ( ) ; } catch ( java.io.IOException ignored ) { } } } }
Source:
public final void epilogue ( ) throws org.jf.smali.RecognitionException { try { { match ( input , org.jf.smali.smaliTreeWalker.I_EPILOGUE , org.jf.smali.smaliTreeWalker.FOLLOW_I_EPILOGUE_in_epilogue1597 ) ; method_stack.peek ( ) . methodBuilder.addEpilogue ( ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } }

Target:
public final void epilogue ( ) throws org.jf.smali.RecognitionException { try { { match ( input , org.jf.smali.smaliTreeWalker.I_EPILOGUE , org.jf.smali.smaliTreeWalker.FOLLOW_I_EPILOGUE_in_epilogue1599 ) ; method_stack.peek ( ) . methodBuilder.addEpilogue ( ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } }
Source:
public void testPreserveEntities ( ) throws java.lang.Exception { checkFormat ( "res/values/strings.xml" , ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + ( ( "<resources><string name=\"untitled\">&lt;untitled2></string>\n" + "<string name=\"untitled2\">&lt;untitled2&gt;</string>\n" ) + "<string name=\"untitled3\">&apos;untitled3&quot;</string></resources>\n" ) ) , ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + ( ( ( ( ( ( "<resources>\n" + "\n" ) + " <string name=\"untitled\">&lt;untitled2></string>\n" ) + " <string name=\"untitled2\">&lt;untitled2&gt;</string>\n" ) + " <string name=\"untitled3\">&apos;untitled3&quot;</string>\n" ) + "\n" ) + "</resources>" ) ) ) ; }

Target:
public void testPreserveEntities ( ) throws java.lang.Exception { checkFormat ( "res/values/strings.xml" , ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + ( ( "<resources><string name=\"untitled\">&lt;untitled2></string>\n" + "<string name=\"untitled2\">&lt;untitled2&gt;</string>\n" ) + "<string name=\"untitled3\">&apos;untitled3&quot;</string></resources>\n" ) ) , ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + ( ( ( ( ( ( "<resources>\n" + "\n" ) + " <string name=\"untitled\">&lt;untitled2></string>\n" ) + " <string name=\"untitled2\">&lt;untitled2&gt;</string>\n" ) + " <string name=\"untitled3\">&apos;untitled3&quot;</string>\n" ) + "\n" ) + "</resources>\n" ) ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED.equals ( intent.getAction ( ) ) ) { com.android.settings.dashboard.conditional.ConditionManager.get ( context ) . getCondition ( com.android.settings.dashboard.conditional.CellularDataCondition.class ) . refreshState ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED.equals ( intent.getAction ( ) ) ) { com.android.settings.dashboard.conditional.CellularDataCondition condition = com.android.settings.dashboard.conditional.ConditionManager.get ( context ) . getCondition ( com.android.settings.dashboard.conditional.CellularDataCondition.class ) ; if ( condition != null ) { condition.refreshState ( ) ; } } }
Source:
private void editSlideshow ( ) { android.net.Uri dataUri = mWorkingMessage.saveAsMms ( false ) ; if ( dataUri == null ) { return ; } android.content.Intent intent = new android.content.Intent ( this , com.android.mms.ui.SlideshowEditActivity.class ) ; intent.setData ( dataUri ) ; startActivityForResult ( intent , com.android.mms.ui.ComposeMessageActivity.REQUEST_CODE_CREATE_SLIDESHOW ) ; }

Target:
public void run ( ) { if ( ( mTempMmsUri ) == null ) { return ; } com.android.mms.ui.MessageUtils.launchSlideshowActivity ( this , mTempMmsUri , requestCode ) ; }
Source:
public void copyFrom ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( float [ ] d ) { copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public static < K , V > com.google.common.collect.Multimap < K , V > filterEntries ( com.google.common.collect.Multimap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.Multimaps.FilteredMultimap ? com.google.common.collect.Multimaps.filterFiltered ( ( ( com.google.common.collect.Multimaps.FilteredMultimap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.Multimaps.FilteredMultimap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }

Target:
private static < K , V > com.google.common.collect.Multimap < K , V > filterFiltered ( com.google.common.collect.FilteredMultimap < K , V > multimap , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( multimap.entryPredicate ( ) , entryPredicate ) ; return new com.google.common.collect.FilteredEntryMultimap < K , V > ( multimap.unfiltered ( ) , predicate ) ; }
Source:
public android.webkit.WebBackForwardList saveState ( final android.os.Bundle outState ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebBackForwardList ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebBackForwardList > ( ) { @ java.lang.Override public android.webkit.WebBackForwardList call ( ) { return saveState ( outState ) ; } } ) ; return ret ; } if ( outState == null ) return null ; if ( ! ( mAwContents.saveState ( outState ) ) ) return null ; return copyBackForwardList ( ) ; }

Target:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }
Source:
private void addAllCapabilities ( java.util.Set < android.telephony.ims.internal.feature.CapabilityChangeRequest.CapabilityPair > set , int capabilities , int tech ) { long highestCapability = java.lang.Long.highestOneBit ( capabilities ) ; for ( int i = 1 ; i <= highestCapability ; i *= 2 ) { if ( ( i & capabilities ) > 0 ) { set.add ( new android.telephony.ims.internal.feature.CapabilityChangeRequest.CapabilityPair ( i , tech ) ) ; } } }

Target:
private void addAllCapabilities ( java.util.Set < android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair > set , int capabilities , int tech ) { long highestCapability = java.lang.Long.highestOneBit ( capabilities ) ; for ( int i = 1 ; i <= highestCapability ; i *= 2 ) { if ( ( i & capabilities ) > 0 ) { set.add ( new android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair ( i , tech ) ) ; } } }
Source:
public void testSelectedDescendantsMatch_SelectedDescendantsDoNotMatch ( ) { android.view.View grany = setUpViewHierarchy ( ) ; try { android.support.test.espresso.assertion.ViewAssertions.selectedDescendantsMatch ( android.support.test.espresso.matcher.ViewMatchers.withText ( "no content description" ) , android.support.test.espresso.matcher.ViewMatchers.hasContentDescription ( ) ) . check ( grany , absentException ) ; } catch ( junit.framework.AssertionFailedError expected ) { return ; } fail ( "should fail because descendants do not match." ) ; }

Target:
private android.view.View setUpViewHierarchy ( ) { android.widget.TextView v1 = new android.widget.TextView ( mTargetContext ) ; v1.setText ( "no content description" ) ; android.widget.TextView v2 = new android.widget.TextView ( mTargetContext ) ; v2.setText ( "has content description" ) ; v2.setContentDescription ( "content description" ) ; android.view.ViewGroup parent = new android.widget.RelativeLayout ( mTargetContext ) ; android.view.View grany = new android.widget.ScrollView ( mTargetContext ) ; ( ( android.view.ViewGroup ) ( grany ) ) . addView ( parent ) ; parent.addView ( v1 ) ; parent.addView ( v2 ) ; return grany ; }
Source:
public boolean startBatchedScan ( com.android.server.wifi.WifiNative.ScanSettings settings , com.android.server.wifi.WifiNative.ScanEventHandler eventHandler ) { if ( ( settings == null ) || ( eventHandler == null ) ) { android.util.Log.w ( com.android.server.wifi.scanner.HalWifiScannerImpl.TAG , ( ( ( "Invalid arguments for startBatched: settings=" + settings ) + ",eventHandler=" ) + eventHandler ) ) ; return false ; } return mWifiNative.startScan ( settings , eventHandler ) ; }

Target:
public boolean startBatchedScan ( com.android.server.wifi.WifiNative.ScanSettings settings , com.android.server.wifi.WifiNative.ScanEventHandler eventHandler ) { if ( ( settings == null ) || ( eventHandler == null ) ) { android.util.Log.w ( com.android.server.wifi.scanner.HalWifiScannerImpl.TAG , ( ( ( "Invalid arguments for startBatched: settings=" + settings ) + ",eventHandler=" ) + eventHandler ) ) ; return false ; } return mWifiNative.startBgScan ( settings , eventHandler ) ; }
Source:
public void rejectCall ( com.android.internal.telephony.Call ringingCall ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.CallManager.VDBG ) { android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "rejectCall(" + ringingCall ) + ")" ) ) ; android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } com.android.internal.telephony.Phone ringingPhone = ringingCall.getPhone ( ) ; ringingPhone.rejectCall ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "End rejectCall(" + ringingCall ) + ")" ) ) ; android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }

Target:
public void rejectCall ( com.android.internal.telephony.Call ringingCall ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } com.android.internal.telephony.Phone ringingPhone = ringingCall.getPhone ( ) ; ringingPhone.rejectCall ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "End rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }
Source:
public void forceCheckStateForTests ( int checkStatus , com.android.server.timezone.PackageVersions packageVersions ) { int optimisticLockId = getCurrentOptimisticLockId ( ) ; writeStatusRow ( optimisticLockId , optimisticLockId , checkStatus , packageVersions ) ; }

Target:
private boolean writePackageStatusWithOptimisticLockCheck ( int optimisticLockId , int newOptimisticLockId , java.lang.Integer status , com.android.server.timezone.PackageVersions packageVersions ) throws java.io.IOException { int currentOptimisticLockId ; try { currentOptimisticLockId = getCurrentOptimisticLockId ( ) ; if ( currentOptimisticLockId != optimisticLockId ) { return false ; } } catch ( java.text.ParseException e ) { recoverFromBadData ( e ) ; return false ; } writePackageStatusInternal ( status , newOptimisticLockId , packageVersions ) ; return true ; }
Source:
void handleReturnCode ( ) { if ( ( mArgs ) != null ) { processPendingInstall ( mArgs , mRet ) ; } }

Target:
void handleReturnCode ( ) { if ( ( mArgs ) != null ) { processPendingInstall ( mArgs , mRet ) ; } if ( ( mTempPackage ) != null ) { if ( ! ( mTempPackage.delete ( ) ) ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( "Couldn't delete temporary file: " + ( mTempPackage.getAbsolutePath ( ) ) ) ) ; } } }
Source:
public void testNextIntBoundedNeg ( ) { try { int f = java.util.concurrent.ThreadLocalRandom.current ( ) . nextInt ( ( - 17 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testNextIntBoundNonPositive ( ) { java.util.concurrent.ThreadLocalRandom rnd = java.util.concurrent.ThreadLocalRandom.current ( ) ; for ( int bound : new int [ ] { 0 , - 17 , java.lang.Integer.MIN_VALUE } ) { try { rnd.nextInt ( bound ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } } }
Source:
private boolean validateAttributes ( com.android.ide.common.resources.ScanningContext context ) { if ( ! ( isFramework ( ) ) ) { com.android.ide.common.resources.ValidatingResourceParser parser = new com.android.ide.common.resources.ValidatingResourceParser ( context , false ) ; try { com.android.io.IAbstractFile file = getFile ( ) ; return parser.parse ( file.getOsLocation ( ) , file.getContents ( ) ) ; } catch ( java.lang.Exception e ) { context.needsFullAapt ( ) ; } return false ; } return true ; }

Target:
private boolean validateAttributes ( com.android.ide.common.resources.ScanningContext context ) { if ( ( ! ( isFramework ( ) ) ) && ( com.android.utils.SdkUtils.endsWith ( getFile ( ) . getName ( ) , com.android.SdkConstants.DOT_XML ) ) ) { com.android.ide.common.resources.ValidatingResourceParser parser = new com.android.ide.common.resources.ValidatingResourceParser ( context , false ) ; try { com.android.io.IAbstractFile file = getFile ( ) ; return parser.parse ( file.getOsLocation ( ) , file.getContents ( ) ) ; } catch ( java.lang.Exception e ) { context.needsFullAapt ( ) ; } return false ; } return true ; }
Source:
public void onRttCallScreenUiUnready ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiUnready" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . removeListener ( this ) ; stopListenOnRemoteMessage ( ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getActiveCall ( ) ; if ( call != null ) { saveTranscript ( call ) ; } }

Target:
public void onRttCallScreenUiUnready ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiUnready" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . removeListener ( this ) ; stopListenOnRemoteMessage ( ) ; onSaveRttTranscript ( ) ; }
Source:
private void scanExtras ( com.android.sdklib.SdkManager sdkManager , java.util.HashSet < java.io.File > visited , java.util.ArrayList < java.lang.Package > packages , com.android.sdklib.ISdkLog log ) { java.io.File root = new java.io.File ( sdkManager.getLocation ( ) , com.android.SdkConstants.FD_EXTRAS ) ; if ( ! ( root.isDirectory ( ) ) ) { return ; } for ( java.io.File vendor : root.listFiles ( ) ) { if ( vendor.isDirectory ( ) ) { scanExtrasDirectory ( vendor.getAbsolutePath ( ) , visited , packages , log ) ; } } }

Target:
private void scanExtras ( com.android.sdklib.SdkManager sdkManager , java.util.HashSet < java.io.File > visited , java.util.ArrayList < java.lang.Package > packages , com.android.utils.ILogger log ) { java.io.File root = new java.io.File ( sdkManager.getLocation ( ) , com.android.SdkConstants.FD_EXTRAS ) ; if ( ! ( root.isDirectory ( ) ) ) { return ; } for ( java.io.File vendor : root.listFiles ( ) ) { if ( vendor.isDirectory ( ) ) { scanExtrasDirectory ( vendor.getAbsolutePath ( ) , visited , packages , log ) ; } } }
Source:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.rmdex ( codePath , instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void rmPackageDir ( java.lang.String packageDir ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.rmPackageDir ( packageDir ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }

Target:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } mWifiConfigStoreLegacy.removeStores ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }
Source:
public android.webkit.CookieManager getCookieManager ( ) { synchronized ( mLock ) { if ( ( mCookieManager ) == null ) { if ( ! ( mStarted ) ) { org.chromium.content.app.ContentMain.initApplicationContext ( getWrappedCurrentApplicationContext ( ) ) ; } mCookieManager = new com.android.webview.chromium.CookieManagerAdapter ( new org.chromium.android_webview.AwCookieManager ( ) ) ; } } return mCookieManager ; }

Target:
public android.webkit.CookieManager getCookieManager ( ) { synchronized ( mLock ) { if ( ( mCookieManager ) == null ) { if ( ! ( mStarted ) ) { org.chromium.content.app.ContentMain.initApplicationContext ( android.app.ActivityThread.currentApplication ( ) ) ; } mCookieManager = new com.android.webview.chromium.CookieManagerAdapter ( new org.chromium.android_webview.AwCookieManager ( ) ) ; } } return mCookieManager ; }
Source:
public static void $opt$TestInvokeStatic ( ) { Main.printStaticMethod ( ) ; Main.forceGCStaticMethod ( ) ; Main.throwStaticMethod ( ) ; }

Target:
public static void $opt$TestInvokeStatic ( ) { Main.printStaticMethod ( ) ; Main.printStaticMethodWith2Args ( 1 , 2 ) ; Main.printStaticMethodWith5Args ( 1 , 2 , 3 , 4 , 5 ) ; Main.printStaticMethodWith7Args ( 1 , 2 , 3 , 4 , 5 , 6 , 7 ) ; Main.forceGCStaticMethod ( ) ; Main.throwStaticMethod ( ) ; }
Source:
private java.lang.Integer getTosImageId ( ) { return isVvm3 ( ) ? null : R.drawable.voicemail_tos_image ; }

Target:
private java.lang.CharSequence getDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return isVvm3 ( ) ? context.getString ( R.string.dialer_terms_and_conditions_for_verizon_1_0 , learnMoreText ) : context.getString ( R.string.dialer_terms_and_conditions_1_0 , learnMoreText ) ; }
Source:
public java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > getResources ( com.android.ide.eclipse.adt.internal.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem item = projectResources.findResourceItem ( type , mResourceName ) ; java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > items = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > ( ) ; if ( item == null ) { item = new com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ( mResourceName ) ; items.add ( item ) ; } item.add ( this ) ; return items ; }

Target:
public java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > getResources ( com.android.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem item = projectResources.findResourceItem ( type , mResourceName ) ; java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > items = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > ( ) ; if ( item == null ) { item = new com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ( mResourceName ) ; items.add ( item ) ; } item.add ( this ) ; return items ; }
Source:
protected void doOKAction ( ) { super . doOKAction ( ) ; new com.intellij.openapi.vcs.changes.ui.RollbackWorker ( myProject , myOperationName ) . doRollback ( myBrowser.getChangesIncludedInAllLists ( ) , ( ( ( myDeleteLocallyAddedFiles ) != null ) && ( myDeleteLocallyAddedFiles.isSelected ( ) ) ) , myAfterVcsRefreshInAwt , null ) ; }

Target:
protected void doOKAction ( ) { super . doOKAction ( ) ; com.intellij.openapi.vcs.changes.ui.RollbackWorker worker = new com.intellij.openapi.vcs.changes.ui.RollbackWorker ( myProject , myOperationName , myInvokedFromModalContext ) ; worker.doRollback ( myBrowser.getChangesIncludedInAllLists ( ) , ( ( ( myDeleteLocallyAddedFiles ) != null ) && ( myDeleteLocallyAddedFiles.isSelected ( ) ) ) , myAfterVcsRefreshInAwt , null ) ; }
Source:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ; }

Target:
public void check ( android.view.View view , android.support.test.espresso.NoMatchingViewException e ) { org.hamcrest.MatcherAssert.assertThat ( getBottomSheet ( ) , org.hamcrest.CoreMatchers.is ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( getBehavior ( ) . getState ( ) , org.hamcrest.CoreMatchers.is ( BottomSheetBehavior.STATE_COLLAPSED ) ) ; }
Source:
public com.android.sdklib.IAndroidTarget getTargetFromHashString ( @ com.android.annotations.Nullable java.lang.String hash ) { if ( hash != null ) { com.android.sdklib.IAndroidTarget [ ] targets = getTargets ( ) ; for ( com.android.sdklib.IAndroidTarget target : targets ) { if ( ( target != null ) && ( hash.equals ( com.android.sdklib.AndroidTargetHash.getTargetHashString ( target ) ) ) ) { return target ; } } } return null ; }

Target:
public com.android.sdklib.repository.local.IAndroidTarget [ ] getTargets ( boolean includeMissing ) { com.android.sdklib.repository.local.IAndroidTarget [ ] result = getTargets ( ) ; if ( includeMissing ) { result = com.google.common.collect.ObjectArrays.concat ( result , getMissingTargets ( ) , com.android.sdklib.repository.local.IAndroidTarget.class ) ; } return result ; }
Source:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.isLeadingZeroPossible ( ) ; }

Target:
public java.util.Set < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > getSupportedTypesForNonGeoEntity ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForNonGeographicalRegion ( countryCallingCode ) ; if ( metadata == null ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.WARNING , ( ( "Unknown country calling code for a non-geographical entity " + "provided: " ) + countryCallingCode ) ) ; return java.util.Collections.unmodifiableSet ( new java.util.TreeSet < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > ( ) ) ; } return getSupportedTypesForMetadata ( metadata ) ; }
Source:
public char getZeroDigit ( ) { if ( ( digits ) != null ) { return digits [ 0 ] ; } else { return zeroDigit ; } }

Target:
public void setZeroDigit ( char zeroDigit ) { this . zeroDigit = zeroDigit ; digitStrings = digitStrings.clone ( ) ; digits = digits.clone ( ) ; digitStrings [ 0 ] = java.lang.String.valueOf ( zeroDigit ) ; digits [ 0 ] = zeroDigit ; for ( int i = 1 ; i < 10 ; i ++ ) { char d = ( ( char ) ( zeroDigit + i ) ) ; digitStrings [ i ] = java.lang.String.valueOf ( d ) ; digits [ i ] = d ; } }
Source:
private boolean isHiddenRow ( @ android.support.annotation.Nullable java.lang.String number , long rowId ) { if ( ( number != null ) && ( android.telephony.PhoneNumberUtils.isEmergencyNumber ( number ) ) ) { return true ; } if ( hiddenRowIds.contains ( rowId ) ) { return true ; } return false ; }

Target:
private boolean isHideableEmergencyNumberRow ( @ android.support.annotation.Nullable java.lang.String number ) { if ( ! ( com.android.dialer.configprovider.ConfigProviderBindings.get ( activity ) . getBoolean ( com.android.dialer.app.calllog.CallLogAdapter.FILTER_EMERGENCY_CALLS_FLAG , false ) ) ) { return false ; } return ( number != null ) && ( android.telephony.PhoneNumberUtils.isEmergencyNumber ( number ) ) ; }
Source:
public static void addJavadocTag ( org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.Javadoc javadoc , java.lang.String tagText ) { org.eclipse.jdt.core.dom.AST ast = javadoc.getAST ( ) ; org.eclipse.jdt.core.dom.TagElement tagElement = com.google.currysrc.api.transform.ast.AstNodes.createTextTagElement ( ast , tagText ) ; org.eclipse.jdt.core.dom.rewrite.ListRewrite listRewrite = rewrite.getListRewrite ( javadoc , org.eclipse.jdt.core.dom.Javadoc.TAGS_PROPERTY ) ; listRewrite.insertLast ( tagElement , null ) ; }

Target:
public static void addJavadocTag ( org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.Javadoc javadoc , java.lang.String tagText ) { org.eclipse.jdt.core.dom.AST ast = javadoc.getAST ( ) ; org.eclipse.jdt.core.dom.TagElement tagElement = com.google.currysrc.api.process.ast.AstNodes.createTextTagElement ( ast , tagText ) ; org.eclipse.jdt.core.dom.rewrite.ListRewrite listRewrite = rewrite.getListRewrite ( javadoc , org.eclipse.jdt.core.dom.Javadoc.TAGS_PROPERTY ) ; listRewrite.insertLast ( tagElement , null ) ; }
Source:
public void onDestroy ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; super . onDestroy ( ) ; getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; unregisterReceiver ( mBluetoothReceiver ) ; mSocketListener.stop ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } }

Target:
public boolean cleanup ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; unregisterReceiver ( mBluetoothReceiver ) ; mSocketListener.stop ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } return true ; }
Source:
public boolean isOpened ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.isOpened ( ) ; } } return false ; }

Target:
public boolean isOpened ( int slotId , int featureType ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , "isOpened" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.isOpened ( ) ; } } return false ; }
Source:
public void copyTo ( byte [ ] d ) { validateIsInt8 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d ) ; }

Target:
private void copyTo ( java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; boolean usePadding = false ; if ( ( mAutoPadding ) && ( ( mType.getElement ( ) . getVectorSize ( ) ) == 3 ) ) { usePadding = true ; } mRS.nAllocationRead ( getID ( mRS ) , array , dt , mType.mElement.mType.mSize , usePadding ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass definedClass ) { com.android.jack.ir.ast.JClass superClass = definedClass.getSuperClass ( ) ; if ( superClass != null ) { addStructUsage ( superClass ) ; } for ( com.android.jack.ir.ast.JInterface interf : definedClass.getImplements ( ) ) { addStructUsage ( interf ) ; } return super . visit ( definedClass ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBody x ) { super . endVisit ( x ) ; inBody = false ; }
Source:
private void deleteBestEffort ( java.io.File dir ) { if ( dir.exists ( ) ) { try { libcore.tzdata.update2.FileUtils.deleteRecursive ( dir ) ; } catch ( java.io.IOException e ) { android.util.Slog.w ( logTag , ( "Unable to delete " + dir ) , e ) ; } } }

Target:
private void deleteBestEffort ( java.io.File dir ) { if ( dir.exists ( ) ) { android.util.Slog.i ( logTag , ( "Deleting " + dir ) ) ; try { libcore.tzdata.update2.FileUtils.deleteRecursive ( dir ) ; } catch ( java.io.IOException e ) { android.util.Slog.w ( logTag , ( "Unable to delete " + dir ) , e ) ; } } }
Source:
void setUp ( ) { status = READY ; delay ( ) ; }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.requestRebind ( MockListener.COMPONENT_NAME ) ; status = RETEST ; } else { if ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . isConnected ) { status = PASS ; next ( ) ; } else { if ( ( -- ( mRetries ) ) > 0 ) { status = RETEST ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } } }
Source:
public synchronized void close ( ) { if ( ( builder.length ( ) ) > 0 ) { println ( ) ; } super . close ( ) ; }

Target:
public synchronized void close ( ) { if ( ( outputStreamBuffer.size ( ) ) > 0 ) { print ( "" ) ; } assert ( outputStreamBuffer.size ( ) ) == 0 ; if ( ( builder.length ( ) ) > 0 ) { println ( ) ; } super . close ( ) ; }
Source:
private void logCurrentDefaultNetwork ( long timeMs , com.android.server.connectivity.NetworkAgentInfo oldNai ) { android.net.metrics.DefaultNetworkEvent ev = mCurrentDefaultNetwork ; ev.updateDuration ( timeMs ) ; ev.previousTransports = mLastTransports ; if ( oldNai != null ) { com.android.server.connectivity.DefaultNetworkMetrics.fillLinkInfo ( ev , oldNai ) ; ev.finalScore = oldNai.getCurrentScore ( ) ; ev.validatedMs = ev.durationMs ; } if ( ( ev.transports ) != 0 ) { mLastTransports = ev.transports ; } mEvents.add ( ev ) ; mEventsLog.append ( ev ) ; }

Target:
private void logCurrentDefaultNetwork ( long timeMs , com.android.server.connectivity.NetworkAgentInfo oldNai ) { if ( mIsCurrentlyValid ) { updateValidationTime ( timeMs ) ; } android.net.metrics.DefaultNetworkEvent ev = mCurrentDefaultNetwork ; ev.updateDuration ( timeMs ) ; ev.previousTransports = mLastTransports ; if ( oldNai != null ) { com.android.server.connectivity.DefaultNetworkMetrics.fillLinkInfo ( ev , oldNai ) ; ev.finalScore = oldNai.getCurrentScore ( ) ; } if ( ( ev.transports ) != 0 ) { mLastTransports = ev.transports ; } mEvents.add ( ev ) ; mEventsLog.append ( ev ) ; }
Source:
public void iccTransmitApduBasicChannel ( int cla , int command , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { mCi.iccTransmitApduBasicChannel ( cla , command , p1 , p2 , p3 , data , obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_TRANSMIT_APDU_BASIC_CHANNEL_DONE , response ) ) ; }

Target:
public void iccTransmitApduBasicChannel ( int cla , int command , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { mCi.iccTransmitApduBasicChannel ( cla , command , p1 , p2 , p3 , data , mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_TRANSMIT_APDU_BASIC_CHANNEL_DONE , response ) ) ; }
Source:
public static org.apache.harmony.security.provider.cert.X509CertPathImpl getInstance ( java.io.InputStream in ) throws java.security.cert.CertificateException { try { return ( ( org.apache.harmony.security.provider.cert.X509CertPathImpl ) ( org.apache.harmony.security.provider.cert.X509CertPathImpl.ASN1.decode ( in ) ) ) ; } catch ( java.io.IOException e ) { throw new java.security.cert.CertificateException ( ( "Incorrect encoded form: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public static org.apache.harmony.security.provider.cert.X509CertPathImpl getInstance ( java.io.InputStream in ) throws java.security.cert.CertificateException { try { return ( ( org.apache.harmony.security.provider.cert.X509CertPathImpl ) ( org.apache.harmony.security.provider.cert.X509CertPathImpl.ASN1.decode ( in ) ) ) ; } catch ( java.io.IOException e ) { throw new java.security.cert.CertificateException ( "Failed to decode CertPath" , e ) ; } }
Source:
public int getSimCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }

Target:
public void sendDialerSpecialCode ( java.lang.String inputCode ) { try { final com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { if ( ! ( isSystemProcess ( ) ) ) { throw new java.lang.RuntimeException ( "Telephony service unavailable" ) ; } return ; } telephony.sendDialerSpecialCode ( mContext.getOpPackageName ( ) , inputCode ) ; } catch ( android.os.RemoteException ex ) { if ( ! ( isSystemProcess ( ) ) ) { ex.rethrowAsRuntimeException ( ) ; } } }
Source:
public void onChange ( boolean selfChange ) { android.telephony.Rlog.e ( com.android.internal.telephony.dataconnection.DcTracker.SettingsObserver.TAG , "Should never be reached." ) ; }

Target:
private boolean isDataRoamingFromUserAction ( ) { final android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( mPhone.getContext ( ) ) ; if ( ( ! ( sp.contains ( Phone.DATA_ROAMING_IS_USER_SETTING_KEY ) ) ) && ( ( Settings.Global.getInt ( mResolver , Settings.Global.DEVICE_PROVISIONED , 0 ) ) == 0 ) ) { sp.edit ( ) . putBoolean ( Phone.DATA_ROAMING_IS_USER_SETTING_KEY , false ) . commit ( ) ; } return sp.getBoolean ( Phone.DATA_ROAMING_IS_USER_SETTING_KEY , true ) ; }
Source:
public void run ( ) { new android.cts.util.PollingCheck ( android.media.tv.cts.TvViewTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return ( mTvView.getTracks ( TvTrackInfo.TYPE_AUDIO ) ) != null ; } } . run ( ) ; final int [ ] types = new int [ ] { android.media.tv.TvTrackInfo.TYPE_AUDIO , android.media.tv.TvTrackInfo.TYPE_VIDEO , android.media.tv.TvTrackInfo.TYPE_SUBTITLE } ; for ( int type : types ) { for ( android.media.tv.TvTrackInfo track : mTvView.getTracks ( type ) ) { selectTrackAndVerify ( type , track , tracks ) ; } selectTrackAndVerify ( TvTrackInfo.TYPE_SUBTITLE , null , tracks ) ; } }

Target:
public void run ( ) { new android.cts.util.PollingCheck ( android.media.tv.cts.TvViewTest.TIME_OUT_MS ) { @ java.lang.Override protected boolean check ( ) { return ( mTvView.getTracks ( TvTrackInfo.TYPE_AUDIO ) ) != null ; } } . run ( ) ; final int [ ] types = new int [ ] { android.media.tv.TvTrackInfo.TYPE_AUDIO , android.media.tv.TvTrackInfo.TYPE_VIDEO , android.media.tv.TvTrackInfo.TYPE_SUBTITLE } ; for ( int type : types ) { for ( android.media.tv.TvTrackInfo track : mTvView.getTracks ( type ) ) { selectTrackAndVerify ( type , track , tracks ) ; } selectTrackAndVerify ( TvTrackInfo.TYPE_SUBTITLE , null , tracks ) ; } }
Source:
public boolean nvResetConfig ( int resetType ) { enforceModifyPermissionOrCarrierPrivilege ( getDefaultSubscription ( ) ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "nvResetConfig: type " + resetType ) ) ; java.lang.Boolean success = ( ( java.lang.Boolean ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_NV_RESET_CONFIG , resetType ) ) ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( ( ( "nvResetConfig: type " + resetType ) + ' ' ) + ( success ? "ok" : "fail" ) ) ) ; return success ; }

Target:
public boolean nvWriteCdmaPrl ( byte [ ] preferredRoamingList ) { com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfModifyPermissionOrCarrierPrivilege ( mApp , getDefaultSubscription ( ) , "nvWriteCdmaPrl" ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "nvWriteCdmaPrl: value: " + ( com.android.internal.util.HexDump.toHexString ( preferredRoamingList ) ) ) ) ; java.lang.Boolean success = ( ( java.lang.Boolean ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_NV_WRITE_CDMA_PRL , preferredRoamingList ) ) ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "nvWriteCdmaPrl: " + ( success ? "ok" : "fail" ) ) ) ; return success ; }
Source:
public void testOpenAndCloseDrawer ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isClosed ( ) ) ) ; android.support.test.espresso.contrib.DrawerActions.openDrawer ( R.id.drawer_layout ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) ; android.support.test.espresso.contrib.DrawerActions.closeDrawer ( R.id.drawer_layout ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isClosed ( ) ) ) ; }

Target:
public void testOpenAndCloseDrawer ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isClosed ( ) ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.open ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.close ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isClosed ( ) ) ) ; }
Source:
private boolean isShorterThanPossibleNormalNumber ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata regionMetadata , java.lang.String number ) { java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( regionMetadata.getGeneralDesc ( ) . getPossibleNumberPattern ( ) ) ; return ( testNumberLengthAgainstPattern ( possibleNumberPattern , number ) ) == ( com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT ) ; }

Target:
public com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult isPossibleNumberWithReason ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; int countryCode = number.getCountryCode ( ) ; if ( ! ( hasValidCountryCallingCode ( countryCode ) ) ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE ; } java.lang.String regionCode = getRegionCodeForCountryCode ( countryCode ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( metadata.generalDesc.possibleNumberPattern ) ; return testNumberLengthAgainstPattern ( possibleNumberPattern , nationalNumber ) ; }
Source:
public void test_Jar_created_before_java_5 ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Created_by_1_4.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) ; } }

Target:
public void test_JarFile_Integrate_Jar ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Integrate.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) . skip ( java.lang.Long.MAX_VALUE ) ; } } }
Source:
public static long copy ( java.io.InputStream from , com.google.common.io.OutputSupplier < ? extends java.io.OutputStream > to ) throws java.io.IOException { boolean threw = true ; java.io.OutputStream out = to.getOutput ( ) ; try { long count = com.google.common.io.ByteStreams.copy ( from , out ) ; threw = false ; return count ; } finally { com.google.common.io.Closeables.close ( out , threw ) ; } }

Target:
public static com.google.common.io.ByteArrayDataOutput newDataOutput ( ) { return com.google.common.io.ByteStreams.newDataOutput ( new java.io.ByteArrayOutputStream ( ) ) ; }
Source:
void onAdvertisingDataSet ( int advertiser_id , int status ) throws java.lang.Exception { logd ( ( ( ( "onAdvertisingDataSet() advertiser_id=" + advertiser_id ) + ", status=" ) + status ) ) ; java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiser_id ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onAdvertisingDataSet() - bad advertiser_id " + advertiser_id ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onAdvertisingDataSet ( advertiser_id , status ) ; }

Target:
void onAdvertisingDataSet ( int advertiser_id , int status ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.AdvertiseManager.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( ( ( "onAdvertisingDataSet() advertiser_id=" + advertiser_id ) + ", status=" ) + status ) ) ; } java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.AdvertiseManager.AdvertiserInfo > entry = findAdvertiser ( advertiser_id ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.AdvertiseManager.TAG , ( "onAdvertisingDataSet() - bad advertiser_id " + advertiser_id ) ) ; return ; } android.bluetooth.le.IAdvertisingSetCallback callback = entry.getValue ( ) . callback ; callback.onAdvertisingDataSet ( advertiser_id , status ) ; }
Source:
private java.security.cert.TrustAnchor findTrustAnchorBySubjectAndPublicKey ( java.security.cert.X509Certificate cert ) { java.security.cert.TrustAnchor trustAnchor = trustedCertificateIndex.findBySubjectAndPublicKey ( cert ) ; if ( trustAnchor != null ) { return trustAnchor ; } if ( ( trustedCertificateStore ) == null ) { return null ; } if ( trustedCertificateStore.isTrustAnchor ( cert ) ) { return trustedCertificateIndex.index ( cert ) ; } return null ; }

Target:
private java.security.cert.TrustAnchor findTrustAnchorBySubjectAndPublicKey ( java.security.cert.X509Certificate cert ) { java.security.cert.TrustAnchor trustAnchor = trustedCertificateIndex.findBySubjectAndPublicKey ( cert ) ; if ( trustAnchor != null ) { return trustAnchor ; } if ( ( trustedCertificateStore ) == null ) { return null ; } java.security.cert.X509Certificate systemCert = trustedCertificateStore.getTrustAnchor ( cert ) ; if ( systemCert != null ) { return trustedCertificateIndex.index ( systemCert ) ; } return null ; }