auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized void loadAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { final java.lang.String alwaysOnPackage = mSystemServices.settingsSecureGetStringForUser ( Settings.Secure.ALWAYS_ON_VPN_APP , mUserHandle ) ; final boolean alwaysOnLockdown = ( mSystemServices.settingsSecureGetIntForUser ( Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , 0 , mUserHandle ) ) != 0 ; setAlwaysOnPackageInternal ( alwaysOnPackage , alwaysOnLockdown ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
private void loadAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { final java.lang.String alwaysOnPackage = mSystemServices.settingsSecureGetStringForUser ( Settings.Secure.ALWAYS_ON_VPN_APP , mUserHandle ) ; final boolean alwaysOnLockdown = ( mSystemServices.settingsSecureGetIntForUser ( Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , 0 , mUserHandle ) ) != 0 ; setAlwaysOnPackageInternal ( alwaysOnPackage , alwaysOnLockdown ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { try { mService.unregisterReceiver ( receiver ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister " + ex ) ) ; } } listeningDevices.clear ( ) ; try { mService.unregisterReceiver ( mPairingHelper ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister pairing helper." + ex ) ) ; } }

Target:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { mService.unregisterReceiver ( receiver ) ; } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }
Source:
public int answer ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { for ( java.util.Map.Entry < java.lang.String , android.net.wifi.WifiConfiguration > entry : createWpaSupplicantLoadData ( networks ) . entrySet ( ) ) { configs.put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return 0 ; }

Target:
public boolean answer ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { for ( java.util.Map.Entry < java.lang.String , android.net.wifi.WifiConfiguration > entry : createWpaSupplicantLoadData ( networks ) . entrySet ( ) ) { configs.put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return true ; }
Source:
private static java.util.List < io.appium.droiddriver.finders.Predicate < ? super io.appium.droiddriver.UiElement > > getPredicates ( io.appium.droiddriver.finders.MatchFinder ... finders ) { java.util.ArrayList < io.appium.droiddriver.finders.Predicate < ? super io.appium.droiddriver.UiElement > > predicates = new java.util.ArrayList ( finders.length ) ; for ( int i = 0 ; i < ( finders.length ) ; i ++ ) { predicates.add ( finders [ i ] . predicate ) ; } return predicates ; }

Target:
private static io.appium.droiddriver.finders.Predicate < ? super io.appium.droiddriver.UiElement > [ ] getPredicates ( io.appium.droiddriver.finders.MatchFinder ... finders ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) io.appium.droiddriver.finders.Predicate < ? super io.appium.droiddriver.UiElement > [ ] predicates = new io.appium.droiddriver.finders.Predicate [ finders.length ] ; for ( int i = 0 ; i < ( finders.length ) ; i ++ ) { predicates [ i ] = finders [ i ] . predicate ; } return predicates ; }
Source:
private ECPoint.F2m multiplyWTnaf ( org.bouncycastle.math.ec.ECPoint.F2m p , org.bouncycastle.math.ec.ZTauElement lambda , org.bouncycastle.math.ec.PreCompInfo preCompInfo , byte a , byte mu ) { org.bouncycastle.math.ec.ZTauElement [ ] alpha ; if ( a == 0 ) { alpha = Tnaf.alpha0 ; } else { alpha = Tnaf.alpha1 ; } java.math.BigInteger tw = org.bouncycastle.math.ec.Tnaf.getTw ( mu , Tnaf.WIDTH ) ; byte [ ] u = org.bouncycastle.math.ec.Tnaf.tauAdicWNaf ( mu , lambda , Tnaf.WIDTH , java.math.BigInteger.valueOf ( Tnaf.POW_2_WIDTH ) , tw , alpha ) ; return org.bouncycastle.math.ec.WTauNafMultiplier.multiplyFromWTnaf ( p , u , preCompInfo ) ; }

Target:
private ECPoint.F2m multiplyWTnaf ( org.bouncycastle.math.ec.ECPoint.F2m p , org.bouncycastle.math.ec.ZTauElement lambda , org.bouncycastle.math.ec.PreCompInfo preCompInfo , byte a , byte mu ) { org.bouncycastle.math.ec.ZTauElement [ ] alpha = ( a == 0 ) ? Tnaf.alpha0 : Tnaf.alpha1 ; java.math.BigInteger tw = org.bouncycastle.math.ec.Tnaf.getTw ( mu , Tnaf.WIDTH ) ; byte [ ] u = org.bouncycastle.math.ec.Tnaf.tauAdicWNaf ( mu , lambda , Tnaf.WIDTH , java.math.BigInteger.valueOf ( Tnaf.POW_2_WIDTH ) , tw , alpha ) ; return org.bouncycastle.math.ec.WTauNafMultiplier.multiplyFromWTnaf ( p , u , preCompInfo ) ; }
Source:
public void failed ( java.lang.String className , java.lang.Throwable exception ) { android.util.Log.i ( mTag , ( "failed: " + className ) ) ; android.util.Log.i ( mTag , "----- begin exception -----" ) ; android.util.Log.i ( mTag , "" , exception ) ; android.util.Log.i ( mTag , "----- end exception -----" ) ; }

Target:
private void failed ( java.lang.String className , java.lang.Throwable exception ) { android.util.Log.i ( mTag , ( "failed: " + className ) ) ; android.util.Log.i ( mTag , "----- begin exception -----" ) ; android.util.Log.i ( mTag , "" , exception ) ; android.util.Log.i ( mTag , "----- end exception -----" ) ; }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
private static com.android.tools.lint.client.api.JavaParser.ResolvedMethod createMethod ( java.lang.String containingClass , java.lang.String returnType , java.lang.String name , java.lang.String parameters , boolean isConstructor ) { return com.android.tools.lint.ExternalAnnotationRepositoryTest.createMethod ( containingClass , returnType , name , com.google.common.base.Splitter.on ( ',' ) . trimResults ( ) . split ( parameters ) , isConstructor ) ; }

Target:
public static com.android.tools.lint.client.api.JavaParser.ResolvedMethod createMethod ( java.lang.String containingClass , java.lang.String returnType , java.lang.String name , java.lang.String parameters , boolean isConstructor ) { return com.android.tools.lint.ExternalAnnotationRepositoryTest.createMethod ( containingClass , returnType , name , com.google.common.base.Splitter.on ( ',' ) . trimResults ( ) . split ( parameters ) , isConstructor ) ; }
Source:
public static android.renderscript.Path createStaticPath ( android.renderscript.RenderScript rs , android.renderscript.Path.Primitive p , float quality , android.renderscript.Allocation vtx ) { int id = rs.nPathCreate ( p.mID , false , vtx.getID ( rs ) , 0 , quality ) ; android.renderscript.Path newPath = new android.renderscript.Path ( id , rs , p , null , null , quality ) ; return newPath ; }

Target:
public static android.renderscript.Path createStaticPath ( android.renderscript.RenderScript rs , android.renderscript.Path.Primitive p , float quality , android.renderscript.Allocation vtx ) { long id = rs.nPathCreate ( p.mID , false , vtx.getID ( rs ) , 0 , quality ) ; android.renderscript.Path newPath = new android.renderscript.Path ( id , rs , p , null , null , quality ) ; return newPath ; }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; if ( ! ( checkDevice ( device ) ) ) { return false ; } return replyReportNative ( type , id , data ) ; }

Target:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return replyReportNative ( type , id , data ) ; }
Source:
public android.renderscript.ProgramStore create ( ) { mRS.validate ( ) ; int id = mRS.nProgramStoreCreate ( mColorMaskR , mColorMaskG , mColorMaskB , mColorMaskA , mDepthMask , mDither , mBlendSrc.mID , mBlendDst.mID , mDepthFunc.mID ) ; android.renderscript.ProgramStore programStore = new android.renderscript.ProgramStore ( id , mRS ) ; programStore.mDepthFunc = mDepthFunc ; programStore.mDepthMask = mDepthMask ; programStore.mColorMaskR = mColorMaskR ; programStore.mColorMaskG = mColorMaskG ; programStore.mColorMaskB = mColorMaskB ; programStore.mColorMaskA = mColorMaskA ; programStore.mBlendSrc = mBlendSrc ; programStore.mBlendDst = mBlendDst ; programStore.mDither = mDither ; return programStore ; }

Target:
public android.renderscript.ProgramStore create ( ) { mRS.validate ( ) ; long id = mRS.nProgramStoreCreate ( mColorMaskR , mColorMaskG , mColorMaskB , mColorMaskA , mDepthMask , mDither , mBlendSrc.mID , mBlendDst.mID , mDepthFunc.mID ) ; android.renderscript.ProgramStore programStore = new android.renderscript.ProgramStore ( id , mRS ) ; programStore.mDepthFunc = mDepthFunc ; programStore.mDepthMask = mDepthMask ; programStore.mColorMaskR = mColorMaskR ; programStore.mColorMaskG = mColorMaskG ; programStore.mColorMaskB = mColorMaskB ; programStore.mColorMaskA = mColorMaskA ; programStore.mBlendSrc = mBlendSrc ; programStore.mBlendDst = mBlendDst ; programStore.mDither = mDither ; return programStore ; }
Source:
public void TestCheckFrozen ( ) { com.ibm.icu.text.DateTimePatternGenerator dt = com.ibm.icu.text.DateTimePatternGenerator.getInstance ( ) ; try { dt.freeze ( ) ; dt.setDateTimeFormat ( "MMDDYYYY" ) ; errln ( ( "DateTimePatternGenerator.checkFrozen() was suppose to " + ( "return an exception when trying to setDateTimeFormat " + "for a frozen object." ) ) ) ; } catch ( java.lang.Exception e ) { } dt = ( ( com.ibm.icu.text.DateTimePatternGenerator ) ( dt.cloneAsThawed ( ) ) ) ; }

Target:
public void TestCheckFrozen ( ) { com.ibm.icu.text.DateTimePatternGenerator dt = com.ibm.icu.text.DateTimePatternGenerator.getInstance ( ) ; try { dt.freeze ( ) ; dt.setDateTimeFormat ( "MMDDYYYY" ) ; errln ( ( "DateTimePatternGenerator.checkFrozen() was suppose to " + ( "return an exception when trying to setDateTimeFormat " + "for a frozen object." ) ) ) ; } catch ( java.lang.Exception e ) { } dt = dt.cloneAsThawed ( ) ; }
Source:
public boolean p2pServiceAdd ( android.net.wifi.p2p.nsd.WifiP2pServiceInfo servInfo ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.serviceAdd ( servInfo ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { for ( java.lang.String s : servInfo.getSupplicantQueryList ( ) ) { java.lang.String command = "P2P_SERVICE_ADD" ; command += " " + s ; if ( ! ( doBooleanCommand ( command ) ) ) { return false ; } } } return true ; } }

Target:
public boolean p2pServiceAdd ( android.net.wifi.p2p.nsd.WifiP2pServiceInfo servInfo ) { return mSupplicantP2pIfaceHal.serviceAdd ( servInfo ) ; }
Source:
public char [ ] asCharArray ( int length ) { assert ( mType ) == ( Type.CHAR ) ; java.nio.CharBuffer charBuffer = java.nio.ByteBuffer.wrap ( asRawByteArray ( length ) ) . order ( HprofBuffer.HPROF_BYTE_ORDER ) . asCharBuffer ( ) ; char [ ] result = new char [ charBuffer.length ( ) ] ; charBuffer.get ( result ) ; return result ; }

Target:
public char [ ] asCharArray ( int offset , int length ) { assert ( mType ) == ( Type.CHAR ) ; java.nio.CharBuffer charBuffer = java.nio.ByteBuffer.wrap ( asRawByteArray ( offset , length ) ) . order ( HprofBuffer.HPROF_BYTE_ORDER ) . asCharBuffer ( ) ; char [ ] result = new char [ length ] ; charBuffer.get ( result ) ; return result ; }
Source:
boolean equalNumbers ( @ android.support.annotation.Nullable java.lang.String number1 , @ android.support.annotation.Nullable java.lang.String number2 ) { if ( ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number1 ) ) || ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number2 ) ) ) { return compareSipAddresses ( number1 , number2 ) ; } else { return android.telephony.PhoneNumberUtils.compare ( number1 , number2 ) ; } }

