auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testProperties ( ) throws java.lang.Exception { com.android.ide.common.rendering.RenderSecurityManager manager = new com.android.ide.common.rendering.RenderSecurityManager ( null , null ) ; try { manager.setActive ( true ) ; java.lang.System.getProperties ( ) ; fail ( "Should have thrown security exception" ) ; } catch ( java.lang.SecurityException exception ) { assertEquals ( "Property access not allowed during rendering" , exception.toString ( ) ) ; } finally { manager.dispose ( ) ; } }

Target:
public void testProperties ( ) throws java.lang.Exception { com.android.ide.common.rendering.RenderSecurityManager manager = new com.android.ide.common.rendering.RenderSecurityManager ( null , null ) ; try { manager.setActive ( true , myCredential ) ; java.lang.System.getProperties ( ) ; fail ( "Should have thrown security exception" ) ; } catch ( java.lang.SecurityException exception ) { assertEquals ( "Property access not allowed during rendering" , exception.toString ( ) ) ; } finally { manager.dispose ( myCredential ) ; } }
Source:
private void notifyRouteChange ( java.lang.String action , android.net.RouteInfo route ) { final int length = mObservers.beginBroadcast ( ) ; try { for ( int i = 0 ; i < length ; i ++ ) { try { if ( action.equals ( "updated" ) ) { mObservers.getBroadcastItem ( i ) . routeUpdated ( route ) ; } else { mObservers.getBroadcastItem ( i ) . routeRemoved ( route ) ; } } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { } } } finally { mObservers.finishBroadcast ( ) ; } }

Target:
private void notifyRouteChange ( java.lang.String action , android.net.RouteInfo route ) { if ( action.equals ( "updated" ) ) { invokeForAllObservers ( ( o ) -> o.routeUpdated ( route ) ) ; } else { invokeForAllObservers ( ( o ) -> o.routeRemoved ( route ) ) ; } }
Source:
public static boolean isBlocked ( android.content.Context context , java.lang.String phoneNumber ) { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.METHOD_IS_BLOCKED , phoneNumber , null ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_NUMBER_IS_BLOCKED , false ) ) ; }

Target:
public static boolean isBlocked ( android.content.Context context , java.lang.String phoneNumber ) { try { final android.os.Bundle res = context.getContentResolver ( ) . call ( android.provider.BlockedNumberContract.AUTHORITY_URI , android.provider.BlockedNumberContract.METHOD_IS_BLOCKED , phoneNumber , null ) ; return ( res != null ) && ( res.getBoolean ( android.provider.BlockedNumberContract.RES_NUMBER_IS_BLOCKED , false ) ) ; } catch ( java.lang.NullPointerException | java.lang.IllegalArgumentException ex ) { android.telecom.Log.w ( null , "isBlocked: provider not ready." ) ; return false ; } }
Source:
void handleLaunchTaskBehindCompleteLocked ( com.android.server.am.ActivityRecord r ) { r.mLaunchTaskBehind = false ; final com.android.server.am.TaskRecord task = r.task ; task.setLastThumbnail ( task.stack.screenshotActivities ( r ) ) ; mService.addRecentTaskLocked ( task ) ; mWindowManager.setAppVisibility ( r.appToken , false ) ; }

Target:
void handleLaunchTaskBehindCompleteLocked ( com.android.server.am.ActivityRecord r ) { r.mLaunchTaskBehind = false ; final com.android.server.am.TaskRecord task = r.task ; task.setLastThumbnail ( task.stack.screenshotActivities ( r ) ) ; mService.addRecentTaskLocked ( task ) ; mService.notifyTaskStackChangedLocked ( ) ; mWindowManager.setAppVisibility ( r.appToken , false ) ; }
Source:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo getContainingPadding ( int start , int end , int x , com.android.draw9patch.ui.ImageViewer.UpdateRegion region ) { com.android.draw9patch.ui.Pair < java.lang.Integer > p = null ; if ( ( x >= start ) && ( x <= end ) ) { p = new com.android.draw9patch.ui.Pair < java.lang.Integer > ( start , end ) ; } return new com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo ( region , p ) ; }

Target:
private int clamp ( int i , int min , int max ) { if ( i < min ) { return min ; } if ( i > max ) { return max ; } return i ; }
Source:
private int calculateBaselineRouteMessage ( boolean isExplicitUserRequest ) { if ( ( ( mAvailableRoutes ) & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ) ) != 0 ) { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_EARPIECE : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_EARPIECE ; } else if ( ( ( mAvailableRoutes ) & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ) ) != 0 ) { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_HEADSET : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_HEADSET ; } else { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_SPEAKER : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_SPEAKER ; } }

