auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > createWpaSupplicantLoadData ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { java.util.List < android.net.wifi.WifiConfiguration > newConfigurations = createMaskedWifiConfigurations ( configurations ) ; java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configurationMap = new java.util.HashMap < > ( ) ; for ( android.net.wifi.WifiConfiguration config : newConfigurations ) { configurationMap.put ( config.configKey ( true ) , config ) ; } return configurationMap ; }

Target:
private java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > createWpaSupplicantLoadData ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { java.util.List < android.net.wifi.WifiConfiguration > newConfigurations ; if ( WifiNative.HIDL_SUP_ENABLE ) { newConfigurations = configurations ; } else { newConfigurations = createMaskedWifiConfigurations ( configurations ) ; } java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configurationMap = new java.util.HashMap < > ( ) ; for ( android.net.wifi.WifiConfiguration config : newConfigurations ) { configurationMap.put ( config.configKey ( true ) , config ) ; } return configurationMap ; }
Source:
public int getNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getDataNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }

Target:
public int getVoiceNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDataNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getVoiceNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }
Source:
void abort ( ) { com.android.server.telecom.Log.v ( this , "abort" ) ; com.android.server.telecom.CreateConnectionResponse response = mCallResponse ; mCallResponse = null ; clearTimeout ( ) ; com.android.server.telecom.ConnectionServiceWrapper service = mCall.getConnectionService ( ) ; if ( service != null ) { service.abort ( mCall ) ; mCall.clearConnectionService ( ) ; } if ( response != null ) { response.handleCreateConnectionFailure ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; } }

Target:
void abort ( ) { android.telecom.Log.v ( this , "abort" ) ; com.android.server.telecom.CreateConnectionResponse response = mCallResponse ; mCallResponse = null ; clearTimeout ( ) ; com.android.server.telecom.ConnectionServiceWrapper service = mCall.getConnectionService ( ) ; if ( service != null ) { service.abort ( mCall ) ; mCall.clearConnectionService ( ) ; } if ( response != null ) { response.handleCreateConnectionFailure ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; } }
Source:
public void test_sl_dates ( ) throws java.lang.Exception { java.text.DateFormat df = java.text.DateFormat.getDateInstance ( java.text.DateFormat.SHORT , new java.util.Locale ( "sl" ) ) ; df.setTimeZone ( java.util.TimeZone.getTimeZone ( "UTC" ) ) ; assertEquals ( "1. 1. 70" , df.format ( 0L ) ) ; }

Target:
public void test_sl_dates ( ) throws java.lang.Exception { java.text.DateFormat df = java.text.DateFormat.getDateInstance ( java.text.DateFormat.SHORT , new java.util.Locale ( "sl" ) ) ; assertEquals ( java.util.TimeZone.getDefault ( ) , df.getTimeZone ( ) ) ; df.setTimeZone ( libcore.java.text.SimpleDateFormatTest.UTC ) ; assertEquals ( "1. 1. 70" , df.format ( 0L ) ) ; }
Source:
private int getEventType ( int infoType ) { int eventType = - 1 ; switch ( infoType ) { case DrmInfoRequest.TYPE_REGISTRATION_INFO : eventType = DrmEvent.TYPE_REGISTERED ; break ; case DrmInfoRequest.TYPE_UNREGISTRATION_INFO : eventType = DrmEvent.TYPE_UNREGISTERED ; break ; case DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO : eventType = DrmEvent.TYPE_RIGHTS_ACQUIRED ; break ; } return eventType ; }

Target:
private int getErrorType ( int infoType ) { int error = - 1 ; switch ( infoType ) { case DrmInfoRequest.TYPE_REGISTRATION_INFO : case DrmInfoRequest.TYPE_UNREGISTRATION_INFO : case DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_INFO : error = DrmErrorEvent.TYPE_PROCESS_DRM_INFO_FAILED ; break ; } return error ; }
Source:
public boolean isEndpointClass ( com.intellij.psi.PsiElement psiElement ) { com.intellij.psi.PsiClass psiClass = com.google.gct.intellij.endpoints.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( ( ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , true ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_CLASS , true ) ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_REFERENCE , true ) ) ) { return true ; } else { return false ; } }

