auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } com.android.build.gradle.ndk.internal.NdkConfiguration.createStripDebugTask ( tasks , binary , buildDir , ndkHandler ) ; }

Target:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( java.lang.Boolean.TRUE.equals ( ndkConfig.getIsDebuggable ( ) ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } com.android.build.gradle.ndk.internal.NdkConfiguration.createStripDebugTask ( tasks , binary , buildDir , ndkHandler ) ; }
Source:
void logLockScreen ( java.lang.String msg ) { if ( DEBUG_LOCKSCREEN ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_LOCKSCREEN , ( ( ( ( ( ( ( ( ( android.os.Debug.getCallers ( 2 ) ) + ":" ) + msg ) + " mLockScreenShown=" ) + ( lockScreenShownToString ( ) ) ) + " mWakefulness=" ) + ( android.os.PowerManagerInternal.wakefulnessToString ( mWakefulness ) ) ) + " mSleeping=" ) + ( mSleeping ) ) ) ; }

Target:
void logLockScreen ( java.lang.String msg ) { if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_LOCKSCREEN ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_LOCKSCREEN , ( ( ( ( ( ( ( ( ( android.os.Debug.getCallers ( 2 ) ) + ":" ) + msg ) + " mLockScreenShown=" ) + ( lockScreenShownToString ( ) ) ) + " mWakefulness=" ) + ( android.os.PowerManagerInternal.wakefulnessToString ( mWakefulness ) ) ) + " mSleeping=" ) + ( mSleeping ) ) ) ; }
Source:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String shortNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( phoneMetadata == null ) { continue ; } if ( matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ) { return true ; } } return false ; }

Target:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String shortNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( phoneMetadata == null ) { continue ; } if ( matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.generalDesc ) ) { return true ; } } return false ; }
Source:
private java.lang.String getIccStateIntentString ( com.android.internal.telephony.IccCardConstants.State state ) { switch ( state ) { case ABSENT : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_ABSENT ; case PIN_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case PUK_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case NETWORK_LOCKED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_READY ; case NOT_READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_NOT_READY ; case PERM_DISABLED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; default : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_UNKNOWN ; } }

Target:
private java.lang.String getIccStateIntentString ( com.android.internal.telephony.IccCardConstants.State state ) { switch ( state ) { case ABSENT : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_ABSENT ; case PIN_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case PUK_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case NETWORK_LOCKED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_READY ; case NOT_READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_NOT_READY ; case PERM_DISABLED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case CARD_IO_ERROR : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR ; default : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_UNKNOWN ; } }
Source:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer , @ android.annotation.Nullable byte [ ] token ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return "" ; } if ( mTerminated ) { android.util.Log.e ( android.net.wifi.aware.WifiAwareSession.TAG , "createNetworkSpecifier: called after termination" ) ; return "" ; } return mgr.createNetworkSpecifier ( mClientId , role , peer , token ) ; }

Target:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable byte [ ] peer , @ android.annotation.Nullable byte [ ] token ) { return createNetworkSpecifierOpen ( role , peer ) ; }
Source:
private void enableUi ( org.eclipse.swt.widgets.Composite root , boolean enabled ) { root.setEnabled ( enabled ) ; for ( org.eclipse.swt.widgets.Control child : root.getChildren ( ) ) { if ( child instanceof org.eclipse.swt.widgets.Composite ) { enableUi ( ( ( org.eclipse.swt.widgets.Composite ) ( child ) ) , enabled ) ; } else { child.setEnabled ( enabled ) ; } } }

Target:
private void endOperationPending ( ) { mOperationPending = false ; updateButtonsState ( ) ; }
Source:
public static int getDelay ( android.hardware.Sensor sensor , int rateUs ) { int delay = - 1 ; switch ( rateUs ) { case android.hardware.SensorManager.SENSOR_DELAY_FASTEST : delay = 0 ; break ; case android.hardware.SensorManager.SENSOR_DELAY_GAME : delay = 20000 ; break ; case android.hardware.SensorManager.SENSOR_DELAY_UI : delay = 66667 ; break ; case android.hardware.SensorManager.SENSOR_DELAY_NORMAL : delay = 200000 ; break ; default : delay = rateUs ; break ; } return java.lang.Math.max ( delay , sensor.getMinDelay ( ) ) ; }

