auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.net.Socket accept ( ) throws java.io.IOException { if ( ! ( sslParameters.getUseClientMode ( ) ) ) { checkEnabledCipherSuites ( ) ; } org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl socket = new org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ( sslParameters , enabledProtocols.clone ( ) , enabledCipherSuites.clone ( ) ) ; implAccept ( socket ) ; return socket ; }

Target:
public java.net.Socket accept ( ) throws java.io.IOException { if ( ! ( sslParameters.getUseClientMode ( ) ) ) { checkEnabledCipherSuites ( ) ; } org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl socket = new org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ( sslParameters , enabledProtocols.clone ( ) , enabledCipherSuites.clone ( ) ) ; socket.setChannelIdEnabled ( channelIdEnabled ) ; implAccept ( socket ) ; return socket ; }
Source:
private void addDockModeToBundles ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > addConfig ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > list = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle bundle : addConfig ) { int index = 0 ; for ( com.android.resources.DockMode mode : com.android.resources.DockMode.values ( ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle b = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle ( bundle ) ; b.config.setDockModeQualifier ( new com.android.ide.common.resources.configuration.DockModeQualifier ( mode ) ) ; b.dockModeIndex = index ++ ; list.add ( b ) ; } } addConfig.clear ( ) ; addConfig.addAll ( list ) ; }

Target:
private void addDockModeToBundles ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > addConfig ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > list = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle bundle : addConfig ) { int index = 0 ; for ( com.android.resources.UiMode mode : com.android.resources.UiMode.values ( ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle b = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.ConfigBundle ( bundle ) ; b.config.setUiModeQualifier ( new com.android.ide.common.resources.configuration.UiModeQualifier ( mode ) ) ; b.dockModeIndex = index ++ ; list.add ( b ) ; } } addConfig.clear ( ) ; addConfig.addAll ( list ) ; }
Source:
public void testStateTransition_DisconnectedToConnecting_StackConnected ( ) { mHeadsetStateMachine.sendMessage ( HeadsetStateMachine.STACK_EVENT , new com.android.bluetooth.hfp.HeadsetStackEvent ( HeadsetStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED , HeadsetHalConstants.CONNECTION_STATE_CONNECTED , mTestDevice ) ) ; verify ( mHeadsetService , timeout ( com.android.bluetooth.hfp.HeadsetStateMachineTest.ASYNC_CALL_TIMEOUT_MILLIS ) ) . sendBroadcastAsUser ( mIntentArgument.capture ( ) , eq ( UserHandle.ALL ) , eq ( HeadsetService.BLUETOOTH_PERM ) ) ; com.android.bluetooth.hfp.HeadsetStateMachineTest.verifyConnectionStateBroadcast ( mTestDevice , BluetoothProfile.STATE_CONNECTING , BluetoothProfile.STATE_DISCONNECTED , mIntentArgument.getValue ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Connecting.class ) ) ; }

Target:
public void testStateTransition_DisconnectedToConnecting_StackConnected ( ) { mHeadsetStateMachine.sendMessage ( HeadsetStateMachine.STACK_EVENT , new com.android.bluetooth.hfp.HeadsetStackEvent ( HeadsetStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED , HeadsetHalConstants.CONNECTION_STATE_CONNECTED , mTestDevice ) ) ; verify ( mHeadsetService , timeout ( com.android.bluetooth.hfp.HeadsetStateMachineTest.ASYNC_CALL_TIMEOUT_MILLIS ) ) . sendBroadcastAsUser ( mIntentArgument.capture ( ) , eq ( UserHandle.ALL ) , eq ( HeadsetService.BLUETOOTH_PERM ) ) ; com.android.bluetooth.hfp.HeadsetTestUtils.verifyConnectionStateBroadcast ( mTestDevice , BluetoothProfile.STATE_CONNECTING , BluetoothProfile.STATE_DISCONNECTED , mIntentArgument.getValue ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Connecting.class ) ) ; }
Source:
void setUp ( ) { createChannels ( ) ; sendNotifications ( com.android.cts.verifier.notifications.AttentionManagementVerifierActivity.MODE_URI , false , false ) ; status = READY ; delay ( ) ; }

