auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.jack.ir.ast.JSsaVariableRef getRhs ( @ javax.annotation.Nonnegative int index ) { return rhs.get ( index ) ; }

Target:
public java.lang.Iterable < com.android.jack.ir.ast.JSsaVariableRef > getRhs ( ) { return rhs.values ( ) ; }
Source:
public boolean contains ( java.lang.Object o ) { return this . containsKey ( o ) ; }

Target:
public java.util.Set < K > keySet ( ) { java.util.Set < K > ks = keySet ; return ks != null ? ks : ( keySet = new KeySet ( this ) ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { showPopup ( e ) ; }

Target:
public void actionPerformed ( com.google.gct.login.ui.AnActionEvent e ) { showPopup ( e ) ; }
Source:
public void setSourceInfos ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.nodes.NSourceInfo sourceInfo ) { this . sourceInfo = sourceInfo ; }

Target:
public void setSourceInfos ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.nodes.NSourceInfo sourceInfo ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public boolean isAnnotationPresent ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return libcore.reflect.AnnotationAccess.isDeclaredAnnotationPresent ( this , annotationType ) ; }

Target:
private native < A extends java.lang.annotation.Annotation > A getAnnotationNative ( java.lang.Class < A > annotationType ) ;
Source:
public final native void pause ( int streamID ) ;

Target:
public final native void autoPause ( ) ;
Source:
public android.icu.impl.UResource.TableSink getOrCreateTableSink ( android.icu.impl.UResource.Key key , int initialSize ) { return null ; }

Target:
public android.icu.impl.UResource.ArraySink getOrCreateArraySink ( android.icu.impl.UResource.Key key ) { return null ; }
Source:
public java.net.URLStreamHandler createURLStreamHandler ( java.lang.String protocol ) { if ( "jar" . equals ( protocol ) ) { return new libcore.net.url.JarHandler ( ) ; } fail ( ( "Should be JarHandler. But " + protocol ) ) ; return null ; }

Target:
public java.net.URLStreamHandler createURLStreamHandler ( java.lang.String protocol ) { if ( "jar" . equals ( protocol ) ) { return new sun.net.www.protocol.jar.Handler ( ) ; } fail ( ( "Should be JarHandler. But " + protocol ) ) ; return null ; }
Source:
public static void addEntryToClasspath ( org.eclipse.jdt.core.IJavaProject javaProject , org.eclipse.jdt.core.IClasspathEntry new_entry ) throws org.eclipse.jdt.core.JavaModelException { org.eclipse.jdt.core.IClasspathEntry [ ] entries = javaProject.getRawClasspath ( ) ; entries = com.android.ide.eclipse.adt.internal.project.ProjectHelper.addEntryToClasspath ( entries , new_entry ) ; javaProject.setRawClasspath ( entries , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; }

Target:
public static void addEntryToClasspath ( org.eclipse.jdt.core.IJavaProject javaProject , org.eclipse.jdt.core.IClasspathEntry newEntry ) throws org.eclipse.jdt.core.JavaModelException { org.eclipse.jdt.core.IClasspathEntry [ ] entries = javaProject.getRawClasspath ( ) ; entries = com.android.ide.eclipse.adt.internal.project.ProjectHelper.addEntryToClasspath ( entries , newEntry ) ; javaProject.setRawClasspath ( entries , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; }
Source:
public boolean hasMoreElements ( ) { return enum_.hasMoreElements ( ) ; }

Target:
public boolean hasNext ( ) { return e.hasMoreElements ( ) ; }
Source:
com.android.sched.vfs.BaseVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { return changeVFS ( vfs.getVDir ( parent , name ) ) ; }

Target:
com.android.sched.vfs.VPath getPathFromRoot ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVFile file ) { return vfs.getPathFromRoot ( file.getWrappedFile ( ) ) ; }
Source:
public void setProcessorNames ( @ javax.annotation.Nonnull java.util.List < java.lang.String > processorNames ) { options.processor = com.google.common.base.Joiner.on ( ',' ) . join ( processorNames ) ; }

Target:
public void setProcessorNames ( @ javax.annotation.Nonnull java.util.List < java.lang.String > processorNames ) { options.addProperty ( Options.ANNOTATION_PROCESSOR_MANUAL.getName ( ) , "true" ) ; options.addProperty ( Options.ANNOTATION_PROCESSOR_MANUAL_LIST.getName ( ) , Options.ANNOTATION_PROCESSOR_MANUAL_LIST.getCodec ( ) . formatValue ( processorNames ) ) ; }
Source:
public void onLost ( android.net.Network lostNetwork ) { if ( mNetwork.equals ( lostNetwork ) ) { done ( com.android.captiveportallogin.CaptivePortalLoginActivity.Result.UNWANTED ) ; } }

Target:
private static java.lang.String host ( java.net.URL url ) { if ( url == null ) { return null ; } return url.getHost ( ) ; }
Source:
public int getEapMethod ( ) { java.lang.String eapMethod = mFields.get ( android.net.wifi.WifiEnterpriseConfig.EAP_KEY ) ; return getStringIndex ( android.net.wifi.WifiEnterpriseConfig.Eap.strings , eapMethod , android.net.wifi.WifiEnterpriseConfig.Eap.PEAP ) ; }

Target:
public int getEapMethod ( ) { java.lang.String eapMethod = mFields.get ( android.net.wifi.WifiEnterpriseConfig.EAP_KEY ) ; return getStringIndex ( android.net.wifi.WifiEnterpriseConfig.Eap.strings , eapMethod , android.net.wifi.WifiEnterpriseConfig.Eap.NONE ) ; }
Source:
public static void w ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.WARN ) { android.util.Log.w ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } }

Target:
public static void wtf ( java.lang.Object objectPrefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { android.util.Slog.wtf ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) , tr ) ; }
Source:
public java.util.List < byte [ ] > getStatusResponses ( ) { if ( ( peerCertificateOcspData ) == null ) { return null ; } return java.util.Collections.singletonList ( peerCertificateOcspData.clone ( ) ) ; }

Target:
public java.util.List < byte [ ] > getStatusResponses ( ) { if ( ( peerCertificateOcspData ) == null ) { return java.util.Collections.< byte [ ] > emptyList ( ) ; } return java.util.Collections.singletonList ( peerCertificateOcspData.clone ( ) ) ; }
Source:
public java.util.Set < java.io.File > getFolders ( ) { return mFolders ; }

Target:
public java.util.List < java.io.File > getFiles ( ) { return mFiles ; }
Source:
public void testGetAMPMString ( ) { assertEquals ( "am" , android.text.format.DateUtils.getAMPMString ( java.util.Calendar.AM ) ) ; assertEquals ( "pm" , android.text.format.DateUtils.getAMPMString ( java.util.Calendar.PM ) ) ; }

Target:
public void testGetAMPMString ( ) { if ( ! ( android.text.format.cts.LocaleUtils.isCurrentLocale ( mContext , java.util.Locale.US ) ) ) { return ; } assertEquals ( "am" , android.text.format.DateUtils.getAMPMString ( java.util.Calendar.AM ) ) ; assertEquals ( "pm" , android.text.format.DateUtils.getAMPMString ( java.util.Calendar.PM ) ) ; }
Source:
public com.android.server.wifi.nan.WifiNanDiscoverySessionState getSession ( int sessionId ) { return mSessions.get ( sessionId ) ; }

Target:
public com.android.server.wifi.aware.WifiAwareDiscoverySessionState getSession ( int sessionId ) { return mSessions.get ( sessionId ) ; }
Source:
public boolean shouldShow ( ) { return ( ( com.android.dialer.buildtype.BuildType.get ( ) ) == ( com.android.dialer.buildtype.BuildType.BUGFOOD ) ) || ( com.android.dialer.common.LogUtil.isDebugEnabled ( ) ) ; }

Target:
public boolean shouldShow ( ) { return ( ( com.android.dialer.buildtype.BuildType.get ( ) ) == ( com.android.dialer.buildtype.BuildType.Type.BUGFOOD ) ) || ( com.android.dialer.common.LogUtil.isDebugEnabled ( ) ) ; }
Source:
void orderImpl ( java.nio.ByteOrder byteOrder ) { if ( byteOrder == null ) { byteOrder = java.nio.ByteOrder.LITTLE_ENDIAN ; } order = byteOrder ; }

Target:
public final java.nio.ByteBuffer order ( java.nio.ByteOrder byteOrder ) { if ( byteOrder == null ) { byteOrder = java.nio.ByteOrder.LITTLE_ENDIAN ; } order = byteOrder ; return this ; }
Source:
private static native void enableClassLoadEvents ( boolean b ) ;

Target:
private static native void enableClassLoadPreparePrintEvents ( boolean b ) ;
Source:
public void flush ( ) { try { delegate.flush ( ) ; } catch ( java.io.IOException ignored ) { } }

Target:
public long maxSize ( ) { return delegate.maxSize ( ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayRef expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayLength expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }
Source:
private java.lang.String toZoneIdStr ( java.lang.String expected ) { return expected.replaceAll ( "(?:GMT|UTC)(?<off>[+\\-]?[0-9]{2}:[0-9]{2})" , "${off}" ) ; }

Target:
private java.lang.String toZoneOffsetStr ( java.lang.String expected ) { return expected.replaceAll ( "GMT(?:\\+00:00)|UTC|UT" , "Z" ) . replaceAll ( "(?:GMT|UTC)([+\\-]?[0-9]{2}:[0-9]{2})" , "$1" ) ; }
Source:
public void onInterfaceAddressChangeNotification ( byte [ ] mac ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.NOTIFICATION_TYPE_INTERFACE_CHANGE ; msg.obj = mac ; mSm.sendMessage ( msg ) ; }

Target:
public void onInterfaceAddressChangeNotification ( byte [ ] mac ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.NOTIFICATION_TYPE_INTERFACE_CHANGE ; msg.obj = mac ; mSm.sendMessage ( msg ) ; }
Source:
public void setEnabled ( boolean enable ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.CONNECTIVITY_INTERNAL , "NsdService" ) ; mNsdSettings.putEnabledStatus ( enable ) ; if ( enable ) { mNsdStateMachine.sendMessage ( NsdManager.ENABLE ) ; } else { mNsdStateMachine.sendMessage ( NsdManager.DISABLE ) ; } }

Target:
public void setEnabled ( boolean isEnabled ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.CONNECTIVITY_INTERNAL , "NsdService" ) ; mNsdSettings.putEnabledStatus ( isEnabled ) ; notifyEnabled ( isEnabled ) ; }
Source:
public static java.lang.Iterable < java.lang.Class < ? extends com.android.rs.unittest.UnitTest > > getProperSubclasses ( ) throws java.io.IOException , java.lang.ClassNotFoundException { return com.android.rs.unittest.UnitTest.getProperSubclasses ( com.android.rs.unittest.UnitTest.class ) ; }

