auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void setNetworkRestriction ( ) { mRestrictedNetworkOverride = false ; boolean noRestrictedRequests = true ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.keySet ( ) ) { noRestrictedRequests &= apnContext.hasNoRestrictedRequests ( true ) ; } if ( noRestrictedRequests ) { return ; } if ( ! ( mApnSetting.isMetered ( mPhone.getContext ( ) , mPhone.getSubId ( ) , mPhone.getServiceState ( ) . getDataRoaming ( ) ) ) ) { return ; } mRestrictedNetworkOverride = ( mDct.isDataEnabled ( true ) ) == false ; }

Target:
private void setNetworkRestriction ( ) { mRestrictedNetworkOverride = false ; boolean noRestrictedRequests = true ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.keySet ( ) ) { noRestrictedRequests &= apnContext.hasNoRestrictedRequests ( true ) ; } if ( noRestrictedRequests ) { return ; } if ( ! ( mApnSetting.isMetered ( mPhone.getContext ( ) , mPhone.getSubId ( ) , mPhone.getServiceState ( ) . getDataRoaming ( ) ) ) ) { return ; } mRestrictedNetworkOverride = ! ( mDct.isDataEnabled ( ) ) ; }
Source:
public void testSendTextWithOutDesAddr ( ) { mCdmaSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false ) ; verify ( mSimulatedCommandsVerifier , times ( 0 ) ) . sendImsGsmSms ( anyString ( ) , anyString ( ) , anyInt ( ) , anyInt ( ) , any ( android.os.Message.class ) ) ; }

