auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void processClientKeyExchange ( java.io.InputStream input ) throws java.io.IOException { byte [ ] encryptedPreMasterSecret ; if ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( context ) ) { encryptedPreMasterSecret = org.bouncycastle.util.io.Streams.readAll ( input ) ; } else { encryptedPreMasterSecret = org.bouncycastle.crypto.tls.TlsUtils.readOpaque16 ( input ) ; } this . premasterSecret = org.bouncycastle.crypto.tls.TlsRSAUtils.safeDecryptPreMasterSecret ( context , serverCredentials , encryptedPreMasterSecret ) ; }

Target:
public void processClientKeyExchange ( java.io.InputStream input ) throws java.io.IOException { byte [ ] encryptedPreMasterSecret ; if ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( context ) ) { encryptedPreMasterSecret = org.bouncycastle.util.io.Streams.readAll ( input ) ; } else { encryptedPreMasterSecret = org.bouncycastle.crypto.tls.TlsUtils.readOpaque16 ( input ) ; } this . premasterSecret = serverCredentials.decryptPreMasterSecret ( encryptedPreMasterSecret ) ; }
Source:
public void testReflectiveOperationException ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/pkg/Java7API.java:8: Error: Class requires API level 19 (current min is 1): java.lang.ReflectiveOperationException [NewApi]\n" + " } catch (ReflectiveOperationException e) {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/Java7API.java:9: Error: Call requires API level 19 (current min is 1): java.lang.ReflectiveOperationException#printStackTrace [NewApi]\n" ) + " e.printStackTrace();\n" ) + " ~~~~~~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "src/test/pkg/Java7API.java.txt=>src/test/pkg/Java7API.java" , "src/test/pkg/Java7API.class.data=>bin/classes/test/pkg/Java7API.class" ) ) ; }

Target:
public void testReflectiveOperationException ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/pkg/Java7API.java:8: Error: Multi-catch with these reflection exceptions requires API level 19 (current min is 1) because they get compiled to the common but new super type ReflectiveOperationException. As a workaround either create individual catch statements, or catch Exception. [NewApi]\n" + " } catch (ReflectiveOperationException e) {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/Java7API.java:9: Error: Call requires API level 19 (current min is 1): java.lang.ReflectiveOperationException#printStackTrace [NewApi]\n" ) + " e.printStackTrace();\n" ) + " ~~~~~~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "src/test/pkg/Java7API.java.txt=>src/test/pkg/Java7API.java" , "src/test/pkg/Java7API.class.data=>bin/classes/test/pkg/Java7API.class" ) ) ; }
Source:
private void executeProgramLoadingTask ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; } mProgramLoadTask = new com.android.tv.dvr.EpisodicProgramLoadTask ( getContext ( ) , mSeriesRecording ) { @ java.lang.Override protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = programs ; onProgramsUpdated ( ) ; } } ; mProgramLoadTask.setLoadCurrentProgram ( true ) . setLoadDisallowedProgram ( true ) . setLoadScheduledEpisode ( true ) . setIgnoreChannelOption ( true ) . execute ( ) ; }

Target:
public void onDestroy ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; mProgramLoadTask = null ; } getContext ( ) . getContentResolver ( ) . unregisterContentObserver ( mContentObserver ) ; mHandler.removeCallbacksAndMessages ( null ) ; mChannelDataManager.removeListener ( mChannelListener ) ; mDvrDataManager.removeSeriesRecordingListener ( mSeriesRecordingListener ) ; super . onDestroy ( ) ; }
Source:
public android.view.inputmethod.InputMethodSubtype getCurrentInputMethodSubtype ( ) { synchronized ( mH ) { try { return mService.getCurrentInputMethodSubtype ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return null ; } } }

Target:
public void onViewDetachedFromWindow ( android.view.View view ) { synchronized ( mH ) { if ( android.view.inputmethod.InputMethodManager.DEBUG ) android.util.Log.v ( android.view.inputmethod.InputMethodManager.TAG , ( ( ( "onViewDetachedFromWindow: view=" + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( view ) ) ) + " mServedView=" ) + ( android.view.inputmethod.InputMethodManager.dumpViewInfo ( mServedView ) ) ) ) ; if ( ( mServedView ) == view ) { mNextServedView = null ; android.view.inputmethod.InputMethodManager.scheduleCheckFocusLocked ( view ) ; } } }
Source:
public void onLoadFinished ( android.content.Loader < android.database.Cursor > loader , android.database.Cursor data ) { if ( com.android.dialer.app.list.OldSpeedDialFragment.DEBUG ) { com.android.dialer.common.LogUtil.d ( "ContactTileLoaderListener.onLoadFinished" , null ) ; } contactTileAdapter.setContactCursor ( data ) ; setEmptyViewVisibility ( ( ( contactTileAdapter.getCount ( ) ) == 0 ) ) ; }