Target:
public boolean isEndpointClass ( com.intellij.psi.PsiElement psiElement ) { com.intellij.psi.PsiClass psiClass = com.google.gct.idea.appengine.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( ( ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , true ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_CLASS , true ) ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_REFERENCE , true ) ) ) { return true ; } else { return false ; } }
Source:
private static java.nio.ByteBuffer getZipCentralDirectory ( com.android.apksig.util.DataSource apk , com.android.apksig.apk.ApkUtils.ZipSections apkSections ) throws com.android.apksig.zip.ZipFormatException , java.io.IOException { long cdSizeBytes = apkSections.getZipCentralDirectorySizeBytes ( ) ; if ( cdSizeBytes > ( java.lang.Integer.MAX_VALUE ) ) { throw new com.android.apksig.zip.ZipFormatException ( ( "ZIP Central Directory too large: " + cdSizeBytes ) ) ; } long cdOffset = apkSections.getZipCentralDirectoryOffset ( ) ; java.nio.ByteBuffer cd = apk.getByteBuffer ( cdOffset , ( ( int ) ( cdSizeBytes ) ) ) ; cd.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; return cd ; }

Target:
private static java.nio.ByteBuffer getZipCentralDirectory ( com.android.apksig.util.DataSource apk , com.android.apksig.apk.ApkUtils.ZipSections apkSections ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException { long cdSizeBytes = apkSections.getZipCentralDirectorySizeBytes ( ) ; if ( cdSizeBytes > ( java.lang.Integer.MAX_VALUE ) ) { throw new com.android.apksig.apk.ApkFormatException ( ( "ZIP Central Directory too large: " + cdSizeBytes ) ) ; } long cdOffset = apkSections.getZipCentralDirectoryOffset ( ) ; java.nio.ByteBuffer cd = apk.getByteBuffer ( cdOffset , ( ( int ) ( cdSizeBytes ) ) ) ; cd.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; return cd ; }
Source:
private org.objectweb.asm.tree.ClassNode getClassNode ( @ javax.annotation.Nonnull java.io.InputStream is ) throws java.io.IOException { org.objectweb.asm.ClassReader cr = new org.objectweb.asm.ClassReader ( is ) ; org.objectweb.asm.tree.ClassNode cn = new org.objectweb.asm.tree.ClassNode ( ) ; cr.accept ( cn , ( ( org.objectweb.asm.ClassReader.SKIP_FRAMES ) | ( options.isEmitDebugInfo ( ) ? 0 : org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; return cn ; }

Target:
private org.objectweb.asm.tree.ClassNode getClassNode ( @ javax.annotation.Nonnull java.io.InputStream is ) throws java.io.IOException { try { org.objectweb.asm.ClassReader cr = new org.objectweb.asm.ClassReader ( is ) ; org.objectweb.asm.tree.ClassNode cn = new org.objectweb.asm.tree.ClassNode ( ) ; cr.accept ( cn , ( ( org.objectweb.asm.ClassReader.SKIP_FRAMES ) | ( options.isEmitDebugInfo ( ) ? 0 : org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; return cn ; } catch ( java.lang.IllegalArgumentException e ) { throw new com.android.jill.JillException ( "class files coming from an unsupported Java version" , e ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; DefaultDeclared.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }
Source:
public static java.security.Provider getExternalProvider ( java.lang.String algorithm ) { java.security.Provider selectedProvider = null ; for ( java.security.Provider p : java.security.Security.getProviders ( algorithm ) ) { if ( ! ( p.getClass ( ) . getClassLoader ( ) . equals ( org.conscrypt.CryptoUpcalls.class . getClassLoader ( ) ) ) ) { selectedProvider = p ; break ; } } if ( selectedProvider == null ) { java.lang.System.err.println ( ( "Could not find external provider for algorithm: " + algorithm ) ) ; } return selectedProvider ; }

Target:
private static java.util.ArrayList < java.security.Provider > getExternalProviders ( java.lang.String algorithm ) { java.util.ArrayList < java.security.Provider > providers = new java.util.ArrayList < > ( 1 ) ; for ( java.security.Provider p : java.security.Security.getProviders ( algorithm ) ) { if ( ! ( org.conscrypt.CryptoUpcalls.isOurProvider ( p ) ) ) { providers.add ( p ) ; } } if ( providers.isEmpty ( ) ) { java.lang.System.err.println ( ( "Could not find external provider for algorithm: " + algorithm ) ) ; } return providers ; }
Source:
public static void HandlePublish ( int type , byte [ ] data ) { java.lang.System.out.println ( ( "Chunk published: " + ( art.Test1940.printChunk ( new art.Chunk ( type , data , 0 , data.length ) ) ) ) ) ; }

Target:
public static void HandlePublish ( int type , byte [ ] data ) { if ( art.Test1940.PRINT_ALL_CHUNKS ) { java.lang.System.out.println ( ( "Unknown Chunk published: " + ( art.Test1940.printChunk ( new art.Chunk ( type , data , 0 , data.length ) ) ) ) ) ; } art.Test1940.CURRENT_HANDLER.HandleChunk ( type , data ) ; }
Source:
public static java.lang.String get ( java.lang.String key ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } return android.os.SystemProperties.native_get ( key ) ; }

Target:
public static java.lang.String get ( java.lang.String key ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get ( key ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "minSdkVersion" , mMinSdkVersion ) . add ( "targetSdkVersion" , mTargetSdkVersion ) . add ( "versionCode" , mVersionCode ) . add ( "versionName" , mVersionName ) . add ( "packageName" , mPackageName ) . add ( "testPackageName" , mTestPackageName ) . add ( "testInstrumentationRunner" , mTestInstrumentationRunner ) . add ( "signingConfig" , mSigningConfig ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "name" , mName ) . add ( "minSdkVersion" , mMinSdkVersion ) . add ( "targetSdkVersion" , mTargetSdkVersion ) . add ( "renderscriptTargetApi" , mRenderscriptTargetApi ) . add ( "versionCode" , mVersionCode ) . add ( "versionName" , mVersionName ) . add ( "packageName" , mPackageName ) . add ( "testPackageName" , mTestPackageName ) . add ( "testInstrumentationRunner" , mTestInstrumentationRunner ) . add ( "signingConfig" , mSigningConfig ) . toString ( ) ; }
Source:
public void testEncode_String_Normal ( ) throws java.lang.Exception { tests.api.java.nio.charset.CharsetTest.MockCharset c1 = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "testEncode_String_Normal_mock" , null ) ; java.nio.ByteBuffer bb = c1.encode ( "abcdefg" ) ; assertEquals ( "abcdefg" , new java.lang.String ( bb.array ( ) , "iso8859-1" ) ) ; bb = c1.encode ( "" ) ; assertEquals ( "" , new java.lang.String ( bb.array ( ) , "iso8859-1" ) ) ; }

Target:
public void testEncode_String_Normal ( ) throws java.lang.Exception { org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset c1 = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "testEncode_String_Normal_mock" , null ) ; java.nio.ByteBuffer bb = c1.encode ( "abcdefg" ) ; assertEquals ( "abcdefg" , new java.lang.String ( bb.array ( ) , "iso8859-1" ) ) ; bb = c1.encode ( "" ) ; assertEquals ( "" , new java.lang.String ( bb.array ( ) , "iso8859-1" ) ) ; }
Source:
public void onImsSuspended ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "onImsSuspended" ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.SUSPENDED , null ) ; }

Target:
private void sendConfigChangedIntent ( int item , java.lang.String value ) { log ( ( ( ( ( "sendConfigChangedIntent - [" + item ) + ", " ) + value ) + "]" ) ) ; android.content.Intent configChangedIntent = new android.content.Intent ( com.android.ims.ImsConfig.ACTION_IMS_CONFIG_CHANGED ) ; configChangedIntent.putExtra ( ImsConfig.EXTRA_CHANGED_ITEM , item ) ; configChangedIntent.putExtra ( ImsConfig.EXTRA_NEW_VALUE , value ) ; if ( ( ( mPhone ) != null ) && ( ( mPhone.getContext ( ) ) != null ) ) { mPhone.getContext ( ) . sendBroadcast ( configChangedIntent ) ; } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof android.net.NetworkIdentity ) { final android.net.NetworkIdentity ident = ( ( android.net.NetworkIdentity ) ( obj ) ) ; return ( ( ( ( ( mType ) == ( ident.mType ) ) && ( ( mSubType ) == ( ident.mSubType ) ) ) && ( ( mRoaming ) == ( ident.mRoaming ) ) ) && ( com.android.internal.util.Objects.equal ( mSubscriberId , ident.mSubscriberId ) ) ) && ( com.android.internal.util.Objects.equal ( mNetworkId , ident.mNetworkId ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof android.net.NetworkIdentity ) { final android.net.NetworkIdentity ident = ( ( android.net.NetworkIdentity ) ( obj ) ) ; return ( ( ( ( ( mType ) == ( ident.mType ) ) && ( ( mSubType ) == ( ident.mSubType ) ) ) && ( ( mRoaming ) == ( ident.mRoaming ) ) ) && ( java.util.Objects.equals ( mSubscriberId , ident.mSubscriberId ) ) ) && ( java.util.Objects.equals ( mNetworkId , ident.mNetworkId ) ) ; } return false ; }
Source:
public void testIsCollected002 ( ) { synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; long invalidObjectID = 57005 ; org.apache.harmony.jpda.tests.framework.jdwp.CommandPacket command = new org.apache.harmony.jpda.tests.framework.jdwp.CommandPacket ( JDWPCommands.ObjectReferenceCommandSet.CommandSetID , JDWPCommands.ObjectReferenceCommandSet.IsCollectedCommand ) ; command.setNextValueAsObjectID ( invalidObjectID ) ; org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand ( command ) ; checkReplyPacket ( reply , org.apache.harmony.jpda.tests.jdwp.ObjectReference.IsCollectedTest.thisCommandName , JDWPConstants.Error.INVALID_OBJECT ) ; synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; }

Target:
public void testIsCollected_invalid ( ) { synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; org.apache.harmony.jpda.tests.framework.jdwp.CommandPacket command = new org.apache.harmony.jpda.tests.framework.jdwp.CommandPacket ( JDWPCommands.ObjectReferenceCommandSet.CommandSetID , JDWPCommands.ObjectReferenceCommandSet.IsCollectedCommand ) ; command.setNextValueAsObjectID ( JDWPTestConstants.INVALID_OBJECT_ID ) ; org.apache.harmony.jpda.tests.framework.jdwp.ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand ( command ) ; checkReplyPacket ( reply , org.apache.harmony.jpda.tests.jdwp.ObjectReference.IsCollectedTest.thisCommandName ) ; boolean is_collected = reply.getNextValueAsBoolean ( ) ; assertAllDataRead ( reply ) ; assertTrue ( "Invalid object id is assumed to be collected" , is_collected ) ; synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; }
Source:
public void testDescendingAddAll3 ( ) { try { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( ( i + ( SIZE ) ) ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testDescendingAddNonComparable ( ) { java.util.NavigableSet q = jsr166.TreeSubSetTest.dset0 ( ) ; try { q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }
Source:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main m = new Main ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( m ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; Main.testInstanceOf ( m ) ; Main.testCheckCast ( m ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main m = new Main ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( m ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; Main.testInstanceOf ( m ) ; Main.testCheckCast ( m ) ; Main.testLicm ( 2 ) ; }
Source:
public long getSize ( com.android.tools.perflib.heap.Instance element , com.android.tools.perflib.heap.Heap heap ) { if ( element == null ) { return mSnapshot.getHeapSize ( heap ) ; } int index = mSnapshot.getHeapIndex ( heap ) ; return element.getRetainedSize ( index ) ; }

Target:
public long getSize ( com.android.ahat.InstanceUtils.PathElement element , com.android.tools.perflib.heap.Heap heap ) { if ( element == null ) { return mSnapshot.getHeapSize ( heap ) ; } if ( element.isDominator ) { int index = mSnapshot.getHeapIndex ( heap ) ; return element.instance.getRetainedSize ( index ) ; } return 0 ; }
Source:
public com.android.ahat.DocString render ( com.android.ahat.Site element ) { com.android.ahat.DocString str = new com.android.ahat.DocString ( ) ; if ( ( element.getParent ( ) ) != null ) { str.append ( "→ " ) ; } str.appendLink ( com.android.ahat.DocString.formattedUri ( "site?stack=%d&depth=%d" , element.getStackId ( ) , element.getStackDepth ( ) ) , com.android.ahat.DocString.text ( element.getName ( ) ) ) ; return str ; }

Target:
public com.android.ahat.DocString render ( com.android.ahat.heapdump.Site element ) { com.android.ahat.DocString str = new com.android.ahat.DocString ( ) ; if ( ( element.getParent ( ) ) != null ) { str.append ( "→ " ) ; } return str.append ( com.android.ahat.Summarizer.summarize ( element ) ) ; }
Source:
private void activate ( ) { java.io.File binDir = new java.io.File ( mVenvDir , ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.isOnWindows ( ) ? "Scripts" : "bin" ) ) ; mRunUtil.setWorkingDir ( binDir ) ; java.lang.String path = java.lang.System.getenv ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PATH ) ; mRunUtil.setEnvVariable ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PATH , ( ( binDir + ( java.io.File.pathSeparator ) ) + path ) ) ; java.io.File pipFile = new java.io.File ( binDir , com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PIP ) ; pipFile.setExecutable ( true ) ; mPip = pipFile.getAbsolutePath ( ) ; }

Target:
private void activate ( ) { java.io.File binDir = new java.io.File ( mVenvDir , ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.isOnWindows ( ) ? "Scripts" : "bin" ) ) ; getRunUtil ( ) . setWorkingDir ( binDir ) ; java.lang.String path = java.lang.System.getenv ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PATH ) ; getRunUtil ( ) . setEnvVariable ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PATH , ( ( binDir + ( java.io.File.pathSeparator ) ) + path ) ) ; java.io.File pipFile = new java.io.File ( binDir , com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PIP ) ; pipFile.setExecutable ( true ) ; mPip = pipFile.getAbsolutePath ( ) ; }
Source:
public boolean p2pStopFind ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.stopFind ( ) ; } else { return doBooleanCommand ( "P2P_STOP_FIND" ) ; } }

Target:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( enabled ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 1" ) ) ; } else { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 0" ) ) ; } } } }
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( Main.testLiveArgument ( 42 ) ) != 42 ) { throw new java.lang.Error ( "Expected 42" ) ; } if ( ( Main.testLiveArgument ( 42 ) ) != 42 ) { throw new java.lang.Error ( "Expected 42" ) ; } Main.testIntervalHole ( 1 , true ) ; Main.testIntervalHole ( 1 , false ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } Main.testWrapperIntervalHole ( 1 , true ) ; Main.testWrapperIntervalHole ( 1 , false ) ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkState ( ( ( internalName ) == null ) , "not intended for reuse but reused for %s" , name ) ; internalName = name ; isInterface = com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkState ( ( ( internalName ) == null ) , "not intended for reuse but reused for %s" , name ) ; internalName = name ; isInterface = com.google.devtools.build.android.desugar.io.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }
Source:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( "jack-" ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }

Target:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( "jack-" ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( com.android.sched.util.file.CannotChangePermissionException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.FileAlreadyExistsException | com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.jack.JackUserException ( e ) ; } }
Source:
public void setMasterVolume ( int index , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMasterVolume ( index , flags , mApplicationContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMasterVolume" , e ) ; } }

Target:
public void setMasterVolume ( int index , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMasterVolume ( index , flags , getContext ( ) . getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMasterVolume" , e ) ; } }
Source:
public java.util.List < android.telephony.ClientRequestStats > getClientRequestStats ( java.lang.String callingPackage , int subId ) { if ( ! ( canReadPhoneState ( callingPackage , "getClientRequestStats" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getClientRequestStats ( ) ; } return null ; }

Target:
public android.telephony.ServiceState getServiceStateForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getServiceStateForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { return null ; } return phone.getServiceState ( ) ; }
Source:
private void write ( int index , java.io.OutputStreamWriter writer ) throws java.io.IOException { switch ( index ) { case com.android.sdklib.internal.export.ApkData.INDEX_OUTPUTNAME : com.android.sdklib.internal.export.ApkData.writeValue ( writer , mOutputName ) ; break ; case com.android.sdklib.internal.export.ApkData.INDEX_PROJECT : com.android.sdklib.internal.export.ApkData.writeValue ( writer , mRelativePath ) ; break ; case com.android.sdklib.internal.export.ApkData.INDEX_MINOR : com.android.sdklib.internal.export.ApkData.writeValue ( writer , mMinor ) ; break ; case com.android.sdklib.internal.export.ApkData.INDEX_MINSDK : com.android.sdklib.internal.export.ApkData.writeValue ( writer , mMinSdkVersion ) ; break ; case com.android.sdklib.internal.export.ApkData.INDEX_ABI : com.android.sdklib.internal.export.ApkData.writeValue ( writer , ( ( mAbi ) != null ? mAbi : "" ) ) ; break ; } }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; write ( sb , com.android.sdklib.internal.export.ApkData.PROP_OUTPUTNAME , mOutputName ) ; write ( sb , com.android.sdklib.internal.export.ApkData.PROP_BUILDINFO , mBuildInfo ) ; sb.append ( getLogLine ( ) ) ; return sb.toString ( ) ; }
Source:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" ) ; }

Target:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; com.android.jack.resource.ResourceTests.checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" ) ; com.android.jack.resource.ResourceTests.checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" ) ; com.android.jack.resource.ResourceTests.checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" ) ; com.android.jack.resource.ResourceTests.checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" ) ; }
Source:
public static java.lang.CharSequence formatNumberForDisplay ( @ android.support.annotation.Nullable java.lang.String number , @ android.support.annotation.NonNull java.lang.String countryIso ) { if ( number == null ) { return null ; } return android.telephony.PhoneNumberUtils.createTtsSpannable ( android.text.BidiFormatter.getInstance ( ) . unicodeWrap ( com.android.dialer.phonenumberutil.PhoneNumberHelper.formatNumber ( number , countryIso ) , TextDirectionHeuristics.LTR ) ) ; }

Target:
public static java.lang.CharSequence formatNumberForDisplay ( android.content.Context context , @ android.support.annotation.Nullable java.lang.String number , @ android.support.annotation.NonNull java.lang.String countryIso ) { if ( number == null ) { return null ; } return android.telephony.PhoneNumberUtils.createTtsSpannable ( android.text.BidiFormatter.getInstance ( ) . unicodeWrap ( com.android.dialer.phonenumberutil.PhoneNumberHelper.formatNumber ( context , number , countryIso ) , TextDirectionHeuristics.LTR ) ) ; }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( java.lang.String AID ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( AID ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public void setVoiceActivationState ( int subId , int activationState ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setVoiceActivationState ( subId , activationState ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { com.android.server.telecom.Log.startSession ( "TBR.oR" ) ; try { java.lang.String action = intent.getAction ( ) ; com.android.server.telecom.Log.v ( this , "onReceive, action: %s" , action ) ; if ( action.equals ( TelecomManager.ACTION_TTY_PREFERRED_MODE_CHANGED ) ) { int newPreferredTtyMode = intent.getIntExtra ( TelecomManager.EXTRA_TTY_PREFERRED_MODE , TelecomManager.TTY_MODE_OFF ) ; if ( ( mPreferredTtyMode ) != newPreferredTtyMode ) { mPreferredTtyMode = newPreferredTtyMode ; updateCurrentTtyMode ( ) ; } } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telecom.Log.startSession ( "TBR.oR" ) ; try { java.lang.String action = intent.getAction ( ) ; android.telecom.Log.v ( this , "onReceive, action: %s" , action ) ; if ( action.equals ( TelecomManager.ACTION_TTY_PREFERRED_MODE_CHANGED ) ) { int newPreferredTtyMode = intent.getIntExtra ( TelecomManager.EXTRA_TTY_PREFERRED_MODE , TelecomManager.TTY_MODE_OFF ) ; if ( ( mPreferredTtyMode ) != newPreferredTtyMode ) { mPreferredTtyMode = newPreferredTtyMode ; updateCurrentTtyMode ( ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public static int getVideoStateFromImsCallProfile ( com.android.ims.ImsCallProfile callProfile ) { int videostate = com.android.ims.ImsCallProfile.getVideoStateFromCallType ( callProfile.mCallType ) ; if ( ( callProfile.isVideoPaused ( ) ) && ( ! ( android.telecom.VideoProfile.isAudioOnly ( videostate ) ) ) ) { videostate |= android.telecom.VideoProfile.STATE_PAUSED ; } else { videostate &= ~ ( android.telecom.VideoProfile.STATE_PAUSED ) ; } return videostate ; }

Target:
public static int getVideoStateFromImsCallProfile ( android.telephony.ims.ImsCallProfile callProfile ) { int videostate = android.telephony.ims.ImsCallProfile.getVideoStateFromCallType ( callProfile.mCallType ) ; if ( ( callProfile.isVideoPaused ( ) ) && ( ! ( android.telecom.VideoProfile.isAudioOnly ( videostate ) ) ) ) { videostate |= android.telecom.VideoProfile.STATE_PAUSED ; } else { videostate &= ~ ( android.telecom.VideoProfile.STATE_PAUSED ) ; } return videostate ; }
Source:
private void bindAndInitialize ( ) throws android.telephony.mbms.MbmsInitializationException { try { int returnCode = mService.initialize ( mCallbackToApp , mAppName , mSubscriptionId ) ; if ( returnCode != 0 ) { throw new android.telephony.mbms.MbmsInitializationException ( returnCode ) ; } } catch ( android.os.RemoteException e ) { throw new android.telephony.mbms.MbmsInitializationException ( 0 ) ; } }

Target:
public synchronized void dispose ( ) { if ( ( mService ) == null ) { return ; } try { mService.dispose ( mAppName , mSubscriptionId ) ; } catch ( android.os.RemoteException e ) { } mService = null ; }
Source:
public void testEnumSubclassSerialization ( ) { java.lang.String s = "aced00057e7200236c6962636f72652e6a6176612e6c616e672e456e756d5465" + ( "737424526f7368616d626f00000000000000001200007872000e6a6176612e6c6" + "16e672e456e756d00000000000000001200007870740004524f434b" ) ; libcore.java.lang.EnumTest.Roshambo value = libcore.java.lang.EnumTest.Roshambo.ROCK ; assertTrue ( ( ( value.getClass ( ) ) != ( libcore.java.lang.EnumTest.Roshambo.class ) ) ) ; new libcore.util.SerializationTester < libcore.java.lang.EnumTest.Roshambo > ( value , s ) . test ( ) ; }

Target:
public void testEnumSubclassSerialization ( ) { java.lang.String s = "aced00057e7200236c6962636f72652e6a6176612e6c616e672e456e756d5465" + ( "737424526f7368616d626f00000000000000001200007872000e6a6176612e6c6" + "16e672e456e756d00000000000000001200007870740004524f434b" ) ; libcore.java.lang.EnumTest.Roshambo value = libcore.java.lang.EnumTest.Roshambo.ROCK ; assertTrue ( ( ( value.getClass ( ) ) != ( libcore.java.lang.EnumTest.Roshambo.class ) ) ) ; new libcore.libcore.util.SerializationTester < libcore.java.lang.EnumTest.Roshambo > ( value , s ) . test ( ) ; }
Source:
public void test_unmodifiableList_replaceAll ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_unmodifiableList_sort ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public static int IntNonmatCond_IntVarVar ( int a , int b , int x , int y ) { return a > b ? x : y ; }

Target:
public static int FloatLtMatCond_IntVarVar ( float a , float b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; mGLSurfaceView = new android.opengl.GLSurfaceView ( this ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.MagnetometerTestRenderer ( this ) ; mListener = renderer ; mGLSurfaceView.setRenderer ( renderer ) ; setContentView ( mGLSurfaceView ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setResult ( com.android.cts.verifier.sensors.RESULT_CANCELED ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.MagnetometerTestRenderer ( this ) ; mListener = renderer ; setContentView ( R.layout.pass_fail_gl ) ; mGLSurfaceView = ( ( android.opengl.GLSurfaceView ) ( findViewById ( R.id.gl_surface_view ) ) ) ; mGLSurfaceView.setRenderer ( renderer ) ; }
Source:
public synchronized com.android.ddmlib.NativeStackCallInfo getRelevantStackCallInfo ( ) { if ( ( mIsStackCallResolved ) && ( ( mResolvedStackCall ) != null ) ) { for ( com.android.ddmlib.NativeStackCallInfo info : mResolvedStackCall ) { if ( ( isRelevantLibrary ( info.getLibraryName ( ) ) ) && ( isRelevantMethod ( info.getMethodName ( ) ) ) ) { return info ; } } if ( ( mResolvedStackCall.size ( ) ) > 0 ) return mResolvedStackCall.get ( 0 ) ; } return null ; }

Target:
public synchronized com.android.ddmlib.NativeStackCallInfo getRelevantStackCallInfo ( ) { if ( ( mIsStackCallResolved ) && ( ( mResolvedStackCall ) != null ) ) { for ( com.android.ddmlib.NativeStackCallInfo info : mResolvedStackCall ) { if ( ( isRelevantLibrary ( info.getLibraryName ( ) ) ) && ( isRelevantMethod ( info.getMethodName ( ) ) ) ) { return info ; } } if ( ! ( mResolvedStackCall.isEmpty ( ) ) ) return mResolvedStackCall.get ( 0 ) ; } return null ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function , java.util.concurrent.Executor executor ) { com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( output , executor ) ; return output ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( executor ) ; com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( com.google.common.util.concurrent.Futures.rejectionPropagatingRunnable ( output , output , executor ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
private int getMaxLineNumber ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.impl.TIntFunction convertor ) { for ( int i = endLineNumber ( ) ; i >= 0 ; i -- ) { int number = convertor.execute ( i ) ; if ( number >= 0 ) { return number ; } } return 0 ; }

Target:
private int getMaxLineNumber ( @ org.jetbrains.annotations.NotNull gnu.trove.TIntFunction convertor ) { for ( int i = endLineNumber ( ) ; i >= 0 ; i -- ) { int number = convertor.execute ( i ) ; if ( number >= 0 ) { return number ; } } return 0 ; }
Source:
public void onResume ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onResume" ) ; super . onResume ( ) ; final boolean hasReadCallLogPermission = com.android.dialer.util.PermissionsUtil.hasPermission ( getActivity ( ) , android.Manifest.permission.READ_CALL_LOG ) ; if ( ( ! ( mHasReadCallLogPermission ) ) && hasReadCallLogPermission ) { mRefreshDataRequired = true ; updateEmptyMessage ( mCallTypeFilter ) ; } mHasReadCallLogPermission = hasReadCallLogPermission ; mAdapter.clearFilteredNumbersCache ( ) ; refreshData ( ) ; mAdapter.onResume ( ) ; rescheduleDisplayUpdate ( ) ; }

Target:
public void onResume ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onResume" ) ; super . onResume ( ) ; final boolean hasReadCallLogPermission = com.android.dialer.util.PermissionsUtil.hasPermission ( getActivity ( ) , android.Manifest.permission.READ_CALL_LOG ) ; if ( ( ! ( mHasReadCallLogPermission ) ) && hasReadCallLogPermission ) { mRefreshDataRequired = true ; updateEmptyMessage ( mCallTypeFilter ) ; } mHasReadCallLogPermission = hasReadCallLogPermission ; mAdapter.clearFilteredNumbersCache ( ) ; refreshData ( ) ; mAdapter.onResume ( ) ; rescheduleDisplayUpdate ( ) ; if ( getUserVisibleHint ( ) ) { onVisible ( ) ; } }
Source:
public static java.util.Currency getInstance ( java.lang.String currencyCode ) { synchronized ( java.util.Currency.instances ) { java.util.Currency instance = java.util.Currency.instances.get ( currencyCode ) ; if ( instance == null ) { java.util.Currency icuInstance = android.icu.util.Currency.getInstance ( currencyCode ) ; if ( icuInstance == null ) { return null ; } instance = new java.util.Currency ( icuInstance ) ; java.util.Currency.instances.put ( currencyCode , instance ) ; } return instance ; } }

Target:
public static java.util.Currency getInstance ( java.lang.String currencyCode ) { java.util.Currency instance = java.util.Currency.instances.get ( currencyCode ) ; if ( instance != null ) { return instance ; } java.util.Currency icuInstance = android.icu.util.Currency.getInstance ( currencyCode ) ; if ( icuInstance == null ) { return null ; } java.util.Currency currencyVal = new java.util.Currency ( icuInstance ) ; instance = java.util.Currency.instances.putIfAbsent ( currencyCode , currencyVal ) ; return instance != null ? instance : currencyVal ; }
Source:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void testStyleables2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] LimitedSizeLinearLayout = { 0x7f010000, 0x7f010001 };\n" ) + " public static final int LimitedSizeLinearLayout_max_height = 1;\n" ) + " public static final int LimitedSizeLinearLayout_max_width = 0;\n" ) + " }\n" ) + " public static final class xml {\n" ) + " public static final int authenticator = 0x7f040000;\n" ) + " }\n" ) + "}\n" ) ) , null , ( "int[] styleable LimitedSizeLinearLayout { 0x7f010000, 0x7f010001 }\n" + ( ( "int styleable LimitedSizeLinearLayout_max_height 1\n" + "int styleable LimitedSizeLinearLayout_max_width 0\n" ) + "int xml authenticator 0x7f040000\n" ) ) ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback , android.os.Handler handler ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , 0 , callback , handler ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int timeoutMillis , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , timeoutMillis , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }