auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.jetbrains.plugins.github.api.GithubRepo createRepo ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String name , @ org.jetbrains.annotations.NotNull java.lang.String description , boolean isPublic ) throws java.io.IOException { java.lang.String path = "/user/repos" ; org.jetbrains.plugins.github.api.GithubRepoRequest request = new org.jetbrains.plugins.github.api.GithubRepoRequest ( name , description , isPublic ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( org.jetbrains.plugins.github.api.GithubApiUtil.postRequest ( auth , path , org.jetbrains.plugins.github.api.GithubApiUtil.gson.toJson ( request ) ) , org.jetbrains.plugins.github.api.GithubRepoRaw.class ) , org.jetbrains.plugins.github.api.GithubRepo.class ) ; }

Target:
public static org.jetbrains.plugins.github.api.GithubRepo createRepo ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String name , @ org.jetbrains.annotations.NotNull java.lang.String description , boolean isPublic ) throws java.io.IOException { java.lang.String path = "/user/repos" ; org.jetbrains.plugins.github.api.GithubRepoRequest request = new org.jetbrains.plugins.github.api.GithubRepoRequest ( name , description , isPublic ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( org.jetbrains.plugins.github.api.GithubApiUtil.postRequest ( auth , path , org.jetbrains.plugins.github.api.GithubApiUtil.gson.toJson ( request ) ) , org.jetbrains.plugins.github.api.GithubRepoRaw.class ) , org.jetbrains.plugins.github.api.GithubRepo.class ) ; }
Source:
public void setNickname ( java.lang.String cardId , java.lang.String iccid , java.lang.String nickname , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setNickname ( mContext.getOpPackageName ( ) , cardId , iccid , nickname , new com.android.internal.telephony.euicc.ISetNicknameCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setNickname" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void resetMemory ( java.lang.String cardId , @ android.telephony.euicc.EuiccCardManager.ResetOption int options , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . resetMemory ( mContext.getOpPackageName ( ) , cardId , options , new com.android.internal.telephony.euicc.IResetMemoryCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , null ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling resetMemory" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.targetType ) ; push ( new com.android.jack.ir.ast.JClassLiteral ( info , type , javaLangClass ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.targetType ) ; push ( new com.android.jack.ir.ast.JClassLiteral ( info , type , javaLangClass ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public boolean isNormalized ( ) { int coord = this . getCurveCoordinateSystem ( ) ; return ( ( ( coord == ( ECCurve.COORD_AFFINE ) ) || ( coord == ( ECCurve.COORD_LAMBDA_AFFINE ) ) ) || ( isInfinity ( ) ) ) || ( ( zs [ 0 ] . bitLength ( ) ) == 1 ) ; }

Target:
public boolean isNormalized ( ) { int coord = this . getCurveCoordinateSystem ( ) ; return ( ( ( coord == ( ECCurve.COORD_AFFINE ) ) || ( coord == ( ECCurve.COORD_LAMBDA_AFFINE ) ) ) || ( isInfinity ( ) ) ) || ( zs [ 0 ] . isOne ( ) ) ; }
Source:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; try { fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , inputVFiles ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } return inputVFiles.listIterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; try { fillFiles ( getSectionVFS ( fileType ) . getRootDir ( ) , inputVFiles ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } return inputVFiles.listIterator ( ) ; }
Source:
private final boolean canGcNowLocked ( ) { boolean processingBroadcasts = false ; for ( com.android.server.am.BroadcastQueue q : mBroadcastQueues ) { if ( ( ( q.mParallelBroadcasts.size ( ) ) != 0 ) || ( ( q.mOrderedBroadcasts.size ( ) ) != 0 ) ) { processingBroadcasts = true ; } } return ( ! processingBroadcasts ) && ( ( isSleeping ( ) ) || ( mStackSupervisor.allResumedActivitiesIdle ( ) ) ) ; }

Target:
private void reportStartInstrumentationFailureLocked ( android.app.IInstrumentationWatcher watcher , android.content.ComponentName cn , java.lang.String report ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , report ) ; if ( watcher != null ) { android.os.Bundle results = new android.os.Bundle ( ) ; results.putString ( Instrumentation.REPORT_KEY_IDENTIFIER , "ActivityManagerService" ) ; results.putString ( "Error" , report ) ; mInstrumentationReporter.reportStatus ( watcher , cn , ( - 1 ) , results ) ; } }
Source:
public static synchronized com.android.tv.tuner.TunerHal createInstance ( android.content.Context context ) { com.android.tv.tuner.TunerHal tunerHal = null ; if ( ( com.android.tv.tuner.TunerHal.getTunerType ( context ) ) == ( com.android.tv.tuner.TunerHal.TUNER_TYPE_BUILT_IN ) ) { } if ( tunerHal == null ) { tunerHal = new com.android.tv.tuner.UsbTunerHal ( context ) ; } if ( tunerHal.openFirstAvailable ( ) ) { return tunerHal ; } return null ; }

Target:
public static synchronized com.android.tv.tuner.TunerHal createInstance ( android.content.Context context ) { com.android.tv.tuner.TunerHal tunerHal = null ; if ( com.android.tv.tuner.TunerHal.useBuiltInTuner ( context ) ) { } if ( ( tunerHal == null ) && ( ( com.android.tv.tuner.UsbTunerHal.getNumberOfDevices ( context ) ) > 0 ) ) { tunerHal = new com.android.tv.tuner.UsbTunerHal ( context ) ; } return ( tunerHal != null ) && ( tunerHal.openFirstAvailable ( ) ) ? tunerHal : null ; }
Source:
private com.google.mockwebserver.MockResponse buildContinuingResponse ( ) { int numPackets = 100 ; int contentLength = ( com.android.providers.downloads.STRING_1K.length ( ) ) * numPackets ; return buildResponse ( java.net.HttpURLConnection.HTTP_OK , com.android.providers.downloads.STRING_1K ) . setHeader ( "Content-length" , contentLength ) . setHeader ( "Etag" , com.android.providers.downloads.PublicApiFunctionalTest.ETAG ) . setBytesPerSecond ( 1024 ) ; }

Target:
private com.google.mockwebserver.MockResponse buildContinuingResponse ( ) { int numPackets = 100 ; int contentLength = ( com.android.providers.downloads.STRING_1K.length ( ) ) * numPackets ; return buildResponse ( java.net.HttpURLConnection.HTTP_OK , com.android.providers.downloads.STRING_1K ) . setHeader ( "Content-length" , contentLength ) . setHeader ( "Etag" , com.android.providers.downloads.PublicApiFunctionalTest.ETAG ) . throttleBody ( 1024 , 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView mTextView = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; mTextView.setText ( getUtility ( ) . getValue ( ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView mTextView = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; mTextView.setText ( getString ( ) ) ; }
Source:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getImsMmTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMmTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMmTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
private final long getFixedDateJan1 ( sun.util.calendar.BaseCalendar.Date date , long fixedDate ) { assert ( ( date.getNormalizedYear ( ) ) == ( gregorianCutoverYear ) ) || ( ( date.getNormalizedYear ( ) ) == ( gregorianCutoverYearJulian ) ) ; if ( ( gregorianCutoverYear ) != ( gregorianCutoverYearJulian ) ) { if ( fixedDate >= ( gregorianCutoverDate ) ) { return gregorianCutoverDate ; } } sun.util.calendar.BaseCalendar jcal = java.util.GregorianCalendar.getJulianCalendarSystem ( ) ; return jcal.getFixedDate ( date.getNormalizedYear ( ) , sun.util.calendar.BaseCalendar.JANUARY , 1 , null ) ; }

Target:
private long getFixedDateJan1 ( sun.util.calendar.BaseCalendar.Date date , long fixedDate ) { assert ( ( date.getNormalizedYear ( ) ) == ( gregorianCutoverYear ) ) || ( ( date.getNormalizedYear ( ) ) == ( gregorianCutoverYearJulian ) ) ; if ( ( gregorianCutoverYear ) != ( gregorianCutoverYearJulian ) ) { if ( fixedDate >= ( gregorianCutoverDate ) ) { return gregorianCutoverDate ; } } sun.util.calendar.BaseCalendar juliancal = java.util.GregorianCalendar.getJulianCalendarSystem ( ) ; return juliancal.getFixedDate ( date.getNormalizedYear ( ) , sun.util.calendar.BaseCalendar.JANUARY , 1 , null ) ; }
Source:
public java.util.ArrayList < ? extends com.android.tools.idea.run.GoogleCloudTestingConfiguration > getTestingConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.concat ( com.google.gct.testing.GoogleCloudTestingConfigurationFactoryImpl.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) , getDefaultConfigurations ( facet ) ) ) ; }

Target:
public java.util.List < ? extends com.android.tools.idea.run.CloudTestConfiguration > getTestingConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.concat ( com.google.gct.testing.CloudTestConfigurationProviderImpl.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) , getDefaultConfigurations ( facet ) ) ) ; }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "onSaveInstanceState" , args = { } ) } ) public void testOnSaveInstanceState ( ) { popDialog ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.cts.TestDialog d = ( ( android.app.cts.TestDialog ) ( mActivity.getDialog ( ) ) ) ; mActivity.setRequestedOrientation ( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ) ; mInstrumentation.waitForIdleSync ( ) ; mActivity.setRequestedOrientation ( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ; mInstrumentation.waitForIdleSync ( ) ; assertTrue ( d.isOnSaveInstanceStateCalled ) ; assertTrue ( TestDialog.isOnRestoreInstanceStateCalled ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "onSaveInstanceState" , args = { } ) } ) public void testOnSaveInstanceState ( ) { popDialog ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.cts.TestDialog d = ( ( android.app.cts.TestDialog ) ( mActivity.getDialog ( ) ) ) ; assertFalse ( d.isOnSaveInstanceStateCalled ) ; assertFalse ( TestDialog.isOnRestoreInstanceStateCalled ) ; android.app.cts.OrientationTestUtils.toggleOrientationSync ( mActivity , mInstrumentation ) ; assertTrue ( d.isOnSaveInstanceStateCalled ) ; assertTrue ( TestDialog.isOnRestoreInstanceStateCalled ) ; }
Source:
public static double min ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToRawLongBits ( b ) ) == ( java.lang.StrictMath.negativeZeroDoubleBits ) ) ) { return b ; } return a <= b ? a : b ; }