Target:
public void onLoadFinished ( android.content.Loader < android.database.Cursor > loader , android.database.Cursor data ) { adapter.setContactCursor ( data ) ; fragment.setEmptyViewVisibility ( ( ( adapter.getCount ( ) ) == 0 ) ) ; }
Source:
private void responseHardwareConfig ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > config ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.HardwareConfig > ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalHwConfigList ( config , mRil ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseHardwareConfig ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > config ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.HardwareConfig > ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalHwConfigList ( config , mRil ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayLiteral arrayLiteral ) { java.util.List < com.android.jack.ir.ast.JLiteral > values = arrayLiteral.getValues ( ) ; if ( ( values.size ( ) ) > 1 ) { print ( '{' ) ; } visitCollectionWithCommas ( values.iterator ( ) ) ; if ( ( values.size ( ) ) > 1 ) { print ( '}' ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JConstructor x ) { if ( x.isPrivate ( ) ) { print ( com.android.jack.ir.impl.CHARS_PRIVATE ) ; } else { print ( com.android.jack.ir.impl.CHARS_PUBLIC ) ; } printName ( x ) ; printParameterList ( x ) ; return false ; }
Source:
public boolean startDiscovery ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.startDiscovery ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public int getDiscoverableTimeout ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return - 1 ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.getDiscoverableTimeout ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return - 1 ; }
Source:
private java.lang.StringBuffer subformat ( java.lang.String pluralCount , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { java.lang.String currencyPluralPattern = currencyPluralInfo.getCurrencyPluralPattern ( pluralCount ) ; if ( ( formatPattern.equals ( currencyPluralPattern ) ) == false ) { applyPatternWithoutExpandAffix ( currencyPluralPattern , false ) ; } } expandAffixAdjustWidth ( pluralCount ) ; return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; }

Target:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( android.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }
Source:
private void broadcastSimCardStateChanged ( int phoneId , int state ) { if ( state != ( com.android.internal.telephony.SubscriptionInfoUpdater.sSimCardState [ phoneId ] ) ) { com.android.internal.telephony.SubscriptionInfoUpdater.sSimCardState [ phoneId ] = state ; android.content.Intent i = new android.content.Intent ( android.content.Intent.ACTION_SIM_CARD_STATE_CHANGED ) ; i.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; i.putExtra ( TelephonyManager.EXTRA_SIM_STATE , state ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( i , phoneId ) ; logd ( ( ( ( "Broadcasting intent ACTION_SIM_CARD_STATE_CHANGED " + ( com.android.internal.telephony.SubscriptionInfoUpdater.simStateString ( state ) ) ) + " for phone: " ) + phoneId ) ) ; com.android.internal.telephony.SubscriptionInfoUpdater.mContext.sendBroadcast ( i , Manifest.permission.READ_PRIVILEGED_PHONE_STATE ) ; } }

Target:
private void broadcastSimCardStateChanged ( int phoneId , int state ) { if ( state != ( com.android.internal.telephony.SubscriptionInfoUpdater.sSimCardState [ phoneId ] ) ) { com.android.internal.telephony.SubscriptionInfoUpdater.sSimCardState [ phoneId ] = state ; android.content.Intent i = new android.content.Intent ( android.telephony.TelephonyManager.ACTION_SIM_CARD_STATE_CHANGED ) ; i.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; i.putExtra ( TelephonyManager.EXTRA_SIM_STATE , state ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( i , phoneId ) ; logd ( ( ( ( "Broadcasting intent ACTION_SIM_CARD_STATE_CHANGED " + ( com.android.internal.telephony.SubscriptionInfoUpdater.simStateString ( state ) ) ) + " for phone: " ) + phoneId ) ) ; com.android.internal.telephony.SubscriptionInfoUpdater.mContext.sendBroadcast ( i , Manifest.permission.READ_PRIVILEGED_PHONE_STATE ) ; } }
Source:
public com.android.ide.eclipse.gltrace.TraceOptions getTraceOptions ( ) { return new com.android.ide.eclipse.gltrace.TraceOptions ( mSelectedDevice , mActivityToTrace.trim ( ) , mTraceFilePath , mCollectFbOnEglSwap , mCollectFbOnGlDraw , mCollectTextureData ) ; }

Target:
protected void okPressed ( ) { mAppPackageToTrace = mAppPackageToTraceText.getText ( ) . trim ( ) ; mActivityToTrace = mActivityToTraceText.getText ( ) . trim ( ) ; if ( mActivityToTrace.startsWith ( "." ) ) { mActivityToTrace = mActivityToTrace.substring ( 1 ) ; } mTraceFilePath = mTraceFilePathText.getText ( ) . trim ( ) ; mSelectedDevice = mDeviceCombo.getText ( ) ; savePreferences ( ) ; super . okPressed ( ) ; }
Source:
private void uninstall ( @ com.android.annotations.NonNull java.io.File apk , @ com.android.annotations.NonNull java.lang.String packageName , @ com.android.annotations.NonNull java.lang.String deviceName ) throws com.android.builder.testing.api.DeviceException { if ( packageName != null ) { logger.info ( "DeviceConnector '%s': uninstalling %s" , deviceName , packageName ) ; device.uninstallPackage ( packageName , timeout , logger ) ; } else { logger.info ( "DeviceConnector '%s': unable to uninstall %s: unable to get package name" , deviceName , apk ) ; } }

Target:
private void uninstall ( @ com.android.annotations.NonNull java.io.File apkFile , @ com.android.annotations.Nullable java.lang.String packageName , @ com.android.annotations.NonNull java.lang.String deviceName ) throws com.android.builder.testing.api.DeviceException { if ( packageName != null ) { logger.info ( "DeviceConnector '%s': uninstalling %s" , deviceName , packageName ) ; device.uninstallPackage ( packageName , timeout , logger ) ; } else { logger.info ( "DeviceConnector '%s': unable to uninstall %s: unable to get package name" , deviceName , apkFile ) ; } }
Source:
public synchronized void onAnswer ( ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onAnswer " + ( mCurrentCall ) ) ) ; } if ( ! ( mClosed ) ) { mHeadsetProfile.acceptCall ( mDevice , BluetoothHeadsetClient.CALL_ACCEPT_NONE ) ; } }

Target:
public synchronized void onAnswer ( ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onAnswer " + ( mCurrentCall ) ) ) ; } if ( ! ( mClosed ) ) { mHeadsetProfile.acceptCall ( mDevice , BluetoothHeadsetClient.CALL_ACCEPT_NONE ) ; } mHeadsetProfile.connectAudio ( mDevice ) ; }
Source:
public void getPackageSizeInfo ( final java.lang.String packageName , final android.content.pm.IPackageStatsObserver observer ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.GET_PACKAGE_SIZE , null ) ; android.content.pm.PackageStats stats = new android.content.pm.PackageStats ( packageName ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.INIT_COPY ) ; msg.obj = new com.android.server.pm.PackageManagerService.MeasureParams ( stats , observer ) ; mHandler.sendMessage ( msg ) ; }

Target:
public void getPackageSizeInfo ( final java.lang.String packageName , int userHandle , final android.content.pm.IPackageStatsObserver observer ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.GET_PACKAGE_SIZE , null ) ; android.content.pm.PackageStats stats = new android.content.pm.PackageStats ( packageName , userHandle ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.INIT_COPY ) ; msg.obj = new com.android.server.pm.PackageManagerService.MeasureParams ( stats , observer ) ; mHandler.sendMessage ( msg ) ; }
Source:
public org.objectweb.asm.tree.analysis.SourceValue newValue ( org.objectweb.asm.Type type ) { if ( ( type != null ) && ( ( type.getSort ( ) ) == ( org.objectweb.asm.Type.VOID ) ) ) { return null ; } else if ( type != null ) { return new com.android.tools.lint.checks.JavaScriptInterfaceDetector.TypeValue ( 1 , type.getInternalName ( ) ) ; } return super . newValue ( type ) ; }

Target:
public void afterVisitMethodInvocation ( lombok.ast.MethodInvocation node ) { if ( node == ( mTargetCall ) ) { mFoundCall = true ; } }
Source:
public static java.lang.String getXmlString ( com.android.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem resourceItem , boolean system ) { if ( ( type == ( com.android.resources.ResourceType.ID ) ) && ( resourceItem.isDeclaredInline ( ) ) ) { return ( ( ( system ? "@android:" : "@+" ) + ( type.getName ( ) ) ) + "/" ) + ( resourceItem.getName ( ) ) ; } return ( ( ( system ? "@android:" : "@" ) + ( type.getName ( ) ) ) + "/" ) + ( resourceItem.getName ( ) ) ; }

Target:
public static com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > parseResource ( java.lang.String url ) { if ( ! ( url.startsWith ( "@" ) ) ) { return null ; } int typeEnd = url.indexOf ( '/' , 1 ) ; if ( typeEnd == ( - 1 ) ) { return null ; } int nameBegin = typeEnd + 1 ; int typeBegin = ( url.startsWith ( "@+" ) ) ? 2 : 1 ; int colon = url.lastIndexOf ( ':' , typeEnd ) ; if ( colon != ( - 1 ) ) { typeBegin = colon + 1 ; } java.lang.String typeName = url.substring ( typeBegin , typeEnd ) ; com.android.resources.ResourceType type = com.android.resources.ResourceType.getEnum ( typeName ) ; if ( type == null ) { return null ; } java.lang.String name = url.substring ( nameBegin ) ; return com.android.util.Pair.of ( type , name ) ; }
Source:
private void createParameters ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration x , @ javax.annotation.Nonnull com.android.jack.ir.impl.CudInfo cuInfo ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( x.arguments ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.arguments ) { com.android.jack.ir.sourceinfo.SourceInfo info = com.android.jack.ir.impl.ReferenceMapper.makeSourceInfo ( cuInfo , argument , sourceInfoFactory ) ; org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding binding = argument.binding ; createParameter ( info , method , com.android.jack.ir.impl.ReferenceMapper.intern ( binding.name ) , binding.type , getModifier ( binding ) ) ; } } }

Target:
private void createParameters ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration x , @ javax.annotation.Nonnull com.android.jack.ir.impl.CudInfo cuInfo ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( x.arguments ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.arguments ) { com.android.jack.ir.sourceinfo.SourceInfo info = com.android.jack.ir.impl.ReferenceMapper.makeSourceInfo ( cuInfo , argument , sourceInfoFactory ) ; org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding binding = argument.binding ; createParameter ( info , method , com.android.jack.ir.impl.ReferenceMapper.intern ( binding.name ) , binding.type , ( ( getFinalModifier ( binding ) ) | ( com.android.jack.ir.ast.JModifier.NAME_PRESENT ) ) ) ; } } }
Source:
public void realRun ( ) { assertEquals ( 0 , phaser.register ( ) ) ; assertFalse ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; pleaseInterrupt.countDown ( ) ; assertEquals ( 1 , phaser.arriveAndAwaitAdvance ( ) ) ; assertTrue ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; }