Target:
void setUp ( ) { mNm.setInterruptionFilter ( NotificationManager.INTERRUPTION_FILTER_PRIORITY ) ; android.app.NotificationManager.Policy policy = mNm.getNotificationPolicy ( ) ; policy = new android.app.NotificationManager.Policy ( ( ( policy.priorityCategories ) | ( NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES ) ) , policy.priorityCallSenders , NotificationManager.Policy.PRIORITY_SENDERS_STARRED ) ; mNm.setNotificationPolicy ( policy ) ; createChannels ( ) ; sendNotifications ( com.android.cts.verifier.notifications.AttentionManagementVerifierActivity.MODE_URI , false , false ) ; status = READY ; }
Source:
public void testCheckAccessLevel_hasReadHistoryPermission ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( true ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( true ) ; assertEquals ( NetworkStatsAccess.Level.USER , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }

Target:
public void testCheckAccessLevel_hasReadHistoryPermission ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( true ) ; setHasAppOpsPermission ( AppOpsManager.MODE_DEFAULT , false ) ; setHasReadHistoryPermission ( true ) ; org.junit.Assert.assertEquals ( NetworkStatsAccess.Level.DEVICESUMMARY , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }
Source:
public static java.lang.String getUsernameFromUriNumber ( java.lang.String number ) { int delimiterIndex = number.indexOf ( '@' ) ; if ( delimiterIndex < 0 ) { delimiterIndex = number.indexOf ( "%40" ) ; } if ( delimiterIndex < 0 ) { android.util.Log.w ( android.telephony.PhoneNumberUtils.LOG_TAG , ( ( "getUsernameFromUriNumber: no delimiter found in SIP addr '" + number ) + "'" ) ) ; delimiterIndex = number.length ( ) ; } return number.substring ( 0 , delimiterIndex ) ; }

Target:
public static java.lang.String getUsernameFromUriNumber ( java.lang.String number ) { int delimiterIndex = number.indexOf ( '@' ) ; if ( delimiterIndex < 0 ) { delimiterIndex = number.indexOf ( "%40" ) ; } if ( delimiterIndex < 0 ) { android.telephony.Rlog.w ( android.telephony.PhoneNumberUtils.LOG_TAG , ( ( "getUsernameFromUriNumber: no delimiter found in SIP addr '" + number ) + "'" ) ) ; delimiterIndex = number.length ( ) ; } return number.substring ( 0 , delimiterIndex ) ; }
Source:
public boolean onPackageChanged ( java.lang.String packageName , int uid , java.lang.String [ ] components ) { onPackageModified ( packageName ) ; return true ; }

Target:
private void removeTasksByPackageNameLocked ( java.lang.String packageName , int userId ) { for ( int i = ( mRecentTasks.size ( ) ) - 1 ; i >= 0 ; i -- ) { com.android.server.am.TaskRecord tr = mRecentTasks.get ( i ) ; if ( ( tr.userId ) != userId ) continue ; android.content.ComponentName cn = tr.intent.getComponent ( ) ; if ( ( cn != null ) && ( cn.getPackageName ( ) . equals ( packageName ) ) ) { removeTaskByIdLocked ( tr.taskId , true ) ; } } }
Source:
private static com.ibm.icu.text.CompactDecimalDataCache.Data loadStyle ( com.ibm.icu.impl.ICUResourceBundle r , com.ibm.icu.util.ULocale locale , java.lang.String style ) { int size = r.getSize ( ) ; com.ibm.icu.text.CompactDecimalDataCache.Data result = new com.ibm.icu.text.CompactDecimalDataCache.Data ( new long [ com.ibm.icu.text.CompactDecimalDataCache.MAX_DIGITS ] , new java.util.HashMap < java.lang.String , com.ibm.icu.text.DecimalFormat [ ] > ( ) ) ; for ( int i = 0 ; i < size ; i ++ ) { com.ibm.icu.text.CompactDecimalDataCache.populateData ( r.get ( i ) , locale , style , result ) ; } com.ibm.icu.text.CompactDecimalDataCache.fillInMissing ( result ) ; return result ; }

Target:
private static com.ibm.icu.text.CompactDecimalDataCache.DataBundle createEmpty ( ) { return new com.ibm.icu.text.CompactDecimalDataCache.DataBundle ( new com.ibm.icu.text.CompactDecimalDataCache.Data ( new long [ com.ibm.icu.text.CompactDecimalDataCache.MAX_DIGITS ] , new java.util.HashMap < java.lang.String , com.ibm.icu.text.DecimalFormat [ ] > ( ) ) , new com.ibm.icu.text.CompactDecimalDataCache.Data ( new long [ com.ibm.icu.text.CompactDecimalDataCache.MAX_DIGITS ] , new java.util.HashMap < java.lang.String , com.ibm.icu.text.DecimalFormat [ ] > ( ) ) , new com.ibm.icu.text.CompactDecimalDataCache.Data ( new long [ com.ibm.icu.text.CompactDecimalDataCache.MAX_DIGITS ] , new java.util.HashMap < java.lang.String , com.ibm.icu.text.DecimalFormat [ ] > ( ) ) ) ; }
Source:
public void binderDied ( ) { foregroundTokenDied ( this ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }
Source:
public boolean isRoot ( ) { if ( ( ( ( mParent ) != null ) && ( mParent.mName.endsWith ( com.android.ide.common.layout.LayoutConstants.GESTURE_OVERLAY_VIEW ) ) ) && ( mParent.isRoot ( ) ) ) { return true ; } return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }

Target:
public boolean isRoot ( ) { if ( ( ( ( ( mParent ) != null ) && ( mParent.mName.endsWith ( com.android.ide.common.layout.LayoutConstants.GESTURE_OVERLAY_VIEW ) ) ) && ( mParent.isRoot ( ) ) ) && ( ( mParent.mChildren.size ( ) ) == 1 ) ) { return true ; } return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }
Source:
private void reliableWrite ( ) { mBluetoothGatt.beginReliableWrite ( ) ; sleep ( 1000 ) ; writeCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.WRITE_VALUE ) ; sleep ( 1000 ) ; if ( ! ( mBluetoothGatt.executeReliableWrite ( ) ) ) { android.util.Log.w ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "reliable write failed" ) ; } sleep ( 1000 ) ; mBluetoothGatt.abortReliableWrite ( ) ; }

