auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetRulesVersion ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; java.lang.String rulesVersion = ZoneInfoDB.TzData.getRulesVersion ( new java.io.File ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ) ; assertEquals ( data.getVersion ( ) , rulesVersion ) ; }

Target:
public void testGetRulesVersion ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; java.lang.String rulesVersion = ZoneInfoDB.TzData.getRulesVersion ( new java.io.File ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ) ; assertEquals ( data.getVersion ( ) , rulesVersion ) ; }
Source:
private void sendScanResultsAvailableBroadcast ( ) { android.content.Intent intent = new android.content.Intent ( WifiManager.SCAN_RESULTS_AVAILABLE_ACTION ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }

Target:
private void sendLinkConfigurationChangedBroadcast ( ) { android.content.Intent intent = new android.content.Intent ( android.net.wifi.WifiManager.LINK_CONFIGURATION_CHANGED_ACTION ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; intent.putExtra ( WifiManager.EXTRA_LINK_PROPERTIES , new android.net.LinkProperties ( mLinkProperties ) ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
int getBatteryLevel ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) return - 1 ; return deviceProp.getBatteryLevel ( ) ; }

Target:
int getBatteryLevel ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) return android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN ; return deviceProp.getBatteryLevel ( ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { validateIsInt32 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copyTo ( short [ ] d ) { validateIsInt16 ( ) ; copyTo ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
private void openChannel ( ) { int p2 = 0 ; mUiccCard.iccOpenLogicalChannel ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.AID , p2 , obtainMessage ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.EVENT_OPEN_LOGICAL_CHANNEL_DONE , null ) ) ; }

Target:
private void openChannel ( int aidId ) { java.lang.String aid = ( aidId == ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.ARAD ) ) ? com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.ARAD_AID : com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.ARAM_AID ; int p2 = 0 ; mUiccCard.iccOpenLogicalChannel ( aid , p2 , obtainMessage ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.EVENT_OPEN_LOGICAL_CHANNEL_DONE , 0 , aidId , null ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "StructTimeval[tv_sec=" + ( tv_sec ) ) + ",tv_usec=" ) + ( tv_usec ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return libcore.util.Objects.toString ( this ) ; }
Source:
protected com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }

Target:
protected com.android.jack.dx.dex.file.DexFile createDexFile ( ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; options.targetApiLevel = apiLevel ; return new com.android.jack.dx.dex.file.DexFile ( options ) ; }
Source:
private void stopNotification ( ) { if ( ( mNotificationTimer ) == null ) return ; mNotificationTimer.cancel ( ) ; mNotificationTimer = null ; }

Target:
private synchronized void cancelNotificationTaskOfSecureTestStartFailure ( ) { if ( ( mNotificationTaskOfSecureTestStartFailure ) != null ) { mHandler.removeCallbacks ( mNotificationTaskOfSecureTestStartFailure ) ; mNotificationTaskOfSecureTestStartFailure = null ; } }
Source:
public void testContains ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertTrue ( full.contains ( one ) ) ; assertFalse ( full.contains ( five ) ) ; }

Target:
public void testClear ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.clear ( ) ; assertEquals ( 0 , full.size ( ) ) ; assertTrue ( full.isEmpty ( ) ) ; }
Source:
public void testInterruptWritableSocketChannel ( ) throws java.lang.Exception { sockets = newSocketChannelPair ( ) ; testInterruptReadableChannel ( sockets [ 0 ] . getChannel ( ) ) ; }

Target:
public void testInterruptWritableSocketChannel ( ) throws java.lang.Exception { sockets = newSocketChannelPair ( ) ; testInterruptWritableChannel ( sockets [ 0 ] . getChannel ( ) ) ; }
Source:
public java.lang.Object getDefaultValue ( java.lang.reflect.Field field ) { return optionDefaults.get ( field ) ; }

Target:
public java.lang.Object getDefaultValue ( com.google.devtools.common.options.OptionDefinition optionDefinition ) { return optionDefaults.get ( optionDefinition ) ; }
Source:
public boolean isEmpty ( ) { return ! ( com.google.common.collect.Iterators.any ( unfiltered.iterator ( ) , predicate ) ) ; }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object element ) { if ( com.google.common.collect.Collections2.safeContains ( unfiltered , element ) ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return predicate.apply ( e ) ; } return false ; }
Source:
public boolean needSequentialWriting ( ) { return ( outputVDir ) instanceof com.android.sched.vfs.SequentialOutputVDir ; }

Target:
public boolean needsSequentialWriting ( ) { return ( outputVDir ) instanceof com.android.sched.vfs.SequentialOutputVDir ; }
Source:
public boolean isLocaleSpecificLayout ( ) { return ( ( mEditedConfig ) == null ) || ( ( mEditedConfig.getLanguageQualifier ( ) ) != null ) ; }

Target:
public boolean isLocaleSpecificLayout ( ) { return ( ( mEditedConfig ) == null ) || ( ( mEditedConfig.getLocaleQualifier ( ) ) != null ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Point getBottomLeft ( ) { return new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( x , ( ( y ) + ( ( h ) > 0 ? h : 0 ) ) ) ; }

Target:
public com.android.ide.common.api.Point getBottomLeft ( ) { return new com.android.ide.common.api.Point ( x , ( ( y ) + ( ( h ) > 0 ? h : 0 ) ) ) ; }
Source:
public void setUseSessionTickets ( boolean useSessionTickets ) { this . useSessionTickets = useSessionTickets ; }

Target:
public void setUseSessionTickets ( boolean useSessionTickets ) { sslParameters.useSessionTickets = useSessionTickets ; }
Source:
public static java.lang.String getSyntheticSwitchMapFieldName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.util.NamingTools.getValidName ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ) ; java.lang.String fieldName = com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( enumName + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; return fieldName ; }

Target:
public static java.lang.String getSyntheticSwitchMapInitializerName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ; return com.android.jack.util.NamingTools.getStrictNonSourceConflictingName ( ( ( "get" + enumName ) + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; }
Source:
public native void putInt$ ( long address , int x ) ;

Target:
public native void putInt ( long address , int x ) ;
Source:
synchronized int nScriptCCreate ( java.lang.String resName , java.lang.String cacheDir , byte [ ] script , int length ) { validate ( ) ; return rsnScriptCCreate ( mContext , resName , cacheDir , script , length ) ; }

Target:
synchronized void nScriptSetVarI ( long id , int slot , int val ) { validate ( ) ; rsnScriptSetVarI ( mContext , id , slot , val ) ; }
Source:
public static java.io.File getTempDirectory ( ) { if ( ( com.android.voicemail.impl.mail.TempDirectory.sTempDirectory ) == null ) { throw new java.lang.RuntimeException ( ( "TempDirectory not set. " + "If in a unit test, call Email.setTempDirectory(context) in setUp()." ) ) ; } return com.android.voicemail.impl.mail.TempDirectory.sTempDirectory ; }

Target:
public static java.io.File getTempDirectory ( ) { if ( ( com.android.voicemail.impl.mail.TempDirectory.tempDirectory ) == null ) { throw new java.lang.RuntimeException ( ( "TempDirectory not set. " + "If in a unit test, call Email.setTempDirectory(context) in setUp()." ) ) ; } return com.android.voicemail.impl.mail.TempDirectory.tempDirectory ; }
Source:
boolean waitForListener ( ) { try { return mBlocker.await ( android.net.wifi.aware.cts.SingleDeviceTest.WAIT_FOR_AWARE_CHANGE , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.lang.InterruptedException e ) { return false ; } }

Target:
boolean waitForListener ( ) { try { return mBlocker.await ( android.net.wifi.aware.cts.SingleDeviceTest.WAIT_FOR_AWARE_CHANGE_SECS , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.lang.InterruptedException e ) { return false ; } }
Source:
public java.lang.String getNewSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodIdWide id ) { return newMethodSignatures.get ( id ) ; }

Target:
public com.android.jack.shrob.obfuscation.key.MethodKey getNewKey ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodIdWide id ) { return newMethodKeys.get ( id ) ; }
Source:
public void testNoInitRunIt ( ) { assertFalse ( "/dev/socket/init_runit" , new java.io.File ( "/dev/socket/init_runit" ) . exists ( ) ) ; }

Target:
public void testNoRootCmdSocket ( ) { assertFalse ( "/dev/socket/init_runit" , new java.io.File ( "/dev/socket/init_runit" ) . exists ( ) ) ; assertFalse ( "/dev/socket/fotabinder" , new java.io.File ( "/dev/socket/fotabinder" ) . exists ( ) ) ; }
Source:
private void sendInterfaceState ( int newInterfaceState ) { mTetherController.updateInterfaceState ( this , newInterfaceState , mLastError ) ; mTetherController.updateLinkProperties ( this , new android.net.LinkProperties ( mLinkProperties ) ) ; }

Target:
private void sendLinkProperties ( ) { mTetherController.updateLinkProperties ( this , new android.net.LinkProperties ( mLinkProperties ) ) ; }
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getDevConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_DEV_BUCKET_DURATION , android.text.format.DateUtils.HOUR_IN_MILLIS ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_DEV_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_DEV_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getDevConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_BUCKET_DURATION , android.text.format.DateUtils.HOUR_IN_MILLIS ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }
Source:
public void mouseDown ( org.eclipse.swt.events.MouseEvent e ) { if ( ( ( e.stateMask ) & ( org.eclipse.swt.SWT.MOD1 ) ) != 0 ) { com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.openJavaClass ( mEditor.getProject ( ) , fqcn ) ; } }

Target:
public void mouseDown ( org.eclipse.swt.events.MouseEvent e ) { if ( ( ( e.stateMask ) & ( org.eclipse.swt.SWT.MOD1 ) ) != 0 ) { com.android.ide.eclipse.adt.AdtPlugin.openJavaClass ( mEditor.getProject ( ) , fqcn ) ; } }
Source:
private android.app.PendingIntent createIncomingCallPendingIntent ( ) { android.content.Intent intent = new android.content.Intent ( com.android.ims.ImsManager.ACTION_IMS_INCOMING_CALL ) ; intent.addFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) ; return android.app.PendingIntent.getBroadcast ( mContext , 0 , intent , PendingIntent.FLAG_UPDATE_CURRENT ) ; }

Target:
private android.app.PendingIntent createIncomingCallPendingIntent ( ) { android.content.Intent intent = new android.content.Intent ( com.android.ims.ImsManager.ACTION_IMS_INCOMING_CALL ) ; intent.setPackage ( TelephonyManager.PHONE_PROCESS_NAME ) ; return android.app.PendingIntent.getBroadcast ( mContext , 0 , intent , PendingIntent.FLAG_UPDATE_CURRENT ) ; }
Source:
private java.lang.String getServiceName ( ) { return getClass ( ) . getSimpleName ( ) ; }