Target:
public void realRun ( ) { assertEquals ( 0 , phaser.register ( ) ) ; assertFalse ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; pleaseInterrupt.countDown ( ) ; assertEquals ( 1 , phaser.arriveAndAwaitAdvance ( ) ) ; assertTrue ( java.lang.Thread.interrupted ( ) ) ; }
Source:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_DISCONNECT ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }

Target:
public void canForgetNetworkConfigInClientMode ( ) throws java.lang.Exception { when ( mWifiConfigManager.removeNetwork ( eq ( 0 ) , anyInt ( ) ) ) . thenReturn ( true ) ; addNetworkAndVerifySuccess ( ) ; mWsm.sendMessage ( WifiManager.FORGET_NETWORK , 0 , com.android.server.wifi.WifiStateMachineTest.MANAGED_PROFILE_UID ) ; mLooper.dispatchAll ( ) ; verify ( mWifiConfigManager ) . removeNetwork ( anyInt ( ) , anyInt ( ) ) ; }
Source:
public void test_isInfiniteD ( ) { assertTrue ( "Infinity check failed" , ( ( ( java.lang.Double.isInfinite ( java.lang.Double.NEGATIVE_INFINITY ) ) && ( java.lang.Double.isInfinite ( java.lang.Double.POSITIVE_INFINITY ) ) ) && ( ! ( java.lang.Double.isInfinite ( java.lang.Double.MAX_VALUE ) ) ) ) ) ; }