Target:
boolean equalNumbers ( @ android.support.annotation.Nullable java.lang.String number1 , @ android.support.annotation.Nullable java.lang.String number2 ) { if ( ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number1 ) ) || ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number2 ) ) ) { return compareSipAddresses ( number1 , number2 ) ; } else { return com.android.dialer.phonenumberutil.PhoneNumberHelper.compare ( number1 , number2 ) ; } }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { java.util.List < com.android.preload.DumpData > data = dataTableModel.getData ( ) ; if ( ( data.size ( ) ) == 0 ) { com.android.preload.Main.getUI ( ) . showMessageDialog ( ( "No data available, please scan packages or run " + "monkeys." ) ) ; return ; } if ( ( data.size ( ) ) == 1 ) { com.android.preload.Main.getUI ( ) . showMessageDialog ( ( "Cannot compute list from only one data set, please " + "scan packages or run monkeys." ) ) ; return ; } new java.lang.Thread ( this ) . start ( ) ; }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { java.util.List < com.android.preload.DumpData > data = dataTableModel.getData ( ) ; if ( ( data.size ( ) ) == 0 ) { com.android.preload.Main.getUI ( ) . showMessageDialog ( ( "No data available, please scan packages or run " + "monkeys." ) ) ; return ; } if ( ( data.size ( ) ) == 1 ) { com.android.preload.Main.getUI ( ) . showMessageDialog ( ( "Cannot compute list from only one data set, please " + "scan packages or run monkeys." ) ) ; return ; } super . actionPerformed ( e ) ; }
Source:
protected void replaceImpl ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode newNode ) throws java.lang.UnsupportedOperationException { if ( ( lhs ) == existingNode ) { lhs = ( ( com.android.jack.ir.ast.JSsaVariableDefRef ) ( newNode ) ) ; return ; } for ( java.util.Map.Entry < com.android.jack.ir.ast.cfg.JBasicBlock , com.android.jack.ir.ast.JSsaVariableUseRef > pred : rhs.entrySet ( ) ) { if ( ( pred.getValue ( ) ) == existingNode ) { rhs.put ( pred.getKey ( ) , ( ( com.android.jack.ir.ast.JSsaVariableUseRef ) ( newNode ) ) ) ; return ; } } super . replaceImpl ( existingNode , newNode ) ; }