Target:
public static java.lang.Iterable < java.lang.Class < ? extends com.android.rs.unittest.UnitTest > > getProperSubclasses ( android.content.Context ctx ) throws java.io.IOException , java.lang.ClassNotFoundException { return com.android.rs.unittest.UnitTest.getProperSubclasses ( com.android.rs.unittest.UnitTest.class , ctx ) ; }
Source:
protected void onResume ( ) { super . onResume ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( HceUtils.ACTION_APDU_SEQUENCE_COMPLETE ) ; registerReceiver ( mReceiver , filter ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mAdapter = android.nfc.NfcAdapter.getDefaultAdapter ( this ) ; mCardEmulation = android.nfc.cardemulation.CardEmulation.getInstance ( mAdapter ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( HceUtils.ACTION_APDU_SEQUENCE_COMPLETE ) ; registerReceiver ( mReceiver , filter ) ; }
Source:
public com.google.common.base.Objects.ToStringHelper add ( java.lang.String name , int value ) { checkNameAndAppend ( name ) . append ( value ) ; return this ; }

Target:
public com.google.common.base.Objects.ToStringHelper add ( java.lang.String name , boolean value ) { return addHolder ( name , java.lang.String.valueOf ( value ) ) ; }
Source:
public static final java.io.File getTestRootDir ( @ javax.annotation.Nonnull java.lang.String packageName ) { return new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getTestsRootDir ( ) , packageName.replace ( "." , java.io.File.separator ) ) ; }

Target:
public static final java.io.File getTestRootDir ( @ javax.annotation.Nonnull java.lang.String packageName ) { return new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getTestsRootDir ( ) , packageName.replace ( '.' , java.io.File.separatorChar ) ) ; }
Source:
protected com.android.jack.ir.ast.JDefinedClassOrInterface loadClassOrInterface ( @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JTypeLookupException { for ( com.android.jack.load.PackageLoader loader : loaders ) { try { return loader.loadClassOrInterface ( this , simpleName ) ; } catch ( com.android.jack.lookup.JLookupException e ) { } } throw new com.android.jack.ir.ast.JTypeLookupException ( this , simpleName ) ; }

Target:
protected com.android.jack.ir.ast.JDefinedClassOrInterface loadClassOrInterface ( @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JTypeLookupException { for ( com.android.jack.load.PackageLoader loader : loaders ) { try { return loader.loadClassOrInterface ( this , simpleName ) ; } catch ( com.android.jack.lookup.JLookupException e ) { } } throw new com.android.jack.ir.ast.MissingJTypeLookupException ( this , simpleName ) ; }
Source:
com.google.common.collect.ImmutableMap < K , V > map ( ) { return this ; }

Target:
com.google.common.collect.ImmutableMap < K , com.google.common.collect.ImmutableSet < V > > map ( ) { return this ; }
Source:
public void testEnableUsage ( ) { mDut.enableUsage ( ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . enableUsage ( ) ; }

Target:
public void testEnableUsage ( ) { mDut.enableUsage ( ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . enableUsage ( ) ; }
Source:
public void setApiLevel ( int apiLevel , boolean experimental ) { this . opcodes = new org.jf.dexlib2.Opcodes ( apiLevel , experimental ) ; this . apiLevel = apiLevel ; }

Target:
public void setApiLevel ( int apiLevel ) { this . opcodes = org.jf.dexlib2.Opcodes.forApi ( apiLevel ) ; this . apiLevel = apiLevel ; }
Source:
public void setObfuscationMappingOutputFile ( @ javax.annotation.Nonnull java.io.File obfuscationMappingOutputFile ) { options.addProperty ( MappingPrinter.MAPPING_OUTPUT_ENABLED.getName ( ) , "true" ) ; options.addProperty ( MappingPrinter.MAPPING_OUTPUT_FILE.getName ( ) , obfuscationMappingOutputFile.getPath ( ) ) ; }

Target:
public void setObfuscationMappingOutputFile ( @ javax.annotation.Nonnull java.io.File obfuscationMappingOutputFile ) { options.addProperty ( MappingPrinter.MAPPING_OUTPUT_ENABLED.getName ( ) , "true" ) ; options.addProperty ( MappingPrinter.MAPPING_OUTPUT_FILE.getName ( ) , com.android.jack.api.v04.impl.Api04ConfigImpl.manageFileCharset ( obfuscationMappingOutputFile ) . getPath ( ) ) ; }
Source:
public org.objectweb.asm.tree.AbstractInsnNode clone ( final java.util.Map < org.objectweb.asm.tree.LabelNode , org.objectweb.asm.tree.LabelNode > labels ) { return new org.objectweb.asm.tree.MethodInsnNode ( opcode , owner , name , desc ) ; }

Target:
public org.objectweb.asm.tree.AbstractInsnNode clone ( final java.util.Map < org.objectweb.asm.tree.LabelNode , org.objectweb.asm.tree.LabelNode > labels ) { return new org.objectweb.asm.tree.MethodInsnNode ( opcode , owner , name , desc , itf ) ; }
Source:
public static void lowLevelShutdown ( ) { android.os.SystemProperties.set ( "sys.powerctl" , "shutdown" ) ; }

Target:
public static void lowLevelShutdown ( java.lang.String reason ) { if ( reason == null ) { reason = "" ; } android.os.SystemProperties.set ( "sys.powerctl" , ( "shutdown," + reason ) ) ; }
Source:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "delete_odex" , apkPath , instructionSet , outputPath ) ; }

Target:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void replaceWith ( com.android.layoutlib.utils.ResourceValue value ) { super . replaceWith ( value ) ; if ( value instanceof com.android.layoutlib.utils.StyleResourceValue ) { mItems.clear ( ) ; mItems.putAll ( ( ( com.android.layoutlib.utils.StyleResourceValue ) ( value ) ) . mItems ) ; } }

Target:
public void replaceWith ( com.android.ide.common.layoutlib.ResourceValue value ) { super . replaceWith ( value ) ; if ( value instanceof com.android.ide.common.layoutlib.StyleResourceValue ) { mItems.clear ( ) ; mItems.putAll ( ( ( com.android.ide.common.layoutlib.StyleResourceValue ) ( value ) ) . mItems ) ; } }
Source:
public static org.hamcrest.org.hamcrest.Matcher < java.lang.Object > is ( java.lang.Class < ? > type ) { return org.hamcrest.core.Is.is ( type ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > any ( java.lang.Class < T > type ) { return org.hamcrest.core.IsInstanceOf.< T > any ( type ) ; }
Source:
public void compileExt ( ) throws java.lang.Exception { com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( com.android.jack.compile.androidtree.ext.ExtCompilationTest.CLASSPATH ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST ) ; }

Target:
public void compileExt ( ) throws java.lang.Exception { com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.addToClasspath ( com.android.jack.compile.androidtree.ext.ExtCompilationTest.CLASSPATH ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST ) ; }
Source:
public void visitTypeInsn ( int opcode , java.lang.String type ) { printer.visitTypeInsn ( opcode , type ) ; printTypeOfOperandStackTop ( ) ; super . visitTypeInsn ( opcode , type ) ; }

Target:
public void visitTypeInsn ( int opcode , java.lang.String type ) { printer.visitTypeInsn ( opcode , type ) ; printTypeOfOperandStack ( ) ; super . visitTypeInsn ( opcode , type ) ; }
Source:
public boolean isOpened ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isOpened ( mSlotId , mSupportedFeature ) ; } }

Target:
public void removeRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . removeRegistrationListener ( mSlotId , mSupportedFeature , listener ) ; } }
Source:
public void testExtractDecodeEditEncodeMux720p ( ) throws java.lang.Throwable { setSize ( 1280 , 720 ) ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyVideo ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }

Target:
public void testExtractDecodeEditEncodeMuxAudioVideo ( ) throws java.lang.Throwable { if ( ! ( setSize ( 1280 , 720 ) ) ) return ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyAudio ( ) ; setCopyVideo ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }
Source:
public static native java.lang.String getCurrencySymbol ( java.lang.String locale , java.lang.String currencyCode ) ;

Target:
private static native java.lang.String getDisplayLanguageNative ( java.lang.String targetLanguageTag , java.lang.String languageTag ) ;
Source:
public void addData ( java.lang.String label , com.android.vts.entity.ProfilingPointRunEntity profilingPoint ) { addSeriesData ( label , "" , profilingPoint ) ; }

Target:
public void addData ( java.lang.String label , com.android.vts.entity.ProfilingPointRunEntity profilingPoint ) { com.android.vts.util.StatSummary stat = new com.android.vts.util.StatSummary ( label , VtsReportMessage.VtsProfilingRegressionMode.UNKNOWN_REGRESSION_MODE ) ; for ( long value : profilingPoint.values ) { stat.updateStats ( value ) ; } addSeriesData ( label , "" , stat ) ; }
Source:
public void testUserPrefOffUserI ( ) { int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_INTERNAL ; int iloc = PackageInfo.INSTALL_LOCATION_UNSPECIFIED ; setUserX ( false , userSetting , iloc ) ; }

Target:
public void testUserPrefOffUserE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ; int iloc = android.content.pm.PackageInfo.INSTALL_LOCATION_UNSPECIFIED ; setUserX ( false , userSetting , iloc ) ; }
Source:
private synchronized int getNextMergerIdx ( int oldMergerIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewMerger ( ) ) ; return getCurrentMergerIdx ( ) ; }

Target:
private synchronized int getNextMergerIdx ( int oldMergerIdx , int typeIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewJackMerger ( typeIdx ) ) ; return getCurrentMergerIdx ( ) ; }
Source:
public void checkStateChanged ( org.eclipse.jface.viewers.CheckStateChangedEvent event ) { onTreeCheckStateChanged ( event ) ; }

Target:
public void setContentProvider ( com.android.sdkuilib.internal.repository.core.PkgContentProvider pkgContentProvider ) { mTreeViewer.setContentProvider ( pkgContentProvider ) ; }
Source:
private boolean isContactEditable ( ) { return ( ( mContactData ) != null ) && ( ! ( mContactData.isDirectoryEntry ( ) ) ) ; }

Target:
private boolean isContactShareable ( ) { return ( ( mContactData ) != null ) && ( ! ( mContactData.isDirectoryEntry ( ) ) ) ; }
Source:
public void setUp ( ) { TEST_2008_06 = java.time.YearMonth.of ( 2008 , 6 ) ; }

Target:
public static void setUp ( ) { tck.java.time.TCKYearMonth.TEST_2008_06 = java.time.YearMonth.of ( 2008 , 6 ) ; }
Source:
public void supplyPin ( java.lang.String pin , android.os.Message onComplete ) { synchronized ( mLock ) { mCi.supplyIccPin ( pin , onComplete ) ; } }

Target:
public void supplyPin ( java.lang.String pin , android.os.Message onComplete ) { synchronized ( mLock ) { mCi.supplyIccPinForApp ( pin , mAid , mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccCardApplication.EVENT_PIN1_PUK1_DONE , onComplete ) ) ; } }
Source:
public static java.net.InetAddress getByNameOnNet ( java.lang.String host , int netId ) throws java.net.UnknownHostException { return java.net.InetAddress.getAllByNameImpl ( host , netId ) [ 0 ] ; }