Target:
private void reliableWrite ( ) { mBluetoothGatt.beginReliableWrite ( ) ; sleep ( 1000 ) ; mBluetoothGatt.abortReliableWrite ( ) ; sleep ( 2000 ) ; mBluetoothGatt.beginReliableWrite ( ) ; sleep ( 1000 ) ; if ( com.android.cts.verifier.bluetooth.BleClientService.BLE_CLIENT_ACTION_RELIABLE_WRITE.equals ( mCurrentAction ) ) { mExecReliableWrite = com.android.cts.verifier.bluetooth.BleClientService.ReliableWriteState.RELIABLE_WRITE_WRITE_1ST_DATA ; writeCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID , com.android.cts.verifier.bluetooth.BleClientService.WRITE_VALUE_507BYTES_FOR_RELIABLE_WRITE ) ; } else { mExecReliableWrite = com.android.cts.verifier.bluetooth.BleClientService.ReliableWriteState.RELIABLE_WRITE_BAD_RESP ; writeCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID , com.android.cts.verifier.bluetooth.BleClientService.WRITE_VALUE_BAD_RESP ) ; } }
Source:
public com.android.ide.common.api.Margins getInsets ( java.lang.String fqcn ) { if ( com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.INSETS_SUPPORTED ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite configComposite = mEditorDelegate.getGraphicalEditor ( ) . getConfigurationComposite ( ) ; java.lang.String theme = configComposite.getTheme ( ) ; com.android.resources.Density density = configComposite.getDensity ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.getInsets ( fqcn , density , theme ) ; } else { return null ; } }

Target:
public com.android.ide.common.api.Margins getInsets ( java.lang.String fqcn ) { if ( com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.INSETS_SUPPORTED ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite configComposite = mEditorDelegate.getGraphicalEditor ( ) . getConfigurationComposite ( ) ; java.lang.String theme = configComposite.getThemeName ( ) ; com.android.resources.Density density = configComposite.getDensity ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.getInsets ( fqcn , density , theme ) ; } else { return null ; } }
Source:
private void onCreateImsFeatureInternal ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { featureMap = new android.util.SparseArray ( ) ; mFeatures.put ( slotId , featureMap ) ; } android.telephony.ims.feature.ImsFeature f = makeImsFeature ( slotId , featureType ) ; if ( f != null ) { f.setImsFeatureStatusCallback ( c ) ; featureMap.put ( featureType , f ) ; } }

Target:
private void onCreateImsFeatureInternal ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { featureMap = new android.util.SparseArray ( ) ; mFeatures.put ( slotId , featureMap ) ; } android.telephony.ims.feature.ImsFeature f = makeImsFeature ( slotId , featureType ) ; if ( f != null ) { f.setContext ( this ) ; f.setSlotId ( slotId ) ; f.setImsFeatureStatusCallback ( c ) ; featureMap.put ( featureType , f ) ; } }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need RSA public key" ) ; } try { int result = org.conscrypt.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getNativeRef ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { return false ; } finally { resetContext ( ) ; } }

Target:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { if ( ( key ) == null ) { throw new java.security.SignatureException ( "Need RSA or EC public key" ) ; } try { int result = org.conscrypt.NativeCrypto.EVP_VerifyFinal ( ctx , sigBytes , 0 , sigBytes.length , key.getNativeRef ( ) ) ; return result == 1 ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { resetContext ( ) ; } }
Source:
public static < T > void assertThat ( java.lang.String reason , T actual , org.hamcrest.Matcher < T > matcher ) { if ( ! ( matcher.matches ( actual ) ) ) { org.hamcrest.Description description = new org.hamcrest.StringDescription ( ) ; description.appendText ( reason ) ; description.appendText ( "\nExpected: " ) ; description.appendDescriptionOf ( matcher ) ; description.appendText ( "\n got: " ) ; description.appendValue ( actual ) ; description.appendText ( "\n" ) ; throw new java.lang.AssertionError ( description.toString ( ) ) ; } }

Target:
public static void assertNotEquals ( java.lang.String message , float unexpected , float actual , float delta ) { if ( ! ( org.junit.Assert.floatIsDifferent ( unexpected , actual , delta ) ) ) { org.junit.Assert.failEquals ( message , java.lang.Float.valueOf ( actual ) ) ; } }
Source:
private void sendConnectTimeoutMessage ( ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "sendConnectTimeoutMessage()" ) ; if ( ( mSessionStatusHandler ) != null ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.USER_TIMEOUT ) ; msg.sendToTarget ( ) ; } }

Target:
public void sendStartListenerMessage ( int masId ) { if ( ( ( mSessionStatusHandler ) != null ) && ( ! ( mSessionStatusHandler.hasMessages ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER ) ) ) ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER , masId , 0 ) ; mSessionStatusHandler.sendMessageDelayed ( msg , 20 ) ; } else if ( ( mSessionStatusHandler ) != null ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.w ( com.android.bluetooth.map.BluetoothMapService.TAG , "mSessionStatusHandler START_LISTENER message already in Queue" ) ; } }
Source:
public void cannotRemoveNetworkConfigWhenWifiDisabed ( ) { boolean result ; mLooper.startAutoDispatch ( ) ; result = mWsm.syncRemoveNetwork ( mWsmAsyncChannel , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertFalse ( result ) ; verify ( mWifiConfigManager , never ( ) ) . removeNetwork ( anyInt ( ) , anyInt ( ) ) ; }

Target:
public void canRemoveNetworkConfigWhenWifiDisabed ( ) { boolean result ; when ( mWifiConfigManager.removeNetwork ( eq ( 0 ) , anyInt ( ) ) ) . thenReturn ( true ) ; mLooper.startAutoDispatch ( ) ; result = mWsm.syncRemoveNetwork ( mWsmAsyncChannel , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertTrue ( result ) ; verify ( mWifiConfigManager ) . removeNetwork ( anyInt ( ) , anyInt ( ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( mShouldTestTelecom ) { cleanupCalls ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( mPreviousDefaultDialer ) ) ) { android.telecom.cts.TestUtils.setDefaultDialer ( getInstrumentation ( ) , mPreviousDefaultDialer ) ; } tearDownConnectionService ( TestUtils.TEST_PHONE_ACCOUNT_HANDLE ) ; assertMockInCallServiceUnbound ( ) ; } super . tearDown ( ) ; }

Target:
public void run ( ) { mTelephonyManager.listen ( mPhoneStateListener , PhoneStateListener.LISTEN_NONE ) ; unregisteredLatch.countDown ( ) ; }
Source:
static java.lang.String retrieveAlphaId ( com.android.internal.telephony.cat.ComprehensionTlv ctlv ) throws com.android.internal.telephony.cat.ResultException { if ( ctlv != null ) { byte [ ] rawValue = ctlv.getRawValue ( ) ; int valueIndex = ctlv.getValueIndex ( ) ; int length = ctlv.getLength ( ) ; if ( length != 0 ) { try { return com.android.internal.telephony.IccUtils.adnStringFieldToString ( rawValue , valueIndex , length ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { throw new com.android.internal.telephony.cat.ResultException ( ResultCode.CMD_DATA_NOT_UNDERSTOOD ) ; } } else { return CatService.STK_DEFAULT ; } } else { return CatService.STK_DEFAULT ; } }

Target:
static java.lang.String retrieveAlphaId ( com.android.internal.telephony.cat.ComprehensionTlv ctlv ) throws com.android.internal.telephony.cat.ResultException { if ( ctlv != null ) { byte [ ] rawValue = ctlv.getRawValue ( ) ; int valueIndex = ctlv.getValueIndex ( ) ; int length = ctlv.getLength ( ) ; if ( length != 0 ) { try { return com.android.internal.telephony.uicc.IccUtils.adnStringFieldToString ( rawValue , valueIndex , length ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { throw new com.android.internal.telephony.cat.ResultException ( ResultCode.CMD_DATA_NOT_UNDERSTOOD ) ; } } else { return CatService.STK_DEFAULT ; } } else { return CatService.STK_DEFAULT ; } }
Source:
private void compileJava7Test ( @ javax.annotation.Nonnull java.lang.String name ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.java7.switches." + name ) + ".jack" ) ) ) ; }

Target:
private void compileJava7Test ( @ javax.annotation.Nonnull java.lang.String name ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) . addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.java7.switches." + name ) + ".jack" ) ) ) ; }
Source:
public void clearFormData ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearFormData ( ) ; } } ) ; return ; } mAwContents.hideAutofillPopup ( ) ; }

Target:
public void clearCache ( final boolean includeDiskFiles ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearCache ( includeDiskFiles ) ; } } ) ; return ; } mAwContents.clearCache ( includeDiskFiles ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { final java.lang.String action = intent.getAction ( ) ; if ( ( ( Intent.ACTION_TIME_TICK.equals ( action ) ) || ( Intent.ACTION_TIME_CHANGED.equals ( action ) ) ) || ( Intent.ACTION_TIMEZONE_CHANGED.equals ( action ) ) ) { updateClock ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { final java.lang.String action = intent.getAction ( ) ; if ( ( ( ( Intent.ACTION_TIME_TICK.equals ( action ) ) || ( Intent.ACTION_TIME_CHANGED.equals ( action ) ) ) || ( Intent.ACTION_TIMEZONE_CHANGED.equals ( action ) ) ) || ( Intent.ACTION_LOCALE_CHANGED.equals ( action ) ) ) { updateClock ( ) ; } }
Source:
public void setRttMode ( int mode ) { try { android.telecom.Log.startSession ( "ICA.sRM" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public void setRttMode ( java.lang.String callId , int mode ) { try { android.telecom.Log.startSession ( "ICA.sRM" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void testSortBySource_Reload ( ) { com.android.sdklib.internal.repository.SdkSource src1 = new com.android.sdklib.internal.repository.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 2 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1, updated by:MockEmptyPackage \'type1\' rev=2>\n" ) , getTree ( m , false ) ) ; m.updateStart ( ) ; assertFalse ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertFalse ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 2 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1, updated by:MockEmptyPackage \'type1\' rev=2>\n" ) , getTree ( m , false ) ) ; }

Target:
public void testSortBySource_Reload ( ) { com.android.sdklib.internal.repository.sources.SdkSource src1 = new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 2 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1, updated by:MockEmptyPackage \'type1\' rev=2>\n" ) , getTree ( m , false ) ) ; m.updateStart ( ) ; assertFalse ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertFalse ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 2 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1, updated by:MockEmptyPackage \'type1\' rev=2>\n" ) , getTree ( m , false ) ) ; }
Source:
private java.lang.String getMsvSuffix ( ) { try { java.lang.String msv = readLine ( com.android.settings.DeviceInfoSettings.FILENAME_MSV ) ; if ( ( java.lang.Long.parseLong ( msv , 16 ) ) == 0 ) { return " (ENGINEERING)" ; } } catch ( java.io.IOException ioe ) { } catch ( java.lang.NumberFormatException nfe ) { } return "" ; }

Target:
private java.lang.String getMsvSuffix ( ) { try { java.lang.String msv = com.android.settings.DeviceInfoSettings.readLine ( com.android.settings.DeviceInfoSettings.FILENAME_MSV ) ; if ( ( java.lang.Long.parseLong ( msv , 16 ) ) == 0 ) { return " (ENGINEERING)" ; } } catch ( java.io.IOException ioe ) { } catch ( java.lang.NumberFormatException nfe ) { } return "" ; }
Source:
public java.lang.invoke.MethodHandle asSpreader ( java.lang.Class < ? > arrayType , int arrayLength ) { java.lang.invoke.MethodType postSpreadType = asSpreaderChecks ( arrayType , arrayLength ) ; throw new java.lang.UnsupportedOperationException ( "asSpreader(Class<?>, int)" ) ; }

Target:
public java.lang.invoke.MethodHandle asSpreader ( java.lang.Class < ? > arrayType , int arrayLength ) { java.lang.invoke.MethodType postSpreadType = asSpreaderChecks ( arrayType , arrayLength ) ; final int targetParamCount = postSpreadType.parameterCount ( ) ; java.lang.invoke.MethodType dropArrayArgs = postSpreadType.dropParameterTypes ( ( targetParamCount - arrayLength ) , targetParamCount ) ; java.lang.invoke.MethodType adapterType = dropArrayArgs.appendParameterTypes ( arrayType ) ; return new java.lang.invoke.Transformers.Spreader ( this , adapterType , arrayLength ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "ResourceFile{" + "mFile='" ) + ( getFile ( ) ) ) + '\'' ) + ", mQualifiers='" ) + ( mQualifiers ) ) + '\'' ) + '}' ; }

Target:
void addExtraAttributes ( org.w3c.dom.Document document , org.w3c.dom.Node node , java.lang.String namespaceUri ) { com.android.ide.common.res2.NodeUtils.addAttribute ( document , node , namespaceUri , com.android.ide.common.res2.ResourceFile.ATTR_QUALIFIER , getQualifiers ( ) ) ; if ( ( getType ( ) ) == ( FileType.GENERATED_FILES ) ) { com.android.ide.common.res2.NodeUtils.addAttribute ( document , node , namespaceUri , SdkConstants.ATTR_PREPROCESSING , "true" ) ; } }
Source:
public final double getDouble ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }

Target:
public final long getLong ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } long result = this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public java.io.File findResource ( @ com.android.annotations.NonNull java.lang.String relativePath ) { java.io.File dir = com.android.tools.lint.client.api.LintClient.getLintBinDir ( ) ; if ( dir == null ) { throw new java.lang.IllegalArgumentException ( ( ( "Lint must be invoked with the System property " + ( com.android.tools.lint.client.api.LintClient.PROP_BIN_DIR ) ) + " pointing to the ANDROID_SDK tools directory" ) ) ; } java.io.File top = dir.getParentFile ( ) ; java.io.File file = new java.io.File ( top , relativePath ) ; if ( file.exists ( ) ) { return file ; } else { return null ; } }

Target:
public java.io.File findResource ( @ com.android.annotations.NonNull java.lang.String relativePath ) { java.io.File top = getSdkHome ( ) ; if ( top == null ) { throw new java.lang.IllegalArgumentException ( ( ( "Lint must be invoked with the System property " + ( com.android.tools.lint.client.api.LintClient.PROP_BIN_DIR ) ) + " pointing to the ANDROID_SDK tools directory" ) ) ; } java.io.File file = new java.io.File ( top , relativePath ) ; if ( file.exists ( ) ) { return file ; } else { return null ; } }
Source:
public void gattClientDisconnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "index" ) java.lang.Integer index ) throws java.lang.Exception { if ( ( mBluetoothGattList.get ( index ) ) != null ) { mBluetoothGattList.get ( index ) . disconnect ( ) ; } else { throw new java.lang.Exception ( ( "Invalid index input:" + index ) ) ; } }

Target:
public void gattClientDisconnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "index" ) java.lang.Integer index ) throws java.lang.Exception { if ( ( mBluetoothGattList.get ( index ) ) != null ) { mBluetoothGattList.get ( index ) . disconnect ( ) ; } else { throw new java.lang.Exception ( ( "Invalid index input: " + index ) ) ; } }
Source:
public void testWithSingleUninstalledPackage ( ) { java.lang.String testPackageName = "test.package.name" ; android.webkit.WebViewProviderInfo [ ] webviewPackages = new android.webkit.WebViewProviderInfo [ ] { new android.webkit.WebViewProviderInfo ( testPackageName , "" , true , false , null ) } ; setupWithPackages ( webviewPackages , true , 1 ) ; mTestSystemImpl.setPackageInfo ( com.android.server.webkit.WebViewUpdateServiceTest.createPackageInfo ( testPackageName , true , true , false ) ) ; mWebViewUpdateServiceImpl.prepareWebViewInSystemServer ( ) ; checkPreparationPhasesForPackage ( testPackageName , 1 ) ; }