Target:
protected void replaceImpl ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode newNode ) throws java.lang.UnsupportedOperationException { if ( ( lhs ) == existingNode ) { lhs = ( ( com.android.jack.ir.ast.JSsaVariableDefRef ) ( newNode ) ) ; return ; } for ( int i = 0 ; i < ( rhs.length ) ; i ++ ) { if ( ( rhs [ i ] ) == existingNode ) { rhs [ i ] = ( ( com.android.jack.ir.ast.JSsaVariableUseRef ) ( newNode ) ) ; return ; } } super . replaceImpl ( existingNode , newNode ) ; }
Source:
public static void main ( java.lang.String [ ] argv ) throws java.lang.InterruptedException { mraa.Gpio gpio = new mraa.Gpio ( 6 ) ; mraa.IsrCallback callback = new JavaCallback ( ) ; gpio.isr ( Edge.EDGE_RISING , callback ) ; while ( true ) java.lang.Thread.sleep ( 999999 ) ; }

Target:
public static void main ( java.lang.String [ ] argv ) throws java.lang.InterruptedException { mraa.Gpio gpio = new mraa.Gpio ( 6 ) ; java.lang.Runnable callback = new JavaCallback ( ) ; gpio.isr ( Edge.EDGE_RISING , callback ) ; while ( true ) java.lang.Thread.sleep ( 999999 ) ; }
Source:
public void onReceivedTouchIconUrl ( android.webkit.WebView view , java.lang.String url , boolean precomposed ) { final android.content.ContentResolver cr = mActivity.getContentResolver ( ) ; if ( precomposed && ( ( mTouchIconLoader ) != null ) ) { mTouchIconLoader.cancel ( false ) ; mTouchIconLoader = null ; } if ( ( mTouchIconLoader ) == null ) { mTouchIconLoader = new com.android.browser.DownloadTouchIcon ( this , cr , view ) ; mTouchIconLoader.execute ( url ) ; } }