Target:
public static int getDelay ( android.hardware.Sensor sensor , int rateUs ) { if ( ! ( android.hardware.cts.helpers.SensorCtsHelper.isDelayRateTestable ( rateUs ) ) ) { throw new java.lang.IllegalArgumentException ( "rateUs cannot be SENSOR_DELAY_[GAME|UI|NORMAL]" ) ; } int delay ; if ( rateUs == ( android.hardware.SensorManager.SENSOR_DELAY_FASTEST ) ) { delay = 0 ; } else { delay = rateUs ; } return java.lang.Math.max ( delay , sensor.getMinDelay ( ) ) ; }
Source:
private static java.lang.Object [ ] makeDexElements ( java.lang.Object dexPathList , java.util.ArrayList < java.io.File > files , java.io.File optimizedDirectory ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { java.lang.reflect.Method makeDexElements = android.support.multidex.MultiDex.findMethod ( dexPathList , "makeDexElements" , java.util.ArrayList.class , java.io.File.class ) ; return ( ( java.lang.Object [ ] ) ( makeDexElements.invoke ( dexPathList , files , optimizedDirectory ) ) ) ; }

Target:
private static java.lang.String optimizedPathFor ( java.io.File path ) { java.io.File optimizedDirectory = path.getParentFile ( ) ; java.lang.String fileName = path.getName ( ) ; java.lang.String optimizedFileName = ( fileName.substring ( 0 , ( ( fileName.length ( ) ) - ( android.support.multidex.MultiDex.V14.EXTRACTED_SUFFIX_LENGTH ) ) ) ) + ( MultiDexExtractor.DEX_SUFFIX ) ; java.io.File result = new java.io.File ( optimizedDirectory , optimizedFileName ) ; return result.getPath ( ) ; }
Source:
private void closeReaderWriters ( ) { android.hardware.camera2.cts.CameraTestUtils.closeImageReader ( mCameraZslReader ) ; mCameraZslReader = null ; android.hardware.camera2.cts.CameraTestUtils.closeImageReader ( mJpegReader ) ; mJpegReader = null ; android.hardware.camera2.cts.CameraTestUtils.closeImageWriter ( mWriter ) ; mWriter = null ; }

Target:
private void closeReaderWriters ( ) { mCameraZslImageListener.drain ( ) ; android.hardware.camera2.cts.CameraTestUtils.closeImageReader ( mCameraZslReader ) ; mCameraZslReader = null ; mJpegListener.drain ( ) ; android.hardware.camera2.cts.CameraTestUtils.closeImageReader ( mJpegReader ) ; mJpegReader = null ; android.hardware.camera2.cts.CameraTestUtils.closeImageWriter ( mWriter ) ; mWriter = null ; }
Source:
static int capacity ( int expectedSize ) { if ( expectedSize < 3 ) { com.google.common.base.Preconditions.checkArgument ( ( expectedSize >= 0 ) ) ; return expectedSize + 1 ; } if ( expectedSize < ( com.google.common.primitives.Ints.MAX_POWER_OF_TWO ) ) { return expectedSize + ( expectedSize / 3 ) ; } return java.lang.Integer.MAX_VALUE ; }

Target:
static int capacity ( int expectedSize ) { if ( expectedSize < 3 ) { com.google.common.collect.CollectPreconditions.checkNonnegative ( expectedSize , "expectedSize" ) ; return expectedSize + 1 ; } if ( expectedSize < ( com.google.common.primitives.Ints.MAX_POWER_OF_TWO ) ) { return expectedSize + ( expectedSize / 3 ) ; } return java.lang.Integer.MAX_VALUE ; }
Source:
public void getSimIdentityEapAka ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "3214561234567890" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "321456" ) ; assertEquals ( "03214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , WifiEnterpriseConfig.Eap.AKA ) ) ; }

Target:
public void getSimIdentityEapAka ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "3214561234567890" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "321456" ) ; assertEquals ( "03214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.AKA , WifiEnterpriseConfig.Phase2.NONE ) ) ) ; assertEquals ( "03214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.PEAP , WifiEnterpriseConfig.Phase2.AKA ) ) ) ; }
Source:
private boolean simpleLaunch ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo launchInfo , com.android.ddmlib.IDevice device ) { if ( ( checkBuildInfo ( launchInfo , device ) ) == false ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( launchInfo.getProject ( ) , "Launch canceled!" ) ; stopLaunch ( launchInfo ) ; return false ; } if ( ( syncApp ( launchInfo , device ) ) == false ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( launchInfo.getProject ( ) , "Launch canceled!" ) ; stopLaunch ( launchInfo ) ; return false ; } launchApp ( launchInfo , device ) ; return true ; }