Target:
public static double min ( double a , double b ) { return java.lang.Math.min ( a , b ) ; }
Source:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }

Target:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }
Source:
public void setRemoteFeatureMask ( int supported_features ) { mRemoteFeatureMask = supported_features ; }

Target:
public void setRemoteFeatureMask ( int supportedFeatures ) { if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : Curr: " + ( mRemoteFeatureMask ) ) ) ; mRemoteFeatureMask = supportedFeatures ; if ( ( mObserver ) != null ) { mObserver.setObserverRemoteFeatureMask ( mRemoteFeatureMask ) ; if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : set: " + ( mRemoteFeatureMask ) ) ) ; } }
Source:
public RttManager.RttCapabilities getRttCapabilities ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getRttCapabilitiesNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public RttManager.RttCapabilities getRttCapabilities ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getRttCapabilities ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getRttCapabilitiesNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }
Source:
public android.webkit.WebBackForwardList restoreState ( final android.os.Bundle inState ) { 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 restoreState ( inState ) ; } } ) ; return ret ; } if ( inState == null ) return null ; if ( ! ( mAwContents.restoreState ( inState ) ) ) return null ; return copyBackForwardList ( ) ; }

Target:
private void loadUrlOnUiThread ( final org.chromium.content_public.browser.LoadUrlParams loadUrlParams ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { assert ( mAppTargetSdkVersion ) < ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ; mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAwContents.loadUrl ( loadUrlParams ) ; } } ) ; return ; } mAwContents.loadUrl ( loadUrlParams ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( ) ; } } } java.lang.System.out.println ( "Goodbye!" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.err.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( ) ; } } } java.lang.System.err.println ( "Goodbye!" ) ; }
Source:
public void onReject ( ) { com.android.services.telephony.Log.v ( this , "onReject" ) ; if ( isValidRingingCall ( ) ) { hangup ( android.telephony.DisconnectCause.INCOMING_REJECTED ) ; } super . onReject ( ) ; }