Target:
public static java.net.InetAddress [ ] getAllByNameOnNet ( java.lang.String host , int netId ) throws java.net.UnknownHostException { return java.net.InetAddress.impl.lookupAllHostAddr ( host , netId ) . clone ( ) ; }
Source:
public int hashCode ( ) { int primeNum = 31 ; return ( ( mSignalStrength ) * primeNum ) + ( ( mBitErrorRate ) * primeNum ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( mSignalStrength , mBitErrorRate , mTimingAdvance ) ; }
Source:
public com.android.build.gradle.integration.common.fixture.GradleTestProject.Builder forExpermimentalPlugin ( boolean mode ) { this . experimentalMode = mode ; return this ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject.Builder forExpermimentalPlugin ( boolean mode ) { this . useExperimentalGradleVersion = mode ; this . experimentalMode = mode ; return this ; }
Source:
public void setDtmfText ( java.lang.String text ) { mDtmfDialerField.setText ( android.telephony.PhoneNumberUtils.ttsSpanAsPhoneNumber ( text ) ) ; }

Target:
public void setDtmfText ( java.lang.String text ) { mDtmfDialerField.setText ( android.telephony.PhoneNumberUtils.createTtsSpannable ( text ) ) ; }
Source:
public double expectedFalsePositiveProbability ( ) { return java.lang.Math.pow ( ( ( ( double ) ( bits.bitCount ( ) ) ) / ( bits.size ( ) ) ) , numHashFunctions ) ; }

Target:
public double expectedFpp ( ) { return java.lang.Math.pow ( ( ( ( double ) ( bits.bitCount ( ) ) ) / ( bitSize ( ) ) ) , numHashFunctions ) ; }
Source:
public static java.io.File getJackTestFolder ( @ javax.annotation.Nonnull java.lang.String testName ) { return com.android.jack.TestTools.getFromAndroidTree ( ( ( ( com.android.jack.TestTools.JACK_TESTS_PATH ) + ( com.android.jack.TestTools.JACK_PACKAGE ) ) + testName ) ) ; }

Target:
public static java.io.File getJackTestFolder ( @ javax.annotation.Nonnull java.lang.String testName ) { return new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , ( ( ( com.android.jack.TestTools.JACK_TESTS_PATH ) + ( com.android.jack.TestTools.JACK_PACKAGE ) ) + testName ) ) ; }
Source:
synchronized void nScriptInvoke ( long id , int slot ) { validate ( ) ; rsnScriptInvoke ( mContext , id , slot ) ; }

Target:
synchronized void nScriptInvoke ( long id , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptInvoke ( curCon , id , slot , mUseInc ) ; }
Source:
public int run ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.Nonnull java.lang.String [ ] mainClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) throws com.android.jack.test.runner.RuntimeRunnerException { return runOnHost ( buildCommandLine ( options , mainClasses , classpathFiles ) , "ANDROID_HOST_OUT" ) ; }

Target:
public int runJUnit ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.Nonnull java.lang.String jUnitRunnerName , @ javax.annotation.Nonnull java.lang.String [ ] jUnitTestClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) throws com.android.jack.test.runner.RuntimeRunnerException { return runOnHost ( buildCommandLine ( options , jUnitRunnerName , jUnitTestClasses , classpathFiles ) , "ANDROID_HOST_OUT" ) ; }
Source:
public libcore.util.ZoneInfoTestHelper.TzDataBuilder setZoneTabOffsetOverride ( int zoneTabOffset ) { this . zoneTabOffsetOverride = zoneTabOffset ; return this ; }

Target:
public libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder setZoneTabOffsetOverride ( int zoneTabOffset ) { this . zoneTabOffsetOverride = zoneTabOffset ; return this ; }
Source:
public void onReceiveUssdResponse ( java.lang.String request , java.lang.CharSequence response ) { }

Target:
public void onReceiveUssdResponse ( final android.telephony.TelephonyManager telephonyManager , java.lang.String request , java.lang.CharSequence response ) { }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.sched.scheduler.ScheduleInstance < ? super com.android.sched.item.Component > schedule ) throws java.lang.Exception { schedule.process ( this ) ; annotations.traverse ( schedule ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.sched.scheduler.ScheduleInstance < ? super com.android.sched.item.Component > schedule ) throws java.lang.Exception { schedule.process ( this ) ; for ( com.android.jack.ir.ast.JAnnotation annotation : annotations ) { annotation.traverse ( schedule ) ; } }
Source:
public java.lang.String toString ( ) { return android.net.MacAddress.stringAddrFromByteAddr ( android.net.MacAddress.byteAddrFromLongAddr ( mAddr ) ) ; }

Target:
public java.lang.String toString ( ) { return android.net.MacAddress.stringAddrFromLongAddr ( mAddr ) ; }
Source:
boolean isVisible ( ) { return ( ( u2accessFlags ) & ( ClassConstants.INTERNAL_ACC_PUBLIC ) ) != 0 ; }

Target:
boolean isVisible ( ) { return ( ( u2accessFlags ) & ( ClassConstants.ACC_PUBLIC ) ) != 0 ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { project.deleteMarkers ( markerType , true , IResource.DEPTH_INFINITE ) ; } catch ( org.eclipse.core.runtime.CoreException e2 ) { return e2.getStatus ( ) ; } return org.eclipse.core.runtime.Status.OK_STATUS ; }

Target:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { if ( project.isAccessible ( ) ) { project.deleteMarkers ( markerType , true , IResource.DEPTH_INFINITE ) ; } } catch ( org.eclipse.core.runtime.CoreException e2 ) { return e2.getStatus ( ) ; } return org.eclipse.core.runtime.Status.OK_STATUS ; }
Source:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setTestPackageName ( java.lang.String testPackageName ) { this . testPackageName = testPackageName ; return this ; }

Target:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setTestApplicationId ( java.lang.String testApplicationId ) { this . testApplicationId = testApplicationId ; return this ; }
Source:
protected com.android.jack.test.toolchain.JackCliToolchain setVerbosityLevel ( @ javax.annotation.Nonnull com.android.jack.Options.VerbosityLevel level ) { verbosityLevel = level ; return this ; }

Target:
public com.android.jack.test.toolchain.JackCliToolchain setVerbose ( boolean isVerbose ) { super . setVerbose ( isVerbose ) ; verbosityLevel = ( isVerbose ) ? com.android.jack.Options.VerbosityLevel.DEBUG : com.android.jack.Options.VerbosityLevel.WARNING ; return this ; }
Source:
public void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "MediaController playback changed: " + ( state.toString ( ) ) ) ) ; updatePlayPauseState ( state ) ; }

