auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void updateGameControllers ( ) { if ( com.android.settings.inputmethod.InputMethodAndLanguageSettings.haveInputDeviceWithVibrator ( ) ) { getPreferenceScreen ( ) . addPreference ( mGameControllerCategory ) ; android.preference.CheckBoxPreference chkPref = ( ( android.preference.CheckBoxPreference ) ( mGameControllerCategory.findPreference ( "vibrate_input_devices" ) ) ) ; chkPref.setChecked ( ( ( java.lang.System.getInt ( getContentResolver ( ) , Settings.System.VIBRATE_INPUT_DEVICES , 1 ) ) > 0 ) ) ; } else { getPreferenceScreen ( ) . removePreference ( mGameControllerCategory ) ; } }

Target:
private void updateGameControllers ( ) { if ( com.android.settings.inputmethod.InputMethodAndLanguageSettings.haveInputDeviceWithVibrator ( ) ) { getPreferenceScreen ( ) . addPreference ( mGameControllerCategory ) ; android.preference.SwitchPreference pref = ( ( android.preference.SwitchPreference ) ( mGameControllerCategory.findPreference ( "vibrate_input_devices" ) ) ) ; pref.setChecked ( ( ( java.lang.System.getInt ( getContentResolver ( ) , Settings.System.VIBRATE_INPUT_DEVICES , 1 ) ) > 0 ) ) ; } else { getPreferenceScreen ( ) . removePreference ( mGameControllerCategory ) ; } }
Source:
boolean setProtocolMode ( android.bluetooth.BluetoothDevice device , int protocolMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "setProtocolMode: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_SET_PROTOCOL_MODE ) ; msg.obj = device ; msg.arg1 = protocolMode ; mHandler.sendMessage ( msg ) ; return true ; }

Target:
boolean setProtocolMode ( android.bluetooth.BluetoothDevice device , int protocolMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "setProtocolMode: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothHidHost.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_SET_PROTOCOL_MODE ) ; msg.obj = device ; msg.arg1 = protocolMode ; mHandler.sendMessage ( msg ) ; return true ; }
Source:
public void TestDefaultSignificantDigits ( ) { android.icu.text.CompactDecimalFormat cdf = android.icu.text.CompactDecimalFormat.getInstance ( ULocale.ENGLISH , CompactStyle.SHORT ) ; assertEquals ( "Default significant digits" , "12K" , cdf.format ( 12345 ) ) ; assertEquals ( "Default significant digits" , "1.2K" , cdf.format ( 1234 ) ) ; assertEquals ( "Default significant digits" , "120" , cdf.format ( 123 ) ) ; }

Target:
public void TestDefaultSignificantDigits ( ) { android.icu.text.CompactDecimalFormat cdf = android.icu.text.CompactDecimalFormat.getInstance ( ULocale.ENGLISH , CompactStyle.SHORT ) ; assertEquals ( "Default significant digits" , "120K" , cdf.format ( 123456 ) ) ; assertEquals ( "Default significant digits" , "12K" , cdf.format ( 12345 ) ) ; assertEquals ( "Default significant digits" , "1.2K" , cdf.format ( 1234 ) ) ; assertEquals ( "Default significant digits" , "120" , cdf.format ( 123 ) ) ; }
Source:
public void onClientMetadataUpdate ( android.media.RemoteController.MetadataEditor metadataEditor ) { android.os.Handler handler = mLocalHandler.get ( ) ; if ( handler != null ) { handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_METADATA , 0 , 0 , metadataEditor ) . sendToTarget ( ) ; } }

Target:
public void onClientMetadataUpdate ( android.media.RemoteController.MetadataEditor metadataEditor ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "RemoteControlDisplayer: Update Metadata" ) ; android.os.Handler handler = mLocalHandler.get ( ) ; if ( handler != null ) { handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_METADATA , 0 , 0 , metadataEditor ) . sendToTarget ( ) ; } }
Source:
public java.lang.String getShortDescription ( ) { java.lang.String s ; if ( mVersion.isPreview ( ) ) { s = java.lang.String.format ( "SDK Platform Android %1$s Preview, revision %2$s%3$s" , getVersionName ( ) , getRevision ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } else { s = java.lang.String.format ( "SDK Platform Android %1$s, API %2$d, revision %3$s%4$s" , getVersionName ( ) , mVersion.getApiLevel ( ) , getRevision ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }

Target:
public java.lang.String getShortDescription ( ) { java.lang.String s ; if ( mVersion.isPreview ( ) ) { s = java.lang.String.format ( "SDK Platform Android %1$s Preview, revision %2$s%3$s" , getVersionName ( ) , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } else { s = java.lang.String.format ( "SDK Platform Android %1$s, API %2$d, revision %3$s%4$s" , getVersionName ( ) , mVersion.getApiLevel ( ) , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) ) ; } return s ; }
Source:
public static com.google.gct.testing.CloudTestConfigurationImpl getConfigurationById ( int id , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.android.tools.idea.run.CloudTestConfiguration configuration : com.google.gct.testing.GoogleCloudTestingUtils.TESTING_CONFIGURATION_FACTORY.getTestingConfigurations ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return ( ( com.google.gct.testing.CloudTestConfigurationImpl ) ( configuration ) ) ; } } return null ; }

Target:
public static com.google.gct.testing.CloudTestConfigurationImpl getConfigurationById ( int id , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.android.tools.idea.run.CloudTestConfiguration configuration : com.google.gct.testing.CloudTestingUtils.TESTING_CONFIGURATION_FACTORY.getTestingConfigurations ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return ( ( com.google.gct.testing.CloudTestConfigurationImpl ) ( configuration ) ) ; } } return null ; }
Source:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , java.lang.String requiredCpuAbiString , int pkgFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , nativeLibraryPathString , requiredCpuAbiString , pkg.mVersionCode , pkgFlags , user , add , true ) ; return p ; }