Target:
protected final void updateConnectionCapabilities ( ) { int newCapabilities = buildConnectionCapabilities ( ) ; newCapabilities = applyOriginalConnectionCapabilities ( newCapabilities ) ; newCapabilities = changeBitmask ( newCapabilities , com.android.services.telephony.CAPABILITY_CAN_PAUSE_VIDEO , ( ( mIsVideoPauseSupported ) && ( isVideoCapable ( ) ) ) ) ; newCapabilities = changeBitmask ( newCapabilities , com.android.services.telephony.CAPABILITY_CAN_PULL_CALL , ( ( isExternalConnection ( ) ) && ( isPullable ( ) ) ) ) ; newCapabilities = applyConferenceTerminationCapabilities ( newCapabilities ) ; if ( ( getConnectionCapabilities ( ) ) != newCapabilities ) { setConnectionCapabilities ( newCapabilities ) ; } }
Source:
public org.gradle.api.DefaultTask getInstall ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getInstall() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getInstall() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.internal.api.ApkVariantOutputImpl ) ( outputs.get ( 0 ) ) ) . getInstall ( ) ; }

Target:
public org.gradle.api.DefaultTask getInstall ( ) { return getApkVariantData ( ) . installTask ; }
Source:
public void clearStorage ( ) { if ( mIsRecording ) { java.io.File [ ] files = mBufferDir.listFiles ( ) ; if ( ( files != null ) && ( ( files.length ) > 0 ) ) { for ( java.io.File file : files ) { file.delete ( ) ; } } } }

