auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "getCallBarring facility=" + facility ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void getCallBarring ( java.lang.String facility , java.lang.String password , android.os.Message onComplete , int serviceClass ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) logd ( ( ( ( "getCallBarring facility=" + facility ) + ", serviceClass = " ) + serviceClass ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp , serviceClass ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }
Source:
public void testGetTvInputInfo ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } assertEquals ( mManager.getTvInputInfo ( mStubId ) , android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) ) ; }

Target:
public void testGetInputState ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } assertEquals ( mManager.getInputState ( mStubId ) , TvInputManager.INPUT_STATE_CONNECTED ) ; }
Source:
public void testFindAll ( ) throws java.lang.InterruptedException { java.lang.String p = "<p>Find all instances of find on the page and highlight them.</p>" ; mWebView.loadData ( ( ( "<html><body>" + p ) + "</body></html>" ) , "text/html" , "UTF-8" ) ; waitForLoadComplete ( mWebView , android.webkit.cts.WebViewTest.TEST_TIMEOUT ) ; assertEquals ( 2 , mWebView.findAll ( "find" ) ) ; }

Target:
public void testFindAll ( ) throws java.lang.Throwable { getActivity ( ) . runOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { java.lang.String p = "<p>Find all instances of find on the page and highlight them.</p>" ; mWebView.loadData ( ( ( "<html><body>" + p ) + "</body></html>" ) , "text/html" , "UTF-8" ) ; } } ) ; waitForLoadComplete ( mWebView , android.webkit.cts.WebViewTest.TEST_TIMEOUT ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { assertEquals ( 2 , mWebView.findAll ( "find" ) ) ; } } ) ; }
Source:
public byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.serviceCategory ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; output.write ( mEnvelope.origSubaddress.origBytes , 0 , mEnvelope.origSubaddress.origBytes.length ) ; return output.toByteArray ( ) ; }

Target:
public byte [ ] getIncomingSmsFingerprint ( ) { java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream ( ) ; output.write ( mEnvelope.serviceCategory ) ; output.write ( mEnvelope.teleService ) ; output.write ( mEnvelope.origAddress.origBytes , 0 , mEnvelope.origAddress.origBytes.length ) ; output.write ( mEnvelope.bearerData , 0 , mEnvelope.bearerData.length ) ; if ( ( ( mEnvelope.origSubaddress ) != null ) && ( ( mEnvelope.origSubaddress.origBytes ) != null ) ) { output.write ( mEnvelope.origSubaddress.origBytes , 0 , mEnvelope.origSubaddress.origBytes.length ) ; } return output.toByteArray ( ) ; }
Source:
protected DateFormat.Field patternCharToDateFormatField ( char ch ) { int patternCharIndex = - 1 ; if ( ( 'A' <= ch ) && ( ch <= 'z' ) ) { patternCharIndex = com.ibm.icu.text.SimpleDateFormat.PATTERN_CHAR_TO_INDEX [ ( ( ( int ) ( ch ) ) - ( com.ibm.icu.text.SimpleDateFormat.PATTERN_CHAR_BASE ) ) ] ; } if ( patternCharIndex != ( - 1 ) ) { return com.ibm.icu.text.SimpleDateFormat.PATTERN_INDEX_TO_DATE_FORMAT_ATTRIBUTE [ patternCharIndex ] ; } return null ; }

Target:
private static int getIndexFromChar ( char ch ) { return ch < ( com.ibm.icu.text.SimpleDateFormat.PATTERN_CHAR_TO_INDEX.length ) ? com.ibm.icu.text.SimpleDateFormat.PATTERN_CHAR_TO_INDEX [ ( ch & 255 ) ] : - 1 ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; final com.android.internal.app.AlertController.AlertParams p = mAlertParams ; p.mIconAttrId = android.R.attr.alertDialogIcon ; p.mTitle = getString ( R.string.bt_enable_title ) ; p.mView = createView ( ) ; p.mPositiveButtonText = getString ( R.string.bt_enable_ok ) ; p.mPositiveButtonListener = this ; p.mNegativeButtonText = getString ( R.string.bt_enable_cancel ) ; p.mNegativeButtonListener = this ; setupAlert ( ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mOppManager = com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) ; mOppManager.mSendingFlag = false ; final com.android.internal.app.AlertController.AlertParams p = mAlertParams ; p.mIconAttrId = android.R.attr.alertDialogIcon ; p.mTitle = getString ( R.string.bt_enable_title ) ; p.mView = createView ( ) ; p.mPositiveButtonText = getString ( R.string.bt_enable_ok ) ; p.mPositiveButtonListener = this ; p.mNegativeButtonText = getString ( R.string.bt_enable_cancel ) ; p.mNegativeButtonListener = this ; setupAlert ( ) ; }
Source:
private static byte [ ] readFully ( java.io.File file ) throws java.io.IOException { java.io.ByteArrayOutputStream result = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 65536 ] ; int chunkSize ; try ( java.io.FileInputStream in = new java.io.FileInputStream ( file ) ) { while ( ( chunkSize = in.read ( buf ) ) != ( - 1 ) ) { result.write ( buf , 0 , chunkSize ) ; } } return result.toByteArray ( ) ; }