Target:
public void onReceivedTouchIconUrl ( android.webkit.WebView view , java.lang.String url , boolean precomposed ) { final android.content.ContentResolver cr = mActivity.getContentResolver ( ) ; if ( precomposed && ( ( mTouchIconLoader ) != null ) ) { mTouchIconLoader.cancel ( false ) ; mTouchIconLoader = null ; } if ( ( mTouchIconLoader ) == null ) { mTouchIconLoader = new com.android.browser.DownloadTouchIcon ( this , mActivity , cr , view ) ; mTouchIconLoader.execute ( url ) ; } }
Source:
public static void setUpClass ( ) throws java.lang.Exception { com.android.jack.Main.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options fiboArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.TestTools.getJackTestFromBinaryName ( "com/android/jack/fibonacci/test001/jack/Fibo" ) ) ; fiboArgs.addProperty ( Options.METHOD_FILTER.getName ( ) , "reject-all-methods" ) ; com.android.jack.gwt.BinaryLookup.hooks = new com.android.sched.util.RunnableHooks ( ) ; com.android.jack.gwt.BinaryLookup.session = com.android.jack.TestTools.buildSession ( fiboArgs , com.android.jack.gwt.BinaryLookup.hooks ) ; com.android.jack.gwt.BinaryLookup.lookup = com.android.jack.gwt.BinaryLookup.session.getLookup ( ) ; }

Target:
public static void setUpClass ( ) throws java.lang.Exception { com.android.jack.Options fiboArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.TestTools.getJackTestFromBinaryName ( "com/android/jack/fibonacci/test001/jack/Fibo" ) ) ; fiboArgs.addProperty ( Options.METHOD_FILTER.getName ( ) , "reject-all-methods" ) ; com.android.jack.gwt.BinaryLookup.hooks = new com.android.sched.util.RunnableHooks ( ) ; com.android.jack.gwt.BinaryLookup.session = com.android.jack.TestTools.buildSession ( fiboArgs , com.android.jack.gwt.BinaryLookup.hooks ) ; com.android.jack.gwt.BinaryLookup.lookup = com.android.jack.gwt.BinaryLookup.session.getLookup ( ) ; }
Source:
public int initialize ( int subscriptionId , android.telephony.mbms.IMbmsDownloadManagerCallback callback ) throws android.os.RemoteException { return initialize ( subscriptionId , new android.telephony.mbms.MbmsDownloadManagerCallback ( ) { @ java.lang.Override public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { callback.error ( errorCode , message ) ; } @ java.lang.Override public void fileServicesUpdated ( java.util.List < android.telephony.mbms.FileServiceInfo > services ) throws android.os.RemoteException { callback.fileServicesUpdated ( services ) ; } @ java.lang.Override public void middlewareReady ( ) throws android.os.RemoteException { callback.middlewareReady ( ) ; } } ) ; }

Target:
public final int initialize ( int subscriptionId , final android.telephony.mbms.IMbmsDownloadManagerCallback callback ) throws android.os.RemoteException { return initialize ( subscriptionId , new android.telephony.mbms.MbmsDownloadManagerCallback ( ) { @ java.lang.Override public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { callback.error ( errorCode , message ) ; } @ java.lang.Override public void fileServicesUpdated ( java.util.List < android.telephony.mbms.FileServiceInfo > services ) throws android.os.RemoteException { callback.fileServicesUpdated ( services ) ; } @ java.lang.Override public void middlewareReady ( ) throws android.os.RemoteException { callback.middlewareReady ( ) ; } } ) ; }
Source:
public int getVoiceActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getVoiceActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getVoiceActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }

Target:
public int getVoiceActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getVoiceActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getVoiceActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }
Source:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; factory = ( ( com.google.common.base.Supplier < ? extends java.util.Collection < V > > ) ( stream.readObject ( ) ) ) ; java.util.Map < K , java.util.Collection < V > > map = ( ( java.util.Map < K , java.util.Collection < V > > ) ( stream.readObject ( ) ) ) ; com.google.common.collect.Multimaps.CustomMultimap.setMap ( map ) ; }

Target:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; factory = ( ( com.google.common.base.Supplier < ? extends java.util.Collection < V > > ) ( stream.readObject ( ) ) ) ; java.util.Map < K , java.util.Collection < V > > map = ( ( java.util.Map < K , java.util.Collection < V > > ) ( stream.readObject ( ) ) ) ; setMap ( map ) ; }
Source:
public void test_X509CertSelector ( ) { java.security.cert.X509CertSelector selector = null ; try { selector = new java.security.cert.X509CertSelector ( ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + ( e.getMessage ( ) ) ) ) ; } assertEquals ( ( - 1 ) , selector.getBasicConstraints ( ) ) ; assertTrue ( selector.getMatchAllSubjectAltNames ( ) ) ; }