Target:
private int calculateBaselineRouteMessage ( boolean isExplicitUserRequest ) { boolean isSkipEarpiece = false ; if ( ! isExplicitUserRequest ) { synchronized ( mLock ) { isSkipEarpiece = mCallsManager.hasVideoCall ( ) ; } } if ( ( ( ( mAvailableRoutes ) & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE ) ) != 0 ) && ( ! isSkipEarpiece ) ) { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_EARPIECE : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_EARPIECE ; } else if ( ( ( mAvailableRoutes ) & ( com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET ) ) != 0 ) { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_HEADSET : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_HEADSET ; } else { return isExplicitUserRequest ? com.android.server.telecom.CallAudioRouteStateMachine.USER_SWITCH_SPEAKER : com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_SPEAKER ; } }
Source:
public com.google.common.collect.ImmutableList < com.android.manifmerger.Actions.NodeRecord > getNodeRecords ( com.android.manifmerger.XmlNode.NodeKey key ) { return mRecords.containsKey ( key ) ? mRecords.get ( key ) . getNodeRecords ( ) : com.google.common.collect.ImmutableList.< com.android.manifmerger.Actions.NodeRecord > of ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String toString = mSourceLocation.print ( true ) ; if ( ( mPosition ) != null ) { toString += ( ( ":" + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; } return toString ; }
Source:
void onPostDialWait ( com.android.server.telecom.Call call , java.lang.String remaining ) { if ( ! ( mInCallServices.isEmpty ( ) ) ) { com.android.server.telecom.Log.i ( this , "Calling onPostDialWait, remaining = %s" , remaining ) ; for ( com.android.internal.telecom.IInCallService inCallService : mInCallServices.values ( ) ) { try { inCallService.setPostDialWait ( mCallIdMapper.getCallId ( call ) , remaining ) ; } catch ( android.os.RemoteException ignored ) { } } } }

Target:
void onPostDialWait ( com.android.server.telecom.Call call , java.lang.String remaining ) { if ( ! ( mInCallServices.isEmpty ( ) ) ) { android.telecom.Log.i ( this , "Calling onPostDialWait, remaining = %s" , remaining ) ; for ( com.android.internal.telecom.IInCallService inCallService : mInCallServices.values ( ) ) { try { inCallService.setPostDialWait ( mCallIdMapper.getCallId ( call ) , remaining ) ; } catch ( android.os.RemoteException ignored ) { } } } }
Source:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationRead1D ( long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead1D ( mContext , id , off , mip , count , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
private boolean shouldTurnOffFullNetworkUpdate ( ) { return ( mIsPowerSaveOn ) || ( ( ( ! ( mIsCharging ) ) && ( ! ( mIsScreenOn ) ) ) && ( ! ( mIsTetheringOn ) ) ) ; }

Target:
private boolean shouldTurnOffDormancyUpdate ( ) { if ( mIsPowerSaveOn ) { return true ; } if ( ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( mIsTetheringOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_DATA_CALL_DORMANCY_CHANGED ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "AaptOptions{" + ", ignoreAssets=" ) + ( ignoreAssets ) ) + ", noCompress=" ) + ( noCompress ) ) + ", failOnMissingConfigEntry=" ) + ( failOnMissingConfigEntry ) ) + "}" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( "AaptOptions{" + ", ignoreAssets=" ) + ( ignoreAssets ) ) + ", noCompress=" ) + ( noCompress ) ) + ", failOnMissingConfigEntry=" ) + ( failOnMissingConfigEntry ) ) + ", additionalParameters=" ) + ( additionalParameters ) ) + "}" ; }
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { spiImpl.engineUpdate ( input , 0 , input.length ) ; } return spiImpl.engineDoFinal ( ) ; }

Target:
public final void update ( byte input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } getSpi ( ) . engineUpdate ( input ) ; }
Source:
public void Dispose ( ) { for ( org.eclipse.swt.graphics.Image icon : mIconMap.values ( ) ) { if ( icon != null ) { icon.dispose ( ) ; } } mIconMap.clear ( ) ; }

Target:
public void dispose ( ) { for ( org.eclipse.swt.graphics.Image icon : mIconMap.values ( ) ) { if ( icon != null ) { icon.dispose ( ) ; } } mIconMap.clear ( ) ; for ( org.eclipse.swt.graphics.Image icon : mUrlMap.values ( ) ) { if ( icon != null ) { icon.dispose ( ) ; } } mUrlMap.clear ( ) ; }
Source:
private java.lang.String getIcuLocaleId ( ) { if ( ( cachedIcuLocaleId ) == null ) { cachedIcuLocaleId = libcore.icu.ICU.localeIdFromLocale ( this ) ; } return cachedIcuLocaleId ; }

Target:
public java.lang.String getDisplayScript ( java.util.Locale locale ) { if ( scriptCode.isEmpty ( ) ) { return "" ; } java.lang.String result = libcore.icu.ICU.getDisplayScript ( this , locale ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayScript ( this , java.util.Locale.getDefault ( ) ) ; } return result ; }
Source:
void resetProperties ( ) { if ( ( mCurrentAppType ) == ( com.android.internal.telephony.uicc.UiccController.APP_FAM_3GPP ) ) { log ( ( "update icc_operator_numeric=" + "" ) ) ; mTelephonyManager.setSimOperatorNumericForPhone ( mPhoneId , "" ) ; mTelephonyManager.setSimCountryIsoForPhone ( mPhoneId , "" ) ; mTelephonyManager.setSimOperatorNameForPhone ( mPhoneId , "" ) ; } }