Target:
protected java.lang.String serviceName ( ) { return getClass ( ) . getSimpleName ( ) ; }
Source:
public void onVideoProviderChanged ( com.android.services.telephony.VideoProvider videoProvider ) { setVideoProvider ( videoProvider ) ; }

Target:
public void onVideoProviderChanged ( com.android.services.telephony.VideoProvider videoProvider ) { mHandler.obtainMessage ( com.android.services.telephony.TelephonyConnection.MSG_SET_VIDEO_PROVIDER , videoProvider ) . sendToTarget ( ) ; }
Source:
public com.android.build.gradle.internal.dsl.NdkOptions ldLibs ( java.lang.String lib ) { if ( ( ldLibs ) == null ) { ldLibs = com.google.common.collect.Sets.newHashSet ( ) ; } ldLibs.add ( lib ) ; return this ; }

Target:
public com.android.build.gradle.internal.dsl.NdkOptions ldLibs ( java.lang.String lib ) { if ( ( ldLibs ) == null ) { ldLibs = com.google.common.collect.Lists.newArrayList ( ) ; } ldLibs.add ( lib ) ; return this ; }
Source:
public java.lang.String toString ( ) { java.lang.String micro = ( ( myMicroRevision ) == ( com.android.ide.common.repository.MavenCoordinate.PLUS_REV ) ) ? "+" : java.lang.Integer.toString ( myMicroRevision ) ; return java.lang.String.format ( "%s:%s:%d.%d.%s" , myGroupId , myArtifactId , myMajorRevision , myMinorRevision , micro ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String micro = ( ( myMicroRevision ) == ( com.android.ide.common.repository.MavenCoordinate.PLUS_REV ) ) ? "+" : java.lang.Integer.toString ( myMicroRevision ) ; return java.lang.String.format ( java.util.Locale.US , "%s:%s:%d.%d.%s" , myGroupId , myArtifactId , myMajorRevision , myMinorRevision , micro ) ; }
Source:
public int compare ( java.lang.String object1 , java.lang.String object2 ) { return object1.compareTo ( object2 ) ; }

Target:
public void test_invalidKeys ( ) throws java.lang.Exception { java.util.TreeMap m1 = new java.util.TreeMap ( ) ; try { m1.put ( new java.lang.Object ( ) , "val1" ) ; fail ( "ClassCastException expected" ) ; } catch ( java.lang.ClassCastException expected ) { } }
Source:
public void select ( org.w3c.dom.Node xmlNode ) { mCanvasViewer.getCanvas ( ) . select ( xmlNode ) ; }

Target:
public void select ( org.w3c.dom.Node xmlNode ) { mCanvasViewer.getCanvas ( ) . getSelectionManager ( ) . select ( xmlNode ) ; }
Source:
public com.android.sdklib.repository.FullRevision convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { return com.android.sdklib.repository.FullRevision.parseRevision ( input ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( e.getMessage ( ) ) ; } }

Target:
public com.android.sdklib.repository.FullRevision convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { input = input.replace ( "-preview" , "" ) ; return com.android.sdklib.repository.FullRevision.parseRevision ( input ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( e.getMessage ( ) ) ; } }
Source:
public android.net.wifi.nan.WifiNanCharacteristics getCharacteristics ( ) { enforceAccessPermission ( ) ; return ( mStateManager.getCapabilities ( ) ) == null ? null : mStateManager.getCapabilities ( ) . toPublicCharacteristics ( ) ; }

Target:
public android.net.wifi.aware.WifiAwareCharacteristics getCharacteristics ( ) { enforceAccessPermission ( ) ; return ( mStateManager.getCapabilities ( ) ) == null ? null : mStateManager.getCapabilities ( ) . toPublicCharacteristics ( ) ; }
Source:
public void setMultiprocessEnabled ( boolean enabled ) { }

Target:
public void setMultiProcessEnabledFromContext ( android.content.Context context ) { }
Source:
public java.nio.channels.Selector wakeup ( ) { try { Libcore.os.write ( wakeupOut , new byte [ ] { 1 } , 0 , 1 ) ; } catch ( libcore.io.ErrnoException ignored ) { } return this ; }

Target:
public java.nio.channels.Selector wakeup ( ) { try { Libcore.os.write ( wakeupOut , new byte [ ] { 1 } , 0 , 1 ) ; } catch ( libcore.io.ErrnoException ignored ) { } catch ( java.io.InterruptedIOException ignored ) { } return this ; }
Source:
void addMessage ( com.android.manifmerger.MergingReport.Builder report , com.android.manifmerger.MergingReport.Record.Severity severity , java.lang.String message ) { report.addMessage ( getOwnerElement ( ) . getDocument ( ) . getSourceLocation ( ) , getLine ( ) , getColumn ( ) , severity , message ) ; }

Target:
void addMessage ( com.android.manifmerger.MergingReport.Builder report , com.android.manifmerger.MergingReport.Record.Severity severity , java.lang.String message ) { addMessage ( report , getPosition ( ) , severity , message ) ; }
Source:
public com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > getActions ( ) { return com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.PermissionCheckAction ( ) , new com.android.dialer.precall.impl.MalformedNumberRectifier ( com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.UkRegionPrefixInInternationalFormatHandler ( ) ) ) , new com.android.dialer.precall.impl.CallingAccountSelector ( ) , new com.android.dialer.precall.impl.AssistedDialAction ( ) ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > getActions ( ) { return actions ; }
Source:
public abstract void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout ) throws com.android.builder.testing.api.DeviceException ;