Target:
public void testWithSingleUninstalledPackage ( ) { java.lang.String testPackageName = "test.package.name" ; android.webkit.WebViewProviderInfo [ ] webviewPackages = new android.webkit.WebViewProviderInfo [ ] { new android.webkit.WebViewProviderInfo ( testPackageName , "" , true , false , null ) } ; setupWithPackages ( webviewPackages , true , 1 ) ; mTestSystemImpl.setPackageInfo ( com.android.server.webkit.WebViewUpdateServiceTest.createPackageInfo ( testPackageName , true , true , false ) ) ; runWebViewBootPreparationOnMainSync ( ) ; checkPreparationPhasesForPackage ( testPackageName , 1 ) ; }
Source:
public void addActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { if ( ( mActiveDownstreams.indexOf ( downstream ) ) == ( - 1 ) ) { mActiveDownstreams.offer ( downstream ) ; updateIPv6TetheringInterfaces ( ) ; } }

Target:
public void removeActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { com.android.server.connectivity.tethering.IPv6TetheringCoordinator.stopIPv6TetheringOn ( downstream ) ; if ( mActiveDownstreams.remove ( findDownstream ( downstream ) ) ) { updateIPv6TetheringInterfaces ( ) ; } if ( mNotifyList.isEmpty ( ) ) { if ( ! ( mActiveDownstreams.isEmpty ( ) ) ) { android.util.Log.wtf ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.TAG , "Tethering notify list empty, IPv6 downstreams non-empty." ) ; } mNextSubnetId = 0 ; } }
Source:
public static final void check ( java.security.cert.X509Certificate [ ] chain ) throws java.security.cert.CertificateException { for ( java.security.cert.X509Certificate cert : chain ) { org.conscrypt.ChainStrengthAnalyzer.checkCert ( cert ) ; } }