Target:
void resetProperties ( ) { if ( ( mCurrentAppType ) == ( UiccController.APP_FAM_3GPP ) ) { log ( ( "update icc_operator_numeric=" + "" ) ) ; mTelephonyManager.setSimOperatorNumericForPhone ( mPhoneId , "" ) ; mTelephonyManager.setSimCountryIsoForPhone ( mPhoneId , "" ) ; mTelephonyManager.setSimOperatorNameForPhone ( mPhoneId , "" ) ; } }
Source:
private void onInstallSelectedArchives ( ) { java.util.ArrayList < com.android.sdklib.internal.repository.Archive > archives = new java.util.ArrayList < com.android.sdklib.internal.repository.Archive > ( ) ; for ( java.lang.Object element : mTreeViewerSources.getCheckedElements ( ) ) { if ( element instanceof com.android.sdklib.internal.repository.Archive ) { archives.add ( ( ( com.android.sdklib.internal.repository.Archive ) ( element ) ) ) ; } } if ( ( mUpdaterData ) != null ) { mUpdaterData.updateOrInstallAll_WithGUI ( archives ) ; } }

Target:
private void onInstallSelectedArchives ( ) { java.util.ArrayList < com.android.sdklib.internal.repository.Archive > archives = new java.util.ArrayList < com.android.sdklib.internal.repository.Archive > ( ) ; for ( java.lang.Object element : mTreeViewerSources.getCheckedElements ( ) ) { if ( element instanceof com.android.sdklib.internal.repository.Archive ) { archives.add ( ( ( com.android.sdklib.internal.repository.Archive ) ( element ) ) ) ; } } if ( ( mUpdaterData ) != null ) { mUpdaterData.updateOrInstallAll_WithGUI ( archives , mUpdateOnlyCheckBox.getSelection ( ) ) ; } }
Source:
public java.lang.String getProperty ( @ javax.annotation.Nonnull java.lang.String key ) throws com.android.jack.library.LibraryFormatException { if ( ! ( libraryProperties.containsKey ( key ) ) ) { com.android.jack.library.CommonJackLibrary.logger.log ( java.util.logging.Level.SEVERE , ( ( ( ( "Property " + key ) + " from the library " ) + ( getLocation ( ) . getDescription ( ) ) ) + " does not exist" ) ) ; throw new com.android.jack.library.LibraryFormatException ( getLocation ( ) ) ; } return ( ( java.lang.String ) ( libraryProperties.get ( key ) ) ) ; }

Target:
public java.lang.String getProperty ( @ javax.annotation.Nonnull java.lang.String key ) throws com.android.jack.library.MissingLibraryPropertyException { if ( ! ( libraryProperties.containsKey ( key ) ) ) { throw new com.android.jack.library.MissingLibraryPropertyException ( key , getLocation ( ) ) ; } return ( ( java.lang.String ) ( libraryProperties.get ( key ) ) ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , name ) . add ( "storeLocation" , getStoreLocation ( ) ) . add ( "storePassword" , getStorePassword ( ) ) . add ( "keyAlias" , getKeyAlias ( ) ) . add ( "keyPassword" , getKeyPassword ( ) ) . add ( "storeType" , getStoreFile ( ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , name ) . add ( "storeFile" , ( ( getStoreFile ( ) ) != null ? getStoreFile ( ) . getAbsolutePath ( ) : "null" ) ) . add ( "storePassword" , getStorePassword ( ) ) . add ( "keyAlias" , getKeyAlias ( ) ) . add ( "keyPassword" , getKeyPassword ( ) ) . add ( "storeType" , getStoreFile ( ) ) . toString ( ) ; }
Source:
void setBeamShareActivityState ( boolean enabled ) { android.os.UserManager um = ( ( android.os.UserManager ) ( mContext.getSystemService ( Context.USER_SERVICE ) ) ) ; java.util.List < android.os.UserHandle > luh = um.getUserProfiles ( ) ; for ( android.os.UserHandle uh : luh ) { enforceBeamShareActivityPolicy ( mContext , uh , enabled ) ; } }

Target:
public boolean enableNdefPush ( ) throws android.os.RemoteException { com.android.nfc.NfcPermissions.enforceAdminPermissions ( mContext ) ; synchronized ( this ) { if ( mIsNdefPushEnabled ) { return true ; } android.util.Log.i ( com.android.nfc.NfcService.TAG , "enabling NDEF Push" ) ; mPrefsEditor.putBoolean ( com.android.nfc.NfcService.PREF_NDEF_PUSH_ON , true ) ; mPrefsEditor.apply ( ) ; mIsNdefPushEnabled = true ; enforceBeamShareActivityPolicy ( mContext , new android.os.UserHandle ( mUserId ) ) ; if ( isNfcEnabled ( ) ) { mP2pLinkManager.enableDisable ( true , true ) ; } mBackupManager.dataChanged ( ) ; } return true ; }
Source:
public void test_socket_accept_Nonblocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( false ) ; java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; gotSocket.bind ( null ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException e ) { } }