Target:
public void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "MediaController playback changed: " + ( state.toString ( ) ) ) ) ; updatePlaybackState ( state ) ; }
Source:
public static native boolean ensureInOsrCode ( ) ;

Target:
public static native boolean isInInterpreter ( java.lang.String methodName ) ;
Source:
public static void loop9 ( ) { while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { boolean incoming = Main.field ; while ( incoming ) { } } }

Target:
public static void loop9 ( ) { java.lang.System.out.println ( "Enter" ) ; while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { boolean incoming = Main.field ; while ( incoming ) { } } }
Source:
public void passTest ( ) { if ( ( result ) != ( - 1 ) ) { result = 1 ; } updateUI ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String out = name ; if ( ( result ) == ( com.android.rs.test.UnitTest.TEST_PASSED ) ) { out += " - PASSED" ; } else if ( ( result ) == ( com.android.rs.test.UnitTest.TEST_FAILED ) ) { out += " - FAILED" ; } return out ; }
Source:
java.io.File getFile ( ) ;

Target:
java.io.File getSrcFile ( ) ;
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { boolean listMode = mSkinListRadio.getSelection ( ) ; enableSkinWidgets ( listMode ) ; validatePage ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { loadSkin ( ) ; }
Source:
private java.util.List < java.util.logging.LogManager.LoggerContext > contexts ( ) { java.util.List < java.util.logging.LogManager.LoggerContext > cxs = new java.util.ArrayList < > ( ) ; cxs.add ( systemContext ) ; cxs.add ( getUserContext ( ) ) ; return cxs ; }

Target:
private java.util.List < java.util.logging.LogManager.LoggerContext > contexts ( ) { java.util.List < java.util.logging.LogManager.LoggerContext > cxs = new java.util.ArrayList < > ( ) ; cxs.add ( getSystemContext ( ) ) ; cxs.add ( getUserContext ( ) ) ; return cxs ; }
Source:
public void addAllNetworks ( java.util.Collection < com.android.sdklib.devices.Network > ns ) { mNetworking.addAll ( ns ) ; }

Target:
public void addNetwork ( @ com.android.annotations.NonNull com.android.sdklib.devices.Network n ) { mNetworking.add ( n ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { launchChooseLockscreen ( ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { exitGuest ( ) ; }
Source:
public void testMultiProject ( ) throws java.lang.Exception { assertEquals ( "strings.xml:7: Warning: The resource R.string.string3 appears to be unused" , lintProject ( "multiproject/main-manifest.xml=>AndroidManifest.xml" , "multiproject/main.properties=>project.properties" , "multiproject/MainCode.java.txt=>src/foo/main/MainCode.java" , "multiproject/library-manifest.xml=>../LibraryProject/AndroidManifest.xml" , "multiproject/library.properties=>../LibraryProject/project.properties" , "multiproject/LibraryCode.java.txt=>../LibraryProject/src/foo/library/LibraryCode.java" , "multiproject/strings.xml=>../LibraryProject/res/values/strings.xml" ) ) ; }

Target:
public void testMultiProjectIgnoreLibraries ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "multiproject/main-manifest.xml=>AndroidManifest.xml" , "multiproject/main.properties=>project.properties" , "multiproject/MainCode.java.txt=>src/foo/main/MainCode.java" , "multiproject/library-manifest.xml=>../LibraryProject/AndroidManifest.xml" , "multiproject/library.properties=>../LibraryProject/project.properties" , "multiproject/LibraryCode.java.txt=>../LibraryProject/src/foo/library/LibraryCode.java" , "multiproject/strings.xml=>../LibraryProject/res/values/strings.xml" ) ) ; }
Source:
public static java.net.InetAddress getByName ( java.lang.String host ) throws java.net.UnknownHostException { return java.net.InetAddress.getAllByName ( host ) [ 0 ] ; }

Target:
public static java.net.InetAddress getByName ( java.lang.String host ) throws java.net.UnknownHostException { return java.net.InetAddress.impl.lookupAllHostAddr ( host , java.net.InetAddress.NETID_UNSET ) [ 0 ] ; }
Source:
public libcore.tzdata.update2.tools.TimeZoneBundleBuilder setAndroidRevision ( java.lang.String androidRevision ) { this . androidRevision = androidRevision ; return this ; }

Target:
public libcore.tzdata.update2.tools.TimeZoneBundleBuilder replaceFormatVersionForTests ( int majorVersion , int minorVersion ) { try { bundleVersion = new libcore.tzdata.update2.BundleVersion ( majorVersion , minorVersion , bundleVersion.rulesVersion , bundleVersion.revision ) ; } catch ( libcore.tzdata.update2.BundleException e ) { throw new java.lang.IllegalArgumentException ( ) ; } return this ; }
Source:
public void callSessionMergeStarted ( com.android.ims.internal.IImsCallSession newSession , com.android.ims.ImsCallProfile profile ) { android.util.Log.d ( com.android.ims.internal.ImsCallSession.TAG , "callSessionMergeStarted" ) ; }

Target:
public void callSessionMergeStarted ( com.android.ims.internal.IImsCallSession newSession , android.telephony.ims.ImsCallProfile profile ) { android.util.Log.d ( android.telephony.ims.ImsCallSession.TAG , "callSessionMergeStarted" ) ; }
Source:
public boolean isChainValid ( java.lang.String hostname , java.util.List < java.security.cert.X509Certificate > chain ) throws org.conscrypt.PinManagerException { final org.conscrypt.PinListEntry entry = lookup ( hostname ) ; if ( entry == null ) { return true ; } return entry.isChainValid ( chain ) ; }

Target:
void checkChainPinning ( java.lang.String hostname , java.util.List < java.security.cert.X509Certificate > chain ) throws java.security.cert.CertificateException ;
Source:
public com.google.common.primitives.UnsignedLong subtract ( com.google.common.primitives.UnsignedLong val ) { com.google.common.base.Preconditions.checkNotNull ( val ) ; return com.google.common.primitives.UnsignedLong.asUnsigned ( ( ( this . value ) - ( val.value ) ) ) ; }

Target:
public com.google.common.primitives.UnsignedLong plus ( com.google.common.primitives.UnsignedLong val ) { return com.google.common.primitives.UnsignedLong.fromLongBits ( ( ( this . value ) + ( com.google.common.base.Preconditions.checkNotNull ( val ) . value ) ) ) ; }
Source:
public static int intToFloatToInt ( int value ) { return ( ( int ) ( ( float ) ( value ) ) ) ; }

Target:
public static int $noinline$intToDoubleToInt ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( double ) ( value ) ) ) ; }
Source:
public V2 getValue ( ) { return transformer.transformEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; }