Target:
private static void drain ( java.io.InputStream in , java.io.OutputStream out ) throws java.io.IOException { byte [ ] buf = new byte [ 65536 ] ; int chunkSize ; while ( ( chunkSize = in.read ( buf ) ) != ( - 1 ) ) { out.write ( buf , 0 , chunkSize ) ; } }
Source:
public void onHandleIntent ( android.content.Intent intent ) { android.util.Log.i ( compiler.abcc.AbccService.TAG , ( "got onHandleIntent intent: " + intent ) ) ; if ( ( intent.getAction ( ) ) != "compiler.abcc.BITCODE_COMPILE_TEST" ) { android.util.Log.e ( compiler.abcc.AbccService.TAG , "We don't support formal release by onHandleIntent() yet!" ) ; return ; } extractIntentInfo ( intent ) ; installToolchain ( ) ; new compiler.abcc.AbccService.WorkingThread ( ) . start ( ) ; }

Target:
public void onHandleIntent ( android.content.Intent intent ) { android.util.Log.i ( compiler.abcc.AbccService.TAG , ( "got onHandleIntent intent: " + intent ) ) ; if ( ( intent.getAction ( ) ) != "compiler.abcc.BITCODE_COMPILE_TEST" ) { android.util.Log.e ( compiler.abcc.AbccService.TAG , "We don't support formal release by onHandleIntent() yet!" ) ; return ; } extractIntentInfo ( intent ) ; installToolchain ( ) ; mForTesting = true ; new compiler.abcc.AbccService.WorkingThread ( ) . start ( ) ; }
Source:
public libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder setTypes ( int [ ] [ ] typePairs ) { int [ ] isDsts = new int [ typePairs.length ] ; int [ ] offsetSeconds = new int [ typePairs.length ] ; for ( int i = 0 ; i < ( typePairs.length ) ; i ++ ) { offsetSeconds [ i ] = typePairs [ i ] [ 0 ] ; isDsts [ i ] = typePairs [ i ] [ 1 ] ; } this . isDsts = isDsts ; this . offsetsSeconds = offsetSeconds ; return this ; }

Target:
public libcore.tzdata.testing.ZoneInfoTestHelper.ZoneInfoDataBuilder setTypes ( int [ ] [ ] typePairs ) { int [ ] isDsts = new int [ typePairs.length ] ; int [ ] offsetSeconds = new int [ typePairs.length ] ; for ( int i = 0 ; i < ( typePairs.length ) ; i ++ ) { offsetSeconds [ i ] = typePairs [ i ] [ 0 ] ; isDsts [ i ] = typePairs [ i ] [ 1 ] ; } this . isDsts = isDsts ; this . offsetsSeconds = offsetSeconds ; return this ; }
Source:
public com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo getInstance ( com.ibm.icu.util.ULocale locale , boolean withFallback ) { com.ibm.icu.impl.ICUResourceBundle rb = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_CURR_BASE_NAME , locale ) ) ) ; if ( ! withFallback ) { int status = rb.getLoadingStatus ( ) ; if ( ( status == ( ICUResourceBundle.FROM_DEFAULT ) ) || ( status == ( ICUResourceBundle.FROM_ROOT ) ) ) { return null ; } } return new com.ibm.icu.impl.ICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo ( rb , withFallback ) ; }

Target:
public com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo getInstance ( com.ibm.icu.util.ULocale locale , boolean withFallback ) { com.ibm.icu.impl.ICUResourceBundle rb ; if ( withFallback ) { rb = com.ibm.icu.impl.ICUResourceBundle.getBundleInstance ( ICUData.ICU_CURR_BASE_NAME , locale , OpenType.LOCALE_DEFAULT_ROOT ) ; } else { try { rb = com.ibm.icu.impl.ICUResourceBundle.getBundleInstance ( ICUData.ICU_CURR_BASE_NAME , locale , OpenType.LOCALE_ONLY ) ; } catch ( java.util.MissingResourceException e ) { return null ; } } return new com.ibm.icu.impl.ICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo ( rb , withFallback ) ; }
Source:
private void transformAnnotationSetRefLists ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationSetRefLists ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section setIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationSetRefList ( indexMap , setIn ) ; } } }

Target:
private void transformAnnotationSetRefLists ( com.android.dex.Dex in , com.android.dx.merge.IndexMap indexMap ) { com.android.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationSetRefLists ; if ( section.exists ( ) ) { com.android.dex.Dex.Section setIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationSetRefList ( indexMap , setIn ) ; } } }
Source:
public java.nio.DoubleBuffer put ( java.nio.DoubleBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } double [ ] doubles = new double [ src.remaining ( ) ] ; src.get ( doubles ) ; put ( doubles ) ; return this ; }

Target:
public java.nio.DoubleBuffer put ( java.nio.DoubleBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } double [ ] doubles = new double [ src.remaining ( ) ] ; src.get ( doubles ) ; put ( doubles ) ; return this ; }
Source:
static void nativeGetPixels ( long nativeBitmap , int [ ] pixels , int offset , int stride , int x , int y , int width , int height ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . getRGB ( x , y , width , height , pixels , offset , stride ) ; }