Target:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , java.lang.String cpuAbiString , int pkgFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , nativeLibraryPathString , cpuAbiString , pkg.mVersionCode , pkgFlags , user , add , true ) ; return p ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof org.conscrypt.OpenSSLECPointContext ) ) { return false ; } final org.conscrypt.OpenSSLECPointContext other = ( ( org.conscrypt.OpenSSLECPointContext ) ( o ) ) ; if ( ! ( org.conscrypt.NativeCrypto.EC_GROUP_cmp ( group.getContext ( ) , other.group.getContext ( ) ) ) ) { return false ; } return org.conscrypt.NativeCrypto.EC_POINT_cmp ( group.getContext ( ) , pointCtx , other.pointCtx ) ; }

Target:
public java.security.spec.ECPoint getECPoint ( ) { final byte [ ] [ ] generatorCoords = org.conscrypt.NativeCrypto.EC_POINT_get_affine_coordinates ( group.getNativeRef ( ) , pointCtx ) ; final java.math.BigInteger x = new java.math.BigInteger ( generatorCoords [ 0 ] ) ; final java.math.BigInteger y = new java.math.BigInteger ( generatorCoords [ 1 ] ) ; return new java.security.spec.ECPoint ( x , y ) ; }
Source:
private java.util.List < java.lang.Integer > readCallSiteIds ( ) { if ( ( tableOfContents.apiLevel ) < ( com.android.jack.dx.dex.DexFormat.API_ANDROID_O ) ) { return java.util.Collections.emptyList ( ) ; } com.android.jack.dx.io.DexBuffer.Section callSiteIds = openInternal ( tableOfContents.callSiteIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.callSiteIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.callSiteIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( callSiteIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }

Target:
private java.util.List < java.lang.Integer > readCallSiteIds ( ) { if ( ( tableOfContents.dexVersion ) != ( com.android.jack.dx.dex.DexFormat.O_BETA2_DEX_VERSION ) ) { return java.util.Collections.emptyList ( ) ; } com.android.jack.dx.io.DexBuffer.Section callSiteIds = openInternal ( tableOfContents.callSiteIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.callSiteIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.callSiteIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( callSiteIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { final com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }

Target:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { final com.android.ide.common.resources.configuration.FolderConfiguration config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }
Source:
public void testAesCbcHmacSha384Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesGcm64Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 64 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
public static void printHelpProperties ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.jack.config.id.Arzon.class ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Provisional properties (subject to change):" ) ; java.lang.System.out.println ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.sched.util.config.category.DefaultCategory.class ) ; }

Target:
public static void printHelpProperties ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.jack.config.id.Brest.class ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Provisional properties (subject to change):" ) ; java.lang.System.out.println ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.sched.util.config.category.DefaultCategory.class ) ; }
Source:
public final char getChar ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }

Target:
final void get ( double [ ] dst , int dstOffset , int doubleCount ) { int byteCount = checkGetBounds ( SizeOf.DOUBLE , dst.length , dstOffset , doubleCount ) ; this . block.peekDoubleArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }
Source:
public com.android.incallui.call.DialerCall getFirstCall ( ) { com.android.incallui.call.DialerCall result = getIncomingCall ( ) ; if ( result == null ) { result = getPendingOutgoingCall ( ) ; } if ( result == null ) { result = getOutgoingCall ( ) ; } if ( result == null ) { result = getFirstCallWithState ( DialerCall.State.ACTIVE ) ; } if ( result == null ) { result = getDisconnectingCall ( ) ; } if ( result == null ) { result = getDisconnectedCall ( ) ; } return result ; }

Target:
public com.android.incallui.call.DialerCall getFirstCall ( ) { com.android.incallui.call.DialerCall result = getIncomingCall ( ) ; if ( result == null ) { result = getPendingOutgoingCall ( ) ; } if ( result == null ) { result = getOutgoingCall ( ) ; } if ( result == null ) { result = getFirstCallWithState ( DialerCallState.ACTIVE ) ; } if ( result == null ) { result = getDisconnectingCall ( ) ; } if ( result == null ) { result = getDisconnectedCall ( ) ; } return result ; }
Source:
public com.android.server.am.ContentProviderHolder getContentProviderExternal ( java.lang.String name , android.os.IBinder token ) { enforceCallingPermission ( android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY , "Do not have permission in call getContentProviderExternal()" ) ; return getContentProviderExternalUnchecked ( name , token ) ; }

Target:
public com.android.server.am.ContentProviderHolder getContentProviderExternal ( java.lang.String name , int userId , android.os.IBinder token ) { enforceCallingPermission ( android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY , "Do not have permission in call getContentProviderExternal()" ) ; userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , true , "getContentProvider" , null ) ; return getContentProviderExternalUnchecked ( name , token , userId ) ; }
Source:
public void onSaveInstanceState ( android.os.Bundle bundle ) { bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , ( ! ( fab.isShown ( ) ) ) ) ; bundle.putInt ( com.android.dialer.main.impl.MainSearchController.KEY_CURRENT_TAB , bottomNav.getSelectedTab ( ) ) ; bundle.putInt ( com.android.dialer.main.impl.MainSearchController.KEY_BOTTOM_NAV_VISIBILITY , bottomNav.getVisibility ( ) ) ; bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , toolbar.isExpanded ( ) ) ; bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , toolbar.isSlideUp ( ) ) ; }