Target:
public void test_socket_accept_Blocking_NotBound ( ) throws java.io.IOException { java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; serverChannel.configureBlocking ( true ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException expected ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException expected ) { } }
Source:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVfs , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( FileType.DEX.getFileExtension ( ) ) ; } try { return outputVfs.getRootOutputVDir ( ) . createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
protected com.android.jack.backend.dex.MergingManager getManager ( ) { return new com.android.jack.backend.dex.MergingManager ( ) ; }
Source:
public byte [ ] iccExchangeSimIO ( int fileID , int command , int p1 , int p2 , int p3 , java.lang.String filePath ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccExchangeSimIO ( fileID , command , p1 , p2 , p3 , filePath ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public android.telephony.VisualVoicemailSmsFilterSettings getActiveVisualVoicemailSmsFilterSettings ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getActiveVisualVoicemailSmsFilterSettings ( subId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public void setVideoProvider ( com.android.internal.telecom.IVideoProvider videoProvider ) { android.telecom.Log.v ( this , "setVideoProvider" ) ; if ( videoProvider != null ) { try { mVideoProviderProxy = new com.android.server.telecom.VideoProviderProxy ( mLock , videoProvider , this ) ; } catch ( android.os.RemoteException ignored ) { } } else { mVideoProviderProxy = null ; } mVideoProvider = videoProvider ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onVideoCallProviderChanged ( this ) ; } }

Target:
public void setVideoProvider ( com.android.internal.telecom.IVideoProvider videoProvider ) { android.telecom.Log.v ( this , "setVideoProvider" ) ; if ( videoProvider != null ) { try { mVideoProviderProxy = new com.android.server.telecom.VideoProviderProxy ( mLock , videoProvider , this , mCallsManager ) ; } catch ( android.os.RemoteException ignored ) { } } else { mVideoProviderProxy = null ; } mVideoProvider = videoProvider ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onVideoCallProviderChanged ( this ) ; } }
Source:
public com.android.sched.scheduler.Plan < T > getPlan ( ) { assert ( request ) != null ; com.android.sched.util.log.Event event = tracer.start ( SchedEventType.PLANBUILDER ) ; try { plan.initPlan ( request , this ) ; } finally { event.end ( ) ; } return plan ; }

Target:
public com.android.sched.scheduler.Plan < T > getPlan ( ) { assert ( request ) != null ; try ( com.android.sched.util.log.Event event = tracer.open ( SchedEventType.PLANBUILDER ) ) { plan.initPlan ( request , this ) ; } return plan ; }
Source:
public static java.lang.String getListViewFqcn ( java.lang.Class < ? > clz ) { java.lang.String fqcn = clz.getName ( ) ; if ( fqcn.endsWith ( com.android.ide.common.layout.LayoutConstants.LIST_VIEW ) ) { return fqcn ; } else if ( fqcn.startsWith ( com.android.ide.common.layout.LayoutConstants.ANDROID_PKG_PREFIX ) ) { return null ; } java.lang.Class < ? > superClass = clz.getSuperclass ( ) ; if ( superClass != null ) { return com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.getListViewFqcn ( superClass ) ; } else { return null ; } }

Target:
public static java.lang.String getListAdapterViewFqcn ( java.lang.Class < ? > clz ) { java.lang.String fqcn = clz.getName ( ) ; if ( fqcn.endsWith ( com.android.ide.common.layout.LayoutConstants.LIST_VIEW ) ) { return fqcn ; } else if ( fqcn.equals ( com.android.ide.common.layout.LayoutConstants.FQCN_GRID_VIEW ) ) { return fqcn ; } else if ( fqcn.startsWith ( com.android.ide.common.layout.LayoutConstants.ANDROID_PKG_PREFIX ) ) { return null ; } java.lang.Class < ? > superClass = clz.getSuperclass ( ) ; if ( superClass != null ) { return com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.getListAdapterViewFqcn ( superClass ) ; } else { return null ; } }
Source:
public void run ( ) { if ( file.delete ( ) ) { logger.log ( java.util.logging.Level.FINE , "Remove {0} (''{1}'')" , new java.lang.Object [ ] { location.getDescription ( ) , file.getAbsoluteFile ( ) } ) ; } else { logger.log ( java.util.logging.Level.SEVERE , "Can not delete {0}" , location.getDescription ( ) ) ; } }

Target:
public void run ( ) { if ( file.delete ( ) ) { com.android.sched.util.file.FileOrDirectory.logger.log ( java.util.logging.Level.FINE , "Remove {0} (''{1}'')" , new java.lang.Object [ ] { location.getDescription ( ) , file.getAbsoluteFile ( ) } ) ; } else { com.android.sched.util.file.FileOrDirectory.logger.log ( java.util.logging.Level.SEVERE , "Can not delete {0}" , location.getDescription ( ) ) ; } }
Source:
private void handleClearItemSelected ( ) { android.content.ContentResolver resolver = getContentResolver ( ) ; resolver.delete ( TestResultsProvider.RESULTS_CONTENT_URI , "1" , null ) ; android.widget.Toast.makeText ( this , R.string.test_results_cleared , Toast.LENGTH_SHORT ) . show ( ) ; }

Target:
private void handleShareItemSelected ( ) { android.content.Intent target = new android.content.Intent ( android.content.Intent.ACTION_SEND ) ; target.setType ( "text/plain" ) ; com.android.cts.verifier.TestResultsReport report = new com.android.cts.verifier.TestResultsReport ( this , mAdapter ) ; target.putExtra ( Intent.EXTRA_SUBJECT , report.getSubject ( ) ) ; target.putExtra ( Intent.EXTRA_TEXT , report.getBody ( ) ) ; startActivity ( android.content.Intent.createChooser ( target , getString ( R.string.share_test_results ) ) ) ; }
Source:
private void responseStrings ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String ... str ) { java.util.ArrayList < java.lang.String > strings = new java.util.ArrayList < > ( ) ; for ( int i = 0 ; i < ( str.length ) ; i ++ ) { strings.add ( str [ i ] ) ; } responseStringArrayList ( responseInfo , strings ) ; }

Target:
private void responseStrings ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String ... str ) { java.util.ArrayList < java.lang.String > strings = new java.util.ArrayList < > ( ) ; for ( int i = 0 ; i < ( str.length ) ; i ++ ) { strings.add ( str [ i ] ) ; } com.android.internal.telephony.RadioResponse.responseStringArrayList ( mRil , responseInfo , strings ) ; }
Source:
void unhold ( ) { com.android.internal.util.Preconditions.checkNotNull ( mConnectionService ) ; if ( ( mState ) == ( CallState.ON_HOLD ) ) { mConnectionService.unhold ( this ) ; com.android.server.telecom.Log.event ( this , Log.Events.REQUEST_UNHOLD ) ; } }