Target:
public abstract void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException ;
Source:
public int compareTo ( android.preference.Preference another ) { if ( ! ( another instanceof com.android.settings.bluetooth.BluetoothDevicePreference ) ) { return super . compareTo ( another ) ; } return mCachedDevice.compareTo ( ( ( com.android.settings.bluetooth.BluetoothDevicePreference ) ( another ) ) . mCachedDevice ) ; }

Target:
public int compareTo ( android.support.v7.preference.Preference another ) { if ( ! ( another instanceof com.android.settings.bluetooth.BluetoothDevicePreference ) ) { return super . compareTo ( another ) ; } return mCachedDevice.compareTo ( ( ( com.android.settings.bluetooth.BluetoothDevicePreference ) ( another ) ) . mCachedDevice ) ; }
Source:
public boolean isValid ( ) { return ( mProtocol ) != null ; }

Target:
public boolean isValid ( ) { if ( ( mProtocol ) == null ) { return false ; } if ( isCarrierAppPreloaded ( ) ) { return false ; } return true ; }
Source:
public void analyzeExternalChangesAndUpdateIfNeed ( @ org.jetbrains.annotations.NotNull java.util.Collection < com.intellij.openapi.vfs.VirtualFile > changedFiles , @ org.jetbrains.annotations.NotNull java.util.Set < java.lang.String > componentNames ) { componentNames.add ( "NewModuleRootManager" ) ; myStorageData.loaded = false ; }

Target:
public void analyzeExternalChangesAndUpdateIfNeed ( @ org.jetbrains.annotations.NotNull java.util.Collection < com.intellij.openapi.vfs.VirtualFile > changedFiles , @ org.jetbrains.annotations.NotNull java.util.Set < java.lang.String > componentNames ) { componentNames.add ( "NewModuleRootManager" ) ; if ( ( myStorageData ) != null ) { myStorageData.loaded = false ; } }
Source:
public void createTempDir ( ) throws java.lang.Exception { mTempDir = java.io.File.createTempFile ( "timeZoneUpdateTest" , null ) ; assertTrue ( mTempDir.delete ( ) ) ; assertTrue ( mTempDir.mkdir ( ) ) ; }

Target:
private void createTempDir ( ) throws java.lang.Exception { mTempDir = java.io.File.createTempFile ( "timeZoneUpdateTest" , null ) ; org.junit.Assert.assertTrue ( mTempDir.delete ( ) ) ; org.junit.Assert.assertTrue ( mTempDir.mkdir ( ) ) ; }
Source:
com.android.internal.telephony.NitzData getNitzData ( ) { return mNitzData ; }

Target:
long getReceivedRealtimeMillis ( ) { return mNitzData.mElapsedRealtime ; }
Source:
synchronized boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "disconnect(): device=" + device ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return disconnectNative ( ) ; }

Target:
synchronized boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "connect(): device=" + device ) ) ; } return mHidDeviceNativeInterface.connect ( device ) ; }
Source:
public void onParentChanged ( android.telecom.Call call , android.telecom.Call parent ) { android.util.Log.i ( android.telecom.cts.TAG , ( ( ( "onParentChanged, Call: " + call ) + ", Parent: " ) + parent ) ) ; this . lock.release ( ) ; }

Target:
public void onParentChanged ( android.telecom.Call call , android.telecom.Call parent ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , ( ( ( "onParentChanged, Call: " + call ) + ", Parent: " ) + parent ) ) ; this . lock.release ( ) ; }
Source:
public static < E extends java.lang.Enum < E > > com.google.common.collect.ImmutableSet < E > immutableEnumSet ( E anElement , E ... otherElements ) { return new com.google.common.collect.ImmutableEnumSet < E > ( java.util.EnumSet.of ( anElement , otherElements ) ) ; }

Target:
public static < E extends java.lang.Enum < E > > com.google.common.collect.ImmutableSet < E > immutableEnumSet ( E anElement , E ... otherElements ) { return com.google.common.collect.ImmutableEnumSet.asImmutable ( java.util.EnumSet.of ( anElement , otherElements ) ) ; }
Source:
public void testIsAssignableFrom_notAnInstance ( ) { android.view.View v = new android.view.View ( context ) ; assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.Spinner.class ) . matches ( v ) ) ; }

Target:
public void isAssignableFrom_notAnInstance ( ) { android.view.View v = new android.view.View ( context ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.widget.Spinner.class ) . matches ( v ) ) ; }
Source:
public void testInstallV1OneSignerSHA224withECDSA ( ) throws java.lang.Exception { assertInstallSucceedsForEach ( "v1-only-with-ecdsa-sha224-%s.apk" , android.appsecurity.cts.PkgInstallSignatureVerificationTest.EC_KEY_NAMES ) ; }

Target:
public void testInstallV1OneSignerSHA256withECDSA ( ) throws java.lang.Exception { assertInstallSucceedsForEach ( "v1-only-with-ecdsa-sha256-1.2.840.10045.2.1-%s.apk" , android.appsecurity.cts.PkgInstallSignatureVerificationTest.EC_KEY_NAMES ) ; assertInstallSucceedsForEach ( "v1-only-with-ecdsa-sha256-1.2.840.10045.4.3.2-%s.apk" , android.appsecurity.cts.PkgInstallSignatureVerificationTest.EC_KEY_NAMES ) ; }
Source:
private boolean processSetUpEventList ( com.android.internal.telephony.gsm.stk.CommandDetails cmdDet , java.util.List < com.android.internal.telephony.gsm.stk.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.gsm.stk.StkLog.d ( this , "process SetUpEventList" ) ; return true ; }