Target:
public void onSaveInstanceState ( android.os.Bundle bundle ) { bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , ( ! ( fab.isShown ( ) ) ) ) ; bundle.putInt ( com.android.dialer.main.impl.MainSearchController.KEY_TOOLBAR_SHADOW_VISIBILITY , toolbarShadow.getVisibility ( ) ) ; bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , toolbar.isExpanded ( ) ) ; bundle.putBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , toolbar.isSlideUp ( ) ) ; }
Source:
public java.lang.Integer getPrimaryUserId ( ) throws com.android.tradefed.device.DeviceNotAvailableException { java.util.ArrayList < java.lang.String [ ] > users = tokenizeListUsers ( ) ; if ( users == null ) { return null ; } for ( java.lang.String [ ] user : users ) { int flag = java.lang.Integer.parseInt ( user [ 3 ] , 16 ) ; if ( ( flag & ( android.host.multiuser.BaseMultiUserTest.FLAG_PRIMARY ) ) != 0 ) { return java.lang.Integer.parseInt ( user [ 1 ] ) ; } } return null ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; assertNotNull ( mBuildInfo ) ; mSupportsMultiUser = ( getDevice ( ) . getMaxNumberOfUsersSupported ( ) ) > 1 ; mIsSplitSystemUser = checkIfSplitSystemUser ( ) ; mPrimaryUserId = getDevice ( ) . getPrimaryUserId ( ) ; mFixedUsers = new java.util.ArrayList ( ) ; mFixedUsers.add ( mPrimaryUserId ) ; if ( ( mPrimaryUserId ) != ( android.host.multiuser.BaseMultiUserTest.USER_SYSTEM ) ) { mFixedUsers.add ( android.host.multiuser.BaseMultiUserTest.USER_SYSTEM ) ; } getDevice ( ) . switchUser ( mPrimaryUserId ) ; removeTestUsers ( ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { for ( java.io.File file : mPolicyDir.listFiles ( ) ) { file.delete ( ) ; } mServiceContext = null ; mPolicyDir = null ; mActivityManager = null ; mStatsService = null ; mTime = null ; mService = null ; removeLocalServiceMocks ( ) ; com.android.server.LocalServices.removeServiceForTest ( com.android.server.net.NetworkPolicyManagerInternal.class ) ; super . tearDown ( ) ; }

Target:
public static void registerLocalServices ( ) { com.android.server.NetworkPolicyManagerServiceTest.addLocalServiceMock ( android.os.PowerManagerInternal.class ) ; com.android.server.NetworkPolicyManagerServiceTest.addLocalServiceMock ( DeviceIdleController.LocalService.class ) ; final android.app.usage.UsageStatsManagerInternal usageStats = com.android.server.NetworkPolicyManagerServiceTest.addLocalServiceMock ( android.app.usage.UsageStatsManagerInternal.class ) ; org.mockito.Mockito.when ( usageStats.getIdleUidsForUser ( org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( new int [ ] { } ) ; }
Source:
private void update ( ) { if ( ( isTouched ( ) ) == true ) { mResourceItems.clear ( ) ; parseFile ( ) ; resetTouch ( ) ; mResourceTypeList = null ; } }

Target:
private void updateResourceItems ( ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository repository = getRepository ( ) ; for ( com.android.resources.ResourceType type : mResourceTypeList ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > list = mResourceItems.get ( type ) ; if ( list != null ) { java.util.Collection < com.android.ide.common.rendering.api.ResourceValue > values = list.values ( ) ; for ( com.android.ide.common.rendering.api.ResourceValue res : values ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = repository.getResourceItem ( type , res.getName ( ) ) ; item.add ( this ) ; } } } }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.sdklib.io.FolderWrapper frameworkRes = new com.android.sdklib.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = new com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources ( ) ; try { loadResources ( resources , frameworkRes ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.io.FolderWrapper frameworkRes = new com.android.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = new com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources ( ) ; try { loadResources ( resources , frameworkRes ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }
Source:
public void initialize ( java.lang.String updaterAppPackageName , java.lang.String dataAppPackageName , com.android.server.timezone.PackageTracker packageTracker ) { mUpdaterAppPackageName = updaterAppPackageName ; android.content.IntentFilter packageIntentFilter = new android.content.IntentFilter ( ) ; packageIntentFilter.addDataScheme ( "package" ) ; packageIntentFilter.addDataSchemeSpecificPart ( updaterAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addDataSchemeSpecificPart ( dataAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_ADDED ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_CHANGED ) ; com.android.server.timezone.IntentHelperImpl.Receiver packageUpdateReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( packageTracker ) ; mContext.registerReceiver ( packageUpdateReceiver , packageIntentFilter ) ; }

Target:
public void initialize ( java.lang.String updaterAppPackageName , java.lang.String dataAppPackageName , com.android.server.timezone.PackageTracker packageTracker ) { mUpdaterAppPackageName = updaterAppPackageName ; android.content.IntentFilter packageIntentFilter = new android.content.IntentFilter ( ) ; packageIntentFilter.addDataScheme ( "package" ) ; packageIntentFilter.addDataSchemeSpecificPart ( updaterAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addDataSchemeSpecificPart ( dataAppPackageName , PatternMatcher.PATTERN_LITERAL ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_ADDED ) ; packageIntentFilter.addAction ( Intent.ACTION_PACKAGE_CHANGED ) ; com.android.server.timezone.IntentHelperImpl.Receiver packageUpdateReceiver = new com.android.server.timezone.IntentHelperImpl.Receiver ( packageTracker ) ; mContext.registerReceiverAsUser ( packageUpdateReceiver , UserHandle.SYSTEM , packageIntentFilter , null , null ) ; }
Source:
public void testMissedCall ( ) throws java.io.IOException { java.io.InputStream fileStream ; fileStream = testResources.openRawResource ( com.android.bluetooth.tests.R.raw.single_missed_call ) ; com.android.bluetooth.pbapclient.BluetoothPbapVcardList pbapVCardList = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , fileStream , PbapClientConnectionHandler.VCARD_TYPE_30 ) ; assertEquals ( 1 , pbapVCardList.getCount ( ) ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mContext , PbapClientConnectionHandler.MCH_PATH ) ; processor.setResults ( pbapVCardList.getList ( ) ) ; assertFalse ( verifyCallLog ( "555-0002" , "1483232460000" , "3" ) ) ; processor.onPullComplete ( ) ; assertTrue ( verifyCallLog ( "555-0002" , "1483232460000" , "3" ) ) ; }

Target:
public void testMissedCall ( ) throws java.io.IOException { java.io.InputStream fileStream ; fileStream = testResources.openRawResource ( com.android.bluetooth.tests.R.raw.single_missed_call ) ; com.android.bluetooth.pbapclient.BluetoothPbapVcardList pbapVCardList = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , fileStream , PbapClientConnectionHandler.VCARD_TYPE_30 ) ; assertEquals ( 1 , pbapVCardList.getCount ( ) ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mContext , PbapClientConnectionHandler.MCH_PATH ) ; processor.setResults ( pbapVCardList.getList ( ) ) ; assertFalse ( verifyCallLog ( "555-0002" , "1483250460000" , "3" ) ) ; processor.onPullComplete ( ) ; assertTrue ( verifyCallLog ( "555-0002" , "1483250460000" , "3" ) ) ; }
Source:
public void stkCallControlAlphaNotify ( int indicationType , java.lang.String var2 ) { }

Target:
public void stkCallControlAlphaNotify ( int indicationType , java.lang.String alpha ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_STK_CC_ALPHA_NOTIFY , alpha ) ; if ( ( mRil.mCatCcAlphaRegistrant ) != null ) { mRil.mCatCcAlphaRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , alpha , null ) ) ; } }
Source:
public void evaluate ( ) { getAllModels ( new com.android.build.gradle.integration.common.fixture.GetEmptyModelAction ( ) , false ) ; }

Target:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action , boolean emulateStudio_1_0 , @ com.android.annotations.Nullable java.lang.String benchmarkName , @ com.android.annotations.Nullable com.android.build.gradle.integration.common.fixture.GradleTestProject.BenchmarkMode benchmarkMode ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return buildModel ( connection , action , emulateStudio_1_0 , benchmarkName , benchmarkMode ) ; } finally { connection.close ( ) ; } }
Source:
public void dragSetData ( org.eclipse.swt.dnd.DragSourceEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragSetData ( event ) ; } }

Target:
private boolean adjustEventCoordinates ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ( ( event.x ) == ( mTempPoint.x ) ) && ( ( event.y ) == ( mTempPoint.y ) ) ) { return true ; } mTempPoint.x = event.x ; mTempPoint.y = event.y ; boolean result = viewerToCanvasControlCoordinates ( mTempPoint ) ; if ( result ) { event.x = mTempPoint.x ; event.y = mTempPoint.y ; } return result ; }
Source:
public static void execShell ( java.lang.String command ) { java.lang.String [ ] args = new java.lang.String [ ] { "/system/bin/sh" , "-c" , command } ; try { Libcore.os.execv ( args [ 0 ] , args ) ; } catch ( libcore.io.ErrnoException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static void execShell ( java.lang.String command ) { java.lang.String [ ] args = new java.lang.String [ ] { "/system/bin/sh" , "-c" , command } ; try { android.system.Os.execv ( args [ 0 ] , args ) ; } catch ( android.system.ErrnoException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void testPerformAndCheck ( ) { org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenReturn ( targetView ) ; initInteraction ( ) ; testInteraction.perform ( mockAction ) ; org.mockito.Mockito.verify ( mockAction ) . perform ( mockUiController , targetView ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( targetView , null ) ; }

Target:
public void performAndCheck ( ) { org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenReturn ( targetView ) ; initInteraction ( ) ; testInteraction.perform ( mockAction ) ; org.mockito.Mockito.verify ( mockAction ) . perform ( mockUiController , targetView ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( targetView , null ) ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_clamp_relaxed s = new com.android.rs.test.ScriptC_clamp_relaxed ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_clamp_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_clamp_relaxed s = new com.android.rs.test.ScriptC_clamp_relaxed ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_clamp_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { super . visit ( version , access , name , signature , superName , interfaces ) ; com.google.common.base.Preconditions.checkState ( internalName.equals ( name ) , "Inconsistent internal names: expected=%s, real=%s" , internalName , name ) ; com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) , "This class visitor is only used for interfaces." ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { super . visit ( version , access , name , signature , superName , interfaces ) ; com.google.common.base.Preconditions.checkState ( internalName.equals ( name ) , "Inconsistent internal names: expected=%s, real=%s" , internalName , name ) ; com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.io.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) , "This class visitor is only used for interfaces." ) ; }
Source:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.onKeyUp ( keyCode , event ) ; }

Target:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }
Source:
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 ) ; 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 ) ; }