Target:
static < V > V valueOrNull ( @ javax.annotation.Nullable java.util.Map.Entry < ? , V > entry ) { return entry == null ? null : entry.getValue ( ) ; }
Source:
private void emitUnsignedLeb128 ( int n ) throws java.io.IOException { if ( n < 0 ) { throw new java.lang.RuntimeException ( ( "Signed value where unsigned required: " + n ) ) ; } output.writeSignedLeb128 ( n ) ; }

Target:
private void emitUnsignedLeb128 ( int n ) throws java.io.IOException { if ( n < 0 ) { throw new java.lang.RuntimeException ( ( "Signed value where unsigned required: " + n ) ) ; } output.writeUnsignedLeb128 ( n ) ; }
Source:
public void start ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { super . start ( context ) ; com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPlugin.plugin = this ; }

Target:
public void run ( ) { director.initDebugBridge ( ) ; director.startListenForDevices ( ) ; director.populateDeviceSelectionModel ( ) ; }
Source:
protected void setProgressBarVisible ( boolean visible ) { if ( ( mProgressHeader ) != null ) { mProgressHeader.setVisibility ( ( visible ? android.view.View.VISIBLE : android.view.View.GONE ) ) ; } }

Target:
protected void setProgressBarVisible ( boolean visible ) { if ( ( mProgressHeader ) != null ) { mProgressHeader.setVisibility ( ( visible && ( ! ( isUiRestricted ( ) ) ) ? android.view.View.VISIBLE : android.view.View.GONE ) ) ; } }
Source:
public static void computeFmin ( android.renderscript.cts.TestFmin.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.min ( args.inX , args.inY ) ; }

Target:
public static void computePow ( android.renderscript.cts.TestPow.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.pow ( args.inX , args.inY ) , 16 , 128 ) ; }
Source:
public boolean enqueue ( ) { return enqueueInternal ( ) ; }

Target:
public boolean enqueue ( ) { return ( ( queue ) != null ) && ( queue.enqueue ( this ) ) ; }
Source:
private void addServerMode ( @ javax.annotation.Nonnegative int delay , @ javax.annotation.Nonnull com.android.jack.server.ServerMode newMode ) { delayedModes.add ( new com.android.jack.server.JackHttpServer.TimedServerMode ( ( delay * 1000L ) , newMode ) ) ; }

Target:
private void addServerMode ( @ javax.annotation.Nonnegative int delay , @ javax.annotation.Nonnull com.android.jack.server.ServerMode newMode ) { if ( delay == ( ConfigFile.TIME_DISABLED_VALUE ) ) { return ; } delayedModes.add ( new com.android.jack.server.JackHttpServer.TimedServerMode ( ( delay * 1000L ) , newMode ) ) ; }
Source:
public final native boolean [ ] readBoolVector ( ) ;

Target:
private final native boolean [ ] readBoolVectorAsArray ( ) ;
Source:
public boolean addPasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; return mPasspointManager.addProvider ( config ) ; }

Target:
public boolean addOrUpdatePasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; return mPasspointManager.addOrUpdateProvider ( config ) ; }
Source:
public static com.google.gct.testing.GoogleCloudTestingConfigurationImpl getSelectedGoogleCloudTestingConfiguration ( java.lang.String testRunId ) { return com.google.gct.testing.GoogleCloudTestingConfigurationFactoryImpl.testRunIdToCloudConfiguration.get ( testRunId ) ; }

Target:
public static com.google.gct.testing.CloudTestConfigurationImpl getSelectedGoogleCloudTestingConfiguration ( java.lang.String testRunId ) { return com.google.gct.testing.CloudTestConfigurationProviderImpl.testRunIdToCloudConfiguration.get ( testRunId ) ; }
Source:
public boolean setRadioPower ( boolean turnOn ) { return setRadioPowerForSubscriber ( getDefaultSubscription ( ) , turnOn ) ; }

Target:
public boolean setRadioPower ( boolean turnOn ) { final com.android.internal.telephony.Phone defaultPhone = com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; if ( defaultPhone != null ) { defaultPhone.setRadioPower ( turnOn ) ; return true ; } else { com.android.phone.PhoneInterfaceManager.loge ( "There's no default phone." ) ; return false ; } }
Source:
protected static java.lang.String spOptionsToString ( int option ) { return android.icu.dev.test.bidi.BidiTest.optionToString ( option , android.icu.dev.test.bidi.BidiTest.SETPARA_MASK , android.icu.dev.test.bidi.BidiTest.setParaDescriptions ) ; }