Target:
private boolean processSetUpEventList ( com.android.internal.telephony.cat.CommandDetails cmdDet , java.util.List < com.android.internal.telephony.cat.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.cat.CatLog.d ( this , "process SetUpEventList" ) ; return true ; }
Source:
static double $opt$ShortToDouble ( short a ) { return ( ( double ) ( a ) ) ; }

Target:
static double $opt$ShortToDouble ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
public void testPublishConfigBuilderNegativeTtl ( ) { new android.net.wifi.nan.PublishConfig.Builder ( ) . setTtlSec ( ( - 10 ) ) ; }

Target:
public void testPublishConfigBuilderNegativeTtl ( ) { new android.net.wifi.aware.PublishConfig.Builder ( ) . setTtlSec ( ( - 10 ) ) ; }
Source:
public java.lang.String getNetworkSpecifier ( ) { return java.lang.String.valueOf ( mSubId ) ; }

Target:
private int getSubId ( int preferredSubId ) { if ( android.telephony.SubscriptionManager.isUsableSubIdValue ( mSubId ) ) { return mSubId ; } return preferredSubId ; }
Source:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setTargetSdkVersion ( int targetSdkVersion ) { this . targetSdkVersion = targetSdkVersion ; return this ; }

Target:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setTargetSdkVersion ( int targetSdkVersion ) { this . targetSdkVersion = new com.android.build.gradle.model.AndroidProjectTest.DefaultApiVersion ( targetSdkVersion ) ; return this ; }
Source:
public void requestR1R2ANQPElementsWithRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1R2_ANQP_WITH_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_SCAN_DETAIL , true , true ) ) ; }

Target:
public void requestR1R2ANQPElementsWithRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1R2_ANQP_WITH_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_ANQP_KEY , true , true ) ) ; }
Source:
private void renameFingerPrint ( int fingerId , java.lang.String newName ) { mFingerprintManager.rename ( fingerId , mUserId , newName ) ; updatePreferences ( ) ; }

Target:
private void renameFingerPrint ( int fingerId , java.lang.String newName ) { mFingerprintManager.rename ( fingerId , mUserId , newName ) ; if ( ! ( android.text.TextUtils.isEmpty ( newName ) ) ) { mFingerprintsRenaming.put ( fingerId , newName ) ; } updatePreferences ( ) ; }
Source:
public android.telephony.mbms.DownloadRequest build ( ) { return new android.telephony.mbms.DownloadRequest ( id , serviceInfo , source , dest , sub , appIntent ) ; }

Target:
public android.telephony.mbms.DownloadRequest build ( ) { return new android.telephony.mbms.DownloadRequest ( id , serviceInfo , source , dest , sub , appIntent , appName ) ; }
Source:
public void testIOException ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest6.java:8: Error: Call requires API level 9 (current min is 1): java.io.IOException#<init> [NewApi]\n" + ( ( ( " IOException ioException = new IOException(throwable);\n" + " ~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java" , "apicheck/ApiCallTest6.java.txt=>src/test/pkg/ApiCallTest6.java" , "apicheck/ApiCallTest6.class.data=>bin/classes/test/pkg/ApiCallTest6.class" ) ) ; }

Target:
public void testIOException ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest6.java:8: Error: Call requires API level 9 (current min is 1): new java.io.IOException [NewApi]\n" + ( ( " IOException ioException = new IOException(throwable);\n" + " ~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java" , "apicheck/ApiCallTest6.java.txt=>src/test/pkg/ApiCallTest6.java" , "apicheck/ApiCallTest6.class.data=>bin/classes/test/pkg/ApiCallTest6.class" ) ) ; }
Source:
public com.android.dialer.smartdial.SmartDialMatchPosition matchesNumber ( java.lang.String phoneNumber ) { return matchesNumber ( phoneNumber , mQuery ) ; }

Target:
public com.android.dialer.smartdial.SmartDialMatchPosition matchesNumber ( android.content.Context context , java.lang.String phoneNumber ) { return matchesNumber ( context , phoneNumber , mQuery ) ; }
Source:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . isConnected ( mSlotId , mSupportedFeature , callServiceType , callType ) ; } }

Target:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( mSlotId , mSupportedFeature , callServiceType , callType ) ; } }
Source:
public void clearWallpaper ( ) { if ( com.android.server.WallpaperManagerService.DEBUG ) android.util.Slog.v ( com.android.server.WallpaperManagerService.TAG , "clearWallpaper" ) ; synchronized ( mLock ) { clearWallpaperLocked ( false ) ; } }

Target:
public void clearWallpaper ( ) { if ( com.android.server.WallpaperManagerService.DEBUG ) android.util.Slog.v ( com.android.server.WallpaperManagerService.TAG , "clearWallpaper" ) ; synchronized ( mLock ) { clearWallpaperLocked ( false , android.os.UserId.getCallingUserId ( ) ) ; } }
Source:
private boolean isPolicyValid ( java.lang.String test ) { final android.content.pm.PackageManager pm = getPackageManager ( ) ; switch ( test ) { case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_INPUT_METHOD : return pm.hasSystemFeature ( PackageManager.FEATURE_INPUT_METHODS ) ; default : return true ; } }