Target:
public void testSendTextWithOutDesAddr ( ) { mCdmaSmsDispatcher.sendText ( null , "222" , com.android.internal.telephony.cdma.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; verify ( mSimulatedCommandsVerifier , times ( 0 ) ) . sendImsGsmSms ( anyString ( ) , anyString ( ) , anyInt ( ) , anyInt ( ) , any ( android.os.Message.class ) ) ; }
Source:
public static boolean showOutgoingVideo ( android.content.Context context , int videoState , int sessionModificationState ) { if ( ! ( com.android.incallui.videotech.utils.VideoUtils.hasCameraPermissionAndShownPrivacyToast ( context ) ) ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.showOutgoingVideo" , "Camera permission is disabled by user." ) ; return false ; } if ( ! ( com.android.dialer.compat.CompatUtils.isVideoCompatible ( ) ) ) { return false ; } return ( android.telecom.VideoProfile.isTransmissionEnabled ( videoState ) ) || ( com.android.incallui.VideoCallPresenter.isVideoUpgrade ( sessionModificationState ) ) ; }

Target:
private static boolean showOutgoingVideo ( android.content.Context context , int videoState , int sessionModificationState ) { if ( ! ( com.android.incallui.videotech.utils.VideoUtils.hasCameraPermissionAndShownPrivacyToast ( context ) ) ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.showOutgoingVideo" , "Camera permission is disabled by user." ) ; return false ; } return ( android.telecom.VideoProfile.isTransmissionEnabled ( videoState ) ) || ( com.android.incallui.VideoCallPresenter.isVideoUpgrade ( sessionModificationState ) ) ; }
Source:
private void addThrow ( @ org.jetbrains.annotations.NonNls java.lang.String throwableClass , @ org.jetbrains.annotations.NonNls java.lang.String ctorSignature , java.lang.String message ) { mv.visitTypeInsn ( Opcodes.NEW , throwableClass ) ; mv.visitInsn ( Opcodes.DUP ) ; mv.visitLdcInsn ( message ) ; mv.visitMethodInsn ( Opcodes.INVOKESPECIAL , throwableClass , "<init>" , ctorSignature ) ; mv.visitInsn ( Opcodes.ATHROW ) ; }

Target:
private void addThrow ( @ org.jetbrains.annotations.NonNls java.lang.String throwableClass , @ org.jetbrains.annotations.NonNls java.lang.String ctorSignature , java.lang.String message ) { mv.visitTypeInsn ( Opcodes.NEW , throwableClass ) ; mv.visitInsn ( Opcodes.DUP ) ; mv.visitLdcInsn ( message ) ; mv.visitMethodInsn ( Opcodes.INVOKESPECIAL , throwableClass , "<init>" , ctorSignature , false ) ; mv.visitInsn ( Opcodes.ATHROW ) ; }
Source:
static void getUsage ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass , java.lang.StringBuilder usage ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( optionsClass ) ; java.util.List < java.lang.reflect.Field > optionFields = new java.util.ArrayList ( data.getFieldsForClass ( optionsClass ) ) ; java.util.Collections.sort ( optionFields , com.google.devtools.common.options.OptionsUsage.BY_NAME ) ; for ( java.lang.reflect.Field optionField : optionFields ) { com.google.devtools.common.options.OptionsUsage.getUsage ( optionField , usage , OptionsParser.HelpVerbosity.LONG , null ) ; } }

Target:
static void getUsage ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass , java.lang.StringBuilder usage ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( optionsClass ) ; java.util.List < java.lang.reflect.Field > optionFields = new java.util.ArrayList ( data.getFieldsForClass ( optionsClass ) ) ; optionFields.sort ( com.google.devtools.common.options.OptionsUsage.BY_NAME ) ; for ( java.lang.reflect.Field optionField : optionFields ) { com.google.devtools.common.options.OptionsUsage.getUsage ( optionField , usage , OptionsParser.HelpVerbosity.LONG , null ) ; } }
Source:
static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.InputFileProvider > toRegisteredInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { builder.add ( closer.register ( com.google.devtools.build.android.desugar.Desugar.toInputFileProvider ( path ) ) ) ; } return builder.build ( ) ; }

Target:
private static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.InputFileProvider > toRegisteredInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { builder.add ( closer.register ( com.google.devtools.build.android.desugar.Desugar.toInputFileProvider ( path ) ) ) ; } return builder.build ( ) ; }
Source:
public int indexOf ( com.android.jack.dx.rop.cst.CstString string ) { if ( string == null ) { throw new java.lang.NullPointerException ( "string == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.StringIdItem s = strings.get ( string ) ; if ( s == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return s.getIndex ( ) ; }

Target:
public int indexOf ( com.android.jack.dx.rop.cst.CstString string ) { assert string != null ; throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.StringIdItem s = strings.get ( string ) ; if ( s == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return s.getIndex ( ) ; }
Source:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; ( mRssiPollToken ) ++ ; if ( mEnableRssiPolling ) { sendMessage ( obtainMessage ( android.net.wifi.WifiStateMachine.CMD_RSSI_POLL , mRssiPollToken , 0 ) ) ; } }

Target:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; }
Source:
public static int computeSampleSize ( float scale ) { com.android.gallery3d.common.Utils.assertTrue ( ( scale > 0 ) ) ; int initialSize = java.lang.Math.max ( 1 , ( ( int ) ( android.util.FloatMath.ceil ( ( 1 / scale ) ) ) ) ) ; return initialSize <= 8 ? com.android.gallery3d.common.Utils.nextPowerOf2 ( initialSize ) : ( ( initialSize + 7 ) / 8 ) * 8 ; }

Target:
public static int computeSampleSize ( float scale ) { com.android.gallery3d.common.Utils.assertTrue ( ( scale > 0 ) ) ; int initialSize = java.lang.Math.max ( 1 , ( ( int ) ( java.lang.Math.ceil ( ( 1 / scale ) ) ) ) ) ; return initialSize <= 8 ? com.android.gallery3d.common.Utils.nextPowerOf2 ( initialSize ) : ( ( initialSize + 7 ) / 8 ) * 8 ; }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( android.net.EthernetManager.MSG_AVAILABILITY_CHANGED ) ) { boolean isAvailable = ( msg.arg1 ) == 1 ; for ( android.net.EthernetManager.Listener listener : mListeners ) { listener.onAvailabilityChanged ( isAvailable ) ; } } }

Target:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( android.net.EthernetManager.MSG_AVAILABILITY_CHANGED ) ) { boolean isAvailable = ( msg.arg1 ) == 1 ; for ( android.net.EthernetManager.Listener listener : mListeners ) { listener.onAvailabilityChanged ( ( ( java.lang.String ) ( msg.obj ) ) , isAvailable ) ; } } }
Source:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.lang.String ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = str ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , str ) ; } mRil.processResponseDone ( rr , responseInfo , str ) ; } }
Source:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) throws java.lang.Exception { if ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } com.android.jack.Jack.getSession ( ) . getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) { if ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } session.getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }
Source:
private final void updateSyncState ( android.content.Intent intent ) { if ( ! ( com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.SHOW_SYNC_ICON ) ) return ; boolean isActive = intent.getBooleanExtra ( "active" , false ) ; boolean isFailing = intent.getBooleanExtra ( "failing" , false ) ; mService.setIconVisibility ( "sync_active" , isActive ) ; }