Target:
public java.util.ArrayList < com.android.tv.tuner.exoplayer.buffer.BufferManager.PositionHolder > readIndexFile ( java.lang.String trackId ) throws java.io.IOException { java.io.File file = new java.io.File ( getBufferDir ( ) , ( trackId + ( com.android.tv.tuner.exoplayer.buffer.DvrStorageManager.IDX_FILE_SUFFIX_V2 ) ) ) ; if ( file.exists ( ) ) { return readNewIndexFile ( file ) ; } else { return readOldIndexFile ( new java.io.File ( getBufferDir ( ) , ( trackId + ( com.android.tv.tuner.exoplayer.buffer.DvrStorageManager.IDX_FILE_SUFFIX ) ) ) ) ; } }
Source:
com.android.manifmerger.MergingReport.Builder addWarning ( java.lang.String warning ) { mHasWarnings = true ; mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( com.android.manifmerger.MergingReport.Record.Severity.WARNING , warning ) ) ; return this ; }

Target:
com.android.manifmerger.MergingReport.Builder addMessage ( @ com.android.annotations.NonNull com.android.manifmerger.XmlLoader.SourceLocation errorLocation , int line , int column , @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Record.Severity severity , @ com.android.annotations.NonNull java.lang.String message ) { switch ( severity ) { case ERROR : mHasErrors = true ; break ; case WARNING : mHasWarnings = true ; break ; } mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( errorLocation , line , column , severity , message ) ) ; return this ; }
Source:
private java.lang.reflect.Parameter [ ] privateGetParameters ( ) { java.lang.reflect.Parameter [ ] tmp = parameters ; if ( tmp == null ) { if ( tmp == null ) { hasRealParameterData = false ; tmp = synthesizeAllParams ( ) ; } else { hasRealParameterData = true ; verifyParameters ( tmp ) ; } parameters = tmp ; } return tmp ; }