Target:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage ) { com.android.internal.util.Preconditions.checkNotNull ( mConnectionService ) ; if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT ) ; } }
Source:
public void onCreate ( ) { super . onCreate ( ) ; mFacadeManager = new com.googlecode.android_scripting.facade.FacadeManager ( com.googlecode.android_scripting.facade.FacadeConfiguration.getSdkLevel ( ) , this , null , com.googlecode.android_scripting.facade.FacadeConfiguration.getFacadeClasses ( ) ) ; mEventFacade = mFacadeManager.getReceiver ( com.googlecode.android_scripting.facade.EventFacade.class ) ; mTriggerRepository = ( ( com.googlecode.android_scripting.BaseApplication ) ( getApplication ( ) ) ) . getTriggerRepository ( ) ; mTriggerRepository.bootstrapObserver ( new com.googlecode.android_scripting.activity.TriggerService.RepositoryObserver ( ) ) ; mTriggerRepository.bootstrapObserver ( new com.googlecode.android_scripting.trigger.EventGenerationControllingObserver ( mFacadeManager ) ) ; installAlarm ( ) ; }

Target:
public void onCreate ( ) { super . onCreate ( ) ; createNotificationChannel ( ) ; mFacadeManager = new com.googlecode.android_scripting.facade.FacadeManager ( com.googlecode.android_scripting.facade.FacadeConfiguration.getSdkLevel ( ) , this , null , com.googlecode.android_scripting.facade.FacadeConfiguration.getFacadeClasses ( ) ) ; mEventFacade = mFacadeManager.getReceiver ( com.googlecode.android_scripting.facade.EventFacade.class ) ; mTriggerRepository = ( ( com.googlecode.android_scripting.BaseApplication ) ( getApplication ( ) ) ) . getTriggerRepository ( ) ; mTriggerRepository.bootstrapObserver ( new com.googlecode.android_scripting.activity.TriggerService.RepositoryObserver ( ) ) ; mTriggerRepository.bootstrapObserver ( new com.googlecode.android_scripting.trigger.EventGenerationControllingObserver ( mFacadeManager ) ) ; installAlarm ( ) ; }
Source:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }

Target:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }
Source:
public void sendSMS ( java.lang.String smscPDU , java.lang.String pdu , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_SMS , result ) ; constructGsmSendSmsRilRequest ( rr , smscPDU , pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilSendSms ( mInstanceId , rr.mSerial , SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; send ( rr ) ; }

Target:
public void sendDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }
Source:
protected java.util.List < com.intellij.refactoring.safeDelete.PsiMethod > computeCallers ( ) { if ( getTopMethod ( ) . equals ( getMethod ( ) ) ) { final java.util.ArrayList < com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo > items = getTopLevelItems ( ) ; return com.intellij.util.containers.ContainerUtil.map ( items , new com.intellij.util.Function < com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo , com.intellij.refactoring.safeDelete.PsiMethod > ( ) { @ java.lang.Override public com.intellij.refactoring.safeDelete.PsiMethod fun ( com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo info ) { return info.getCallerMethod ( ) ; } } ) ; } return super . computeCallers ( ) ; }