Target:
private boolean doPreLaunchActions ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo launchInfo , com.android.ddmlib.IDevice device ) { if ( ! ( checkBuildInfo ( launchInfo , device ) ) ) { return false ; } if ( ! ( syncApp ( launchInfo , device ) ) ) { return false ; } return true ; }
Source:
public void setRingbackRequested ( java.lang.String callId , boolean ringback ) { android.telecom.Log.startSession ( "CSW.SRR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setRingbackRequested %s %b" , callId , ringback ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setRingbackRequested ( ringback ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void setRingbackRequested ( java.lang.String callId , boolean ringback , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.SRR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setRingbackRequested %s %b" , callId , ringback ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setRingbackRequested ( ringback ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { init ( opmode , key , random ) ; initAlgorithmSpecificParameters ( ) ; ensureKeystoreOperationInitialized ( ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { resetAll ( ) ; boolean success = false ; try { init ( opmode , key , random ) ; initAlgorithmSpecificParameters ( ) ; try { ensureKeystoreOperationInitialized ( ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidKeyException ( e ) ; } success = true ; } finally { if ( ! success ) { resetAll ( ) ; } } }
Source:
synchronized boolean unplug ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "unplug(): device=" + device ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return unplugNative ( ) ; }

Target:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.replyReport ( type , id , data ) ) ; }
Source:
public void testCustomAssertionError ( ) { try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( new android.support.test.espresso.ViewAssertion ( ) { @ java.lang.Override public void check ( android.view.View view , android.support.test.espresso.NoMatchingViewException noViewFoundException ) { assertFalse ( true ) ; } } ) ; fail ( "Previous call expected to fail" ) ; } catch ( junit.framework.AssertionFailedError e ) { assertFailureStackContainsThisClass ( e ) ; } }

Target:
public void customAssertionError ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; expectedException.expectCause ( stackTraceContainsThisClass ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( new android.support.test.espresso.ViewAssertion ( ) { @ java.lang.Override public void check ( android.view.View view , android.support.test.espresso.NoMatchingViewException noViewFoundException ) { org.junit.Assert.assertFalse ( true ) ; } } ) ; }
Source:
public static long LongMatCond_LongVarVar ( long a , long b , long x , long y ) { long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }

Target:
public static long IntMatCond_LongVarVar ( int a , int b , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }
Source:
private boolean isActionBarIcon ( com.android.tools.lint.detector.api.Context context , java.lang.String name , java.io.File file ) { if ( isActionBarIcon ( name ) ) { return true ; } if ( ( ( file != null ) && ( name.startsWith ( "ic_menu_" ) ) ) && ( com.android.tools.lint.checks.IconDetector.isAndroid30 ( context , com.android.tools.lint.detector.api.ResourceContext.getFolderVersion ( file ) ) ) ) { return true ; } return false ; }