Target:
private java.lang.reflect.Parameter [ ] privateGetParameters ( ) { java.lang.reflect.Parameter [ ] tmp = parameters ; if ( tmp == null ) { try { tmp = getParameters0 ( ) ; } catch ( java.lang.IllegalArgumentException e ) { java.lang.reflect.MalformedParametersException e2 = new java.lang.reflect.MalformedParametersException ( "Invalid parameter metadata in class file" ) ; e2.initCause ( e ) ; throw e2 ; } if ( tmp == null ) { hasRealParameterData = false ; tmp = synthesizeAllParams ( ) ; } else { hasRealParameterData = true ; verifyParameters ( tmp ) ; } parameters = tmp ; } return tmp ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = mPrimaryUserId ; installAppAsUser ( com.android.cts.devicepolicy.DEVICE_ADMIN_APK , mUserId ) ; assertTrue ( "Failed to set device owner" , setDeviceOwner ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = mPrimaryUserId ; installAppAsUser ( com.android.cts.devicepolicy.DEVICE_ADMIN_APK , mUserId ) ; if ( ! ( setDeviceOwner ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ) { removeAdmin ( ( ( ( DEVICE_ADMIN_PKG ) + "/" ) + ( ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.DEVICE_ADMIN_PKG ) ; fail ( "Failed to set device owner" ) ; } } }
Source:
public android.renderscript.ScriptGroup2 create ( android.renderscript.ScriptGroup2.Future ... outputs ) { android.renderscript.ScriptGroup2 ret = new android.renderscript.ScriptGroup2 ( mRS , mClosures , mInputs , outputs ) ; return ret ; }

Target:
public android.renderscript.ScriptGroup2 create ( java.lang.String name , android.renderscript.ScriptGroup2.Future ... outputs ) { if ( ( ( ( name == null ) || ( name.isEmpty ( ) ) ) || ( ( name.length ( ) ) > 100 ) ) || ( ! ( name.equals ( name.replaceAll ( "[^a-zA-Z0-9-]" , "_" ) ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "invalid script group name" ) ; } android.renderscript.ScriptGroup2 ret = new android.renderscript.ScriptGroup2 ( mRS , mClosures , mInputs , outputs ) ; return ret ; }
Source:
public boolean setMoratoriumTimeHttp ( java.lang.String retryAfter ) { try { long ms = ( java.lang.Long.valueOf ( retryAfter ) ) * 1000 ; setMoratoriumTimeMillis ( ( ms + ( currentTimeMillis ( ) ) ) ) ; return true ; } catch ( java.lang.NumberFormatException nfe ) { try { setMoratoriumTimeMillis ( com.android.common.LegacyHttpDateTime.parse ( retryAfter ) ) ; return true ; } catch ( java.lang.IllegalArgumentException iae ) { return false ; } } }

Target:
public boolean setMoratoriumTimeHttp ( java.lang.String retryAfter ) { try { long ms = ( java.lang.Long.parseLong ( retryAfter ) ) * 1000 ; setMoratoriumTimeMillis ( ( ms + ( currentTimeMillis ( ) ) ) ) ; return true ; } catch ( java.lang.NumberFormatException nfe ) { try { setMoratoriumTimeMillis ( com.android.common.LegacyHttpDateTime.parse ( retryAfter ) ) ; return true ; } catch ( java.lang.IllegalArgumentException iae ) { return false ; } } }
Source:
private static synchronized void addToCache ( sun.security.util.Cache cache , byte [ ] encoding , java.lang.Object value ) { if ( ( encoding.length ) > ( sun.security.provider.X509Factory.ENC_MAX_LENGTH ) ) { return ; } java.lang.Object key = new sun.security.util.Cache.EqualByteArray ( encoding ) ; cache.put ( key , value ) ; }

Target:
private static synchronized < V > void addToCache ( sun.security.util.Cache < java.lang.Object , V > cache , byte [ ] encoding , V value ) { if ( ( encoding.length ) > ( sun.security.provider.X509Factory.ENC_MAX_LENGTH ) ) { return ; } java.lang.Object key = new sun.security.util.Cache.EqualByteArray ( encoding ) ; cache.put ( key , value ) ; }
Source:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL193 = null ; try { { SHORT_LITERAL193 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3277 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL193 != null ? SHORT_LITERAL193.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL193 = null ; try { { SHORT_LITERAL193 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3279 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL193 != null ? SHORT_LITERAL193.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public static void markSingleNewVoicemailAsRead ( @ android.support.annotation.NonNull final android.content.Context context , final android.net.Uri voicemailUri ) { if ( voicemailUri == null ) { com.android.dialer.common.LogUtil.e ( "VoicemailQueryHandler.markSingleNewVoicemailAsRead" , "voicemail URI is null" ) ; return ; } com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( context , voicemailUri ) ; } ) ; }

Target:
public static void markSingleNewVoicemailAsOld ( @ android.support.annotation.NonNull final android.content.Context context , final android.net.Uri voicemailUri ) { if ( voicemailUri == null ) { com.android.dialer.common.LogUtil.e ( "VoicemailQueryHandler.markSingleNewVoicemailAsOld" , "voicemail URI is null" ) ; return ; } com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( context , voicemailUri ) ; } ) ; }
Source:
private void handleHandoverFailedIntent ( ) { com.android.internal.telephony.imsphone.ImsPhone imsPhone = ( ( com.android.internal.telephony.imsphone.ImsPhone ) ( mPhone ) ) ; if ( imsPhone == null ) { return ; } com.android.internal.telephony.imsphone.ImsPhoneCall imsPhoneCall = imsPhone.getForegroundCall ( ) ; if ( imsPhoneCall == null ) { return ; } com.android.ims.ImsCall imsCall = imsPhoneCall.getImsCall ( ) ; if ( imsCall == null ) { return ; } imsCall.getImsCallSessionListenerProxy ( ) . callSessionHandoverFailed ( imsCall.getCallSession ( ) , ServiceState.RIL_RADIO_TECHNOLOGY_LTE , ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN , new com.android.ims.ImsReasonInfo ( ) ) ; }

Target:
private void handleHandoverFailedIntent ( ) { com.android.internal.telephony.imsphone.ImsPhone imsPhone = ( ( com.android.internal.telephony.imsphone.ImsPhone ) ( mPhone ) ) ; if ( imsPhone == null ) { return ; } com.android.internal.telephony.imsphone.ImsPhoneCall imsPhoneCall = imsPhone.getForegroundCall ( ) ; if ( imsPhoneCall == null ) { return ; } com.android.ims.ImsCall imsCall = imsPhoneCall.getImsCall ( ) ; if ( imsCall == null ) { return ; } imsCall.getImsCallSessionListenerProxy ( ) . callSessionHandoverFailed ( imsCall.getCallSession ( ) , ServiceState.RIL_RADIO_TECHNOLOGY_LTE , ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN , new android.telephony.ims.ImsReasonInfo ( ) ) ; }
Source:
public void test77_app_metadata_conflict ( ) throws java.lang.Exception { processTestFiles ( ) ; }

Target:
com.android.manifmerger.ManifestMergerTest.TestFiles loadTestData ( ) throws java.lang.Exception { java.lang.StackTraceElement [ ] stack = java.lang.Thread.currentThread ( ) . getStackTrace ( ) ; for ( int i = 0 , n = stack.length ; i < n ; i ++ ) { java.lang.StackTraceElement caller = stack [ i ] ; java.lang.String name = caller.getMethodName ( ) ; if ( name.startsWith ( "test" ) ) { return loadTestData ( name.substring ( 4 ) ) ; } } throw new java.lang.IllegalArgumentException ( "No caller method found which name started with 'test'" ) ; }
Source:
public void registerBuildTypeSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.GradleBuildType buildType , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( "Artifact with name $name is not yet registered. Use registerArtifactType()" ) ; } extraBuildTypeSourceProviders.put ( buildType.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }

Target:
public void registerBuildTypeSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.CoreBuildType buildType , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraBuildTypeSourceProviders.put ( buildType.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( obj instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Choices ) && ( super . equals ( obj ) ) ) { com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Choices rhs = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Choices ) ( obj ) ) ; return mChoices.equals ( rhs.mChoices ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( obj instanceof com.android.ide.common.api.MenuAction.Choices ) && ( super . equals ( obj ) ) ) { com.android.ide.common.api.MenuAction.Choices rhs = ( ( com.android.ide.common.api.MenuAction.Choices ) ( obj ) ) ; return mChoices.equals ( rhs.mChoices ) ; } return false ; }
Source:
public java.lang.String getSSID ( ) { if ( ( mWifiSsid ) != null ) { java.lang.String unicode = mWifiSsid.toString ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( unicode ) ) ) { return ( "\"" + unicode ) + "\"" ; } else { return mWifiSsid.getHexString ( ) ; } } return WifiSsid.NONE ; }