Target:
private boolean isPolicyValid ( java.lang.String test ) { final android.content.pm.PackageManager pm = getPackageManager ( ) ; switch ( test ) { case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_INPUT_METHOD : return pm.hasSystemFeature ( PackageManager.FEATURE_INPUT_METHODS ) ; case PolicyTransparencyTestActivity.TEST_CHECK_PERMITTED_ACCESSIBILITY_SERVICE : return pm.hasSystemFeature ( PackageManager.FEATURE_AUDIO_OUTPUT ) ; default : return true ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tests.api.java.nio.charset.CharsetDecoderTest.decoder = cs.newDecoder ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder = cs.newDecoder ( ) ; }
Source:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ! ( mStateMachine.isAudioOn ( ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO ) ; return true ; }

Target:
boolean isAudioOn ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return ( mStateMachine.getAudioState ( ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ) ; }
Source:
public boolean hasBranch ( ) { return ( ( bitField0_ ) & 4 ) == 4 ; }

Target:
public boolean hasBootSuccess ( ) { return ( ( bitField0_ ) & 4 ) == 4 ; }
Source:
java.lang.String printTime ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( " rt=" ) . append ( mClock.getUptimeSinceBootMillis ( ) ) ; sb.append ( "/" ) . append ( mClock.getElapsedSinceBootMillis ( ) ) ; return sb.toString ( ) ; }

Target:
public void updateWifiMetrics ( ) { mWifiMetrics.updateSavedNetworks ( mWifiConfigManager.getSavedNetworks ( ) ) ; }
Source:
public java.lang.String getDescription ( ) { return mDescription ; }

Target:
public java.lang.String getBriefDescription ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue.OutputFormat format ) { switch ( format ) { case TEXT : return com.android.tools.lint.detector.api.Issue.convertMarkup ( mBriefDescription , false ) ; case HTML : return com.android.tools.lint.detector.api.Issue.convertMarkup ( mBriefDescription , true ) ; case RAW : default : return mBriefDescription ; } }
Source:
public static com.android.jack.dx.rop.code.Rop opCreateLambda ( ) { return new com.android.jack.dx.rop.code.Rop ( RegOps.CREATE_LAMBDA , com.android.jack.dx.rop.type.Type.LONG , com.android.jack.dx.rop.type.StdTypeList.EMPTY , Exceptions.LIST_Error , "create-lambda" ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opCaptureVariable ( com.android.jack.dx.rop.type.TypeList sources ) { return new com.android.jack.dx.rop.code.Rop ( RegOps.CAPTURE_VARIABLE , com.android.jack.dx.rop.type.Type.VOID , sources , com.android.jack.dx.rop.type.StdTypeList.EMPTY , Rop.BRANCH_NONE , true , null ) ; }
Source:
synchronized void nContextDestroy ( ) { validate ( ) ; rsnContextDestroy ( mContext ) ; }

Target:
synchronized void nContextDestroy ( ) { validate ( ) ; java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock wlock = mRWLock.writeLock ( ) ; wlock.lock ( ) ; int curCon = mContext ; mContext = 0 ; wlock.unlock ( ) ; rsnContextDestroy ( curCon ) ; }
Source:
boolean isCondition1or2Violated ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement startStmt ) { return traverse ( com.google.common.collect.Sets.newHashSet ( startStmt ) , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.failTestFor1and2 , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.descendTestFor1and2 ) ; }

Target:
boolean isCondition1or2Violated ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement startStmt ) { return traverse ( com.google.common.collect.Lists.newArrayList ( startStmt ) , ( ( byte ) ( ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ENTRY_POINT ) | ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_OR_READS_B ) ) ) , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_A ) ; }
Source:
public com.android.ahat.heapdump.NativeAllocation getNativeAllocation ( ) { return null ; }