Target:
public void test_X509CertSelector ( ) { java.security.cert.X509CertSelector selector = new java.security.cert.X509CertSelector ( ) ; assertEquals ( ( - 1 ) , selector.getBasicConstraints ( ) ) ; assertTrue ( selector.getMatchAllSubjectAltNames ( ) ) ; }
Source:
public void setData ( com.android.hierarchyviewerlib.device.Window window , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { if ( ( tree ) != null ) { tree.viewNode.dispose ( ) ; } this . window = window ; tree = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode ( viewNode ) ; tree.setLeft ( ) ; tree.placeRoot ( ) ; viewport = null ; zoom = 1 ; selectedNode = null ; } notifyTreeChanged ( ) ; }

Target:
public void setData ( com.android.hierarchyviewerlib.device.Window window , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { if ( ( tree ) != null ) { tree.viewNode.dispose ( ) ; } this . window = window ; if ( viewNode == null ) { tree = null ; } else { tree = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode ( viewNode ) ; tree.setLeft ( ) ; tree.placeRoot ( ) ; } viewport = null ; zoom = 1 ; selectedNode = null ; } notifyTreeChanged ( ) ; }
Source:
public void test_write_$BII ( ) throws java.io.IOException { int length = compressToBytes ( testString ) ; java.util.zip.InflaterOutputStream ios = new java.util.zip.InflaterOutputStream ( os ) ; ios.write ( compressedBytes , 0 , length ) ; java.lang.String result = new java.lang.String ( os.toByteArray ( ) ) ; assertEquals ( testString , result ) ; }

Target:
public void test_write_$BII ( ) throws java.io.IOException { int length = compressToBytes ( testString ) ; try ( java.util.zip.InflaterOutputStream ios = new java.util.zip.InflaterOutputStream ( os ) ) { ios.write ( compressedBytes , 0 , length ) ; java.lang.String result = new java.lang.String ( os.toByteArray ( ) ) ; assertEquals ( testString , result ) ; } }
Source:
public void markDirtyAndNotify ( android.content.Context appContext ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.enterBlock ( "CallLogFramework.markDirtyAndNotify" ) ; android.content.SharedPreferences sharedPreferences = android.preference.PreferenceManager.getDefaultSharedPreferences ( appContext ) ; sharedPreferences.edit ( ) . putBoolean ( com.android.dialer.calllog.CallLogFramework.PREF_FORCE_REBUILD , true ) . apply ( ) ; if ( ( ui ) != null ) { ui.invalidateUi ( ) ; } }

Target:
public void markDirtyAndNotify ( android.content.Context appContext ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.enterBlock ( "CallLogFramework.markDirtyAndNotify" ) ; sharedPreferences.edit ( ) . putBoolean ( com.android.dialer.calllog.CallLogFramework.PREF_FORCE_REBUILD , true ) . apply ( ) ; if ( ( ui ) != null ) { ui.invalidateUi ( ) ; } }
Source:
public void reveal ( java.lang.String applicationName , java.lang.String className , int line ) { if ( ( mSourceRevealers ) != null ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : mSourceRevealers ) { if ( revealer.reveal ( applicationName , className , line ) ) { break ; } } } }

Target:
public void reveal ( java.lang.String applicationName , java.lang.String className , int line ) { if ( ( mSourceRevealers ) != null ) { for ( com.android.ide.eclipse.ddms.ISourceRevealer revealer : mSourceRevealers ) { try { if ( revealer.reveal ( applicationName , className , line ) ) { break ; } } catch ( java.lang.Throwable t ) { } } } }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( ( "onDestroy - before Send End Session mIsResponseSent[" + ( mIsResponseSent ) ) + " , " ) + ( mSlotId ) ) + "]" ) ) ; if ( ( ! ( mIsResponseSent ) ) && ( ! ( appService.isInputPending ( mSlotId ) ) ) ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , "handleDestroy - Send End Session" ) ; sendResponse ( StkAppService.RES_ID_END_SESSION ) ; } cancelTimeOut ( ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( ( "onDestroy - before Send End Session mIsResponseSent[" + ( mIsResponseSent ) ) + " , " ) + ( mSlotId ) ) + "]" ) ) ; if ( ( appService ) == null ) { return ; } if ( ( ! ( mIsResponseSent ) ) && ( ! ( appService.isInputPending ( mSlotId ) ) ) ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , "handleDestroy - Send End Session" ) ; sendResponse ( StkAppService.RES_ID_END_SESSION ) ; } cancelTimeOut ( ) ; }
Source:
protected java.lang.String argString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; int sz = targets.length ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( "\n " ) ; sb.append ( cases.get ( i ) ) ; sb.append ( ": " ) ; sb.append ( targets [ i ] ) ; } return sb.toString ( ) ; }

Target:
protected java.lang.String argString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; int sz = targets.length ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( "\n " ) ; sb.append ( cases.get ( i ) ) ; sb.append ( ": " ) ; sb.append ( targets [ i ] ) ; } return sb.toString ( ) ; }
Source:
public static boolean checkFolderForPackaging ( java.lang.String folderName ) { return ( ( ( ( ! ( folderName.equalsIgnoreCase ( "CVS" ) ) ) && ( ! ( folderName.equalsIgnoreCase ( ".svn" ) ) ) ) && ( ! ( folderName.equalsIgnoreCase ( "SCCS" ) ) ) ) && ( ! ( folderName.equalsIgnoreCase ( "META-INF" ) ) ) ) && ( ! ( folderName.startsWith ( "_" ) ) ) ; }