Target:
public void test_isInfiniteD ( ) { assertTrue ( java.lang.Double.isInfinite ( java.lang.Double.NEGATIVE_INFINITY ) ) ; assertTrue ( java.lang.Double.isInfinite ( java.lang.Double.POSITIVE_INFINITY ) ) ; assertFalse ( java.lang.Double.isInfinite ( java.lang.Double.MAX_VALUE ) ) ; assertFalse ( java.lang.Double.isInfinite ( java.lang.Double.MIN_VALUE ) ) ; assertFalse ( java.lang.Double.isInfinite ( java.lang.Double.NaN ) ) ; assertFalse ( java.lang.Double.isInfinite ( 0.0 ) ) ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { logFail ( ) ; status = FAIL ; } else { if ( ( ( mNm.getEffectsSuppressor ( ) ) == null ) || ( ! ( mNm.getEffectsSuppressor ( ) . equals ( MockListener.COMPONENT_NAME ) ) ) ) { status = PASS ; } else { status = FAIL ; } } next ( ) ; }

Target:
void test ( ) { java.util.List < java.lang.String > result = new java.util.ArrayList ( com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . mPosted ) ; if ( ( result.size ( ) ) == 0 ) { status = PASS ; } else { logFail ( ) ; status = FAIL ; } next ( ) ; }
Source:
public final void testPkgTypeSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SYS_IMAGES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SYS_IMAGES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
private void launchTextDialog ( ) { android.content.Intent newIntent = new android.content.Intent ( this , com.android.stk.StkDialogActivity.class ) ; newIntent.setFlags ( ( ( ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK ) ) | ( android.content.Intent.FLAG_ACTIVITY_NO_HISTORY ) ) | ( android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS ) ) | ( getFlagActivityNoUserAction ( com.android.stk.StkAppService.InitiatedByUserAction.unknown ) ) ) ) ; newIntent.putExtra ( "TEXT" , mCurrentCmd.geTextMessage ( ) ) ; startActivity ( newIntent ) ; }