Target:
public boolean isPlaceHolder ( ) { return false ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLiteral expr ) { return expr.canThrow ( ) ? visitThrowingRValue ( expr ) : visitNonThrowingPrimitiveRValue ( expr ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef expr ) { return visitNonThrowingTriviaRValue ( expr ) ; }
Source:
public E previous ( ) { if ( hasPrevious ( ) ) return it.previous ( ) ; else throw new java.util.NoSuchElementException ( ) ; }

Target:
public E next ( ) { if ( ( index ) < ( to ) ) { return ( ( E ) ( snapshot [ ( ( index ) ++ ) ] ) ) ; } else { throw new java.util.NoSuchElementException ( ) ; } }
Source:
public final com.android.dialer.spam.status.SpamMetadata getSpamMetadata ( ) { return com.android.dialer.spam.status.SpamMetadata.empty ( ) ; }

Target:
public static com.android.dialer.spam.status.SimpleSpamStatus create ( boolean isSpam , @ android.support.annotation.Nullable java.lang.Long timestampMillis ) { return com.android.dialer.spam.status.SimpleSpamStatus.builder ( ) . setSpam ( isSpam ) . setTimestampMillis ( timestampMillis ) . setSpamMetadata ( com.android.dialer.spam.status.SpamMetadata.empty ( ) ) . build ( ) ; }
Source:
public void visitAnyMember ( proguard.optimize.info.Clazz clazz , proguard.optimize.info.Member member ) { if ( ( ( member.getAccessFlags ( ) ) & ( ( ClassConstants.INTERNAL_ACC_PUBLIC ) | ( ClassConstants.INTERNAL_ACC_PRIVATE ) ) ) == 0 ) { proguard.optimize.info.PackageVisibleMemberInvokingClassMarker.setInvokesPackageVisibleMembers ( referencingClass ) ; } }

Target:
public void visitAnyMember ( proguard.optimize.info.Clazz clazz , proguard.optimize.info.Member member ) { if ( ( ( member.getAccessFlags ( ) ) & ( ( ClassConstants.ACC_PUBLIC ) | ( ClassConstants.ACC_PRIVATE ) ) ) == 0 ) { proguard.optimize.info.PackageVisibleMemberInvokingClassMarker.setInvokesPackageVisibleMembers ( referencingClass ) ; } }
Source:
public boolean add ( K element ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public boolean containsKey ( @ javax.annotation.Nullable java.lang.Object key ) { return backingSet ( ) . contains ( key ) ; }
Source:
public int hashCode ( ) { return ( super . hashCode ( ) ) ^ ( producerStack.hashCode ( ) ) ; }

Target:
public int hashCode ( ) { return ( ( super . hashCode ( ) ) ^ ( producerStack.hashCode ( ) ) ) ^ ( actualProducerStack.hashCode ( ) ) ; }
Source:
private native void enableAdvertisingSetNative ( int advertiserId , boolean enable , int timeout ) ;

Target:
private native void enableAdvertisingSetNative ( int advertiserId , boolean enable , int duration , int maxExtAdvEvents ) ;
Source:
public java.util.Set < ? extends java.lang.Class < ? extends java.lang.annotation.Annotation > > annotations ( ) { return com.google.common.collect.ImmutableSet.of ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class ) ; }

Target:
public java.util.Set < ? extends java.lang.Class < ? extends java.lang.annotation.Annotation > > annotations ( ) { return com.google.common.collect.ImmutableSet.of ( com.android.dialer.inject.IncludeInDialerRoot.class ) ; }
Source:
public int updateCallBarringForServiceClass ( int cbType , int action , java.lang.String [ ] barrList , int serviceClass ) throws android.os.RemoteException { return - 1 ; }

Target:
public int updateCallForward ( int action , int condition , java.lang.String number , int serviceClass , int timeSeconds ) throws android.os.RemoteException { return this . updateCallForward ( action , condition , number , serviceClass , timeSeconds ) ; }
Source:
public int compare ( com.android.jack.ir.ast.JAnnotationLiteral annotation1 , com.android.jack.ir.ast.JAnnotationLiteral annotation2 ) { return com.android.jack.Jack.getLookupFormatter ( ) . getName ( annotation1.getType ( ) ) . compareTo ( com.android.jack.Jack.getLookupFormatter ( ) . getName ( annotation2.getType ( ) ) ) ; }

Target:
protected void printMethodHeader ( com.android.jack.ir.ast.JMethod x ) { print ( com.android.jack.ir.ast.JModifier.getStringMethodModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; printParameterList ( x ) ; }
Source:
protected void xmlModelChanged ( org.w3c.dom.Document xml_doc ) { initUiRootNode ( false ) ; mUiRootNode.loadFromXmlNode ( xml_doc ) ; super . xmlModelChanged ( xml_doc ) ; if ( ( mGraphicalEditor ) != null ) { mGraphicalEditor.onXmlModelChanged ( ) ; } }

Target:
public void recomputeLayout ( ) { mGraphicalEditor.recomputeLayout ( ) ; }
Source:
protected void resetRecords ( ) { mMncLength = UNINITIALIZED ; log ( ( "setting0 mMncLength" + ( mMncLength ) ) ) ; mIccId = null ; mFullIccId = null ; mAdnCache.reset ( ) ; mRecordsRequested = false ; mLockedRecordsRequested = false ; }

Target:
protected void resetRecords ( ) { mMncLength = UNINITIALIZED ; log ( ( "setting0 mMncLength" + ( mMncLength ) ) ) ; mIccId = null ; mFullIccId = null ; mAdnCache.reset ( ) ; mRecordsRequested = false ; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE ; }
Source:
public void test_with_TemporalField_long_null ( ) { TEST_2007_07_15.with ( ( ( java.time.temporal.TemporalField ) ( null ) ) , 1 ) ; }

Target:
public void test_with_adjustment_null ( ) { tck.java.time.TCKLocalDate.TEST_2007_07_15.with ( ( ( java.time.temporal.TemporalAdjuster ) ( null ) ) ) ; }
Source:
public void validateSimCredentialWithEapSim ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.simCredential = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; cred.simCredential.imsi = "1234*" ; cred.simCredential.eapType = android.net.wifi.EAPConstants.EAP_SIM ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }

Target:
public void validateSimCredentialWithEapSim ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithSimCredential ( ) ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }
Source:
private void removeNotification ( ) { mNotificationManager.cancelAsUser ( null , com.android.networkrecommendation.WifiNotificationController.ICON_NETWORKS_AVAILABLE , UserHandle.ALL ) ; mNotificationShown = false ; }

Target:
private void removeNotification ( ) { mNotificationManager.cancel ( null , com.android.networkrecommendation.WifiNotificationController.ICON_NETWORKS_AVAILABLE ) ; mNotificationShown = false ; }
Source:
public static void assertEquals ( java.lang.String message , long expected , long actual ) { org.junit.Assert.assertEquals ( message , ( ( java.lang.Long ) ( expected ) ) , ( ( java.lang.Long ) ( actual ) ) ) ; }

Target:
public static void assertEquals ( java.lang.String message , long expected , long actual ) { if ( expected != actual ) { org.junit.Assert.failNotEquals ( message , java.lang.Long.valueOf ( expected ) , java.lang.Long.valueOf ( actual ) ) ; } }
Source:
private static long curTime ( ) { return ( android.os.SystemClock.elapsedRealtime ( ) ) / ( android.text.format.DateUtils.SECOND_IN_MILLIS ) ; }