Target:
public void getMute ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_MUTE , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_LOCAL : return com.android.dialer.common.Assert.isNotNull ( firstCp2LocalContact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_REMOTE : return com.android.dialer.common.Assert.isNotNull ( firstCp2RemoteContact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getLookupUri ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_LOCAL : return com.android.dialer.common.Assert.isNotNull ( firstCp2LocalContact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_REMOTE : return com.android.dialer.common.Assert.isNotNull ( firstCp2RemoteContact ) . getLookupUri ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return com.android.dialer.common.Assert.isNotNull ( phoneLookupInfo.getPeopleApiInfo ( ) . getLookupUri ( ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public boolean equals ( java.lang.Object other ) { if ( ! ( other instanceof com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ) { return false ; } com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher that = ( ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ( other ) ) ; for ( int i = 0 ; i < ( original.length ) ; ++ i ) { if ( ! ( original [ i ] . equals ( that.original [ i ] ) ) ) return false ; } return true ; }

Target:
public int compareTo ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher that ) { int result = original.compareTo ( that.original ) ; return result > 0 ? - 1 : result < 0 ? 1 : 0 ; }
Source:
public static MergingReport.Result validate ( @ com.android.annotations.NonNull com.android.manifmerger.XmlDocument xmlDocument , @ com.android.annotations.NonNull com.android.manifmerger.ActionRecorder actionRecorder , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) { com.google.common.base.Preconditions.checkNotNull ( xmlDocument ) ; com.google.common.base.Preconditions.checkNotNull ( actionRecorder ) ; com.google.common.base.Preconditions.checkNotNull ( logger ) ; return com.android.manifmerger.PostValidator.validate ( xmlDocument.getRootNode ( ) , actionRecorder , logger ) ; }

Target:
public static void validate ( @ com.android.annotations.NonNull com.android.manifmerger.XmlDocument xmlDocument , @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport ) { com.google.common.base.Preconditions.checkNotNull ( xmlDocument ) ; com.google.common.base.Preconditions.checkNotNull ( mergingReport ) ; com.android.manifmerger.PostValidator.validate ( xmlDocument.getRootNode ( ) , mergingReport.getActionRecorder ( ) . build ( ) , mergingReport ) ; }
Source:
public void setResources ( org.apache.tools.ant.types.Path resources ) { if ( ( mResources ) == null ) { mResources = new java.util.ArrayList < org.apache.tools.ant.types.Path > ( ) ; } mResources.add ( new org.apache.tools.ant.types.Path ( getProject ( ) , resources.toString ( ) ) ) ; }

Target:
public void setResources ( org.apache.tools.ant.types.Path resources ) { java.lang.System.out.println ( ( "WARNNG: Using deprecated 'resources' attribute in AaptExecLoopTask." + "Use nested element(s) <res path=\"value\" /> instead." ) ) ; if ( ( mResources ) == null ) { mResources = new java.util.ArrayList < org.apache.tools.ant.types.Path > ( ) ; } mResources.add ( new org.apache.tools.ant.types.Path ( getProject ( ) , resources.toString ( ) ) ) ; }
Source:
public void separateConnection ( int gsmIndex , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEPARATE_CONNECTION , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + gsmIndex ) ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( gsmIndex ) ; send ( rr ) ; }

Target:
public void separateConnection ( int gsmIndex , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEPARATE_CONNECTION , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + gsmIndex ) ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( gsmIndex ) ; send ( rr ) ; }
Source:
public void remove ( int index ) { if ( index >= ( mSize ) ) { throw new java.lang.ArrayIndexOutOfBoundsException ( mSize , index ) ; } java.lang.System.arraycopy ( mValues , ( index + 1 ) , mValues , index , ( ( ( mSize ) - index ) - 1 ) ) ; ( mSize ) -- ; }

Target:
private void checkBounds ( int index ) { if ( ( index < 0 ) || ( ( mSize ) <= index ) ) { throw new java.lang.ArrayIndexOutOfBoundsException ( mSize , index ) ; } }
Source:
static com.android.dialer.historyitemactions.HistoryItemBottomSheetHeaderInfo fromVoicemailEntry ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return com.android.dialer.historyitemactions.HistoryItemBottomSheetHeaderInfo.newBuilder ( ) . setNumber ( voicemailEntry.getNumber ( ) ) . setPhotoInfo ( com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( voicemailEntry.getNumberAttributes ( ) ) . setFormattedNumber ( voicemailEntry.getFormattedNumber ( ) ) . build ( ) ) . setPrimaryText ( com.android.dialer.voicemail.listui.menu.BottomSheetHeader.buildPrimaryVoicemailText ( voicemailEntry ) ) . setSecondaryText ( com.android.dialer.voicemail.listui.menu.BottomSheetHeader.buildSecondaryVoicemailText ( voicemailEntry ) ) . build ( ) ; }

Target:
static com.android.dialer.historyitemactions.HistoryItemBottomSheetHeaderInfo fromVoicemailEntry ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return com.android.dialer.historyitemactions.HistoryItemBottomSheetHeaderInfo.newBuilder ( ) . setNumber ( voicemailEntry.getNumber ( ) ) . setPhotoInfo ( com.android.dialer.calllogutils.PhotoInfoBuilder.fromVoicemailEntry ( voicemailEntry ) ) . setPrimaryText ( com.android.dialer.voicemail.listui.menu.BottomSheetHeader.buildPrimaryVoicemailText ( voicemailEntry ) ) . setSecondaryText ( com.android.dialer.voicemail.listui.menu.BottomSheetHeader.buildSecondaryVoicemailText ( voicemailEntry ) ) . build ( ) ; }
Source:
public void removeRights ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeRights ( mUniqueId , path ) ; }