Target:
private void launchTextDialog ( ) { android.content.Intent newIntent = new android.content.Intent ( this , com.android.stk.StkDialogActivity.class ) ; newIntent.setFlags ( ( ( ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP ) ) | ( android.content.Intent.FLAG_ACTIVITY_NO_HISTORY ) ) | ( android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS ) ) | ( getFlagActivityNoUserAction ( com.android.stk.StkAppService.InitiatedByUserAction.unknown ) ) ) ) ; newIntent.putExtra ( "TEXT" , mCurrentCmd.geTextMessage ( ) ) ; startActivity ( newIntent ) ; }
Source:
public boolean appliesTo ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull java.io.File file ) { return true ; }

Target:
public void visitMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable com.intellij.psi.JavaElementVisitor visitor , @ com.android.annotations.NonNull com.intellij.psi.PsiMethodCallExpression node , @ com.android.annotations.NonNull com.intellij.psi.PsiMethod method ) { com.android.tools.lint.client.api.JavaEvaluator evaluator = context.getEvaluator ( ) ; if ( ( evaluator.isMemberInClass ( method , "android.app.AlarmManager" ) ) && ( ( evaluator.getParameterCount ( method ) ) == 4 ) ) { com.android.tools.lint.checks.AlarmDetector.ensureAtLeast ( context , node , 1 , 5000L ) ; com.android.tools.lint.checks.AlarmDetector.ensureAtLeast ( context , node , 2 , 60000L ) ; } }
Source:
public final long long_literal ( ) throws org.jf.smali.RecognitionException { long value = 0 ; org.antlr.runtime.tree.CommonTree LONG_LITERAL192 = null ; try { { LONG_LITERAL192 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.LONG_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_LONG_LITERAL_in_long_literal3262 ) ) ) ; value = org.jf.smali.LiteralTools.parseLong ( ( LONG_LITERAL192 != null ? LONG_LITERAL192.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL191 = null ; try { { INTEGER_LITERAL191 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3249 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL191 != null ? INTEGER_LITERAL191.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public static com.android.jack.jayce.JayceInternalWriter get ( @ javax.annotation.Nonnull com.android.jack.library.OutputJackLibrary outputJackLibrary , @ javax.annotation.Nonnull java.io.OutputStream out ) { com.android.jack.jayce.v0002.io.JayceInternalWriterImpl jayceWriter = new com.android.jack.jayce.v0002.io.JayceInternalWriterImpl ( out ) ; outputJackLibrary.putProperty ( FileType.JAYCE.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; outputJackLibrary.putProperty ( JayceProperties.KEY_JAYCE_MAJOR_VERSION , java.lang.String.valueOf ( com.android.jack.jayce.JayceWriterFactory.DEFAULT_MAJOR_VERSION ) ) ; outputJackLibrary.putProperty ( JayceProperties.KEY_JAYCE_MINOR_VERSION , java.lang.String.valueOf ( jayceWriter.getCurrentMinor ( ) ) ) ; return jayceWriter ; }

Target:
public static com.android.jack.jayce.JayceInternalWriter get ( @ javax.annotation.Nonnull com.android.jack.library.OutputJackLibrary outputJackLibrary , @ javax.annotation.Nonnull java.io.OutputStream out ) { com.android.jack.jayce.v0003.io.JayceInternalWriterImpl jayceWriter = new com.android.jack.jayce.v0003.io.JayceInternalWriterImpl ( out ) ; outputJackLibrary.putProperty ( FileType.JAYCE.buildPropertyName ( null ) , java.lang.String.valueOf ( true ) ) ; outputJackLibrary.putProperty ( JayceProperties.KEY_JAYCE_MAJOR_VERSION , java.lang.String.valueOf ( com.android.jack.jayce.JayceWriterFactory.DEFAULT_MAJOR_VERSION ) ) ; outputJackLibrary.putProperty ( JayceProperties.KEY_JAYCE_MINOR_VERSION , java.lang.String.valueOf ( jayceWriter.getCurrentMinor ( ) ) ) ; return jayceWriter ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void beginAnimationLw ( int displayWidth , int displayHeight ) { mTopFullscreenOpaqueWindowState = null ; mForceStatusBar = false ; mHideLockScreen = false ; mAllowLockscreenWhenOn = false ; mDismissKeyguard = false ; }

Target:
public void beginPostLayoutPolicyLw ( int displayWidth , int displayHeight ) { mTopFullscreenOpaqueWindowState = null ; mForceStatusBar = false ; mForceStatusBarFromKeyguard = false ; mForcingShowNavBar = false ; mForcingShowNavBarLayer = - 1 ; mHideLockScreen = false ; mAllowLockscreenWhenOn = false ; mDismissKeyguard = com.android.internal.policy.impl.PhoneWindowManager.DISMISS_KEYGUARD_NONE ; mShowingLockscreen = false ; mShowingDream = false ; }
Source:
public static java.lang.String getOutputDirectoryName ( org.gradle.nativebinaries.NativeBinary binary ) { return com.google.common.base.Joiner.on ( java.io.File.separator ) . join ( AndroidProject.FD_INTERMEDIATES , "binaries" , binary.getName ( ) , binary.getBuildType ( ) . getName ( ) , binary.getFlavor ( ) . getName ( ) , "lib" , binary.getTargetPlatform ( ) . getName ( ) ) ; }

Target:
public static java.lang.String getOutputDirectoryName ( org.gradle.nativeplatform.NativeBinary binary ) { return com.google.common.base.Joiner.on ( java.io.File.separator ) . join ( AndroidProject.FD_INTERMEDIATES , "binaries" , binary.getDisplayName ( ) , binary.getBuildType ( ) . getName ( ) , binary.getFlavor ( ) . getName ( ) , "lib" , binary.getTargetPlatform ( ) . getName ( ) ) ; }
Source:
private void buildCfgForPei ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement peiInst ) { com.android.jack.cfg.PeiBasicBlock peiBlock = new com.android.jack.cfg.PeiBasicBlock ( ( ( basicBlockId ) ++ ) , currentStmts ) ; setBlockOfStatement ( peiBlock ) ; com.android.jack.ir.ast.JStatement nextStatement = com.android.jack.util.ControlFlowHelper.getNextStatement ( peiInst ) ; forwardBranchResolver.addPeiBasicBlock ( peiBlock , nextStatement , peiInst.getJCatchBlocks ( ) ) ; }

Target:
private void buildCfgForPei ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement peiInst ) { com.android.jack.cfg.PeiBasicBlock peiBlock = new com.android.jack.cfg.PeiBasicBlock ( ( ( basicBlockId ) ++ ) , currentStmts ) ; setBlockOfStatement ( peiBlock ) ; com.android.jack.ir.ast.JStatement nextStatement = com.android.jack.util.ControlFlowHelper.getNextStatement ( peiInst ) ; forwardBranchResolver.addPeiBasicBlock ( peiBlock , nextStatement , peiInst.getJCatchBlocks ( ) ) ; peiBlock.setExitBlockWhenUncaught ( exitBlock ) ; }
Source:
public static < T > void assertThat ( java.lang.String reason , T actual , org.hamcrest.Matcher < T > matcher ) { if ( ! ( matcher.matches ( actual ) ) ) { org.hamcrest.Description description = new org.hamcrest.StringDescription ( ) ; description.appendText ( reason ) ; description.appendText ( "\nExpected: " ) ; description.appendDescriptionOf ( matcher ) ; description.appendText ( "\n got: " ) ; description.appendValue ( actual ) ; description.appendText ( "\n" ) ; throw new java.lang.AssertionError ( description.toString ( ) ) ; } }

Target:
private static boolean doubleIsDifferent ( double d1 , double d2 , double delta ) { if ( ( java.lang.Double.compare ( d1 , d2 ) ) == 0 ) { return false ; } if ( ( java.lang.Math.abs ( ( d1 - d2 ) ) ) <= delta ) { return false ; } return true ; }
Source:
public void testExtras ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } if ( ( mCall.getDetails ( ) . getExtras ( ) ) != null ) { org.junit.Assert.assertThat ( mCall.getDetails ( ) . getExtras ( ) , org.hamcrest.CoreMatchers.is ( android.os.Bundle.class ) ) ; } }

Target:
public void testExtras ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } if ( ( mCall.getDetails ( ) . getExtras ( ) ) != null ) { org.junit.Assert.assertThat ( mCall.getDetails ( ) . getExtras ( ) , org.hamcrest.CoreMatchers.instanceOf ( android.os.Bundle.class ) ) ; } }
Source:
public boolean isVoicemailVibrationEnabled ( android.telecom.PhoneAccountHandle accountHandle ) { final com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { return false ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.isVibrationEnabled ( phone ) ; }

Target:
public void setVoicemailVibrationEnabled ( java.lang.String callingPackage , android.telecom.PhoneAccountHandle phoneAccountHandle , boolean enabled ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ) ) ) { enforceModifyPermissionOrCarrierPrivilege ( com.android.phone.PhoneUtils.getSubIdForPhoneAccountHandle ( phoneAccountHandle ) ) ; } com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( phoneAccountHandle ) ; if ( phone == null ) { phone = mPhone ; } com.android.phone.settings.VoicemailNotificationSettingsUtil.setVibrationEnabled ( phone , enabled ) ; }
Source:
public boolean removeAll ( final java.util.Collection < ? > collection ) { com.google.common.base.Preconditions.checkNotNull ( collection ) ; com.google.common.base.Predicate < E > combinedPredicate = new com.google.common.base.Predicate < E > ( ) { @ java.lang.Override public boolean apply ( E input ) { return ( predicate.apply ( input ) ) && ( collection.contains ( input ) ) ; } } ; return com.google.common.collect.Iterables.removeIf ( unfiltered , combinedPredicate ) ; }