Target:
private final void updateSyncState ( android.content.Intent intent ) { if ( ! ( com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.SHOW_SYNC_ICON ) ) return ; boolean isActive = intent.getBooleanExtra ( "active" , false ) ; mService.setIconVisibility ( "sync_active" , isActive ) ; }
Source:
public static final org.bouncycastle.crypto.Digest createHash ( short hashAlgorithm ) { switch ( hashAlgorithm ) { case HashAlgorithm.md5 : return new org.bouncycastle.crypto.digests.MD5Digest ( ) ; case HashAlgorithm.sha1 : return new org.bouncycastle.crypto.digests.SHA1Digest ( ) ; case HashAlgorithm.sha224 : return new org.bouncycastle.crypto.digests.SHA224Digest ( ) ; case HashAlgorithm.sha256 : return new org.bouncycastle.crypto.digests.SHA256Digest ( ) ; case HashAlgorithm.sha384 : return new org.bouncycastle.crypto.digests.SHA384Digest ( ) ; case HashAlgorithm.sha512 : return new org.bouncycastle.crypto.digests.SHA512Digest ( ) ; default : throw new java.lang.IllegalArgumentException ( "unknown HashAlgorithm" ) ; } }

Target:
public static org.bouncycastle.crypto.Digest createHash ( short hashAlgorithm ) { switch ( hashAlgorithm ) { case HashAlgorithm.md5 : return new org.bouncycastle.crypto.digests.MD5Digest ( ) ; case HashAlgorithm.sha1 : return new org.bouncycastle.crypto.digests.SHA1Digest ( ) ; case HashAlgorithm.sha224 : return new org.bouncycastle.crypto.digests.SHA224Digest ( ) ; case HashAlgorithm.sha256 : return new org.bouncycastle.crypto.digests.SHA256Digest ( ) ; case HashAlgorithm.sha384 : return new org.bouncycastle.crypto.digests.SHA384Digest ( ) ; case HashAlgorithm.sha512 : return new org.bouncycastle.crypto.digests.SHA512Digest ( ) ; default : throw new java.lang.IllegalArgumentException ( "unknown HashAlgorithm" ) ; } }
Source:
synchronized void setBluetoothStateInt ( int state ) { mState = state ; if ( state == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { if ( ( mProfileManager ) != null ) { mProfileManager.setBluetoothStateOn ( ) ; } } }

Target:
void setBluetoothStateInt ( int state ) { synchronized ( this ) { if ( ( mState ) == state ) { return ; } mState = state ; } if ( state == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { if ( ( mProfileManager ) != null ) { mProfileManager.setBluetoothStateOn ( ) ; } } }
Source:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityWcdma ci = new android.telephony.CellIdentityWcdma ( com.android.internal.telephony.CellIdentityWcdmaTest.LAC , com.android.internal.telephony.CellIdentityWcdmaTest.CID , com.android.internal.telephony.CellIdentityWcdmaTest.PSC , com.android.internal.telephony.CellIdentityWcdmaTest.UARFCN , com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_SHORT ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC , ci.getMcc ( ) ) ; org.junit.Assert.assertEquals ( 61 , ci.getMnc ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , ci.getMccStr ( ) ) ; org.junit.Assert.assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; org.junit.Assert.assertEquals ( ( ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }

Target:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityWcdma ci = new android.telephony.CellIdentityWcdma ( com.android.internal.telephony.CellIdentityWcdmaTest.LAC , com.android.internal.telephony.CellIdentityWcdmaTest.CID , com.android.internal.telephony.CellIdentityWcdmaTest.PSC , com.android.internal.telephony.CellIdentityWcdmaTest.UARFCN , com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityWcdmaTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityWcdmaTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }
Source:
private void logNudFailed ( android.net.LinkProperties.ProvisioningChange delta ) { long duration = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mLastProbeTimeMs ) ; boolean isFromProbe = duration < ( android.net.ip.IpReachabilityMonitor.getProbeWakeLockDuration ( ) ) ; boolean isProvisioningLost = delta == ( android.net.LinkProperties.ProvisioningChange.LOST_PROVISIONING ) ; int eventType = android.net.metrics.IpReachabilityEvent.nudFailureEventType ( isFromProbe , isProvisioningLost ) ; mMetricsLog.log ( new android.net.metrics.IpReachabilityEvent ( mInterfaceName , eventType ) ) ; }

Target:
private void logNudFailed ( android.net.LinkProperties.ProvisioningChange delta ) { long duration = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mLastProbeTimeMs ) ; boolean isFromProbe = duration < ( android.net.ip.IpReachabilityMonitor.getProbeWakeLockDuration ( ) ) ; boolean isProvisioningLost = delta == ( android.net.LinkProperties.ProvisioningChange.LOST_PROVISIONING ) ; int eventType = android.net.metrics.IpReachabilityEvent.nudFailureEventType ( isFromProbe , isProvisioningLost ) ; mMetricsLog.log ( mInterfaceName , new android.net.metrics.IpReachabilityEvent ( eventType ) ) ; }
Source:
public com.android.ims.ImsMultiEndpoint getMultiEndpointInterface ( int serviceId ) throws com.android.ims.ImsException { if ( ( ( mMultiEndpoint ) == null ) || ( ! ( mImsServiceProxy.isBinderAlive ( ) ) ) ) { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsMultiEndpoint iImsMultiEndpoint = mImsServiceProxy.getMultiEndpointInterface ( ) ; if ( iImsMultiEndpoint == null ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , ImsReasonInfo.CODE_MULTIENDPOINT_NOT_SUPPORTED ) ; } mMultiEndpoint = new com.android.ims.ImsMultiEndpoint ( iImsMultiEndpoint ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } } return mMultiEndpoint ; }