Target:
private boolean isActionBarIcon ( com.android.tools.lint.detector.api.Context context , java.lang.String name , java.io.File file ) { if ( isActionBarIcon ( name ) ) { return true ; } if ( ( ( file != null ) && ( name.startsWith ( "ic_menu_" ) ) ) && ( com.android.tools.lint.checks.IconDetector.isAndroid30 ( context , context.getDriver ( ) . getResourceFolderVersion ( file ) ) ) ) { return true ; } return false ; }
Source:
public android.security.keymaster.OperationResult begin ( java.lang.String alias , int purpose , boolean pruneable , android.security.keymaster.KeymasterArguments args , android.security.keymaster.KeymasterArguments outArgs ) { try { return mBinder.begin ( getToken ( ) , alias , purpose , pruneable , args , outArgs ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }

Target:
public android.security.keymaster.OperationResult begin ( java.lang.String alias , int purpose , boolean pruneable , android.security.keymaster.KeymasterArguments args , byte [ ] entropy , android.security.keymaster.KeymasterArguments outArgs ) { try { return mBinder.begin ( getToken ( ) , alias , purpose , pruneable , args , entropy , outArgs ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }
Source:
public static java.util.List < com.google.gct.idea.appengine.wizard.AppEngineTemplates.TemplateInfo > getLocalTemplates ( ) { com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOG.info ( "Populating built-in App Engine templates..." ) ; java.io.File jarPath = new java.io.File ( com.intellij.util.PathUtil.getJarPathForClass ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.class ) ) ; if ( jarPath.isFile ( ) ) { jarPath = jarPath.getParentFile ( ) ; } java.io.File root = new java.io.File ( jarPath , com.google.gct.idea.appengine.wizard.AppEngineTemplates.TEMPLATES_DIR ) ; if ( ! ( root.exists ( ) ) ) { com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOG.error ( "Failed to find templates directory, perhaps your cloud tools plugin is corrupt?" ) ; } return com.google.gct.idea.appengine.wizard.AppEngineTemplates.populateTemplates ( root ) ; }

Target:
public static java.util.List < com.google.gct.idea.appengine.wizard.AppEngineTemplates.TemplateInfo > getAppEngineTemplates ( java.util.List < java.lang.String > templateDirectories ) { java.io.File jarPath = new java.io.File ( com.intellij.util.PathUtil.getJarPathForClass ( com.google.gct.idea.appengine.util.AppEngineUtils.class ) ) ; if ( jarPath.isFile ( ) ) { jarPath = jarPath.getParentFile ( ) ; } java.io.File root = new java.io.File ( jarPath , com.google.gct.idea.appengine.wizard.AppEngineTemplates.TEMPLATES_DIR ) ; return com.google.gct.idea.appengine.wizard.AppEngineTemplates.populateAppEngineTemplates ( root , templateDirectories ) ; }
Source:
public void run ( ) { mCallbackHandler = new android.os.Handler ( mLooper , this ) ; while ( true ) { try { listenToSocket ( ) ; } catch ( java.lang.Exception e ) { loge ( ( "Error in NativeDaemonConnector: " + e ) ) ; java.lang.String shutdownAct = android.os.SystemProperties.get ( ShutdownThread.SHUTDOWN_ACTION_PROPERTY , "" ) ; if ( ( shutdownAct != null ) && ( ( shutdownAct.length ( ) ) > 0 ) ) { break ; } android.os.SystemClock.sleep ( 5000 ) ; } } }

Target:
private static boolean isShuttingDown ( ) { java.lang.String shutdownAct = android.os.SystemProperties.get ( ShutdownThread.SHUTDOWN_ACTION_PROPERTY , "" ) ; return ( shutdownAct != null ) && ( ( shutdownAct.length ( ) ) > 0 ) ; }
Source:
public static void testSendCmasPresAlert ( android.app.Activity activity , int messageId ) { android.telephony.SmsCbMessage cbMessage = com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.createCmasSmsMessage ( SmsEnvelope.SERVICE_CATEGORY_CMAS_PRESIDENTIAL_LEVEL_ALERT , messageId , "en" , com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.PRES_ALERT , SmsCbCmasInfo.CMAS_CATEGORY_GEO , SmsCbCmasInfo.CMAS_RESPONSE_TYPE_PREPARE , SmsCbCmasInfo.CMAS_SEVERITY_EXTREME , SmsCbCmasInfo.CMAS_URGENCY_EXPECTED , SmsCbCmasInfo.CMAS_CERTAINTY_LIKELY ) ; android.content.Intent intent = new android.content.Intent ( Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , cbMessage ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_EMERGENCY_BROADCAST , AppOpsManager.OP_RECEIVE_EMERGECY_SMS , null , null , Activity.RESULT_OK , null , null ) ; }

Target:
public static void testSendCmasPresAlert ( android.app.Activity activity , int messageId ) { android.telephony.SmsCbMessage cbMessage = com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.createCmasSmsMessage ( SmsEnvelope.SERVICE_CATEGORY_CMAS_PRESIDENTIAL_LEVEL_ALERT , messageId , "en" , com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.PRES_ALERT , SmsCbCmasInfo.CMAS_CATEGORY_GEO , SmsCbCmasInfo.CMAS_RESPONSE_TYPE_PREPARE , SmsCbCmasInfo.CMAS_SEVERITY_EXTREME , SmsCbCmasInfo.CMAS_URGENCY_EXPECTED , SmsCbCmasInfo.CMAS_CERTAINTY_LIKELY ) ; com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.sendBroadcast ( activity , cbMessage ) ; }
Source:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }

Target:
public android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { android.view.accessibility.AccessibilityNodeProvider ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.view.accessibility.AccessibilityNodeProvider > ( ) { @ java.lang.Override public android.view.accessibility.AccessibilityNodeProvider call ( ) { return getAccessibilityNodeProvider ( ) ; } } ) ; return ret ; } return mAwContents.getAccessibilityNodeProvider ( ) ; }
Source:
public java.lang.String format ( android.icu.dev.test.format.DataDrivenNumberFormatTestData tuple ) { android.icu.text.DecimalFormat_ICU58 fmt = createDecimalFormat ( tuple ) ; java.lang.String actual = fmt.format ( android.icu.dev.test.format.NumberFormatDataDrivenTest.toNumber ( tuple.format ) ) ; java.lang.String expected = tuple.output ; if ( ! ( expected.equals ( actual ) ) ) { return ( ( "Expected " + expected ) + ", got " ) + actual ; } return null ; }