Target:
static void nativeGetPixels ( long nativeBitmap , int [ ] pixels , int offset , int stride , int x , int y , int width , int height , boolean isPremultiplied ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . getRGB ( x , y , width , height , pixels , offset , stride ) ; }
Source:
public void callDropFeedbackPaint ( com.android.ide.eclipse.adt.editors.layout.gscripts.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback ) { if ( ( ( gc != null ) && ( feedback != null ) ) && ( ( feedback.paintClosure ) != null ) ) { try { feedback.paintClosure.call ( new java.lang.Object [ ] { gc , targetNode , feedback } ) ; } catch ( java.lang.Exception e ) { logError ( "DropFeedback.paintClosure failed: %s" , e.toString ( ) ) ; } } }

Target:
public void callDropFeedbackPaint ( com.android.ide.eclipse.adt.editors.layout.gscripts.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback ) { if ( ( ( gc != null ) && ( feedback != null ) ) && ( ( feedback.painter ) != null ) ) { try { feedback.painter.paint ( gc , targetNode , feedback ) ; } catch ( java.lang.Exception e ) { logError ( "DropFeedback.painter failed: %s" , e.toString ( ) ) ; } } }
Source:
public java.util.List < java.lang.String [ ] > getNavbarLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < java.lang.String [ ] > links = new java.util.ArrayList < > ( ) ; com.android.vts.servlet.Page root = Page.HOME ; java.lang.String [ ] rootEntry = new java.lang.String [ ] { root.getUrl ( ) , root.getName ( ) } ; links.add ( rootEntry ) ; return links ; }