Target:
public com.android.ims.ImsMultiEndpoint getMultiEndpointInterface ( int serviceId ) throws com.android.ims.ImsException { if ( ( ( mMultiEndpoint ) != null ) && ( mMultiEndpoint.isBinderAlive ( ) ) ) { return mMultiEndpoint ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsMultiEndpoint iImsMultiEndpoint = mImsServiceProxy.getMultiEndpointInterface ( ) ; if ( iImsMultiEndpoint == null ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , ImsReasonInfo.CODE_MULTIENDPOINT_NOT_SUPPORTED ) ; } mMultiEndpoint = new com.android.ims.ImsMultiEndpoint ( iImsMultiEndpoint ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mMultiEndpoint ; }
Source:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( target , "testSimple2" , vogar.target.JUnitRunnerTest.EMPTY_ARGS ) ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , 0 , tests ) ; runner.run ( null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( target , "testSimple2" , vogar.target.JUnitRunnerTest.EMPTY_ARGS ) ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , 0 , tests ) ; runner.run ( null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
static void getUsage ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass , java.lang.StringBuilder usage ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( optionsClass ) ; java.util.List < java.lang.reflect.Field > optionFields = new java.util.ArrayList ( data.getFieldsForClass ( optionsClass ) ) ; optionFields.sort ( com.google.devtools.common.options.OptionsUsage.BY_NAME ) ; for ( java.lang.reflect.Field optionField : optionFields ) { com.google.devtools.common.options.OptionsUsage.getUsage ( optionField , usage , OptionsParser.HelpVerbosity.LONG , null ) ; } }