Target:
protected java.util.List < com.intellij.refactoring.safeDelete.PsiMethod > computeCallers ( ) { if ( getTopMethod ( ) . equals ( getMethod ( ) ) ) { final java.util.ArrayList < com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo > items = getTopLevelItems ( ) ; return com.intellij.util.containers.ContainerUtil.map ( items , new com.intellij.util.Function < com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo , com.intellij.refactoring.safeDelete.PsiMethod > ( ) { @ java.lang.Override public com.intellij.refactoring.safeDelete.PsiMethod fun ( com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteParameterCallHierarchyUsageInfo info ) { return info.getCallerMethod ( ) ; } } ) ; } final java.util.List < com.intellij.refactoring.safeDelete.PsiMethod > methods = super . computeCallers ( ) ; methods.remove ( getTopMethod ( ) ) ; return methods ; }
Source:
public void setMinusSign ( char minusSign ) { this . minusSign = minusSign ; char [ ] minusArray = new char [ ] { minusSign } ; minusString = new java.lang.String ( minusArray ) ; }

Target:
public void setMinusSignString ( java.lang.String minusSignString ) { if ( minusSignString == null ) { throw new java.lang.NullPointerException ( "The input minus sign is null" ) ; } this . minusString = minusSignString ; if ( ( minusSignString.length ( ) ) == 1 ) { this . minusSign = minusSignString.charAt ( 0 ) ; } else { this . minusSign = android.icu.text.DecimalFormatSymbols.DEF_MINUS_SIGN ; } }
Source:
public void testWrongSeparator1 ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( " <activity\n" + " ^\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifestWrong.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "registration/Bar.java.txt=>src/test/pkg/Foo/Bar.java" ) ) ; }

Target:
public void testWrongSeparator1 ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING , com.android.tools.lint.checks.MissingClassDetector.INSTANTIATABLE , com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( " <activity\n" + " ^\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifestWrong.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "registration/Bar.java.txt=>src/test/pkg/Foo/Bar.java" ) ) ; }
Source:
static < T > T record ( @ com.android.annotations.NonNull org.gradle.api.Project project , @ com.android.annotations.NonNull com.android.builder.profile.ExecutionType executionType , @ com.android.annotations.NonNull com.android.build.gradle.internal.profile.Closure < T > closure ) { return ( ( T ) ( com.android.builder.profile.ThreadRecorder.get ( ) . record ( executionType , new com.android.builder.profile.Recorder.Block ( ) { @ java.lang.Override java.lang.Object call ( ) throws java.lang.Exception { return closure.call ( ) ; } } , new com.android.builder.profile.Recorder.Property ( com.android.build.gradle.internal.profile.SpanRecorders.PROJECT , project.getName ( ) ) ) ) ) ; }

Target:
public static < T > T record ( @ com.android.annotations.NonNull org.gradle.api.Project project , @ com.android.annotations.NonNull com.android.builder.profile.ExecutionType executionType , @ com.android.annotations.NonNull com.android.builder.profile.Recorder.Block < T > block , com.android.builder.profile.Recorder ... properties ) { com.android.builder.profile.Recorder [ ] mergedProperties = new com.android.builder.profile.Recorder.Property [ ( properties.length ) + 1 ] ; mergedProperties [ 0 ] = new com.android.builder.profile.Recorder.Property ( com.android.build.gradle.internal.profile.SpanRecorders.PROJECT , project.getName ( ) ) ; java.lang.System.arraycopy ( properties , 0 , mergedProperties , 1 , properties.length ) ; return ( ( com.android.build.gradle.internal.profile.T ) ( com.android.builder.profile.ThreadRecorder.get ( ) . record ( executionType , block , mergedProperties ) ) ) ; }
Source:
private com.android.server.am.ActivityRecord getWaitingHistoryRecordLocked ( ) { com.android.server.am.ActivityRecord r = this ; final com.android.server.am.ActivityStack stack = task.stack ; if ( r.waitingVisible ) { r = stack.mResumedActivity ; if ( r == null ) { r = stack.mPausingActivity ; } if ( r == null ) { r = this ; } } return r ; }

Target:
private com.android.server.am.ActivityRecord getWaitingHistoryRecordLocked ( ) { com.android.server.am.ActivityRecord r = this ; if ( r.waitingVisible ) { final com.android.server.am.ActivityStack stack = mStackSupervisor.getFocusedStack ( ) ; r = stack.mResumedActivity ; if ( r == null ) { r = stack.mPausingActivity ; } if ( r == null ) { r = this ; } } return r ; }
Source:
public void ensureRetentionPolicy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedAnnotation loaded ) { synchronized ( this ) { if ( isLoaded ( com.android.jack.ir.impl.EcjSourceTypeLoader.Scope.RETENTION ) ) { return ; } loaded.setRetentionPolicy ( com.android.jack.ir.impl.ReferenceMapper.getRetentionPolicy ( getBinding ( ) . getAnnotationTagBits ( ) ) ) ; markLoaded ( com.android.jack.ir.impl.EcjSourceTypeLoader.Scope.RETENTION , loaded ) ; } }

Target:
public void ensureRetentionPolicy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedAnnotationType loaded ) { synchronized ( this ) { if ( isLoaded ( com.android.jack.ir.impl.EcjSourceTypeLoader.Scope.RETENTION ) ) { return ; } loaded.setRetentionPolicy ( com.android.jack.ir.impl.ReferenceMapper.getRetentionPolicy ( getBinding ( ) . getAnnotationTagBits ( ) ) ) ; markLoaded ( com.android.jack.ir.impl.EcjSourceTypeLoader.Scope.RETENTION , loaded ) ; } }
Source:
public boolean isBondingInitiatedLocally ( ) { try { return android.bluetooth.BluetoothDevice.sService.isBondingInitiatedLocally ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean setSimAccessPermission ( int value ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { return false ; } try { return service.setSimAccessPermission ( this , value ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public int compareTo ( com.android.dx.io.EncodedValue other ) { int size = java.lang.Math.min ( data.length , other.data.length ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( ( data [ i ] ) != ( other.data [ i ] ) ) { return ( ( data [ i ] ) & 255 ) - ( ( other.data [ i ] ) & 255 ) ; } } return ( data.length ) - ( other.data.length ) ; }

Target:
public int compareTo ( com.android.dex.EncodedValue other ) { int size = java.lang.Math.min ( data.length , other.data.length ) ; for ( int i = 0 ; i < size ; i ++ ) { if ( ( data [ i ] ) != ( other.data [ i ] ) ) { return ( ( data [ i ] ) & 255 ) - ( ( other.data [ i ] ) & 255 ) ; } } return ( data.length ) - ( other.data.length ) ; }
Source:
public void copyFrom ( short [ ] d ) { 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 ) ; } }

Target:
public void copyFrom ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void testCancelSoon ( ) throws java.lang.Exception { if ( ! ( doTestDragAndDrop ( android.wm.cts.CrossAppDragAndDropTests.CANCEL_SOON , android.wm.cts.CrossAppDragAndDropTests.REQUEST_NONE , null ) ) ) { return ; } assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DRAG_STARTED , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_EXTRAS , android.wm.cts.CrossAppDragAndDropTests.RESULT_OK ) ; }

Target:
private void doTestDragAndDrop ( java.lang.String sourceMode , java.lang.String targetMode , java.lang.String expectedDropResult ) throws java.lang.Exception { if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } launchDockedActivity ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME , sourceMode ) ; launchFullscreenActivity ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME , targetMode ) ; clearLogs ( ) ; injectInput ( getWindowCenter ( getComponentName ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME ) ) , getWindowCenter ( getComponentName ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME ) ) , android.wm.cts.CrossAppDragAndDropTests.SWIPE_DURATION_MS ) ; mResults = getLogResults ( android.wm.cts.CrossAppDragAndDropTests.TARGET_LOG_TAG ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DROP_RESULT , expectedDropResult ) ; }
Source:
private static final int getCharScript ( int script ) { switch ( script ) { case com.ibm.icu.lang.UScript.SIMPLIFIED_HAN : case com.ibm.icu.lang.UScript.TRADITIONAL_HAN : return com.ibm.icu.lang.UScript.HAN ; case com.ibm.icu.lang.UScript.JAPANESE : return com.ibm.icu.lang.UScript.HIRAGANA ; case com.ibm.icu.lang.UScript.KOREAN : return com.ibm.icu.lang.UScript.HANGUL ; default : return script ; } }