Target:
public com.android.vts.servlet.PageType getNavParentType ( ) { return PageType.TOT ; }
Source:
private boolean isAllowedProviderSafe ( java.lang.String provider ) { if ( ( LocationManager.GPS_PROVIDER.equals ( provider ) ) && ( ( mContext.checkCallingPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { return false ; } if ( ( ( LocationManager.NETWORK_PROVIDER.equals ( provider ) ) && ( ( mContext.checkCallingPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) && ( ( mContext.checkCallingPermission ( com.android.server.LocationManagerService.ACCESS_COARSE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { return false ; } return true ; }

Target:
private void checkPermissionsSafe ( java.lang.String provider ) { if ( ( LocationManager.GPS_PROVIDER.equals ( provider ) ) && ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { throw new java.lang.SecurityException ( "Requires ACCESS_FINE_LOCATION permission" ) ; } if ( ( ( LocationManager.NETWORK_PROVIDER.equals ( provider ) ) && ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.ACCESS_FINE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) && ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.ACCESS_COARSE_LOCATION ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { throw new java.lang.SecurityException ( "Requires ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission" ) ; } }
Source:
public < T extends com.android.jack.api.JackConfig > T createConfig ( java.lang.Class < T > cls ) throws com.android.jack.api.ConfigNotSupportedException { if ( cls == ( com.android.jack.api.v01.Api01Config.class ) ) { return ( ( T ) ( new com.android.jack.api.v01.impl.Api01ConfigImpl ( ) ) ) ; } throw new com.android.jack.api.ConfigNotSupportedException ( ( ( cls.getName ( ) ) + " are not supported" ) ) ; }

Target:
public < T extends com.android.jack.api.JackConfig > T createConfig ( java.lang.Class < T > cls ) throws com.android.jack.api.ConfigNotSupportedException { if ( cls == ( com.android.jack.api.v01.Api01Config.class ) ) { return ( ( T ) ( new com.android.jack.api.v01.impl.Api01ConfigImpl ( ) ) ) ; } else if ( cls == ( com.android.jack.api.v01.Cli01Config.class ) ) { return ( ( T ) ( new com.android.jack.api.v01.impl.Cli01ConfigImpl ( ) ) ) ; } throw new com.android.jack.api.ConfigNotSupportedException ( ( ( cls.getName ( ) ) + " are not supported" ) ) ; }
Source:
public void run ( ) { com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) . saveSendingFileInfo ( mimeType , uris , false ) ; launchDevicePicker ( ) ; finish ( ) ; }

Target:
public void run ( ) { try { com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) . saveSendingFileInfo ( mimeType , uris , false ) ; launchDevicePicker ( ) ; finish ( ) ; } catch ( java.lang.IllegalArgumentException exception ) { showToast ( exception.getMessage ( ) ) ; finish ( ) ; } }
Source:
public void onReceivedTitle ( java.lang.String title ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedTitle" ) ; mWebChromeClient.onReceivedTitle ( mWebView , title ) ; } org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onReceivedTitle ( java.lang.String title ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedTitle" ) ; mWebChromeClient.onReceivedTitle ( mWebView , title ) ; } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "OnClickActivity.java:27: Error: On click handler wrong5(View) must be public\n" + ( ( ( ( ( ( "OnClickActivity.java:31: Error: On click handler wrong6(View) should not be static\n" + "onclick.xml:10: Error: Corresponding method handler \'public void nonexistent(android.view.View)\' not found\n" ) + "onclick.xml:16: Error: Corresponding method handler \'public void wrong1(android.view.View)\' not found\n" ) + "onclick.xml:22: Error: Corresponding method handler \'public void wrong2(android.view.View)\' not found\n" ) + "onclick.xml:28: Error: Corresponding method handler \'public void wrong3(android.view.View)\' not found\n" ) + "onclick.xml:34: Error: Corresponding method handler \'public void wrong4(android.view.View)\' not found\n" ) + "onclick.xml:58: Error: Corresponding method handler 'public void simple_typo(android.view.View)' not found (did you mean void test.pkg.OnClickActivity#simple_tyop(android.view.View) ?)" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "res/layout/onclick.xml=>res/layout/onclick.xml" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "OnClickActivity.java:27: Error: On click handler wrong5(View) must be public\n" + ( ( ( ( ( ( ( "OnClickActivity.java:31: Error: On click handler wrong6(View) should not be static\n" + "OnClickActivity.java:45: Error: On click handler wrong7(View) must be public\n" ) + "onclick.xml:10: Error: Corresponding method handler \'public void nonexistent(android.view.View)\' not found\n" ) + "onclick.xml:16: Error: Corresponding method handler \'public void wrong1(android.view.View)\' not found\n" ) + "onclick.xml:22: Error: Corresponding method handler \'public void wrong2(android.view.View)\' not found\n" ) + "onclick.xml:28: Error: Corresponding method handler \'public void wrong3(android.view.View)\' not found\n" ) + "onclick.xml:34: Error: Corresponding method handler \'public void wrong4(android.view.View)\' not found\n" ) + "onclick.xml:58: Error: Corresponding method handler 'public void simple_typo(android.view.View)' not found (did you mean void test.pkg.OnClickActivity#simple_tyop(android.view.View) ?)" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "res/layout/onclick.xml=>res/layout/onclick.xml" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" ) ) ; }
Source:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; }

Target:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; mPanProfile.panDisconnect ( device ) ; mPbapClientProfile.pbapClientDisconnect ( device ) ; }
Source:
public void onBar1Changed ( int progress ) { mRadius = ( ( ( float ) ( progress ) ) / 100.0F ) * ( MAX_RADIUS ) ; if ( ( mRadius ) <= 0.1F ) { mRadius = 0.1F ; } if ( mUseIntrinsic ) { mIntrinsic.setRadius ( mRadius ) ; } else { mScript.invoke_setRadius ( ( ( int ) ( mRadius ) ) ) ; } }

Target:
public void onBar1Changed ( int progress ) { mRadius = ( ( ( float ) ( progress ) ) / 100.0F ) * ( MAX_RADIUS ) ; if ( ( mRadius ) <= 0.1F ) { mRadius = 0.1F ; } if ( mUseIntrinsic ) { mIntrinsic.setRadius ( mRadius ) ; } else if ( mUseHalfPrecision ) { mScript_half.invoke_setRadius ( ( ( int ) ( mRadius ) ) ) ; } else { mScript.invoke_setRadius ( ( ( int ) ( mRadius ) ) ) ; } }
Source:
private IBinder.DeathRecipient getInternalStateDeathRecipient ( int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanServiceImpl.class . getDeclaredField ( "mDeathRecipientsByClientId" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseArray < android.os.IBinder.DeathRecipient > deathRecipientsByClientId = ( ( android.util.SparseArray < android.os.IBinder.DeathRecipient > ) ( field.get ( mDut ) ) ) ; return deathRecipientsByClientId.get ( clientId ) ; }

Target:
private IBinder.DeathRecipient getInternalStateDeathRecipient ( int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareServiceImpl.class . getDeclaredField ( "mDeathRecipientsByClientId" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseArray < android.os.IBinder.DeathRecipient > deathRecipientsByClientId = ( ( android.util.SparseArray < android.os.IBinder.DeathRecipient > ) ( field.get ( mDut ) ) ) ; return deathRecipientsByClientId.get ( clientId ) ; }
Source:
public void addDevice ( com.android.vts.entity.DeviceInfoEntity device ) { if ( device == null ) return ; devices.add ( ( ( ( ( ( ( device.branch ) + "/" ) + ( device.buildFlavor ) ) + " (" ) + ( device.buildId ) ) + ")" ) ) ; }

Target:
public void addDevice ( com.android.vts.entity.DeviceInfoEntity device ) { if ( ( device == null ) || ( deviceSet.contains ( device ) ) ) return ; devices.add ( ( ( ( ( ( ( device.branch ) + "/" ) + ( device.buildFlavor ) ) + " (" ) + ( device.buildId ) ) + ")" ) ) ; deviceSet.add ( device ) ; }
Source:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_PATH , mPath ) ; if ( ( mVendor ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_PATH , mVendor ) ; } if ( ( getMinApiLevel ( ) ) != ( MIN_API_LEVEL_NOT_SPECIFIED ) ) { props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_MIN_API_LEVEL , java.lang.Integer.toString ( getMinApiLevel ( ) ) ) ; } }

Target:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_PATH , mPath ) ; if ( ( mVendor ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_VENDOR , mVendor ) ; } if ( ( getMinApiLevel ( ) ) != ( MIN_API_LEVEL_NOT_SPECIFIED ) ) { props.setProperty ( com.android.sdklib.internal.repository.ExtraPackage.PROP_MIN_API_LEVEL , java.lang.Integer.toString ( getMinApiLevel ( ) ) ) ; } }
Source:
java.util.List < com.android.cts.verifier.TestListItem > filterTests ( java.util.List < com.android.cts.verifier.TestListItem > tests ) { java.util.List < com.android.cts.verifier.TestListItem > filteredTests = new java.util.ArrayList < com.android.cts.verifier.TestListItem > ( ) ; for ( com.android.cts.verifier.TestListItem test : tests ) { if ( ( ! ( hasAnyFeature ( test.excludedFeatures ) ) ) && ( hasAllFeatures ( test.requiredFeatures ) ) ) { if ( ( ( test.applicableFeatures ) == null ) || ( hasAnyFeature ( test.applicableFeatures ) ) ) { filteredTests.add ( test ) ; } } } return filteredTests ; }

Target:
private boolean checkFeatures ( java.lang.String [ ] requiredFeatures , java.lang.String [ ] excludedFeatures , java.lang.String [ ] applicableFeatures ) { if ( ( ! ( hasAnyFeature ( excludedFeatures ) ) ) && ( hasAllFeatures ( requiredFeatures ) ) ) { if ( ( applicableFeatures == null ) || ( hasAnyFeature ( applicableFeatures ) ) ) { return true ; } } return false ; }
Source:
private static com.android.dx.dex.file.ClassDefItem translateClass ( byte [ ] bytes , com.android.dx.cf.direct.DirectClassFile cf ) { try { return com.android.dx.dex.cf.CfTranslator.translate ( cf , bytes , com.android.dx.command.dexer.Main.args.cfOptions , com.android.dx.command.dexer.Main.args.dexOptions , com.android.dx.command.dexer.Main.outputDex ) ; } catch ( com.android.dx.cf.iface.ParseException ex ) { DxConsole.err.println ( "\ntrouble processing:" ) ; if ( com.android.dx.command.dexer.Main.args.debug ) { ex.printStackTrace ( DxConsole.err ) ; } else { ex.printContext ( DxConsole.err ) ; } } com.android.dx.command.dexer.Main.errors.incrementAndGet ( ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { if ( classPathOpener.process ( ) ) { com.android.dx.command.dexer.Main.anyFilesProcessed = true ; } return null ; }
Source:
public void onMtuChanged ( android.bluetooth.BluetoothDevice device , int mtu ) { com.googlecode.android_scripting.Log.d ( ( ( ( "gatt_server change onMtuChanged " + ( mEventType ) ) + " " ) + ( index ) ) ) ; mResults.putParcelable ( "BluetoothDevice" , device ) ; mResults.putInt ( "mtu" , mtu ) ; mEventFacade.postEvent ( ( ( ( mEventType ) + ( index ) ) + "onMtuChanged" ) , mResults.clone ( ) ) ; mResults.clear ( ) ; }

Target:
public void onMtuChanged ( android.bluetooth.BluetoothDevice device , int mtu ) { com.googlecode.android_scripting.Log.d ( ( ( ( "gatt_server change onMtuChanged " + ( mEventType ) ) + " " ) + ( index ) ) ) ; mResults.putParcelable ( "BluetoothDevice" , device ) ; mResults.putInt ( "MTU" , mtu ) ; mEventFacade.postEvent ( ( ( ( mEventType ) + ( index ) ) + "onMtuChanged" ) , mResults.clone ( ) ) ; mResults.clear ( ) ; }
Source:
public void testWriteFiboDexFile ( ) throws java.lang.Exception { java.io.File outputDir = com.android.jack.util.FileUtils.getWorkingDirectory ( ) ; com.android.jack.Options fiboArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.FibonacciThreeAddressTest.JAVA_FILEPATH ) ; java.io.File outputFile = new java.io.File ( outputDir , fiboArgs.getOutputFile ( ) . getName ( ) ) ; java.io.File outputDirectory = outputFile.getParentFile ( ) ; com.android.jack.util.FileUtils.createIfNotExists ( outputDirectory ) ; com.android.jack.Jack.run ( fiboArgs ) ; junit.framework.Assert.assertTrue ( outputFile.exists ( ) ) ; junit.framework.Assert.assertTrue ( ( ( outputFile.length ( ) ) > 0 ) ) ; }

Target:
public void testWriteFiboDexFile ( ) throws java.lang.Exception { java.io.File outputDir = com.android.jack.util.FileUtils.getWorkingDirectory ( ) ; com.android.jack.Options fiboArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.FibonacciThreeAddressTest.JAVA_FILEPATH ) ; fiboArgs.setOutputDir ( outputDir ) ; java.io.File outputFile = new java.io.File ( outputDir , com.android.jack.backend.dex.DexFileWriter.DEX_FILENAME ) ; java.io.File outputDirectory = outputFile.getParentFile ( ) ; com.android.jack.util.FileUtils.createIfNotExists ( outputDirectory ) ; com.android.jack.Jack.run ( fiboArgs ) ; junit.framework.Assert.assertTrue ( outputFile.exists ( ) ) ; junit.framework.Assert.assertTrue ( ( ( outputFile.length ( ) ) > 0 ) ) ; }
Source:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }

Target:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { if ( value < 0 ) { return null ; } java.lang.String [ ] names = sun.util.locale.provider.CalendarDataUtility.getNames ( id , field , style , locale ) ; if ( value >= ( names.length ) ) { return null ; } return names [ value ] ; }
Source:
public void modifyText ( org.eclipse.swt.events.ModifyEvent event ) { if ( ( mManualTextChange ) > 0 ) { return ; } try { mValue = java.lang.Double.parseDouble ( mDecimalText.getText ( ) ) ; setValueIntoSexagesimalControl ( mValue ) ; mValueValidity = true ; } catch ( java.lang.NumberFormatException e ) { mValueValidity = false ; resetSexagesimalControls ( ) ; } }

Target:
public void modifyText ( org.eclipse.swt.events.ModifyEvent event ) { if ( ( mManualTextChange ) > 0 ) { return ; } try { mValue = mDecimalFormat.parse ( mDecimalText.getText ( ) ) . doubleValue ( ) ; setValueIntoSexagesimalControl ( mValue ) ; mValueValidity = true ; } catch ( java.text.ParseException e ) { mValueValidity = false ; resetSexagesimalControls ( ) ; } }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.io.FolderWrapper frameworkRes = new com.android.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources = new com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources ( ) ; try { loadResources ( resources , frameworkRes ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.io.FolderWrapper frameworkRes = new com.android.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.eclipse.adt.internal.resources.manager.FrameworkResources resources = new com.android.ide.eclipse.adt.internal.resources.manager.FrameworkResources ( ) ; try { loadResources ( resources , frameworkRes ) ; resources.loadPublicResources ( frameworkRes ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }
Source:
public com.android.jack.ir.ast.JParameterRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JParameterRef jRef = JParameterUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jRef ) ) ; return jRef ; }

Target:
public com.android.jack.ir.ast.JParameterRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JParameterRef jRef = JParameterUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jRef ) ) ; for ( com.android.jack.jayce.v0004.nodes.NMarker marker : markers ) { jRef.addMarker ( marker.exportAsJast ( exportSession ) ) ; } return jRef ; }
Source:
public com.android.jack.api.impl.SubReleaseKind getCompilerSubReleaseKind ( ) { return SubReleaseKind.ALPHA ; }

Target:
public com.android.jack.api.impl.SubReleaseKind getCompilerSubReleaseKind ( ) { switch ( com.android.jack.Jack.getVersion ( ) . getSubReleaseKind ( ) ) { case ENGINEERING : return SubReleaseKind.ENGINEERING ; case PRE_ALPHA : return SubReleaseKind.PRE_ALPHA ; case ALPHA : return SubReleaseKind.ALPHA ; case BETA : return SubReleaseKind.BETA ; case CANDIDATE : return SubReleaseKind.CANDIDATE ; case RELEASE : return SubReleaseKind.RELEASE ; default : throw new java.lang.AssertionError ( com.android.jack.Jack.getVersion ( ) . getSubReleaseKind ( ) . name ( ) ) ; } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.Point ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point rhs = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.Point ) ( obj ) ) ; return ( ( this . x ) == ( rhs.x ) ) && ( ( this . y ) == ( rhs.y ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.ide.common.api.Point ) { com.android.ide.common.api.Point rhs = ( ( com.android.ide.common.api.Point ) ( obj ) ) ; return ( ( this . x ) == ( rhs.x ) ) && ( ( this . y ) == ( rhs.y ) ) ; } return false ; }
Source:
public void testRewriteGradleMessages ( ) { java.lang.String original = "error example\ntwo line error\nnext line\nsomething else" ; java.lang.String rewriten = mGradleMessageRewriter.rewriteMessages ( original ) ; java.lang.String expected = "Android Gradle Plugin - Build Issue: " + ( ( ( ( ( ( ( "{\"kind\":\"ERROR\",\"text\":\"errorText\",\"sourcePath\":\"error/source\"," + "\"position\":{\"startLine\":1,\"startColumn\":2,\"startOffset\":3," ) + "\"endLine\":4,\"endColumn\":5,\"endOffset\":6},\"original\":\"\"}\n" ) + "Android Gradle Plugin - Build Issue: {\"kind\":\"WARNING\",\"text\":" ) + "\"two line warning\",\"sourcePath\":\"sourcePath\"," ) + "\"position\":{\"startLine\":1,\"startColumn\":2},\"original\":\"\"}\n" ) + "Android Gradle Plugin - Build Issue: {\"kind\":\"SIMPLE\"," ) + "\"text\":\"something else\",\"position\":{},\"original\":\"something else\"}" ) ; assertEquals ( expected.trim ( ) , rewriten.trim ( ) ) ; }