Target:
static void getUsage ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass , java.lang.StringBuilder usage ) { com.google.devtools.common.options.OptionsData data = com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( optionsClass ) ; java.util.List < java.lang.reflect.Field > optionFields = new java.util.ArrayList ( data.getFieldsForClass ( optionsClass ) ) ; optionFields.sort ( com.google.devtools.common.options.OptionsUsage.BY_NAME ) ; for ( java.lang.reflect.Field optionField : optionFields ) { com.google.devtools.common.options.OptionsUsage.getUsage ( optionField , usage , OptionsParser.HelpVerbosity.LONG , data ) ; } }
Source:
public java.lang.String startWpsPinDisplay ( java.lang.String bssid ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.startWpsPinDisplay ( bssid ) ; } else { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommand ( "WPS_PIN any" ) ; } else { return doStringCommand ( ( "WPS_PIN " + bssid ) ) ; } } }

Target:
public java.lang.String startWpsPinDisplay ( java.lang.String bssid ) { return mSupplicantStaIfaceHal.startWpsPinDisplay ( bssid ) ; }
Source:
public void onReceivedLoginRequest ( android.webkit.WebView view , java.lang.String realm , java.lang.String account , java.lang.String args ) { super . onReceivedLoginRequest ( view , realm , account , args ) ; mOnReceivedLoginRequest = true ; mOnReceivedLoginRealm = realm ; mOnReceivedLoginAccount = account ; mOnReceivedLoginArgs = args ; HEAD ( 17 ) ; android.webkit.cts.cfc7 Merge ; }

Target:
public void onReceivedLoginRequest ( android.webkit.WebView view , java.lang.String realm , java.lang.String account , java.lang.String args ) { super . onReceivedLoginRequest ( view , realm , account , args ) ; mOnReceivedLoginRequest = true ; mOnReceivedLoginRealm = realm ; mOnReceivedLoginAccount = account ; mOnReceivedLoginArgs = args ; }
Source:
public static void releaseContent ( int contentId ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.RefCountingStorage contentStorage = com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentStorage ( ) ; if ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.weHaveContentHashes ) { contentStorage.releaseRecord ( contentId , false ) ; } else { contentStorage.releaseRecord ( contentId ) ; } } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void releaseContent ( int contentId ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.RefCountingStorage contentStorage = com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getContentStorage ( ) ; if ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.weHaveContentHashes ) { contentStorage.releaseRecord ( contentId , false ) ; } else { contentStorage.releaseRecord ( contentId ) ; } } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
void releaseFD ( ) { synchronized ( fdLock ) { ( fdUseCount ) -- ; if ( ( fdUseCount ) == ( - 1 ) ) { if ( ( fd ) != null ) { try { socketClose ( ) ; } catch ( java.io.IOException e ) { } finally { fd = null ; } } } } }

Target:
void releaseFD ( ) { synchronized ( fdLock ) { ( fdUseCount ) -- ; if ( ( fdUseCount ) == ( - 1 ) ) { if ( ( fd ) != null ) { try { socketClose ( ) ; } catch ( java.io.IOException e ) { } } } } }
Source:
public void bluetoothSocketConnBeginAcceptThreadUuid ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "uuid" ) java.lang.String uuid , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "timeout" , description = "How long to wait for a new connection, 0 is wait for ever" ) java.lang.Integer timeout ) throws java.io.IOException { com.googlecode.android_scripting.Log.d ( ( "bluetoothSocketConnBeginAcceptThreadUuid: uuid=" + uuid ) ) ; android.bluetooth.BluetoothServerSocket mServerSocket ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread acceptThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread ( uuid , timeout.intValue ( ) ) ; acceptThread.start ( ) ; mAcceptThread = acceptThread ; }

Target:
public void bluetoothSocketConnBeginAcceptThreadUuid ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "uuid" ) java.lang.String uuid , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "timeout" , description = "How long to wait for a new connection, 0 is wait for ever" ) java.lang.Integer timeout ) throws java.io.IOException { com.googlecode.android_scripting.Log.d ( ( "bluetoothSocketConnBeginAcceptThreadUuid: uuid=" + uuid ) ) ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread acceptThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread ( uuid , timeout.intValue ( ) ) ; acceptThread.start ( ) ; mAcceptThread = acceptThread ; }