Target:
public java.lang.String getSSID ( ) { if ( ( mWifiSsid ) != null ) { java.lang.String unicode = mWifiSsid.toString ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( unicode ) ) ) { return ( "\"" + unicode ) + "\"" ; } else { java.lang.String hex = mWifiSsid.getHexString ( ) ; return hex != null ? hex : WifiSsid.NONE ; } } return WifiSsid.NONE ; }
Source:
public java.lang.String readImmediately ( ) throws java.io.IOException { if ( mReceiveStream.ready ( ) ) { return read ( ) ; } else { return null ; } }

Target:
public java.lang.String readImmediately ( ) throws java.io.IOException { if ( mReceiveStream.ready ( ) ) { int numRead = mReceiveStream.read ( mReadBuffer , 0 , android.telecom.Call.RttCall.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; } else { return null ; } }
Source:
public void testSendMessage ( ) { int sessionId = 2394 ; int peerId = 2032 ; byte [ ] message = new byte [ 23 ] ; int messageId = 2043 ; int clientId = doConnect ( ) ; mDut.sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; }

Target:
public void testSendMessage ( ) { int sessionId = 2394 ; int peerId = 2032 ; byte [ ] message = new byte [ com.android.server.wifi.nan.WifiNanServiceImplTest.MAX_LENGTH ] ; int messageId = 2043 ; int clientId = doConnect ( ) ; mDut.sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . sendMessage ( clientId , sessionId , peerId , message , messageId , 0 ) ; }
Source:
private java.util.ArrayList < android.hardware.Camera.Size > splitSize ( java.lang.String str ) { if ( str == null ) return null ; java.util.StringTokenizer tokenizer = new java.util.StringTokenizer ( str , "," ) ; java.util.ArrayList < android.hardware.Camera.Size > sizeList = new java.util.ArrayList < android.hardware.Camera.Size > ( ) ; while ( tokenizer.hasMoreElements ( ) ) { android.hardware.Camera.Size size = strToSize ( tokenizer.nextToken ( ) ) ; if ( size != null ) sizeList.add ( size ) ; } if ( ( sizeList.size ( ) ) == 0 ) return null ; return sizeList ; }

Target:
private java.util.ArrayList < android.hardware.Camera.Size > splitSize ( java.lang.String str ) { if ( str == null ) return null ; android.text.TextUtils.StringSplitter splitter = new android.text.TextUtils.SimpleStringSplitter ( ',' ) ; splitter.setString ( str ) ; java.util.ArrayList < android.hardware.Camera.Size > sizeList = new java.util.ArrayList < android.hardware.Camera.Size > ( ) ; for ( java.lang.String s : splitter ) { android.hardware.Camera.Size size = strToSize ( s ) ; if ( size != null ) sizeList.add ( size ) ; } if ( ( sizeList.size ( ) ) == 0 ) return null ; return sizeList ; }
Source:
public void run ( ) { startLatch.countDown ( ) ; int numSuccessfulConnections = 0 ; while ( true ) { try { java.net.Socket socket = serverSocket.accept ( ) ; numSuccessfulConnections ++ ; socket.close ( ) ; } catch ( java.net.SocketException e ) { this . numSuccessfulConnections = numSuccessfulConnections ; shutdownLatch.countDown ( ) ; return ; } catch ( java.io.IOException e ) { } } }

Target:
public void run ( ) { startLatch.countDown ( ) ; while ( true ) { try { java.net.Socket socket = serverSocket.accept ( ) ; numSuccessfulConnections.incrementAndGet ( ) ; socket.close ( ) ; } catch ( java.net.SocketException e ) { shutdownLatch.countDown ( ) ; return ; } catch ( java.io.IOException e ) { } } }
Source:
public boolean performDexOpt ( java.lang.String packageName ) { com.android.server.pm.PackageManagerService.enforceSystemOrRoot ( "Only the system can request dexopt be performed" ) ; android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return false ; } p.mLastPackageUsageTimeInMills = java.lang.System.currentTimeMillis ( ) ; mPackageUsage.write ( ) ; if ( p.mDexOptUnneeded ) { return false ; } } synchronized ( mInstallLock ) { return ( performDexOptLI ( p , false , false , true ) ) == ( com.android.server.pm.PackageManagerService.DEX_OPT_PERFORMED ) ; } }