Target:
public static final void check ( java.security.cert.X509Certificate [ ] chain ) throws java.security.cert.CertificateException { for ( java.security.cert.X509Certificate cert : chain ) { try { org.conscrypt.ChainStrengthAnalyzer.checkCert ( cert ) ; } catch ( java.security.cert.CertificateException e ) { throw new java.security.cert.CertificateException ( ( "Unacceptable certificate: " + ( cert.getSubjectX500Principal ( ) ) ) , e ) ; } } }
Source:
private boolean stillRunning ( ) { synchronized ( mLock ) { return mRunning ; } }

Target:
private static int getInterfaceIndex ( java.lang.String ifname ) { final java.net.NetworkInterface iface ; try { iface = java.net.NetworkInterface.getByName ( ifname ) ; } catch ( java.net.SocketException e ) { throw new java.lang.IllegalArgumentException ( ( ( "invalid interface '" + ifname ) + "': " ) , e ) ; } if ( iface == null ) { throw new java.lang.IllegalArgumentException ( ( "NetworkInterface was null for " + ifname ) ) ; } return iface.getIndex ( ) ; }
Source:
public void testDisableWifiFromSoftApModeActiveState ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchNext ( ) ; verify ( mSoftApManager ) . stop ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; org.junit.Assert.assertEquals ( "WifiDisabled" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; }
Source:
private void cancelAllNotifications ( ) { android.app.NotificationManager notificationManager = ( ( android.app.NotificationManager ) ( mPhone.getContext ( ) . getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; notificationManager.cancelAll ( ) ; }

Target:
private void cancelAllNotifications ( ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( "setNotification: cancelAllNotifications" ) ; android.app.NotificationManager notificationManager = ( ( android.app.NotificationManager ) ( mPhone.getContext ( ) . getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.PS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_REJECT_CAUSE_NOTIFICATION ) ; }
Source:
public static int retrieveFirstDayOfWeek ( java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarDataProvider.class ) ; java.lang.Integer value = pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarWeekParameterGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.FIRST_DAY_OF_WEEK ) ; return ( value != null ) && ( ( value >= ( java.util.Calendar.SUNDAY ) ) && ( value <= ( java.util.Calendar.SATURDAY ) ) ) ? value : java.util.Calendar.SUNDAY ; }

Target:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }
Source:
public void onPageFinished ( android.webkit.WebView view , java.lang.String url ) { ( mPagesLoaded ) ++ ; getProgressBar ( ) . setVisibility ( View.INVISIBLE ) ; if ( ( mPagesLoaded ) == 1 ) { setWebViewProxy ( ) ; view.loadUrl ( mUrl.toString ( ) ) ; return ; } else if ( ( mPagesLoaded ) == 2 ) { view.clearHistory ( ) ; } testForCaptivePortal ( ) ; }