Target:
public java.lang.String format ( android.icu.dev.test.format.DataDrivenNumberFormatTestData tuple ) { java.text.DecimalFormat fmt = createDecimalFormat ( tuple ) ; java.lang.String actual = fmt.format ( android.icu.dev.test.format.NumberFormatDataDrivenTest.toNumber ( tuple.format ) ) ; java.lang.String expected = tuple.output ; if ( ! ( expected.equals ( actual ) ) ) { return ( ( "Expected " + expected ) + ", got " ) + actual ; } return null ; }
Source:
public boolean isImsUseEnabled ( ) { boolean imsUseEnabled = ( ( com.android.ims.ImsManager.isVolteEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isEnhanced4gLteModeSettingEnabledByUser ( mContext ) ) ) || ( ( ( com.android.ims.ImsManager.isWfcEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) ) && ( com.android.ims.ImsManager.isNonTtyOrTtyOnVolteEnabled ( mContext ) ) ) ; return imsUseEnabled ; }

Target:
public void notifyPhysicalChannelConfiguration ( java.util.List < android.telephony.PhysicalChannelConfig > configs ) { mNotifier.notifyPhysicalChannelConfiguration ( this , configs ) ; }
Source:
public void run ( ) { synchronized ( mProcessor ) { mProcessor.notifyAll ( ) ; } }

Target:
protected void prepareInstrumentationTest ( ) { mTestList = new int [ 1 ] ; mTestResults = new float [ 1 ] ; mTestInfo = new java.lang.String [ 1 ] ; mDemoMode = false ; mProcessor = new com.example.android.rs.blasbenchmark.BlasBenchmark.Processor ( android.renderscript.RenderScript.create ( this ) , ( ! ( mDemoMode ) ) ) ; }
Source:
public boolean p2pFind ( int timeout ) { if ( timeout <= 0 ) { return p2pFind ( ) ; } if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.find ( timeout ) ; } else { return doBooleanCommand ( ( "P2P_FIND " + timeout ) ) ; } }