Target:
public void testRewriteGradleMessages ( ) { java.lang.String original = "error example\ntwo line error\nnext line\nsomething else" ; java.lang.String rewriten = mGradleMessageRewriter.rewriteMessages ( original ) ; java.lang.String expected = "AGPBI: {\"kind\":\"ERROR\",\"text\":\"errorText\",\"sourcePath\":\"error/source\"," + ( ( ( ( ( ( "\"position\":{\"startLine\":1,\"startColumn\":2,\"startOffset\":3," + "\"endLine\":4,\"endColumn\":5,\"endOffset\":6},\"original\":\"\"}\n" ) + "AGPBI: {\"kind\":\"WARNING\",\"text\":" ) + "\"two line warning\",\"sourcePath\":\"sourcePath\"," ) + "\"position\":{\"startLine\":1,\"startColumn\":2},\"original\":\"\"}\n" ) + "AGPBI: {\"kind\":\"SIMPLE\"," ) + "\"text\":\"something else\",\"position\":{},\"original\":\"something else\"}" ) ; assertEquals ( expected.trim ( ) , rewriten.trim ( ) ) ; }
Source:
java.lang.String retrieveLastLocalMessage ( ) { lastIndexOfLocalMessage = com.android.incallui.rtt.impl.RttChatMessage.getLastIndexLocalMessage ( rttMessages ) ; if ( ( lastIndexOfLocalMessage ) >= 0 ) { com.android.incallui.rtt.impl.RttChatMessage rttChatMessage = rttMessages.get ( lastIndexOfLocalMessage ) ; rttChatMessage.unfinish ( ) ; return rttChatMessage.getContent ( ) ; } else { return null ; } }