Target:
public void onPageFinished ( android.webkit.WebView view , java.lang.String url ) { ( mPagesLoaded ) ++ ; getProgressBar ( ) . setVisibility ( View.INVISIBLE ) ; if ( ( mPagesLoaded ) == 1 ) { setWebViewProxy ( ) ; view.loadUrl ( mUrl.toString ( ) ) ; return ; } else if ( ( mPagesLoaded ) == 2 ) { view.requestFocus ( ) ; view.clearHistory ( ) ; } testForCaptivePortal ( ) ; }
Source:
private void logString ( java.lang.String value ) { logView.append ( ( ( ( ( new java.util.Date ( ) ) + " " ) + value ) + "\n" ) ) ; int scrollAmount = ( logView.getLayout ( ) . getLineTop ( logView.getLineCount ( ) ) ) - ( logView.getHeight ( ) ) ; logView.scrollTo ( 0 , scrollAmount ) ; }

Target:
private void logString ( java.lang.String value ) { logView.append ( ( ( ( ( new java.util.Date ( ) ) + " " ) + value ) + "\n" ) ) ; libcore.tzdata.update_test_app.installupdatetestapp.Layout layout = logView.getLayout ( ) ; if ( layout != null ) { int scrollAmount = ( layout.getLineTop ( logView.getLineCount ( ) ) ) - ( logView.getHeight ( ) ) ; logView.scrollTo ( 0 , scrollAmount ) ; } }
Source:
public void createTerminal ( com.intellij.openapi.project.Project project , com.intellij.openapi.wm.ToolWindow toolWindow ) { org.jetbrains.plugins.terminal.LocalTerminalDirectRunner terminalRunner = org.jetbrains.plugins.terminal.OpenLocalTerminalAction.createTerminalRunner ( project ) ; if ( terminalRunner != null ) { myTerminalWidget = terminalRunner.createTerminalWidget ( ) ; } final com.intellij.ui.content.Content content = createToolWindowContentPanel ( terminalRunner , myTerminalWidget ) ; toolWindow.getContentManager ( ) . addContent ( content ) ; }

Target:
public void initTerminal ( com.intellij.openapi.project.Project project , com.intellij.openapi.wm.ToolWindow toolWindow ) { myProject = project ; org.jetbrains.plugins.terminal.LocalTerminalDirectRunner terminalRunner = org.jetbrains.plugins.terminal.OpenLocalTerminalAction.createTerminalRunner ( project ) ; toolWindow.setToHideOnEmptyContent ( true ) ; if ( terminalRunner != null ) { myTerminalWidget = terminalRunner.createTerminalWidget ( ) ; } com.intellij.ui.content.Content content = createToolWindowContentPanel ( terminalRunner , myTerminalWidget , toolWindow ) ; toolWindow.getContentManager ( ) . addContent ( content ) ; }
Source:
public boolean matchesNationalNumber ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc , boolean allowPrefixMatch ) { java.util.regex.Matcher nationalNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.getNationalNumberPattern ( ) ) . matcher ( nationalNumber ) ; return ( nationalNumberPatternMatcher.matches ( ) ) || ( allowPrefixMatch && ( nationalNumberPatternMatcher.lookingAt ( ) ) ) ; }

Target:
private static boolean match ( java.lang.CharSequence number , java.util.regex.Pattern pattern , boolean allowPrefixMatch ) { java.util.regex.Matcher matcher = pattern.matcher ( number ) ; if ( ! ( matcher.lookingAt ( ) ) ) { return false ; } else { return matcher.matches ( ) ? true : allowPrefixMatch ; } }
Source:
private com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.dx.rop.code.RegisterSpec regSpec ; if ( expr instanceof com.android.jack.ir.ast.JVariableRef ) { regSpec = ropReg.getRegisterSpec ( ( ( com.android.jack.ir.ast.JVariableRef ) ( expr ) ) ) ; } else { assert expr instanceof com.android.jack.ir.ast.JValueLiteral ; regSpec = ropReg.getOrCreateTmpRegister ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDxWithoutClosure ( expr.getType ( ) ) ) ; buildConstant ( regSpec , ( ( com.android.jack.ir.ast.JValueLiteral ) ( expr ) ) ) ; } return regSpec ; }