Target:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; }
Source:
private void startActivity ( com.android.ddmlib.IDevice device , java.lang.String appName ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException , java.lang.InterruptedException { java.lang.String startAppCmd = java.lang.String.format ( "am start -S --opengl-trace %s -a android.intent.action.MAIN -c android.intent.category.LAUNCHER" , appName ) ; java.util.concurrent.Semaphore launchCompletionSempahore = new java.util.concurrent.Semaphore ( 0 ) ; com.android.ide.eclipse.gltrace.CollectTraceAction.StartActivityOutputReceiver receiver = new com.android.ide.eclipse.gltrace.CollectTraceAction.StartActivityOutputReceiver ( launchCompletionSempahore ) ; device.executeShellCommand ( startAppCmd , receiver ) ; launchCompletionSempahore.acquire ( ) ; java.lang.String output = receiver.getOutput ( ) ; if ( output.contains ( "Error" ) ) { throw new java.lang.RuntimeException ( output ) ; } }

Target:
private void startActivity ( com.android.ddmlib.IDevice device , java.lang.String appName ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException , java.lang.InterruptedException { killApp ( device , appName ) ; java.lang.String startAppCmd = java.lang.String.format ( "am start --opengl-trace %s -a android.intent.action.MAIN -c android.intent.category.LAUNCHER" , appName ) ; java.util.concurrent.Semaphore launchCompletionSempahore = new java.util.concurrent.Semaphore ( 0 ) ; com.android.ide.eclipse.gltrace.CollectTraceAction.StartActivityOutputReceiver receiver = new com.android.ide.eclipse.gltrace.CollectTraceAction.StartActivityOutputReceiver ( launchCompletionSempahore ) ; device.executeShellCommand ( startAppCmd , receiver ) ; launchCompletionSempahore.acquire ( ) ; java.lang.String output = receiver.getOutput ( ) ; if ( output.contains ( "Error" ) ) { throw new java.lang.RuntimeException ( output ) ; } }
Source:
public android.support.v17.leanback.widget.GuidanceStylist.Guidance onCreateGuidance ( android.os.Bundle savedInstanceState ) { java.lang.String breadcrumb = null ; com.android.tv.dvr.SeriesRecording series = mDvrDataManager.getSeriesRecording ( mSeriesRecordingId ) ; if ( series != null ) { breadcrumb = series.getTitle ( ) ; } return new android.support.v17.leanback.widget.GuidanceStylist.Guidance ( getString ( R.string.dvr_series_deletion_title ) , getString ( R.string.dvr_series_deletion_description ) , breadcrumb , null ) ; }

Target:
public android.support.v17.leanback.widget.GuidanceStylist.Guidance onCreateGuidance ( android.os.Bundle savedInstanceState ) { java.lang.String breadcrumb = null ; com.android.tv.dvr.data.SeriesRecording series = mDvrDataManager.getSeriesRecording ( mSeriesRecordingId ) ; if ( series != null ) { breadcrumb = series.getTitle ( ) ; } return new android.support.v17.leanback.widget.GuidanceStylist.Guidance ( getString ( R.string.dvr_series_deletion_title ) , getString ( R.string.dvr_series_deletion_description ) , breadcrumb , null ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main m = new Main ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( m ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; Main.testInstanceOf ( m ) ; Main.testCheckCast ( m ) ; Main.testLicm ( 2 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main m = new Main ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( m ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; Main.callUnresolvedNull ( null ) ; Main.testInstanceOf ( m ) ; Main.testCheckCast ( m ) ; Main.testLicm ( 2 ) ; }
Source:
public void apply ( org.eclipse.jface.text.IDocument document ) { com.android.ide.eclipse.adt.AdtUtils.setToolsAttribute ( mEditor , mElement , "Suppress Lint Warning" , com.android.SdkConstants.ATTR_IGNORE , mId , true , true ) ; try { mMarker.delete ( ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Could not add suppress annotation" ) ; } }

Target:
public void apply ( org.eclipse.jface.text.IDocument document ) { java.lang.String attribute ; java.lang.String value ; if ( ( mTargetApi ) != null ) { attribute = com.android.SdkConstants.ATTR_TARGET_API ; value = mTargetApi ; } else { attribute = com.android.SdkConstants.ATTR_IGNORE ; value = mId ; } com.android.ide.eclipse.adt.AdtUtils.setToolsAttribute ( mEditor , mElement , mDescription , attribute , value , true , true ) ; try { mMarker.delete ( ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Could not remove marker" ) ; } }
Source:
com.android.server.wifi.WifiInjector mockWifiInjector ( ) { com.android.server.wifi.WifiInjector wifiInjector = mock ( com.android.server.wifi.WifiInjector.class ) ; mWifiLastResortWatchdog = mock ( com.android.server.wifi.WifiLastResortWatchdog.class ) ; mWifiMetrics = mock ( com.android.server.wifi.WifiMetrics.class ) ; when ( wifiInjector.getWifiLastResortWatchdog ( ) ) . thenReturn ( mWifiLastResortWatchdog ) ; when ( wifiInjector.getWifiMetrics ( ) ) . thenReturn ( mWifiMetrics ) ; when ( wifiInjector.getClock ( ) ) . thenReturn ( mClock ) ; return wifiInjector ; }

Target:
com.android.server.wifi.WifiConnectivityManager createConnectivityManager ( ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , mWifiScanner , mWifiConfigManager , mWifiInfo , mWifiNS , mWifiLastResortWatchdog , mWifiMetrics , mLooper.getLooper ( ) , mClock , true ) ; }
Source:
public java.lang.String toString ( ) { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; long bioCtx = org.conscrypt.NativeCrypto.create_BIO_OutputStream ( os ) ; try { org.conscrypt.NativeCrypto.X509_REVOKED_print ( bioCtx , mContext ) ; return os.toString ( ) ; } finally { org.conscrypt.NativeCrypto.BIO_free ( bioCtx ) ; } }

Target:
public java.lang.String toString ( ) { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; long bioCtx = org.conscrypt.NativeCrypto.create_BIO_OutputStream ( os ) ; try { org.conscrypt.NativeCrypto.X509_REVOKED_print ( bioCtx , mContext ) ; return os.toString ( ) ; } finally { org.conscrypt.NativeCrypto.BIO_free_all ( bioCtx ) ; } }
Source:
public void testLoadTzData_badId ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.clearZicData ( ) ; byte [ ] validZicData = new libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) . initializeToValid ( ) . build ( ) ; builder.addZicData ( "" , validZicData ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( builder.build ( ) ) ; }

Target:
public void testLoadTzData_badId ( ) throws java.lang.Exception { libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.clearZicData ( ) ; byte [ ] validZicData = new libcore.tzdata.testing.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) . initializeToValid ( ) . build ( ) ; builder.addZicData ( "" , validZicData ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( builder.build ( ) ) ; }
Source:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( ! ( mSkipPreconditions ) ) { run ( device , buildInfo ) ; } }

Target:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( ! ( mSkipPreconditions ) ) { for ( java.lang.String preconditionArg : mPreconditionArgs ) { java.lang.String [ ] parts = preconditionArg.split ( ":" ) ; java.lang.String argName = parts [ 0 ] ; java.lang.String argValue = ( ( parts.length ) > 1 ) ? parts [ 1 ] : java.lang.Boolean.toString ( true ) ; setOption ( argName , argValue ) ; } run ( device , buildInfo ) ; } }
Source:
public void testWorldWriteable ( ) throws java.lang.Exception { assertEquals ( ( "WorldWriteableFile.java:25: Warning: Using MODE_WORLD_WRITEABLE when creating files can be risky, review carefully\n" + ( ( "WorldWriteableFile.java:26: Warning: Using MODE_WORLD_READABLE when creating files can be risky, review carefully\n" + "WorldWriteableFile.java:30: Warning: Using MODE_WORLD_WRITEABLE when creating files can be risky, review carefully\n" ) + "WorldWriteableFile.java:31: Warning: Using MODE_WORLD_READABLE when creating files can be risky, review carefully" ) ) , lintProject ( "src/test/pkg/WorldWriteableFile.java.txt=>src/test/pkg/WorldWriteableFile.java" ) ) ; }

Target:
public void testWorldWriteable ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/WorldWriteableFile.java:26: Warning: Using MODE_WORLD_READABLE when creating files can be risky, review carefully [WorldReadableFiles]\n" + ( ( ( ( ( ( ( ( ( ( ( ( " out = openFileOutput(mFile.getName(), MODE_WORLD_READABLE);\n" + " ~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/WorldWriteableFile.java:31: Warning: Using MODE_WORLD_READABLE when creating files can be risky, review carefully [WorldReadableFiles]\n" ) + " prefs = getSharedPreferences(mContext, MODE_WORLD_READABLE);\n" ) + " ~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/WorldWriteableFile.java:25: Warning: Using MODE_WORLD_WRITEABLE when creating files can be risky, review carefully [WorldWriteableFiles]\n" ) + " out = openFileOutput(mFile.getName(), MODE_WORLD_WRITEABLE);\n" ) + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/WorldWriteableFile.java:30: Warning: Using MODE_WORLD_WRITEABLE when creating files can be risky, review carefully [WorldWriteableFiles]\n" ) + " prefs = getSharedPreferences(mContext, MODE_WORLD_WRITEABLE);\n" ) + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 4 warnings\n" ) + "" ) ) , lintProject ( "src/test/pkg/WorldWriteableFile.java.txt=>src/test/pkg/WorldWriteableFile.java" ) ) ; }
Source:
public final android.app.Activity getActivity ( android.os.IBinder token ) { return mActivities.get ( token ) . activity ; }

Target:
public final void performNewIntents ( android.os.IBinder token , java.util.List < android.content.Intent > intents ) { android.app.ActivityThread.ActivityClientRecord r = mActivities.get ( token ) ; if ( r != null ) { final boolean resumed = ! ( r.paused ) ; if ( resumed ) { r.activity.mTemporaryPause = true ; mInstrumentation.callActivityOnPause ( r.activity ) ; } deliverNewIntents ( r , intents ) ; if ( resumed ) { r.activity.performResume ( ) ; r.activity.mTemporaryPause = false ; } } }
Source:
protected void sortAndNumberInternal ( @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > defaultList , @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > mainList ) { java.util.Collections.sort ( defaultList , nameComp ) ; int number = 0 ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : mainList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } number = 0 ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : defaultList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } }

Target:
protected void sortAndPrepareInternal ( @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > defaultList , @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > mainList ) { java.util.Collections.sort ( defaultList , nameComp ) ; int number = com.android.jack.tools.merger.ConstantManager.FIRST_DETERMINISTIC_MODE_INDEX ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : mainList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } number = com.android.jack.tools.merger.ConstantManager.FIRST_DETERMINISTIC_MODE_INDEX ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : defaultList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } }
Source:
public void testRemoveAll ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( one ) ; v.add ( two ) ; full.removeAll ( v ) ; assertEquals ( 1 , full.size ( ) ) ; }

Target:
public void testRemove ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.remove ( one ) ; assertFalse ( full.contains ( one ) ) ; assertEquals ( 2 , full.size ( ) ) ; }
Source:
public void startFilterLookup ( com.android.server.telecom.Call call , com.android.server.telecom.callfiltering.CallFilterResultCallback callback ) { mCallback = callback ; mIncomingCall = call ; java.lang.String number = ( ( call.getHandle ( ) ) == null ) ? null : call.getHandle ( ) . getSchemeSpecificPart ( ) ; this . execute ( number ) ; }