Target:
public boolean remove ( java.lang.Object element ) { return ( contains ( element ) ) && ( unfiltered.remove ( element ) ) ; }
Source:
public void test_getRemaining ( ) { byte [ ] byteArray = new byte [ ] { 1 , 3 , 5 , 6 , 7 } ; java.util.zip.Inflater inflate = new java.util.zip.Inflater ( ) ; assertEquals ( "upon creating an instance of inflate, getRemaining returned a non zero value" , 0 , inflate.getRemaining ( ) ) ; inflate.setInput ( byteArray ) ; assertTrue ( "getRemaining returned zero when there is input in the input buffer" , ( ( inflate.getRemaining ( ) ) != 0 ) ) ; }

Target:
public void test_getRemaining ( ) { byte [ ] byteArray = new byte [ ] { 1 , 3 , 5 , 6 , 7 } ; java.util.zip.Inflater inflate = new java.util.zip.Inflater ( ) ; assertEquals ( "upon creating an instance of inflate, getRemaining returned a non zero value" , 0 , inflate.getRemaining ( ) ) ; inflate.setInput ( byteArray ) ; assertTrue ( "getRemaining returned zero when there is input in the input buffer" , ( ( inflate.getRemaining ( ) ) != 0 ) ) ; inflate.end ( ) ; }
Source:
public void callSessionInviteParticipantsRequestDelivered ( com.android.ims.internal.ImsCallSession session ) { logi ( "callSessionInviteParticipantsRequestDelivered ::" ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionInviteParticipantsRequestDelivered :: not supported for " + "conference session=" ) + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onCallInviteParticipantsRequestDelivered ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionInviteParticipantsRequestDelivered :: " , t ) ; } } }