Target:
private com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.dx.rop.code.RegisterSpec regSpec ; if ( expr instanceof com.android.jack.ir.ast.JVariableRef ) { regSpec = ropReg.getRegisterSpec ( ( ( com.android.jack.ir.ast.JVariableRef ) ( expr ) ) ) ; } else { assert expr instanceof com.android.jack.ir.ast.JValueLiteral ; regSpec = ropReg.getOrCreateTmpRegister ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( expr.getType ( ) ) ) ; buildConstant ( regSpec , ( ( com.android.jack.ir.ast.JValueLiteral ) ( expr ) ) ) ; } return regSpec ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; SameThread.doTest ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadWait ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadBusyLoop ( ) ; java.lang.System.out.println ( ) ; AllTraces.doTest ( ) ; java.lang.System.out.println ( "Done" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; SameThread.doTest ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadWait ( ) ; java.lang.System.out.println ( ) ; OtherThread.doTestOtherThreadBusyLoop ( ) ; java.lang.System.out.println ( ) ; AllTraces.doTest ( ) ; java.lang.System.out.println ( ) ; ThreadListTraces.doTest ( ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
private void readFully ( byte [ ] buffer , int offset , int length ) throws java.io.IOException { int result ; while ( length > 0 ) { result = in.read ( buffer , offset , length ) ; if ( result == ( - 1 ) ) { throw new java.io.EOFException ( ) ; } offset += result ; length -= result ; } }

Target:
private static void readZeroTerminated ( java.io.InputStream in , java.util.zip.CRC32 crc , boolean hcrc ) throws java.io.IOException { int result ; while ( ( result = in.read ( ) ) > 0 ) { if ( hcrc ) { crc.update ( result ) ; } } if ( result == ( - 1 ) ) { throw new java.io.EOFException ( ) ; } if ( hcrc ) { crc.update ( result ) ; } }
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 ) ; } 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 ) ; }

Target:
public java.util.List < android.telephony.ClientRequestStats > getClientRequestStats ( int subId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getClientRequestStats ( getOpPackageName ( ) , subId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getClientRequestStats" , e ) ; } return null ; }
Source:
public com.android.calculator2.BoundedRational pow ( java.math.BigInteger exp ) { if ( ( exp.signum ( ) ) < 0 ) { return com.android.calculator2.BoundedRational.inverse ( pow ( exp.negate ( ) ) ) ; } if ( exp.equals ( java.math.BigInteger.ONE ) ) { return this ; } return reduce ( ) . rawPow ( exp ) ; }

Target:
public int hashCode ( ) { com.android.calculator2.BoundedRational reduced = reduce ( ) . positiveDen ( ) ; return java.util.Objects.hash ( reduced.mNum , reduced.mDen ) ; }
Source:
public com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.android.manifmerger.XmlDocument lowerPriorityDocument , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) { mergingReportBuilder.getActionRecorder ( ) . recordDefaultNodeAction ( getRootNode ( ) ) ; getRootNode ( ) . mergeWithLowerPriorityNode ( lowerPriorityDocument.getRootNode ( ) , mergingReportBuilder ) ; return mergingReportBuilder.hasErrors ( ) ? com.google.common.base.Optional.< com.android.manifmerger.XmlDocument > absent ( ) : com.google.common.base.Optional.of ( reparse ( ) ) ; }

Target:
public com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.android.manifmerger.XmlDocument lowerPriorityDocument , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) { mergingReportBuilder.getActionRecorder ( ) . recordDefaultNodeAction ( getRootNode ( ) ) ; getRootNode ( ) . mergeWithLowerPriorityNode ( lowerPriorityDocument.getRootNode ( ) , mergingReportBuilder ) ; addImplicitElements ( lowerPriorityDocument , mergingReportBuilder ) ; return mergingReportBuilder.hasErrors ( ) ? com.google.common.base.Optional.< com.android.manifmerger.XmlDocument > absent ( ) : com.google.common.base.Optional.of ( reparse ( ) ) ; }
Source:
private void setCalcTypeForLocale ( com.ibm.icu.util.ULocale locale ) { java.lang.String localeCalType = com.ibm.icu.impl.CalendarUtil.getCalendarType ( locale ) ; if ( "islamic-civil" . equals ( localeCalType ) ) setType ( com.ibm.icu.util.IslamicCalendar.CalculationType.ISLAMIC_CIVIL ) ; else if ( "islamic-umalqura" . equals ( localeCalType ) ) setType ( com.ibm.icu.util.IslamicCalendar.CalculationType.ISLAMIC_UMALQURA ) ; else if ( "islamic-tbla" . equals ( localeCalType ) ) setType ( com.ibm.icu.util.IslamicCalendar.CalculationType.ISLAMIC_TBLA ) ; else if ( localeCalType.startsWith ( "islamic" ) ) setType ( com.ibm.icu.util.IslamicCalendar.CalculationType.ISLAMIC ) ; else setType ( com.ibm.icu.util.IslamicCalendar.CalculationType.ISLAMIC_CIVIL ) ; }

Target:
public com.ibm.icu.util.IslamicCalendar.CalculationType getCalculationType ( ) { return cType ; }
Source:
public void close ( ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { if ( ! ( closed ) ) { dumpToDir ( getRootDir ( ) , finalVFS.getRootDir ( ) ) ; finalVFS.close ( ) ; workVFS.close ( ) ; closed = true ; } }

Target:
public void close ( ) throws com.android.sched.util.file.CannotCloseOutputException { if ( ! ( closed ) ) { try { dumpToDir ( getRootDir ( ) , finalVFS.getRootDir ( ) ) ; finalVFS.close ( ) ; workVFS.close ( ) ; closed = true ; } catch ( com.android.sched.util.file.CannotCloseInputException | com.android.sched.util.file.CannotCloseOutputException | com.android.sched.util.file.CannotReadException | com.android.sched.util.file.CannotWriteException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.sched.util.file.CannotCloseOutputException ( this , e ) ; } } }