Target:
public boolean performDexOpt ( java.lang.String packageName , boolean updateUsage ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return false ; } if ( updateUsage ) { p.mLastPackageUsageTimeInMills = java.lang.System.currentTimeMillis ( ) ; } mPackageUsage.write ( ) ; if ( ! ( p.mDexOptNeeded ) ) { return false ; } } synchronized ( mInstallLock ) { return ( performDexOptLI ( p , false , false , true ) ) == ( com.android.server.pm.PackageManagerService.DEX_OPT_PERFORMED ) ; } }
Source:
public static com.android.ide.common.layout.TestNode createFromXml ( java.lang.String xml ) { org.w3c.dom.Document document = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , false ) ; org.junit.Assert.assertNotNull ( document ) ; org.junit.Assert.assertNotNull ( document.getDocumentElement ( ) ) ; return com.android.ide.common.layout.TestNode.createFromNode ( document.getDocumentElement ( ) ) ; }

Target:
public static com.android.ide.common.layout.TestNode createFromXml ( java.lang.String xml ) { org.w3c.dom.Document document = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , false ) ; junit.framework.Assert.assertNotNull ( document ) ; junit.framework.Assert.assertNotNull ( document.getDocumentElement ( ) ) ; return com.android.ide.common.layout.TestNode.createFromNode ( document.getDocumentElement ( ) ) ; }
Source:
public void tesNoSplitDelegateLast ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , sharedLibrary ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "DLC[a.dex:b.dex]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplitDelegateLastNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }
Source:
private void onDataConnectionAttached ( ) { if ( DBG ) log ( "onDataConnectionAttached" ) ; if ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) { if ( DBG ) log ( "onDataConnectionAttached: start polling notify attached" ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_DATA_ATTACHED ) ; } else { notifyOffApnsOfAvailability ( Phone.REASON_DATA_ATTACHED ) ; } setupDataOnReadyApns ( Phone.REASON_DATA_ATTACHED ) ; }

Target:
private void onDataConnectionAttached ( ) { if ( DBG ) log ( "onDataConnectionAttached" ) ; if ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) { if ( DBG ) log ( "onDataConnectionAttached: start polling notify attached" ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_DATA_ATTACHED ) ; } else { notifyOffApnsOfAvailability ( Phone.REASON_DATA_ATTACHED ) ; } mAutoAttachOnCreation = true ; setupDataOnReadyApns ( Phone.REASON_DATA_ATTACHED ) ; }
Source:
boolean deferForUserInput ( android.os.Message message , int netId , boolean allowOverride ) { final android.net.wifi.WifiConfiguration config = mWifiConfigManager.getWifiConfiguration ( netId ) ; if ( config == null ) { logd ( ( ( "deferForUserInput: configuration for netId=" + netId ) + " not stored" ) ) ; return true ; } switch ( config.userApproved ) { case android.net.wifi.WifiConfiguration.USER_APPROVED : case android.net.wifi.WifiConfiguration.USER_BANNED : return false ; case android.net.wifi.WifiConfiguration.USER_PENDING : default : config.userApproved = android.net.wifi.WifiConfiguration.USER_APPROVED ; return false ; } }