Target:
protected static java.lang.String spOptionsToString ( int option ) { return android.icu.dev.test.bidi.BidiFmwk.optionToString ( option , android.icu.dev.test.bidi.BidiFmwk.SETPARA_MASK , android.icu.dev.test.bidi.BidiFmwk.setParaDescriptions ) ; }
Source:
public void onChange ( boolean selfChange ) { update ( ) ; try { mWindowManager.setRotation ( com.android.internal.policy.impl.USE_LAST_ROTATION , false , mFancyRotationAnimation ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void onChange ( boolean selfChange ) { updateSettings ( ) ; try { mWindowManager.setRotation ( com.android.internal.policy.impl.USE_LAST_ROTATION , false , mFancyRotationAnimation ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public boolean matches ( final java.lang.Object o ) { assertEquals ( message.getMessageText ( ) , ( ( com.android.messaging.datamodel.data.MessageData ) ( o ) ) . getMessageText ( ) ) ; return true ; }

Target:
public boolean matchesObject ( final java.lang.Object o ) { assertEquals ( message.getMessageText ( ) , ( ( com.android.messaging.datamodel.data.MessageData ) ( o ) ) . getMessageText ( ) ) ; return true ; }
Source:
public java.lang.String getMessage ( ) { return "Error during the library writing phase: " + ( getCause ( ) . getMessage ( ) ) ; }

Target:
public java.lang.String getMessage ( ) { return "Library writing phase: " + ( getCause ( ) . getMessage ( ) ) ; }
Source:
public static boolean getDebuggable ( com.android.sdklib.io.IAbstractFile manifestFile ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String value = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_APPLICATION ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_DEBUGGABLE ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; return java.lang.Boolean.parseBoolean ( value ) ; }

Target:
public static boolean getDebuggable ( com.android.io.IAbstractFile manifestFile ) throws com.android.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String value = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_APPLICATION ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_DEBUGGABLE ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; return java.lang.Boolean.parseBoolean ( value ) ; }
Source:
public void testParsedResourcesByCount ( ) throws java.lang.Exception { java.util.List < com.android.ide.common.res2.ResourceItem > resources = com.android.ide.common.res2.ValueResourceParser2Test.getParsedResources ( ) ; assertEquals ( 20 , resources.size ( ) ) ; }

Target:
public void testParsedResourcesByCount ( ) throws java.lang.Exception { java.util.List < com.android.ide.common.res2.ResourceItem > resources = com.android.ide.common.res2.ValueResourceParser2Test.getParsedResources ( ) ; assertEquals ( 19 , resources.size ( ) ) ; }
Source:
public void visitAnnotation ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Annotation annotation ) { annotation.referencedClasses = findReferencedClasses ( clazz.getName ( ) , clazz.getString ( annotation.u2typeIndex ) ) ; annotation.elementValuesAccept ( clazz , this ) ; }

Target:
public void visitAnnotation ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Annotation annotation ) { annotation.referencedClasses = findReferencedClasses ( clazz.getName ( ) , annotation.getType ( clazz ) ) ; annotation.elementValuesAccept ( clazz , this ) ; }
Source:
public boolean isEntryStored ( java.lang.String entryName ) { java.util.zip.ZipEntry entry = jarFile.findEntry ( entryName ) ; return ( entry != null ) && ( ( entry.getMethod ( ) ) == ( java.util.zip.ZipEntry.STORED ) ) ; }

Target:
java.util.jar.JarFile getSharedJarFile ( ) throws java.io.IOException { synchronized ( this ) { if ( ( jarFile ) == null ) { jarFile = new java.util.jar.JarFile ( strictJarFile.getName ( ) ) ; } } return jarFile ; }
Source:
public void run ( com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { new com.android.jack.util.graph.DominanceFrontier ( cfg ) . run ( ) ; }

Target:
public void run ( com.android.jack.ir.ast.JMethodBodyCfg body ) { new com.android.jack.util.graph.DominanceFrontier ( body.getCfg ( ) ) . run ( ) ; }
Source:
public static long bar ( int i ) { return i ; }

Target:
public static int directIntrinsic ( int x ) { int abs1 = java.lang.Math.abs ( x ) ; int abs2 = java.lang.Math.abs ( x ) ; return abs1 + abs2 ; }
Source:
public java.lang.String getIccId ( ) { return mIccId ; }

Target:
public java.lang.String getIccId ( ) { if ( ( mIccId ) != null ) { return mIccId ; } else if ( ( mUiccCard ) != null ) { return mUiccCard.getIccId ( ) ; } else { return null ; } }
Source:
public void binderDied ( ) { android.util.Log.e ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "ImsService(" + ( mComponentName ) ) + ") died. Cleaning up." ) ) ; notifyAllFeaturesRemoved ( ) ; cleanUpService ( ) ; mHandler.postDelayed ( mRestartImsServiceRunnable , mRebindRetry.getRetryTimeout ( ) ) ; }

Target:
private void startDelayedRebindToService ( ) { if ( ! ( mHandler.hasCallbacks ( mRestartImsServiceRunnable ) ) ) { mHandler.postDelayed ( mRestartImsServiceRunnable , mRebindRetry.getRetryTimeout ( ) ) ; } }
Source:
public com.android.sched.util.codec.Formatter < ? > [ ] getFormatters ( ) { return new com.android.sched.util.codec.Formatter < ? > [ ] { new com.android.sched.util.codec.LongCodec ( ) , new com.android.sched.util.codec.ByteFormatter ( ) } ; }

Target:
public com.android.sched.util.print.DataView getDataView ( ) { return com.android.sched.util.log.stats.Alloc.DATA_VIEW ; }
Source:
public void testSerializationGolden ( ) throws java.lang.Exception { org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden ( this , getSerializationData ( ) ) ; }

Target:
public void testSerializationGolden ( ) throws java.lang.Exception { org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden ( this , getSerializationData ( ) , new org.apache.harmony.tests.javax.security.auth.callback.PasswordCallbackTest.PasswordCallbackAssert ( ) ) ; }