Target:
java.lang.String retrieveLastLocalMessage ( ) { lastIndexOfLocalMessage = com.android.incallui.rtt.protocol.RttChatMessage.getLastIndexLocalMessage ( rttMessages ) ; if ( ( lastIndexOfLocalMessage ) >= 0 ) { com.android.incallui.rtt.protocol.RttChatMessage rttChatMessage = rttMessages.get ( lastIndexOfLocalMessage ) ; rttChatMessage.unfinish ( ) ; return rttChatMessage.getContent ( ) ; } else { return null ; } }
Source:
public void onCallListChange ( com.android.incallui.call.CallList callList ) { com.google.common.collect.ImmutableList.Builder < com.android.dialer.activecalls.ActiveCallInfo > activeCalls = com.google.common.collect.ImmutableList.builder ( ) ; for ( com.android.incallui.call.DialerCall call : callList.getAllCalls ( ) ) { if ( ( call.getState ( ) ) != ( com.android.incallui.call.DialerCall.State.DISCONNECTED ) ) { activeCalls.add ( com.android.dialer.activecalls.ActiveCallInfo.builder ( ) . setPhoneAccountHandle ( com.google.common.base.Optional.fromNullable ( call.getAccountHandle ( ) ) ) . build ( ) ) ; } } com.android.dialer.activecalls.ActiveCallsComponent.get ( appContext ) . activeCalls ( ) . setActiveCalls ( activeCalls.build ( ) ) ; }