Target:
public void onCallerInfoQueryComplete ( android.net.Uri handle , com.android.internal.telephony.CallerInfo info ) { boolean contactExists = ( info == null ) ? false : info.contactExists ; execute ( number , java.lang.String.valueOf ( presentation ) , java.lang.String.valueOf ( contactExists ) ) ; }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; mBluetoothGatt.disconnect ( ) ; mBluetoothGatt.close ( ) ; mBluetoothGatt = null ; stopScan ( ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mBluetoothGatt ) != null ) { mBluetoothGatt.disconnect ( ) ; mBluetoothGatt.close ( ) ; mBluetoothGatt = null ; } stopScan ( ) ; unregisterReceiver ( mBondStatusReceiver ) ; mTaskQueue.quit ( ) ; }
Source:
public java.util.List < com.android.server.wifi.ScanDetail > getScanResultsListNoCopyUnsync ( ) { return mScanResults ; }

Target:
private void logStateAndMessage ( android.os.Message message , com.android.internal.util.State state ) { messageHandlingStatus = 0 ; if ( mVerboseLoggingEnabled ) { logd ( ( ( ( " " + ( state.getClass ( ) . getSimpleName ( ) ) ) + " " ) + ( getLogRecString ( message ) ) ) ) ; } }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr , bundleName ) ; }
Source:
public static int innerDiv2 ( ) { int result = 0 ; for ( int i = 0 ; i < 10 ; ++ i ) { for ( int j = 0 ; j < 10 ; ++ j ) { result += ( Main.staticField ) * i ; } } return result ; }