Target:
private boolean connectToUserSelectNetwork ( int netId , int uid ) { if ( ! ( setUserSelectNetwork ( netId , uid ) ) ) { return false ; } if ( ! ( mWifiConfigManager.checkAndUpdateLastConnectUid ( netId , uid ) ) ) { loge ( ( ( ( "connectToUserSelectNetwork uid " + uid ) + " did not have the permissions to connect=" ) + netId ) ) ; return false ; } startConnectToNetwork ( netId , com.android.server.wifi.WifiStateMachine.SUPPLICANT_BSSID_ANY ) ; return true ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThrowStatement throwStmt ) { com.android.jack.dx.rop.code.Insn throwInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.THROW , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( throwStmt ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( throwStmt.getExpr ( ) ) ) , getCatchTypes ( ) ) ; addInstruction ( throwInsn ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JThrowBlockElement element ) { addInstruction ( new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.THROW , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( element.getSourceInfo ( ) ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( element.getExpression ( ) ) ) , getCatchTypes ( ) ) ) ; return false ; }
Source:
public void test_yield ( ) { libcore.java.lang.OldThreadTest.Counter [ ] countersNotYeld = new libcore.java.lang.OldThreadTest.Counter [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { countersNotYeld [ i ] = new libcore.java.lang.OldThreadTest.Counter ( false ) ; } libcore.java.lang.OldThreadTest.Counter countersYeld = new libcore.java.lang.OldThreadTest.Counter ( true ) ; try { java.lang.Thread.sleep ( 11000 ) ; } catch ( java.lang.InterruptedException ie ) { } for ( libcore.java.lang.OldThreadTest.Counter c : countersNotYeld ) { assertTrue ( ( ( countersYeld.counter ) == ( c.counter ) ) ) ; } }

Target:
public void test_yield ( ) { libcore.java.lang.OldThreadTest.Counter [ ] countersNotYeld = new libcore.java.lang.OldThreadTest.Counter [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { countersNotYeld [ i ] = new libcore.java.lang.OldThreadTest.Counter ( false ) ; } libcore.java.lang.OldThreadTest.Counter countersYeld = new libcore.java.lang.OldThreadTest.Counter ( true ) ; try { java.lang.Thread.sleep ( 1100 ) ; } catch ( java.lang.InterruptedException ie ) { } for ( libcore.java.lang.OldThreadTest.Counter c : countersNotYeld ) { assertTrue ( ( ( countersYeld.counter ) == ( c.counter ) ) ) ; } }
Source:
public java.util.Locale.Builder setRegion ( java.lang.String region ) { if ( ( region == null ) || ( region.isEmpty ( ) ) ) { this . region = "" ; return this ; } final java.lang.String uppercaseRegion = region.toUpperCase ( java.util.Locale.ROOT ) ; if ( ( ! ( java.util.Locale.isValidBcp47Alpha ( uppercaseRegion , 2 , 2 ) ) ) && ( ! ( java.util.Locale.isUnM49AreaCode ( uppercaseRegion ) ) ) ) { throw new java.util.IllformedLocaleException ( ( "Invalid region: " + region ) ) ; } this . region = uppercaseRegion ; return this ; }

Target:
private static java.lang.String normalizeAndValidateRegion ( java.lang.String region ) { if ( ( region == null ) || ( region.isEmpty ( ) ) ) { return "" ; } final java.lang.String uppercaseRegion = region.toUpperCase ( java.util.Locale.ROOT ) ; if ( ( ! ( java.util.Locale.isValidBcp47Alpha ( uppercaseRegion , 2 , 2 ) ) ) && ( ! ( java.util.Locale.isUnM49AreaCode ( uppercaseRegion ) ) ) ) { throw new java.util.IllformedLocaleException ( ( "Invalid region: " + region ) ) ; } return uppercaseRegion ; }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( baseVFS.getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( inputVFS.getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }
Source:
private void changePositionBy ( long amount ) { long currentPosMs = getPlayPosition ( ) ; if ( currentPosMs == ( - 1L ) ) return ; long newPosMs = java.lang.Math.max ( 0L , ( currentPosMs + amount ) ) ; mMediaController.getTransportControls ( ) . seekTo ( newPosMs ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( android.text.format.DateFormat.format ( "MM-dd HH:mm:ss" , mTimeSent ) ) ; sb.append ( ( " " + ( mEvent.toString ( ) ) ) ) ; if ( ( mPackage ) == null ) { sb.append ( " (undispatched)" ) ; } else { sb.append ( ( " to " + ( mPackage ) ) ) ; sb.append ( ( ( " in " + ( ( mTimeProcessed ) - ( mTimeSent ) ) ) + "ms" ) ) ; } return sb.toString ( ) ; }