Target:
public static boolean checkFolderForPackaging ( java.lang.String folderName ) { return ( ( ( ! ( folderName.equalsIgnoreCase ( "CVS" ) ) ) && ( ! ( folderName.equalsIgnoreCase ( ".svn" ) ) ) ) && ( ! ( folderName.equalsIgnoreCase ( "SCCS" ) ) ) ) && ( ! ( folderName.startsWith ( "_" ) ) ) ; }
Source:
public void configureQuery ( java.lang.String query ) { if ( com.android.dialer.dialpadview.SmartDialCursorLoader.DEBUG ) { com.android.dialer.common.LogUtil.v ( com.android.dialer.dialpadview.SmartDialCursorLoader.TAG , ( "Configure new query to be " + query ) ) ; } mQuery = com.android.dialer.smartdial.SmartDialNameMatcher.normalizeNumber ( query , com.android.dialer.smartdial.SmartDialPrefix.getMap ( ) ) ; mNameMatcher = new com.android.dialer.smartdial.SmartDialNameMatcher ( mQuery , com.android.dialer.smartdial.SmartDialPrefix.getMap ( ) ) ; mNameMatcher.setShouldMatchEmptyQuery ( ( ! ( mShowEmptyListForNullQuery ) ) ) ; }

Target:
public void configureQuery ( java.lang.String query ) { if ( com.android.dialer.dialpadview.SmartDialCursorLoader.DEBUG ) { com.android.dialer.common.LogUtil.v ( com.android.dialer.dialpadview.SmartDialCursorLoader.TAG , ( "Configure new query to be " + query ) ) ; } mQuery = com.android.dialer.smartdial.SmartDialNameMatcher.normalizeNumber ( mContext , query ) ; mNameMatcher = new com.android.dialer.smartdial.SmartDialNameMatcher ( mQuery ) ; mNameMatcher.setShouldMatchEmptyQuery ( ( ! ( mShowEmptyListForNullQuery ) ) ) ; }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
public static java.lang.String getPackageVersionCode ( android.content.Context context ) { java.lang.String msg = "versionCode not available." ; try { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; android.content.pm.PackageInfo pi = pm.getPackageInfo ( context.getPackageName ( ) , 0 ) ; msg = "" ; if ( ( pi.versionCode ) > 0 ) { msg = java.lang.Integer.toString ( pi.versionCode ) ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { org.chromium.base.Log.d ( org.chromium.base.BuildInfo.TAG , msg ) ; } return msg ; }

Target:
public static java.lang.String getPackageVersionCode ( android.content.Context context ) { java.lang.String msg = "versionCode not available." ; try { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; android.content.pm.PackageInfo pi = pm.getPackageInfo ( context.getPackageName ( ) , 0 ) ; msg = "" ; if ( ( pi.versionCode ) > 0 ) { msg = java.lang.Integer.toString ( pi.versionCode ) ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { android.util.Log.d ( org.chromium.base.BuildInfo.TAG , msg ) ; } return msg ; }
Source:
public static float max ( float a , float b ) { if ( a != a ) return a ; if ( ( ( a == 0.0F ) && ( b == 0.0F ) ) && ( ( java.lang.Float.floatToIntBits ( a ) ) == ( java.lang.Math.negativeZeroFloatBits ) ) ) { return b ; } return a >= b ? a : b ; }

Target:
public static float max ( float a , float b ) { if ( a != a ) return a ; if ( ( ( a == 0.0F ) && ( b == 0.0F ) ) && ( ( java.lang.Float.floatToRawIntBits ( a ) ) == ( java.lang.Math.negativeZeroFloatBits ) ) ) { return b ; } return a >= b ? a : b ; }
Source:
public void test_SSLEngine_getEnabledProtocols ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine e = c.clientContext.createSSLEngine ( ) ; java.lang.String [ ] protocols = e.getEnabledProtocols ( ) ; libcore.java.security.StandardNames.assertValidProtocols ( StandardNames.SSL_SOCKET_PROTOCOLS , protocols ) ; assertNotSame ( protocols , e.getEnabledProtocols ( ) ) ; c.close ( ) ; }

Target:
public void test_SSLEngine_getEnabledProtocols ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine e = c.clientContext.createSSLEngine ( ) ; java.lang.String [ ] protocols = e.getEnabledProtocols ( ) ; libcore.java.security.StandardNames.assertValidProtocols ( protocols ) ; assertNotSame ( protocols , e.getEnabledProtocols ( ) ) ; c.close ( ) ; }
Source:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config , android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; } com.android.bluetooth.hid.HidDeviceService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( config , sdp , inQos , outQos , callback ) ; }

Target:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config , android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; } com.android.bluetooth.hid.HidDeviceService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( sdp , inQos , outQos , callback ) ; }
Source:
public void onUnhold ( ) { if ( ( getPrimaryConnection ( ) . getConnectionService ( ) . getAllConnections ( ) . size ( ) ) > 1 ) { android.util.Log.w ( com.android.bluetooth.hfpclient.connserv.HfpClientConference.TAG , "Ignoring unhold; call hold on the foreground call" ) ; return ; } android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConference.TAG , "onUnhold" ) ; mHeadsetProfile.acceptCall ( mDevice , BluetoothHeadsetClient.CALL_ACCEPT_HOLD ) ; }

Target:
public void onUnhold ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConference.TAG , "onUnhold" ) ; mHeadsetProfile.acceptCall ( mDevice , BluetoothHeadsetClient.CALL_ACCEPT_HOLD ) ; }
Source:
public void test001c ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; runTest001 ( jackOutput , "keep-first" ) ; java.io.File myClass1 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_1 ) ; java.io.File myClass2 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_2 ) ; java.io.File myClass3 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_3 ) ; junit.framework.Assert.assertTrue ( myClass1.exists ( ) ) ; junit.framework.Assert.assertTrue ( myClass2.exists ( ) ) ; junit.framework.Assert.assertTrue ( myClass3.exists ( ) ) ; }

Target:
public void test001c ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; runTest001 ( jackOutput , "keep-first" , false ) ; java.io.File myClass1 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_1 ) ; java.io.File myClass2 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_2 ) ; java.io.File myClass3 = new java.io.File ( jackOutput , com.android.jack.fileconflict.FileConflictTests.JACK_FILE_PATH_3 ) ; junit.framework.Assert.assertTrue ( myClass1.exists ( ) ) ; junit.framework.Assert.assertTrue ( myClass2.exists ( ) ) ; junit.framework.Assert.assertTrue ( myClass3.exists ( ) ) ; }
Source:
public static void initMd5Sum ( ) { new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void doInBackground ( java.lang.Void ... args ) { java.security.MessageDigest md ; try { md = java.security.MessageDigest.getInstance ( "SHA-1" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { md = null ; } synchronized ( android.telecom.Log.sMessageDigestLock ) { android.telecom.Log.sMessageDigest = md ; } return null ; } } . execute ( ) ; }

Target:
static void initMd5Sum ( ) { new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void doInBackground ( java.lang.Void ... args ) { java.security.MessageDigest md ; try { md = java.security.MessageDigest.getInstance ( "SHA-1" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { md = null ; } android.telecom.Log.sMessageDigest = md ; return null ; } } . execute ( ) ; }
Source:
void deviceConnected ( java.lang.String bdaddr , boolean absoluteVolume ) { if ( com.android.bluetooth.avrcp.AvrcpVolumeManager.DEBUG ) { android.util.Log.d ( com.android.bluetooth.avrcp.AvrcpVolumeManager.TAG , ( ( ( "deviceConnected: bdaddr=" + bdaddr ) + " absoluteVolume=" ) + absoluteVolume ) ) ; } mDeviceMap.put ( bdaddr.toUpperCase ( ) , absoluteVolume ) ; if ( bdaddr == ( mCurrentDeviceAddr ) ) { switchVolumeDevice ( bdaddr ) ; } }

Target:
void deviceConnected ( java.lang.String bdaddr , boolean absoluteVolume ) { if ( com.android.bluetooth.avrcp.AvrcpVolumeManager.DEBUG ) { android.util.Log.d ( com.android.bluetooth.avrcp.AvrcpVolumeManager.TAG , ( ( ( "deviceConnected: bdaddr=" + bdaddr ) + " absoluteVolume=" ) + absoluteVolume ) ) ; } mDeviceMap.put ( bdaddr , absoluteVolume ) ; if ( bdaddr.equals ( mCurrentDeviceAddr ) ) { switchVolumeDevice ( bdaddr ) ; } }
Source:
private void onDiscoverServicesResult ( java.lang.String deviceObjectPath , boolean result ) { java.lang.String address = mBluetoothService.getAddressFromObjectPath ( deviceObjectPath ) ; if ( result ) { mBluetoothService.updateRemoteDevicePropertiesCache ( address ) ; } mBluetoothService.sendUuidIntent ( address ) ; mBluetoothService.makeServiceChannelCallbacks ( address ) ; }

Target:
private void onDiscoverServicesResult ( java.lang.String deviceObjectPath , boolean result ) { java.lang.String address = mBluetoothService.getAddressFromObjectPath ( deviceObjectPath ) ; if ( address == null ) return ; if ( result ) { mBluetoothService.updateRemoteDevicePropertiesCache ( address ) ; } mBluetoothService.sendUuidIntent ( address ) ; mBluetoothService.makeServiceChannelCallbacks ( address ) ; }
Source:
private void assertTrusted ( java.security.cert.X509Certificate x , java.lang.String alias ) { assertEquals ( x , store.getCertificate ( alias ) ) ; assertEquals ( org.conscrypt.TrustedCertificateStoreTest.file ( alias ) . lastModified ( ) , store.getCreationDate ( alias ) . getTime ( ) ) ; assertTrue ( store.containsAlias ( alias ) ) ; assertEquals ( x , store.getTrustAnchor ( x ) ) ; }

Target:
private void assertTrusted ( java.security.cert.X509Certificate x , java.lang.String alias ) { assertEquals ( x , store.getCertificate ( alias ) ) ; assertEquals ( file ( alias ) . lastModified ( ) , store.getCreationDate ( alias ) . getTime ( ) ) ; assertTrue ( store.containsAlias ( alias ) ) ; assertEquals ( x , store.getTrustAnchor ( x ) ) ; }
Source:
public void onSimStateChanged ( int subId , int slotId , com.android.internal.telephony.IccCardConstants.State simState ) { if ( com.android.keyguard.KeyguardSimPinView.DEBUG ) android.util.Log.v ( com.android.keyguard.KeyguardSimPinView.TAG , ( ( ( ( "onSimStateChanged(subId=" + subId ) + ",state=" ) + simState ) + ")" ) ) ; switch ( simState ) { case ABSENT : { com.android.keyguard.KeyguardUpdateMonitor.getInstance ( getContext ( ) ) . reportSimUnlocked ( mSubId ) ; mCallback.dismiss ( true , com.android.keyguard.KeyguardUpdateMonitor.getCurrentUser ( ) ) ; break ; } default : resetState ( ) ; } }

Target:
public void onSimStateChanged ( int subId , int slotId , com.android.internal.telephony.IccCardConstants.State simState ) { if ( com.android.keyguard.KeyguardSimPinView.DEBUG ) android.util.Log.v ( com.android.keyguard.KeyguardSimPinView.TAG , ( ( ( ( "onSimStateChanged(subId=" + subId ) + ",state=" ) + simState ) + ")" ) ) ; switch ( simState ) { case ABSENT : { com.android.keyguard.KeyguardUpdateMonitor.getInstance ( getContext ( ) ) . reportSimUnlocked ( mSubId ) ; if ( ( mCallback ) != null ) { mCallback.dismiss ( true , com.android.keyguard.KeyguardUpdateMonitor.getCurrentUser ( ) ) ; } break ; } default : resetState ( ) ; } }
Source:
public void initialize ( int gsmSignalStrength , int gsmBitErrorRate , int cdmaDbm , int cdmaEcio , int evdoDbm , int evdoEcio , int evdoSnr , boolean gsm ) { initialize ( gsmSignalStrength , gsmBitErrorRate , cdmaDbm , cdmaEcio , evdoDbm , evdoEcio , evdoSnr , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , 0 , gsm ) ; }

Target:
public void initialize ( int gsmSignalStrength , int gsmBitErrorRate , int cdmaDbm , int cdmaEcio , int evdoDbm , int evdoEcio , int evdoSnr , boolean gsm ) { initialize ( gsmSignalStrength , gsmBitErrorRate , cdmaDbm , cdmaEcio , evdoDbm , evdoEcio , evdoSnr , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , 0 , gsm , false ) ; }
Source:
private void connect ( java.net.InetAddress anAddr , int aPort , int timeout ) throws java.io.IOException { java.net.InetAddress normalAddr = ( anAddr.isAnyLocalAddress ( ) ) ? java.net.InetAddress.getLocalHost ( ) : anAddr ; if ( ( streaming ) && ( usingSocks ( ) ) ) { socksConnect ( anAddr , aPort , 0 ) ; } else { libcore.io.IoBridge.connect ( fd , normalAddr , aPort , timeout ) ; } super . address = normalAddr ; super . port = aPort ; }

Target:
private void connect ( java.net.InetAddress anAddr , int aPort , int timeout ) throws java.io.IOException { java.net.InetAddress normalAddr = ( anAddr.isAnyLocalAddress ( ) ) ? java.net.InetAddress.getLocalHost ( ) : anAddr ; if ( ( streaming ) && ( usingSocks ( ) ) ) { socksConnect ( anAddr , aPort , 0 ) ; } else { libcore.io.IoBridge.connect ( fd , normalAddr , aPort , timeout ) ; } address = normalAddr ; port = aPort ; }
Source:
private void doStop ( ) { if ( ! ( mProfileStarted ) ) { android.util.Log.w ( mName , "doStop() called, but the profile is not running." ) ; } mProfileStarted = false ; if ( ( mAdapterService ) != null ) { mAdapterService.onProfileServiceStateChanged ( getClass ( ) . getName ( ) , BluetoothAdapter.STATE_OFF ) ; } if ( ! ( stop ( ) ) ) { android.util.Log.e ( mName , "Unable to stop profile" ) ; } if ( ( mUserSwitchedReceiver ) != null ) { getApplicationContext ( ) . unregisterReceiver ( mUserSwitchedReceiver ) ; mUserSwitchedReceiver = null ; } stopSelf ( ) ; }

Target:
private void doStop ( ) { if ( ! ( mProfileStarted ) ) { android.util.Log.w ( mName , "doStop() called, but the profile is not running." ) ; } mProfileStarted = false ; if ( ( mAdapterService ) != null ) { mAdapterService.onProfileServiceStateChanged ( this , BluetoothAdapter.STATE_OFF ) ; } if ( ! ( stop ( ) ) ) { android.util.Log.e ( mName , "Unable to stop profile" ) ; } if ( ( mUserSwitchedReceiver ) != null ) { getApplicationContext ( ) . unregisterReceiver ( mUserSwitchedReceiver ) ; mUserSwitchedReceiver = null ; } stopSelf ( ) ; }
Source:
void checkTokenizer ( java.lang.String [ ] expected , java.lang.String toParse ) { java.lang.String [ ] actual = org.chromium.base.CommandLine.tokenizeQuotedAruments ( toParse.toCharArray ( ) ) ; org.junit.Assert.assertEquals ( expected.length , actual.length ) ; for ( int i = 0 ; i < ( expected.length ) ; ++ i ) { org.junit.Assert.assertEquals ( ( "comparing element " + i ) , expected [ i ] , actual [ i ] ) ; } }

Target:
void checkTokenizer ( java.lang.String [ ] expected , java.lang.String toParse ) { java.lang.String [ ] actual = org.chromium.base.CommandLine.tokenizeQuotedAruments ( toParse.toCharArray ( ) ) ; assertEquals ( expected.length , actual.length ) ; for ( int i = 0 ; i < ( expected.length ) ; ++ i ) { assertEquals ( ( "comparing element " + i ) , expected [ i ] , actual [ i ] ) ; } }