Target:
private static final int getCharScript ( int script ) { switch ( script ) { case com.ibm.icu.lang.UScript.HAN_WITH_BOPOMOFO : case com.ibm.icu.lang.UScript.SIMPLIFIED_HAN : case com.ibm.icu.lang.UScript.TRADITIONAL_HAN : return com.ibm.icu.lang.UScript.HAN ; case com.ibm.icu.lang.UScript.JAPANESE : return com.ibm.icu.lang.UScript.HIRAGANA ; case com.ibm.icu.lang.UScript.JAMO : case com.ibm.icu.lang.UScript.KOREAN : return com.ibm.icu.lang.UScript.HANGUL ; case com.ibm.icu.lang.UScript.SYMBOLS_EMOJI : return com.ibm.icu.lang.UScript.SYMBOLS ; default : return script ; } }
Source:
public static void createjar ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File inputFiles ) { java.lang.String [ ] args = new java.lang.String [ ] { "jar" , "cf" , jarfile.getAbsolutePath ( ) , "-C" , inputFiles.getAbsolutePath ( ) , "." } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jar exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occured while running jar command" , e ) ; } }

Target:
public static void unzip ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File outputFolder ) { java.lang.String [ ] args = new java.lang.String [ ] { "unzip" , "-qo" , jarfile.getAbsolutePath ( ) , "-d" , outputFolder.getAbsolutePath ( ) } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Unzip exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running unzip" , e ) ; } }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3" , 16 ) , new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F0" , 16 ) , new java.math.BigInteger ( "7CBBBCF9441CFAB76E1890E46884EAE321F70C0BCB4981527897504BEC3E36A62BCDFA2304976540F6450085F2DAE145C22553B465763689180EA2571867423E" , 16 ) ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "04640ECE5C12788717B9C1BA06CBC2A6FEBA85842458C56DDE9DB1758D39C0313D82BA51735CDB3EA499AA77A7D6943A64F7A3F25FE26F06B51BAA2696FA9035DA5B534BD595F5AF0FA2C892376C84ACE1BB4E3019B71634C01131159CAE03CEE9D9932184BEEF216BD71DF2DADF86A627306ECFF96DBB8BACE198B61E00F8B332" ) ) , new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069" , 16 ) , new java.math.BigInteger ( "01" , 16 ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069" , 16 ) ; java.math.BigInteger h = new java.math.BigInteger ( "01" , 16 ) ; org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3" , 16 ) , new java.math.BigInteger ( "7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA" , 16 ) , new java.math.BigInteger ( "3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723" , 16 ) , n , h ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0481AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F8227DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892" ) ) , n , h ) ; }
Source:
public static void populateEndpointParameters ( java.util.Map < java.lang.String , java.lang.Object > replacementMap , java.lang.String rootPackage ) { replacementMap.put ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.ATTR_ENDPOINTS_OWNER , rootPackage ) ; replacementMap.put ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.ATTR_ENDPOINTS_PACKAGE , "" ) ; }

Target:
public static void populateEndpointParameters ( java.util.Map < java.lang.String , java.lang.Object > replacementMap , java.lang.String rootPackage ) { java.lang.String [ ] pkgParts = rootPackage.split ( "\\." ) ; java.lang.String ownerDomain = com.intellij.openapi.util.text.StringUtil.join ( com.intellij.util.ArrayUtil.reverseArray ( pkgParts ) , "." ) ; replacementMap.put ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.ATTR_ENDPOINTS_OWNER , ownerDomain ) ; replacementMap.put ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.ATTR_ENDPOINTS_PACKAGE , "" ) ; }
Source:
public org.bouncycastle.cms.SignerInformationVerifier get ( org.bouncycastle.cms.SignerId signerId ) throws org.bouncycastle.operator.OperatorCreationException { if ( org.bouncycastle.cms.test.NewSignedDataTest._signCert.getSerialNumber ( ) . equals ( signerId.getSerialNumber ( ) ) ) { return new org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoVerifierBuilder ( ) . setProvider ( org.bouncycastle.cms.test.NewSignedDataTest.BC ) . build ( org.bouncycastle.cms.test.NewSignedDataTest._signCert ) ; } else { return new org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoVerifierBuilder ( ) . setProvider ( org.bouncycastle.cms.test.NewSignedDataTest.BC ) . build ( org.bouncycastle.cms.test.NewSignedDataTest._origCert ) ; } }

Target:
public org.bouncycastle.cms.SignerInformationVerifier get ( org.bouncycastle.cms.SignerId signerId ) throws org.bouncycastle.operator.OperatorCreationException { if ( org.bouncycastle.cms.test.NewSignedDataTest._signCert.getSerialNumber ( ) . equals ( signerId.getSerialNumber ( ) ) ) { return new org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoVerifierBuilder ( ) . setProvider ( org.bouncycastle.cms.test.NewSignedDataTest.BC ) . build ( org.bouncycastle.cms.test.NewSignedDataTest._signCert ) ; } else if ( org.bouncycastle.cms.test.NewSignedDataTest._origCert.getSerialNumber ( ) . equals ( signerId.getSerialNumber ( ) ) ) { return new org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoVerifierBuilder ( ) . setProvider ( org.bouncycastle.cms.test.NewSignedDataTest.BC ) . build ( org.bouncycastle.cms.test.NewSignedDataTest._origCert ) ; } else { throw new java.lang.IllegalStateException ( "no signerID matched" ) ; } }
Source:
boolean stopVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "stopVoiceRecognition API not available" ) ; return false ; }

Target:
boolean stopVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfpclient.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; com.android.bluetooth.hfpclient.HeadsetClientStateMachine sm = getStateMachine ( device ) ; if ( sm == null ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , ( "Cannot allocate SM for device " + device ) ) ; return false ; } int connectionState = sm.getConnectionState ( device ) ; if ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { return false ; } sm.sendMessage ( HeadsetClientStateMachine.VOICE_RECOGNITION_STOP ) ; return true ; }
Source:
public void visitProgramMethod ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramMethod programMethod ) { hasSideEffects = ( ! ( proguard.optimize.info.NoSideEffectMethodMarker.hasNoSideEffects ( programMethod ) ) ) && ( ( proguard.optimize.info.SideEffectMethodMarker.hasSideEffects ( programMethod ) ) || ( ( ! ( programClass.equals ( referencingClass ) ) ) && ( ! ( initializedSuperClasses ( referencingClass ) . containsAll ( initializedSuperClasses ( programClass ) ) ) ) ) ) ; }

Target:
public void visitProgramMethod ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramMethod programMethod ) { hasSideEffects = ( ! ( proguard.optimize.info.NoSideEffectMethodMarker.hasNoSideEffects ( programMethod ) ) ) && ( ( proguard.optimize.info.SideEffectMethodMarker.hasSideEffects ( programMethod ) ) || ( mayHaveSideEffects ( referencingClass , programClass ) ) ) ; }