Target:
public void callSessionInviteParticipantsRequestDelivered ( android.telephony.ims.ImsCallSession session ) { logi ( "callSessionInviteParticipantsRequestDelivered ::" ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionInviteParticipantsRequestDelivered :: not supported for " + "conference session=" ) + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onCallInviteParticipantsRequestDelivered ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionInviteParticipantsRequestDelivered :: " , t ) ; } } }
Source:
android.content.Intent getHomeIntent ( ) { android.content.Intent intent = new android.content.Intent ( mTopAction , ( ( mTopData ) != null ? android.net.Uri.parse ( mTopData ) : null ) ) ; intent.setComponent ( mTopComponent ) ; if ( ( mFactoryTest ) != ( android.os.FactoryTest.FACTORY_TEST_LOW_LEVEL ) ) { intent.addCategory ( Intent.CATEGORY_HOME ) ; } return intent ; }

Target:
android.content.Intent getHomeIntent ( ) { android.content.Intent intent = new android.content.Intent ( mTopAction , ( ( mTopData ) != null ? android.net.Uri.parse ( mTopData ) : null ) ) ; intent.setComponent ( mTopComponent ) ; intent.addFlags ( Intent.FLAG_DEBUG_TRIAGED_MISSING ) ; if ( ( mFactoryTest ) != ( android.os.FactoryTest.FACTORY_TEST_LOW_LEVEL ) ) { intent.addCategory ( Intent.CATEGORY_HOME ) ; } return intent ; }
Source:
public void lookupTimeZonesByCountry_structuresAreImmutable ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; java.util.List < android.icu.util.TimeZone > gbList = finder.lookupTimeZonesByCountry ( "gb" ) ; org.junit.Assert.assertEquals ( 1 , gbList.size ( ) ) ; libcore.util.TimeZoneFinderTest.assertImmutableList ( gbList ) ; assertImmutableTimeZone ( gbList.get ( 0 ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "unknown" ) ) ; }

Target:
public void lookupTimeZonesByCountry_structuresAreImmutable ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\" default=\"Europe/London\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; java.util.List < android.icu.util.TimeZone > gbList = finder.lookupTimeZonesByCountry ( "gb" ) ; org.junit.Assert.assertEquals ( 1 , gbList.size ( ) ) ; libcore.util.TimeZoneFinderTest.assertImmutableList ( gbList ) ; assertImmutableTimeZone ( gbList.get ( 0 ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "unknown" ) ) ; }
Source:
public boolean setName ( java.lang.String name ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.setName ( name ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean factoryReset ( ) { try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) { return mService.factoryReset ( ) ; } android.os.SystemProperties.set ( "persist.bluetooth.factoryreset" , "true" ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
public static void computeMad ( android.renderscript.cts.TestMad.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.Target.Floaty ab = t.multiply ( t.new32 ( args.inA ) , t.new32 ( args.inB ) ) ; args.out = t.add ( ab , t.new32 ( args.inC ) ) ; }

Target:
public static void computeMad ( android.renderscript.cts.TestMad.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.Target.Floaty ab = t.multiply ( t.new32 ( args.inMultiplicand1 ) , t.new32 ( args.inMultiplicand2 ) ) ; args.out = t.add ( ab , t.new32 ( args.inOffset ) ) ; }
Source:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_DISCONNECT ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }

Target:
public void verboseLogRecSizeIsGreaterThanNormalSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; }
Source:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; return com.google.common.collect.Iterators.concat ( java.util.Arrays.asList ( a , b ) . iterator ( ) ) ; }