Target:
protected long currentTimeSeconds ( ) { return ( android.os.SystemClock.elapsedRealtime ( ) ) / ( android.text.format.DateUtils.SECOND_IN_MILLIS ) ; }
Source:
public com.intellij.psi.PsiReference [ ] getReferencesByElement ( @ org.jetbrains.annotations.NotNull com.intellij.psi.PsiElement element , @ org.jetbrains.annotations.NotNull final com.intellij.util.ProcessingContext context ) { return getReferencesByElement ( element ) ; }

Target:
public com.intellij.psi.impl.source.resolve.reference.impl.providers.PsiReference [ ] getReferencesByElement ( @ org.jetbrains.annotations.NotNull com.intellij.psi.impl.source.resolve.reference.impl.providers.PsiElement element , @ org.jetbrains.annotations.NotNull final com.intellij.util.ProcessingContext context ) { return getReferencesByElement ( element ) ; }
Source:
public void onFailure ( int reason , java.lang.String description ) { android.util.Log.e ( com.android.server.wifi.WifiConnectivityManager.TAG , ( ( ( ( "registerScanListener onFailure:" + " reason: " ) + reason ) + " description: " ) + description ) ) ; }

Target:
public void onFailure ( int reason , java.lang.String description ) { localLog ( ( ( ( ( "registerScanListener onFailure:" + " reason: " ) + reason ) + " description: " ) + description ) ) ; }
Source:
public java.util.List < android.hardware.cts.helpers.TestSensorEvent > getCollectedEvents ( ) { synchronized ( mCollectedEvents ) { return java.util.Collections.unmodifiableList ( mCollectedEvents ) ; } }

Target:
public java.util.List < android.hardware.cts.helpers.TestSensorEvent > getCollectedEvents ( ) { synchronized ( mCollectedEvents ) { java.util.List < android.hardware.cts.helpers.TestSensorEvent > collectedEventsList = ( ( java.util.List ) ( mCollectedEvents.clone ( ) ) ) ; return java.util.Collections.unmodifiableList ( collectedEventsList ) ; } }
Source:
public java.util.List < com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement > getInnerElements ( ) { return java.util.Collections.unmodifiableList ( mElements ) ; }

Target:
public java.util.List < com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement > getInnerElements ( ) { if ( ( mReadOnlyElements ) == null ) { mReadOnlyElements = java.util.Collections.unmodifiableList ( mElements ) ; } return mReadOnlyElements ; }
Source:
private libcore.icu.NativePluralRules getPluralRule ( ) { synchronized ( android.content.res.Resources.sSync ) { if ( ( mPluralRule ) == null ) { mPluralRule = libcore.icu.NativePluralRules.forLocale ( mConfiguration.locale ) ; } return mPluralRule ; } }

Target:
private android.icu.text.PluralRules getPluralRule ( ) { synchronized ( android.content.res.Resources.sSync ) { if ( ( mPluralRule ) == null ) { mPluralRule = android.icu.text.PluralRules.forLocale ( mConfiguration.locale ) ; } return mPluralRule ; } }
Source:
private void setListener ( android.telephony.ims.internal.aidl.IImsMmTelListener listener ) { synchronized ( mLock ) { mListener = listener ; } }

Target:
private void setListener ( android.telephony.ims.aidl.IImsMmTelListener listener ) { synchronized ( mLock ) { mListener = listener ; } if ( ( mListener ) != null ) { onFeatureReady ( ) ; } }
Source:
public void recordsIntentsOnlyAfterInit ( ) { try { android.support.test.espresso.intent.Intents.intended ( android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasShortClassName ( ".SendActivity" ) ) ) ; throw new java.lang.IllegalStateException ( ( "intended should have failed: Intents shouldn't record " + " SendActivity intent before init" ) ) ; } catch ( junit.framework.AssertionFailedError expected ) { } }

Target:
public void recordsIntentsOnlyAfterInit ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; android.support.test.espresso.intent.Intents.intended ( android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasShortClassName ( ".SendActivity" ) ) ) ; }
Source:
public java.lang.Object getViewKey ( ) { return getCurrentNode ( ) ; }

Target:
public java.lang.Object getViewCookie ( ) { return getCurrentNode ( ) ; }
Source:
private void addExplicit ( java.lang.String fileName , java.lang.String jarName ) { addToList ( fileName , jarName , indexMap ) ; addToList ( jarName , fileName , jarMap ) ; }

Target:
private void addMapping ( java.lang.String jarItem , java.lang.String jarName ) { addToList ( jarItem , jarName , indexMap ) ; addToList ( jarName , jarItem , jarMap ) ; }
Source:
public boolean isRecommended ( ) { return ( ( ( this ) != ( com.android.resources.Density.TV ) ) && ( ( this ) != ( com.android.resources.Density.DPI_400 ) ) ) && ( ( this ) != ( com.android.resources.Density.DPI_560 ) ) ; }

Target:
public boolean isValidValueForDevice ( ) { return ( ( this ) != ( com.android.resources.Density.NODPI ) ) && ( ( this ) != ( com.android.resources.Density.ANYDPI ) ) ; }
Source:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher nationalNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.getNationalNumberPattern ( ) ) . matcher ( nationalNumber ) ; return ( isNumberPossibleForDesc ( nationalNumber , numberDesc ) ) && ( nationalNumberPatternMatcher.matches ( ) ) ; }

Target:
boolean isNumberPossibleForDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher possibleNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.possibleNumberPattern ) . matcher ( nationalNumber ) ; return possibleNumberPatternMatcher.matches ( ) ; }