Target:
public boolean canHandle ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _canHandle ( mUniqueId , path , mimeType ) ; }
Source:
public static PhotoInfo.Builder fromVoicemailEntry ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return com.android.dialer.calllogutils.PhotoInfoBuilder.fromNumberAttributes ( voicemailEntry.getNumberAttributes ( ) ) . setFormattedNumber ( voicemailEntry.getFormattedNumber ( ) ) ; }

Target:
public static PhotoInfo.Builder fromVoicemailEntry ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return com.android.dialer.calllogutils.PhotoInfoBuilder.fromNumberAttributes ( voicemailEntry.getNumberAttributes ( ) ) . setFormattedNumber ( voicemailEntry.getFormattedNumber ( ) ) . setIsSpam ( com.android.dialer.spam.Spam.shouldShowAsSpam ( voicemailEntry.getNumberAttributes ( ) . getIsSpam ( ) , voicemailEntry.getCallType ( ) ) ) ; }
Source:
public void testGetExampleNumber ( ) { assertEquals ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER , phoneUtil.getExampleNumber ( RegionCode.DE ) ) ; assertEquals ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.DE_NUMBER , phoneUtil.getExampleNumberForType ( RegionCode.DE , PhoneNumberUtil.PhoneNumberType.FIXED_LINE ) ) ; assertEquals ( null , phoneUtil.getExampleNumberForType ( RegionCode.DE , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( RegionCode.US , PhoneNumberUtil.PhoneNumberType.FIXED_LINE ) ) ; assertNotNull ( phoneUtil.getExampleNumberForType ( RegionCode.US , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNull ( phoneUtil.getExampleNumberForType ( RegionCode.CS , PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ; assertNull ( phoneUtil.getExampleNumber ( RegionCode.UN001 ) ) ; }

Target:
public void testNormaliseOtherDigits ( ) { java.lang.StringBuilder inputNumber = new java.lang.StringBuilder ( "２5٥" ) ; java.lang.String expectedOutput = "255" ; assertEquals ( "Conversion did not correctly replace non-latin digits" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( inputNumber ) . toString ( ) ) ; inputNumber = new java.lang.StringBuilder ( "۵2۰" ) ; expectedOutput = "520" ; assertEquals ( "Conversion did not correctly replace non-latin digits" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalize ( inputNumber ) . toString ( ) ) ; }
Source:
public static long LongNonmatCond_LongVarVar ( long a , long b , long x , long y ) { return a > b ? x : y ; }

Target:
public static long LongMatCond_LongVarVar ( long a , long b , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , com.android.sdklib.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_PLATFORMS ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SAMPLES ) ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SOURCES ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( pkg instanceof com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) { com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo p = ( ( com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) ( pkg ) ) ; if ( p.getAndroidVersion ( ) . equals ( version ) ) { return p ; } } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalExtraPkgInfo getExtra ( @ com.android.annotations.NonNull java.lang.String vendorPath ) { return ( ( com.android.sdklib.repository.local.LocalExtraPkgInfo ) ( getPkgInfo ( PkgType.PKG_EXTRAS , vendorPath ) ) ) ; }
Source:
public void generate ( ) throws java.io.IOException { java.util.Map < java.lang.String , java.lang.String > map = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; map.put ( com.android.builder.TestManifestGenerator.PH_PACKAGE , mPackageName ) ; map.put ( com.android.builder.TestManifestGenerator.PH_TESTED_PACKAGE , mTestedPackageName ) ; map.put ( com.android.builder.TestManifestGenerator.PH_TEST_RUNNER , mTestRunnerName ) ; com.android.builder.TemplateProcessor processor = new com.android.builder.TemplateProcessor ( com.android.builder.TestManifestGenerator.class . getResourceAsStream ( com.android.builder.TestManifestGenerator.TEMPLATE ) , map ) ; processor.generate ( new java.io.File ( mOutputFile ) ) ; }

Target:
public void generate ( ) throws java.io.IOException { java.util.Map < java.lang.String , java.lang.String > map = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; map.put ( com.android.builder.TestManifestGenerator.PH_PACKAGE , mPackageName ) ; map.put ( com.android.builder.TestManifestGenerator.PH_MIN_SDK_VERSION , java.lang.Integer.toString ( mMinSdkVersion ) ) ; map.put ( com.android.builder.TestManifestGenerator.PH_TESTED_PACKAGE , mTestedPackageName ) ; map.put ( com.android.builder.TestManifestGenerator.PH_TEST_RUNNER , mTestRunnerName ) ; com.android.builder.TemplateProcessor processor = new com.android.builder.TemplateProcessor ( com.android.builder.TestManifestGenerator.class . getResourceAsStream ( com.android.builder.TestManifestGenerator.TEMPLATE ) , map ) ; processor.generate ( new java.io.File ( mOutputFile ) ) ; }
Source:
public static android.renderscript.cts.Floaty abs ( android.renderscript.cts.Floaty a ) { android.renderscript.cts.Floaty c = new android.renderscript.cts.Floaty ( java.lang.Math.abs ( a.mValue ) ) ; c.mError = a.mError ; return c ; }

Target:
public android.renderscript.cts.Floaty divide ( android.renderscript.cts.Floaty a ) { double num = java.lang.Math.abs ( mValue ) ; double den = java.lang.Math.abs ( a.mValue ) ; mError = ( ( num * ( a.mError ) ) + ( den * ( mError ) ) ) / ( den * ( den - ( a.mError ) ) ) ; mValue /= a.mValue ; return this ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameterRef x ) { com.android.jack.ir.ast.JNode parent = x.getParent ( ) ; if ( ( parent instanceof com.android.jack.ir.ast.JAsgOperation ) && ( ( ( ( com.android.jack.ir.ast.JAsgOperation ) ( parent ) ) . getLhs ( ) ) == x ) ) { if ( ( paramValues.remove ( x.getParameter ( ) ) ) != null ) { tracer.getStatistic ( com.android.jack.optimizations.valuepropagation.argument.PARAMETER_IS_WRITTEN_TO ) . incValue ( ) ; } } }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JVariableAsgBlockElement x ) { com.android.jack.ir.ast.JVariable variable = x.getVariable ( ) ; if ( variable instanceof com.android.jack.ir.ast.JParameter ) { if ( ( paramValues.remove ( variable ) ) != null ) { tracer.getStatistic ( com.android.jack.optimizations.valuepropagation.argument.PARAMETER_IS_WRITTEN_TO ) . incValue ( ) ; } } }
Source:
private static void expectEqualsNaN32 ( int expected , int result ) { if ( ( expected != result ) && ( ( expected | ( Main.SPQUIET ) ) != result ) ) { throw new java.lang.Error ( ( ( ( "Expected: 0x" + ( java.lang.Integer.toHexString ( expected ) ) ) + ", found: 0x" ) + ( java.lang.Integer.toHexString ( result ) ) ) ) ; } }

Target:
private static void expectEqualsNaN32 ( int expected , int result ) { if ( ( expected != result ) && ( ( expected | ( Main.SPQUIET ) ) != result ) ) { if ( ! ( Main.isDalvik ) ) { if ( expected == ( result & ( java.lang.Integer.MAX_VALUE ) ) ) { return ; } } throw new java.lang.Error ( ( ( ( "Expected: 0x" + ( java.lang.Integer.toHexString ( expected ) ) ) + ", found: 0x" ) + ( java.lang.Integer.toHexString ( result ) ) ) ) ; } }