Target:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b ) { return com.google.common.collect.Iterators.concat ( com.google.common.collect.ImmutableList.of ( a , b ) . iterator ( ) ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , long [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 8 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copyFromUnchecked ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void testFailed ( com.android.builder.testing.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( java.lang.String.format ( "\n%1$s: %2$s > %3$s [31mFAILED [0m" , mDeviceName , test.getClassName ( ) , test.getTestName ( ) ) ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( status , test , trace ) ; }

Target:
public void testFailed ( com.android.builder.testing.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [31mFAILED [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( status , test , trace ) ; }
Source:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { out.writeBoolean ( captureInstance ) ; out.writeIds ( capturedVariableIds ) ; out.writeNode ( method ) ; out.writeId ( typeSig ) ; out.writeIds ( boundsIds ) ; }

Target:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { out.writeBoolean ( captureInstance ) ; out.writeIds ( capturedVariableIds ) ; out.writeNode ( method ) ; out.writeId ( typeSig ) ; out.writeIds ( boundsIds ) ; out.writeNode ( mthIdToImplement ) ; out.writeNodes ( bridges ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_wide.d.T_aput_wide_1 t = new dot.junit.opcodes.aput_wide.d.T_aput_wide_1 ( ) ; long [ ] arr = new long [ 2 ] ; try { t.run ( arr , 2 , 100000000000L ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_wide.d.T_aput_wide_1" , java.lang.ArrayIndexOutOfBoundsException.class , new long [ 2 ] , 2 , 100000000000L ) ; }
Source:
public void testNoUrl ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "AndroidManifest.xml:18: Error: Missing URL for the intent filter? [AppIndexingError]\n" + " <data />\n" ) + " ~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + "\n" ) + " <application\n" ) + " android:allowBackup=\"true\"\n" ) + " android:icon=\"@mipmap/ic_launcher\"\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " <activity\n" ) + " android:name=\".FullscreenActivity\"\n" ) + " android:configChanges=\"orientation|keyboardHidden|screenSize\"\n" ) + " android:label=\"@string/title_activity_fullscreen\"\n" ) + " android:theme=\"@style/FullscreenTheme\" >\n" ) + " <intent-filter android:label=\"@string/title_activity_fullscreen\">\n" ) + " <action android:name=\"android.intent.action.VIEW\" />\n" ) + " <!-- Accepts URIs that begin with \"http://example.com/gizmos” -->\n" ) + " <data />\n" ) + " <category android:name=\"android.intent.category.DEFAULT\" />\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\" />\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }

Target:
public void testNoUrl ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "AndroidManifest.xml:17: Error: Missing URL for the intent filter? [AppIndexingError]\n" + " <data />\n" ) + " ~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + "\n" ) + " <application\n" ) + " android:allowBackup=\"true\"\n" ) + " android:icon=\"@mipmap/ic_launcher\"\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " <activity\n" ) + " android:name=\".FullscreenActivity\"\n" ) + " android:configChanges=\"orientation|keyboardHidden|screenSize\"\n" ) + " android:label=\"@string/title_activity_fullscreen\"\n" ) + " android:theme=\"@style/FullscreenTheme\" >\n" ) + " <intent-filter android:label=\"@string/title_activity_fullscreen\">\n" ) + " <action android:name=\"android.intent.action.VIEW\" />\n" ) + " <data />\n" ) + " <category android:name=\"android.intent.category.DEFAULT\" />\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\" />\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }
Source:
private void handleCheckComplete ( final byte [ ] token , final boolean success ) { try { mRulesManager.requestNothing ( token , success ) ; android.util.Log.i ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , ( ( ( "doInBackground: Called checkComplete: token=" + ( java.util.Arrays.toString ( token ) ) ) + ", success=" ) + success ) ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , "doInBackground: Error calling checkComplete()" , e ) ; } }

Target:
private void handleCheckComplete ( final byte [ ] token , final boolean success ) { try { mRulesManager.requestNothing ( token , success ) ; android.util.Log.i ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , ( ( ( "requestNothing() called, token=" + ( java.util.Arrays.toString ( token ) ) ) + ", success=" ) + success ) ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , "Error calling requestNothing()" , e ) ; } }
Source:
public static double rint ( double a ) { double twoToThe52 = ( ( double ) ( 1L << 52 ) ) ; double sign = sun.misc.FpUtils.rawCopySign ( 1.0 , a ) ; a = java.lang.Math.abs ( a ) ; if ( a < twoToThe52 ) { a = ( twoToThe52 + a ) - twoToThe52 ; } return sign * a ; }

Target:
public static double rint ( double a ) { double twoToThe52 = ( ( double ) ( 1L << 52 ) ) ; double sign = java.lang.Math.copySign ( 1.0 , a ) ; a = java.lang.Math.abs ( a ) ; if ( a < twoToThe52 ) { a = ( twoToThe52 + a ) - twoToThe52 ; } return sign * a ; }