Target:
public static int innerMul ( ) { int result = 0 ; for ( int i = 0 ; i < 10 ; ++ i ) { for ( int j = 0 ; j < 10 ; ++ j ) { result += ( Main.staticField ) * i ; } } return result ; }
Source:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } return c.annotations ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = c.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
private static boolean isMidnight ( android.icu.util.Calendar c ) { return ( ( ( ( c.get ( Calendar.HOUR_OF_DAY ) ) == 0 ) && ( ( c.get ( Calendar.MINUTE ) ) == 0 ) ) && ( ( c.get ( Calendar.SECOND ) ) == 0 ) ) && ( ( c.get ( Calendar.MILLISECOND ) ) == 0 ) ; }

Target:
private static boolean isExactlyMidnight ( android.icu.util.Calendar c ) { return ( ( ( ( c.get ( Calendar.HOUR_OF_DAY ) ) == 0 ) && ( ( c.get ( Calendar.MINUTE ) ) == 0 ) ) && ( ( c.get ( Calendar.SECOND ) ) == 0 ) ) && ( ( c.get ( Calendar.MILLISECOND ) ) == 0 ) ; }
Source:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.setHints ( mContext , MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; status = RETEST ; } else { com.android.cts.verifier.notifications.MockListener.MockListener.probeListenerHints ( mContext , new com.android.cts.verifier.notifications.MockListener.MockListener.IntegerResultCatcher ( ) { @ java.lang.Override public void accept ( int result ) { if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) == ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; } } ) ; } delay ( ) ; }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.requestRebind ( MockListener.COMPONENT_NAME ) ; status = RETEST ; } else { if ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . isConnected ) { status = PASS ; next ( ) ; } else { if ( ( -- ( mRetries ) ) > 0 ) { status = RETEST ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } } }
Source:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }

Target:
public void setWebChromeClient ( android.webkit.WebChromeClient client ) { mWebSettings.getAwSettings ( ) . setFullscreenSupported ( doesSupportFullscreen ( client ) ) ; mContentsClientAdapter.setWebChromeClient ( client ) ; }
Source:
public void testCompile ( @ javax.annotation.Nonnull java.lang.String testRootDir ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_8 ) . addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( testRootDir ) ) ; }

Target:
public void testLamba019 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( LAMBDA019 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.LAMBDA_TO_ANONYMOUS_CONVERTER.getName ( ) , java.lang.Boolean.TRUE.toString ( ) ) . compileAndRunTest ( ) ; }