Target:
public void onCallListChange ( com.android.incallui.call.CallList callList ) { com.google.common.collect.ImmutableList.Builder < com.android.dialer.activecalls.ActiveCallInfo > activeCalls = com.google.common.collect.ImmutableList.builder ( ) ; for ( com.android.incallui.call.DialerCall call : callList.getAllCalls ( ) ) { if ( ( call.getState ( ) ) != ( com.android.incallui.call.state.DialerCallState.DISCONNECTED ) ) { activeCalls.add ( com.android.dialer.activecalls.ActiveCallInfo.builder ( ) . setPhoneAccountHandle ( com.google.common.base.Optional.fromNullable ( call.getAccountHandle ( ) ) ) . build ( ) ) ; } } com.android.dialer.activecalls.ActiveCallsComponent.get ( appContext ) . activeCalls ( ) . setActiveCalls ( activeCalls.build ( ) ) ; }
Source:
public com.google.common.util.concurrent.Service.State startAndWait ( ) { return com.google.common.util.concurrent.Futures.getUnchecked ( start ( ) ) ; }

Target:
public final void awaitRunning ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.util.concurrent.TimeoutException { if ( monitor.enterWhenUninterruptibly ( hasReachedRunning , timeout , unit ) ) { try { checkCurrentState ( com.google.common.util.concurrent.Service.State.RUNNING ) ; } finally { monitor.leave ( ) ; } } else { throw new java.util.concurrent.TimeoutException ( ( ( ( ( "Timed out waiting for " + ( this ) ) + " to reach the RUNNING state. " ) + "Current state: " ) + ( state ( ) ) ) ) ; } }
Source:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; mInstaller.execute ( "rmdex" , codePath , instructionSet ) ; }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
private java.util.List < android.net.wifi.WifiConfiguration > parseNetworkList ( org.xmlpull.v1.XmlPullParser in , int outerTagDepth ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { java.util.List < android.net.wifi.WifiConfiguration > networkList = new java.util.ArrayList < > ( ) ; while ( com.android.server.wifi.util.XmlUtil.gotoNextSectionWithNameOrEnd ( in , com.android.server.wifi.NetworkListStoreData.XML_TAG_SECTION_HEADER_NETWORK , outerTagDepth ) ) { android.net.wifi.WifiConfiguration config = parseWifiConfiguration ( in , ( outerTagDepth + 1 ) ) ; networkList.add ( config ) ; } return networkList ; }

Target:
private java.util.List < android.net.wifi.WifiConfiguration > parseNetworkList ( org.xmlpull.v1.XmlPullParser in , int outerTagDepth ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { java.util.List < android.net.wifi.WifiConfiguration > networkList = new java.util.ArrayList < > ( ) ; while ( com.android.server.wifi.util.XmlUtil.gotoNextSectionWithNameOrEnd ( in , com.android.server.wifi.NetworkListStoreData.XML_TAG_SECTION_HEADER_NETWORK , outerTagDepth ) ) { try { android.net.wifi.WifiConfiguration config = parseNetwork ( in , ( outerTagDepth + 1 ) ) ; networkList.add ( config ) ; } catch ( java.lang.RuntimeException e ) { android.util.Log.e ( com.android.server.wifi.NetworkListStoreData.TAG , "Failed to parse network config. Skipping..." , e ) ; } } return networkList ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.GoogleCloudTestingConfiguration that = ( ( com.google.gct.testing.GoogleCloudTestingConfiguration ) ( o ) ) ; return ( id ) == ( that.id ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.GoogleCloudTestingConfiguration that = ( ( com.google.gct.testing.GoogleCloudTestingConfiguration ) ( o ) ) ; return ( ( getHash ( ) ) == ( that.getHash ( ) ) ) && ( ( id ) == ( that.id ) ) ; }
Source:
private void create ( java.lang.String pattern , android.icu.text.DecimalFormatSymbols inputSymbols , android.icu.text.CurrencyPluralInfo info , int inputStyle ) { if ( inputStyle != ( android.icu.text.NumberFormat.PLURALCURRENCYSTYLE ) ) { createFromPatternAndSymbols ( pattern , inputSymbols ) ; } else { symbols = ( ( android.icu.text.DecimalFormatSymbols ) ( inputSymbols.clone ( ) ) ) ; currencyPluralInfo = info ; java.lang.String currencyPluralPatternForOther = currencyPluralInfo.getCurrencyPluralPattern ( "other" ) ; applyPatternWithoutExpandAffix ( currencyPluralPatternForOther , false ) ; setCurrencyForSymbols ( ) ; } style = inputStyle ; }

Target:
private void create ( java.lang.String pattern , android.icu.text.DecimalFormatSymbols inputSymbols , android.icu.text.CurrencyPluralInfo info , int inputStyle ) { if ( inputStyle != ( NumberFormat.PLURALCURRENCYSTYLE ) ) { createFromPatternAndSymbols ( pattern , inputSymbols ) ; } else { symbols = ( ( android.icu.text.DecimalFormatSymbols ) ( inputSymbols.clone ( ) ) ) ; currencyPluralInfo = info ; java.lang.String currencyPluralPatternForOther = currencyPluralInfo.getCurrencyPluralPattern ( "other" ) ; applyPatternWithoutExpandAffix ( currencyPluralPatternForOther , false ) ; setCurrencyForSymbols ( ) ; } style = inputStyle ; }
Source:
public void timeDateIntervalFormat_formatDateRange_TIME ( int reps ) throws java.lang.Exception { java.util.Locale l = java.util.Locale.US ; java.util.TimeZone utc = java.util.TimeZone.getTimeZone ( "UTC" ) ; int flags = ( FORMAT_SHOW_TIME ) | ( FORMAT_24HOUR ) ; for ( int rep = 0 ; rep < reps ; ++ rep ) { formatDateRange ( l , utc , 0L , 0L , flags ) ; } }

Target:
public void timeDateIntervalFormat_formatDateRange_TIME ( int reps ) throws java.lang.Exception { android.icu.util.ULocale l = android.icu.util.ULocale.US ; android.icu.util.TimeZone utc = android.icu.util.TimeZone.getTimeZone ( "UTC" ) ; int flags = ( FORMAT_SHOW_TIME ) | ( FORMAT_24HOUR ) ; for ( int rep = 0 ; rep < reps ; ++ rep ) { formatDateRange ( l , utc , 0L , 0L , flags ) ; } }
Source:
private void writeDup ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; }

Target:
private void writeDup ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { if ( isVirtualStackVariable ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ) { cmpOperands.put ( getStackVariable ( nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) , cmpOperands.get ( getStackVariable ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ) ) ; } else { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; try { for ( int i = 1 ; i <= 70 ; i ++ ) { java.lang.Class < ? > clazz = getClassLoader ( ) . loadClass ( java.lang.String.format ( "com.android.tests.basic.manymethods.Big%03d" , i ) ) ; } } catch ( java.lang.ClassNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; try { for ( int i = 1 ; i <= 70 ; i ++ ) { java.lang.Class < ? > clazz = getClassLoader ( ) . loadClass ( java.lang.String.format ( "com.android.tests.basic.manymethods.Big%03d" , i ) ) ; } } catch ( java.lang.ClassNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } android.widget.TextView tv = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; tv.setText ( "Found all classes" ) ; }
Source:
private void writeGoto ( int insIndex ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.GOTO ) ; writer.writeOpen ( ) ; writer.writeId ( java.lang.Integer.toString ( insIndex ) ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeReturn ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.RETURN_STATEMENT ) ; writer.writeOpen ( ) ; if ( stackIdx == 0 ) { writer.writeNull ( ) ; } else { writeStackAccess ( frame , stackIdx ) ; } sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }