auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.android.ide.eclipse.adt.internal.resources.IResourceRepository collectResourceIds ( com.android.ide.eclipse.adt.internal.sdk.AndroidJarLoader classLoader ) { try { java.lang.Class < ? > r = classLoader.loadClass ( AndroidConstants.CLASS_R ) ; if ( r != null ) { java.util.Map < com.android.ide.eclipse.adt.internal.resources.ResourceType , java.util.List < com.android.ide.eclipse.adt.internal.resources.ResourceItem > > map = parseRClass ( r ) ; if ( map != null ) { return new com.android.ide.eclipse.adt.internal.sdk.FrameworkResourceRepository ( map ) ; } } } catch ( java.lang.ClassNotFoundException e ) { com.android.ide.eclipse.adt.AdtPlugin.logAndPrintError ( e , com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser.TAG , "Collect resource IDs failed, class %1$s not found in %2$s" , AndroidConstants.CLASS_R , mAndroidTarget.getPath ( IAndroidTarget.ANDROID_JAR ) ) ; } return null ; }

Target:
private com.android.ide.eclipse.adt.internal.resources.IResourceRepository collectResourceIds ( com.android.ide.eclipse.adt.internal.sdk.AndroidJarLoader classLoader ) { try { java.lang.Class < ? > r = classLoader.loadClass ( SdkConstants.CLASS_R ) ; if ( r != null ) { java.util.Map < com.android.ide.eclipse.adt.internal.resources.ResourceType , java.util.List < com.android.ide.eclipse.adt.internal.resources.ResourceItem > > map = parseRClass ( r ) ; if ( map != null ) { return new com.android.ide.eclipse.adt.internal.sdk.FrameworkResourceRepository ( map ) ; } } } catch ( java.lang.ClassNotFoundException e ) { com.android.ide.eclipse.adt.AdtPlugin.logAndPrintError ( e , com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser.TAG , "Collect resource IDs failed, class %1$s not found in %2$s" , SdkConstants.CLASS_R , mAndroidTarget.getPath ( IAndroidTarget.ANDROID_JAR ) ) ; } return null ; }
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidTagConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_ROTATE_AGE , ( 5 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_TAG_DELETE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }
Source:
private static < E > com.google.common.collect.ImmutableList < E > construct ( java.lang.Object ... elements ) { for ( int i = 0 ; i < ( elements.length ) ; i ++ ) { com.google.common.collect.ObjectArrays.checkElementNotNull ( elements [ i ] , i ) ; } return new com.google.common.collect.RegularImmutableList < E > ( elements ) ; }

Target:
int copyIntoArray ( java.lang.Object [ ] dst , int offset ) { int size = size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { dst [ ( offset + i ) ] = get ( i ) ; } return offset + size ; }
Source:
public static double min ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToLongBits ( b ) ) == ( java.lang.Math.negativeZeroDoubleBits ) ) ) { return b ; } return a <= b ? a : b ; }

Target:
public static double min ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToRawLongBits ( b ) ) == ( java.lang.Math.negativeZeroDoubleBits ) ) ) { return b ; } return a <= b ? a : b ; }
Source:
public static void doubleTest ( ) { double d = 0 ; double dc = 1.0F ; for ( int i = 0 ; i < 2 ; i ++ ) { d -= dc ; d = - d ; } java.lang.System.out.println ( d ) ; }

Target:
public static void doubleTest ( ) { double d = 0 ; double dc = 1.0F ; for ( int i = 0 ; i < 2 ; i ++ ) { d -= dc ; d = - d ; } java.lang.System.out.println ( d ) ; java.lang.System.out.println ( ( d + 0.0F ) ) ; java.lang.System.out.println ( ( d - ( - 0.0F ) ) ) ; }
Source:
static void pushPropValue ( org.jetbrains.asm4.commons.GeneratorAdapter generator , java.lang.String propertyClass , java.lang.Object value ) { com.intellij.uiDesigner.compiler.PropertyCodeGenerator codeGen = ( ( com.intellij.uiDesigner.compiler.PropertyCodeGenerator ) ( com.intellij.uiDesigner.compiler.AsmCodeGenerator.myPropertyCodeGenerators.get ( propertyClass ) ) ) ; if ( codeGen == null ) { throw new java.lang.RuntimeException ( ( "Unknown property class " + propertyClass ) ) ; } codeGen.generatePushValue ( generator , value ) ; }

Target:
static void pushPropValue ( org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , java.lang.String propertyClass , java.lang.Object value ) { com.intellij.uiDesigner.compiler.PropertyCodeGenerator codeGen = ( ( com.intellij.uiDesigner.compiler.PropertyCodeGenerator ) ( com.intellij.uiDesigner.compiler.AsmCodeGenerator.myPropertyCodeGenerators.get ( propertyClass ) ) ) ; if ( codeGen == null ) { throw new java.lang.RuntimeException ( ( "Unknown property class " + propertyClass ) ) ; } codeGen.generatePushValue ( generator , value ) ; }
Source:
public void enter ( ) { if ( ( ! ( ( this ) instanceof com.android.bluetooth.hfp.HeadsetStateMachine.Disconnected ) ) && ( ( mCurrentDevice ) == null ) ) { stateLogWtfStack ( "mCurrentDevice is null on enter()" ) ; } if ( ( ! ( ( this ) instanceof com.android.bluetooth.hfp.HeadsetStateMachine.Disconnected ) ) && ( ( mPrevState ) == null ) ) { stateLogWtfStack ( "mPrevState is null on enter()" ) ; } }

Target:
public void enter ( ) { if ( ( ! ( ( this ) instanceof com.android.bluetooth.hfp.HeadsetStateMachine.Disconnected ) ) && ( ( mCurrentDevice ) == null ) ) { throw new java.lang.IllegalStateException ( "mCurrentDevice is null on enter()" ) ; } if ( ( ! ( ( this ) instanceof com.android.bluetooth.hfp.HeadsetStateMachine.Disconnected ) ) && ( ( mPrevState ) == null ) ) { throw new java.lang.IllegalStateException ( "mPrevState is null on enter()" ) ; } enforceValidConnectionStateTransition ( ) ; }
Source:
private void updatedZoom ( ) { if ( hasPreviews ( ) ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview : mPreviews ) { preview.setScale ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager.sScale ) ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview = mCanvas.getPreview ( ) ; if ( preview != null ) { preview.setScale ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager.sScale ) ; } } renderPreviews ( ) ; layout ( true ) ; mCanvas.redraw ( ) ; }

Target:
private void updatedZoom ( ) { if ( hasPreviews ( ) ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview : mPreviews ) { preview.disposeThumbnail ( ) ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview = mCanvas.getPreview ( ) ; if ( preview != null ) { preview.disposeThumbnail ( ) ; } } mNeedLayout = mNeedRender = true ; mCanvas.redraw ( ) ; }
Source:
public java.util.Locale.Builder setScript ( java.lang.String script ) { if ( ( script == null ) || ( script.isEmpty ( ) ) ) { this . script = "" ; return this ; } if ( ! ( java.util.Locale.isValidBcp47Alpha ( script , 4 , 4 ) ) ) { throw new java.util.IllformedLocaleException ( ( "Invalid script: " + script ) ) ; } this . script = java.util.Locale.titleCaseAsciiWord ( script ) ; return this ; }

Target:
public java.util.Locale.Builder setScript ( java.lang.String script ) { this . script = java.util.Locale.Builder.normalizeAndValidateScript ( script , true ) ; return this ; }
Source:
private void contentSizeChanged ( boolean updateLayout ) { if ( ( ( mContentWidth ) | ( mContentHeight ) ) == 0 ) { return ; } if ( mHeightCanMeasure ) { if ( ( ( getMeasuredHeight ( ) ) != ( contentToView ( mContentHeight ) ) ) && updateLayout ) { requestLayout ( ) ; } } else if ( mWidthCanMeasure ) { if ( ( ( getMeasuredWidth ( ) ) != ( contentToView ( mContentWidth ) ) ) && updateLayout ) { requestLayout ( ) ; } } else { sendViewSizeZoom ( ) ; } }

Target:
public int findAll ( java.lang.String find ) { if ( 0 == ( mNativeClass ) ) return 0 ; if ( ( mFindIsUp ) == false ) { recordNewContentSize ( mContentWidth , ( ( mContentHeight ) + ( mFindHeight ) ) , false ) ; mFindIsUp = true ; } int result = nativeFindAll ( find.toLowerCase ( ) , find.toUpperCase ( ) ) ; invalidate ( ) ; return result ; }
Source:
private void castIfNeeded ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression exprToCast , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType expectedType ) { if ( ( expectedType instanceof com.android.jack.ir.types.JNumericType ) && ( ! ( exprToCast.getType ( ) . equals ( expectedType ) ) ) ) { tr.append ( new com.android.jack.transformations.request.Replace ( exprToCast , new com.android.jack.ir.ast.JDynamicCastOperation ( exprToCast.getSourceInfo ( ) , expectedType , exprToCast ) ) ) ; } }

Target:
private void castIfNeeded ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression exprToCast , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType expectedType ) { if ( ( expectedType instanceof com.android.jack.ir.types.JNumericType ) && ( ! ( exprToCast.getType ( ) . isSameType ( expectedType ) ) ) ) { tr.append ( new com.android.jack.transformations.request.Replace ( exprToCast , new com.android.jack.ir.ast.JDynamicCastOperation ( exprToCast.getSourceInfo ( ) , expectedType , exprToCast ) ) ) ; } }
Source:
public void testGetDeviceIdForSlotId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( mTelephonyManager.getDefaultSim ( ) ) ; verifyDeviceId ( deviceId ) ; for ( int i = - 1 ; i <= ( mTelephonyManager.getPhoneCount ( ) ) ; i ++ ) { mTelephonyManager.getDeviceId ( i ) ; } }

Target:
public void testGetDeviceIdForSlot ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( mTelephonyManager.getDefaultSim ( ) ) ; verifyDeviceId ( deviceId ) ; for ( int i = - 1 ; i <= ( mTelephonyManager.getPhoneCount ( ) ) ; i ++ ) { mTelephonyManager.getDeviceId ( i ) ; } }
Source:
public void notifyActivityDrawnForKeyguard ( ) { synchronized ( mWindowMap ) { if ( mKeyguardWaitingForActivityDrawn ) { mPolicy.notifyActivityDrawnForKeyguardLw ( ) ; mKeyguardWaitingForActivityDrawn = false ; } } }

Target:
public void notifyActivityDrawnForKeyguard ( ) { if ( com.android.server.wm.WindowManagerService.DEBUG_KEYGUARD ) android.util.Slog.d ( com.android.server.wm.WindowManagerService.TAG , ( ( ( "notifyActivityDrawnForKeyguard: waiting=" + ( mKeyguardWaitingForActivityDrawn ) ) + " Callers=" ) + ( android.os.Debug.getCallers ( 5 ) ) ) ) ; synchronized ( mWindowMap ) { if ( mKeyguardWaitingForActivityDrawn ) { mPolicy.notifyActivityDrawnForKeyguardLw ( ) ; mKeyguardWaitingForActivityDrawn = false ; } } }
Source:
public boolean onKeyMultiple ( final int keyCode , final int repeatCount , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyMultiple ( keyCode , repeatCount , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }

Target:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }
Source:
private void notifyVolumeChanged ( int volume ) { volume = convertToAudioStreamVolume ( volume ) ; mAudioManager.setStreamVolume ( AudioManager.STREAM_MUSIC , volume , ( ( android.media.AudioManager.FLAG_SHOW_UI ) | ( android.media.AudioManager.FLAG_BLUETOOTH_ABS_VOLUME ) ) ) ; }

Target:
private void blackListCurrentDevice ( ) { mFeatures &= ~ ( com.android.bluetooth.avrcp.Avrcp.BTRC_FEAT_ABSOLUTE_VOLUME ) ; mAudioManager.avrcpSupportsAbsoluteVolume ( mAddress , isAbsoluteVolumeSupported ( ) ) ; android.content.SharedPreferences pref = mContext.getSharedPreferences ( com.android.bluetooth.avrcp.Avrcp.ABSOLUTE_VOLUME_BLACKLIST , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = pref.edit ( ) ; editor.putBoolean ( mAddress , true ) ; editor.commit ( ) ; }
Source:
private static com.android.tools.perflib.captures.DataBuffer dataBufferFromResource ( java.lang.String name ) throws java.io.IOException { java.lang.ClassLoader loader = com.android.ahat.TestDump.class . getClassLoader ( ) ; java.io.InputStream is = loader.getResourceAsStream ( name ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 4096 ] ; int read ; while ( ( read = is.read ( buf ) ) != ( - 1 ) ) { baos.write ( buf , 0 , read ) ; } return new com.android.tools.perflib.heap.io.InMemoryBuffer ( baos.toByteArray ( ) ) ; }

Target:
private static java.nio.ByteBuffer dataBufferFromResource ( java.lang.String name ) throws java.io.IOException { java.lang.ClassLoader loader = com.android.ahat.TestDump.class . getClassLoader ( ) ; java.io.InputStream is = loader.getResourceAsStream ( name ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 4096 ] ; int read ; while ( ( read = is.read ( buf ) ) != ( - 1 ) ) { baos.write ( buf , 0 , read ) ; } return java.nio.ByteBuffer.wrap ( baos.toByteArray ( ) ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , boolean vmSafeMode , boolean debuggable ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , vmSafeMode , debuggable ) ; }

Target:
public int createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "createoatdir" ) ; builder.append ( ' ' ) ; builder.append ( oatDir ) ; builder.append ( ' ' ) ; builder.append ( dexInstructionSet ) ; return mInstaller.execute ( builder.toString ( ) ) ; }
Source:
public final void accept ( com.android.tools.perflib.heap.Visitor visitor ) { if ( visitor.visitEnter ( this ) ) { for ( com.android.tools.perflib.heap.Value value : mStaticFields.values ( ) ) { if ( ( value.getValue ( ) ) instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value.getValue ( ) ) ) . accept ( visitor ) ; } } visitor.visitLeave ( this ) ; } }

Target:
public final void accept ( com.android.tools.perflib.heap.Visitor visitor ) { if ( visitor.visitEnter ( this ) ) { for ( java.lang.Object value : getStaticFieldValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . accept ( visitor ) ; } } visitor.visitLeave ( this ) ; } }
Source:
public synchronized void maybeInit ( ) { if ( initialized ) { return ; } initialized = true ; if ( ( isDirectory ) || ( ( zip ) == null ) ) { return ; } try { zipFile = new java.util.zip.ZipFile ( zip ) ; } catch ( java.io.IOException ioe ) { java.lang.System.logE ( ( "Unable to open zip file: " + ( file ) ) , ioe ) ; zipFile = null ; } }

Target:
public synchronized void maybeInit ( ) { if ( initialized ) { return ; } initialized = true ; if ( ( isDirectory ) || ( ( zip ) == null ) ) { return ; } try { zipFile = new java.util.zip.ZipFile ( zip ) ; urlHandler = new dalvik.system.DexPathList.Element.ElementURLStreamHandler ( zipFile ) ; } catch ( java.io.IOException ioe ) { java.lang.System.logE ( ( "Unable to open zip file: " + ( file ) ) , ioe ) ; zipFile = null ; } }
Source:
private com.android.jack.ir.ast.JExpression makeLocalRef ( com.android.jack.ir.sourceinfo.SourceInfo info , org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding b ) { com.android.jack.ir.ast.JVariable variable = curMethod.locals.get ( b ) ; assert variable != null ; if ( variable instanceof com.android.jack.ir.ast.JLocal ) { return new com.android.jack.ir.ast.JLocalRef ( info , ( ( com.android.jack.ir.ast.JLocal ) ( variable ) ) ) ; } else { return new com.android.jack.ir.ast.JParameterRef ( info , ( ( com.android.jack.ir.ast.JParameter ) ( variable ) ) ) ; } }

Target:
private com.android.jack.ir.ast.JExpression makeLocalRef ( com.android.jack.ir.sourceinfo.SourceInfo info , org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding b ) { com.android.jack.ir.ast.JVariable variable = curMethod.getJVariable ( b ) ; assert variable != null ; if ( variable instanceof com.android.jack.ir.ast.JLocal ) { return new com.android.jack.ir.ast.JLocalRef ( info , ( ( com.android.jack.ir.ast.JLocal ) ( variable ) ) ) ; } else { return new com.android.jack.ir.ast.JParameterRef ( info , ( ( com.android.jack.ir.ast.JParameter ) ( variable ) ) ) ; } }
Source:
private org.eclipse.swt.graphics.Point getElementCenter ( com.android.monkeyrunner.easy.By selector ) { com.android.hierarchyviewerlib.device.ViewNode node = selector.findView ( mHierarchyViewer ) ; if ( node == null ) { throw new org.python.core.PyException ( org.python.core.Py.ValueError , java.lang.String.format ( "View not found: %s" , selector ) ) ; } org.eclipse.swt.graphics.Point p = com.android.chimpchat.hierarchyviewer.HierarchyViewer.getAbsoluteCenterOfView ( node ) ; return p ; }

Target:
private org.eclipse.swt.graphics.Point getElementCenter ( com.android.monkeyrunner.easy.By selector ) { com.android.hierarchyviewerlib.models.ViewNode node = selector.findView ( mHierarchyViewer ) ; if ( node == null ) { throw new org.python.core.PyException ( org.python.core.Py.ValueError , java.lang.String.format ( "View not found: %s" , selector ) ) ; } org.eclipse.swt.graphics.Point p = com.android.chimpchat.hierarchyviewer.HierarchyViewer.getAbsoluteCenterOfView ( node ) ; return p ; }
Source:
public void run ( com.android.sched.util.file.ReaderFile file ) { if ( file.hasUsedReader ( ) ) { com.android.sched.util.stream.ExtendedBufferedReader reader = file.getBufferedReader ( ) ; if ( ! ( reader.isClosed ( ) ) ) { throw new java.lang.AssertionError ( ( ( ( ( "File '" + ( file.getPath ( ) ) ) + "' from property '" ) + ( getName ( ) ) ) + "' is not closed" ) ) ; } } }

Target:
public void run ( com.android.sched.util.file.ReaderFile file ) { if ( ( file.getStatus ( ) ) == ( com.android.sched.util.file.StreamFileStatus.OPEN ) ) { throw new java.lang.AssertionError ( ( ( ( ( "File '" + ( file.getPath ( ) ) ) + "' from property '" ) + ( getName ( ) ) ) + "' is not closed" ) ) ; } }
Source:
private boolean connectToService ( ) { if ( com.android.server.MountService.DEBUG_OBB ) android.util.Slog.i ( com.android.server.MountService.TAG , "Trying to bind to DefaultContainerService" ) ; android.content.Intent service = new android.content.Intent ( ) . setComponent ( com.android.server.MountService.DEFAULT_CONTAINER_COMPONENT ) ; if ( mContext.bindServiceAsUser ( service , mDefContainerConn , Context.BIND_AUTO_CREATE , UserHandle.OWNER ) ) { mBound = true ; return true ; } return false ; }

Target:
private boolean connectToService ( ) { if ( com.android.server.MountService.DEBUG_OBB ) android.util.Slog.i ( com.android.server.MountService.TAG , "Trying to bind to DefaultContainerService" ) ; android.content.Intent service = new android.content.Intent ( ) . setComponent ( com.android.server.MountService.DEFAULT_CONTAINER_COMPONENT ) ; if ( mContext.bindServiceAsUser ( service , mDefContainerConn , Context.BIND_AUTO_CREATE , UserHandle.SYSTEM ) ) { mBound = true ; return true ; } return false ; }
Source:
public static void main ( java.lang.String [ ] args ) { com.android.preload.Main m = new com.android.preload.Main ( new com.android.preload.ui.SwingUI ( ) ) ; com.android.preload.Main.top = m ; m.startUp ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { com.android.preload.Main m ; if ( ( ( args.length ) > 0 ) && ( args [ 0 ] . equals ( "--seq" ) ) ) { m = com.android.preload.Main.createSequencedMain ( args ) ; } else { m = new com.android.preload.Main ( new com.android.preload.ui.SwingUI ( ) ) ; } com.android.preload.Main.top = m ; m.startUp ( ) ; }
Source:
public boolean matchesCriteria ( java.lang.String vendor , android.net.nsd.NsdServiceInfo nsdServiceInfo ) { if ( ! ( android.text.TextUtils.equals ( vendor , mVendorInfo.mVendorID ) ) ) return false ; java.lang.String modelName = getModelName ( nsdServiceInfo ) ; if ( modelName != null ) { return com.android.printservice.recommendation.plugin.samsung.SamsungRecommendationPlugin.isSupportedModel ( modelName ) ; } return false ; }

Target:
public void stop ( ) throws java.lang.Exception { mMDNSFilteredDiscovery.stop ( ) ; }
Source:
public static java.lang.String getLocale ( java.util.Locale locale ) { java.lang.String language = locale.getLanguage ( ) ; java.lang.String country = locale.getCountry ( ) ; if ( "iw" . equals ( language ) ) { language = "he" ; } else if ( "in" . equals ( language ) ) { language = "id" ; } else if ( "tl" . equals ( language ) ) { language = "fil" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }

Target:
public static java.util.Locale getUpdatedLocaleForChromium ( java.util.Locale locale ) { java.lang.String languageForChrome = org.chromium.base.LocaleUtils.LANGUAGE_MAP_FOR_CHROMIUM.get ( locale.getLanguage ( ) ) ; if ( languageForChrome == null ) { return locale ; } return new java.util.Locale.Builder ( ) . setLocale ( locale ) . setLanguage ( languageForChrome ) . build ( ) ; }
Source:
public char getSeparator ( ) { return java.io.File.separatorChar ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.InputOutputZipVFile ( vfs , file , new java.util.zip.ZipEntry ( path.getPathAsString ( com.android.sched.vfs.InputOutputZipVDir.ZIP_ENTRY_SEPARATOR ) ) ) ; }
Source:
protected boolean start ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "start()" ) ; } initNative ( ) ; mNativeAvailable = true ; return true ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.reportError ( error ) ; }
Source:
public void onStarted ( ) { com.googlecode.android_scripting.Log.d ( "PacketKeepaliveCallback on start!" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) { mEventFacade.postEvent ( TelephonyConstants.EventPacketKeepaliveCallback , new com.googlecode.android_scripting.facade.telephony.TelephonyEvents.PacketKeepaliveEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getPacketKeepaliveReceiverEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) ) ; } }

Target:
public void onStarted ( ) { com.googlecode.android_scripting.Log.d ( "PacketKeepaliveCallback on start!" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) { mEventFacade.postEvent ( ConnectivityConstants.EventPacketKeepaliveCallback , new com.googlecode.android_scripting.facade.ConnectivityEvents.PacketKeepaliveEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getPacketKeepaliveReceiverEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED ) ) ) ; } }
Source:
public java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( ( engineParam ) == null ) && ( ( engineSpec ) != null ) ) { try { engineParam = java.security.AlgorithmParameters.getInstance ( "IES" , BouncyCastleProvider.PROVIDER_NAME ) ; engineParam.init ( engineSpec ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } return engineParam ; }

Target:
public java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( ( engineParam ) == null ) && ( ( engineSpec ) != null ) ) { try { engineParam = helper.createAlgorithmParameters ( "IES" ) ; engineParam.init ( engineSpec ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } return engineParam ; }
Source:
public static void openAppList ( android.app.Instrumentation instrumentation ) throws android.support.test.uiautomator.UiObjectNotFoundException { android.support.test.uiautomator.UiDevice device = android.support.test.uiautomator.UiDevice.getInstance ( instrumentation ) ; if ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) >= 26 ) { com.android.devtools.systemimage.uitest.utils.SettingsUtil.openItem ( instrumentation , "Apps & notifications" ) ; java.lang.String appInfo = ( ( com.android.devtools.systemimage.uitest.utils.SystemUtil.getApiLevel ( ) ) == 26 ) ? "App info" : "See all" ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textContains ( appInfo ) ) . clickAndWaitForNewWindow ( ) ; } else { com.android.devtools.systemimage.uitest.utils.SettingsUtil.openItem ( instrumentation , "Apps" ) ; } }

Target:
public boolean isTrue ( ) { return appInfoLabel.exists ( ) ; }
Source:
public int size ( ) { return tableOfContents.typeIds.size ; }

Target:
private java.util.List < java.lang.String > readStrings ( ) { com.android.jack.dx.io.DexBuffer.Section strings = open ( tableOfContents.stringIds.off ) ; java.lang.String [ ] result = new java.lang.String [ tableOfContents.stringIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.stringIds.size ) ; ++ i ) { result [ i ] = strings.readString ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public boolean checkForCondition ( ) { boolean condition = false ; boolean isSuccess = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textMatches ( "(?i)no thanks(?-i)" ) ) . waitForExists ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 3L , java.util.concurrent.TimeUnit.SECONDS ) ) ; try { if ( isSuccess ) { mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textMatches ( "(?i)no thanks(?-i)" ) ) . click ( ) ; condition = true ; } } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { throw new java.lang.AssertionError ( "Failed to dismiss the play store confirmation popup dialogs" ) ; } return condition ; }

Target:
public boolean checkForCondition ( ) { boolean condition = false ; boolean isSuccess = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textMatches ( "(?i)no thanks(?-i)" ) ) . waitForExists ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( 3L , java.util.concurrent.TimeUnit.SECONDS ) ) ; try { if ( isSuccess ) { mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textMatches ( "(?i)no thanks(?-i)" ) ) . click ( ) ; condition = true ; } } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { throw new java.lang.AssertionError ( "Failed to dismiss the AppTest popup dialog" ) ; } return condition ; }
Source:
public static long calculateInstalledSize ( android.content.pm.PackageParser.PackageLite pkg , com.android.internal.content.NativeLibraryHelper.Handle handle , boolean isForwardLocked , java.lang.String abiOverride ) throws java.io.IOException { long sizeBytes = 0 ; for ( java.lang.String codePath : pkg.getAllCodePaths ( ) ) { final java.io.File codeFile = new java.io.File ( codePath ) ; sizeBytes += codeFile.length ( ) ; if ( isForwardLocked ) { sizeBytes += com.android.internal.content.PackageHelper.extractPublicFiles ( codeFile , null ) ; } } sizeBytes += com.android.internal.content.NativeLibraryHelper.sumNativeBinariesWithOverride ( handle , abiOverride ) ; return sizeBytes ; }

Target:
public static long calculateInstalledSize ( android.content.pm.PackageParser.PackageLite pkg , com.android.internal.content.NativeLibraryHelper.Handle handle , boolean isForwardLocked , java.lang.String abiOverride ) throws java.io.IOException { long sizeBytes = 0 ; for ( java.lang.String codePath : pkg.getAllCodePaths ( ) ) { final java.io.File codeFile = new java.io.File ( codePath ) ; sizeBytes += codeFile.length ( ) ; if ( isForwardLocked ) { sizeBytes += com.android.internal.content.PackageHelper.extractPublicFiles ( codeFile , null ) ; } } sizeBytes += android.content.pm.dex.DexMetadataHelper.getPackageDexMetadataSize ( pkg ) ; sizeBytes += com.android.internal.content.NativeLibraryHelper.sumNativeBinariesWithOverride ( handle , abiOverride ) ; return sizeBytes ; }
Source:
public java.io.OutputStream getOutputStream ( ) throws com.android.sched.util.file.WrongPermissionException { synchronized ( this ) { digests.remove ( getPath ( ) ) ; digest = null ; } return new java.security.DigestOutputStream ( wrappedFile.getOutputStream ( ) , mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( com.android.sched.vfs.MessageDigestFS.this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; this . digest = null ; } } } ; }

Target:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( file.getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; digest = null ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; int literal = ( ( short ) ( in.read ( ) ) ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; int literal = ( ( short ) ( in.read ( ) ) ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , literal , a , b ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { com.android.jack.dx.rop.annotation.Annotation ropAnnotation = new com.android.jack.dx.rop.annotation.Annotation ( com.android.jack.backend.dex.rop.RopHelper.getCstType ( annotationLiteral.getType ( ) ) , com.android.jack.dx.rop.annotation.AnnotationVisibility.EMBEDDED ) ; createAnnotationPairs ( annotationLiteral , ropAnnotation ) ; ropAnnotation.setImmutable ( ) ; com.android.jack.dx.rop.cst.CstAnnotation cstAnnotation = new com.android.jack.dx.rop.cst.CstAnnotation ( ropAnnotation ) ; result = cstAnnotation ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { com.android.jack.dx.rop.annotation.Annotation ropAnnotation = new com.android.jack.dx.rop.annotation.Annotation ( com.android.jack.backend.dex.rop.RopHelper.getCstType ( annotation.getType ( ) ) , com.android.jack.dx.rop.annotation.AnnotationVisibility.EMBEDDED ) ; createAnnotationPairs ( annotation , ropAnnotation ) ; ropAnnotation.setImmutable ( ) ; com.android.jack.dx.rop.cst.CstAnnotation cstAnnotation = new com.android.jack.dx.rop.cst.CstAnnotation ( ropAnnotation ) ; result = cstAnnotation ; return false ; }
Source:
public void updateCompilerState ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToRecompile ) { for ( java.lang.String javaFileToRecompile : filesToRecompile ) { javaFileToTypeNamePath.remove ( javaFileToRecompile ) ; codeFileToUsedFiles.remove ( javaFileToRecompile ) ; structFileToUsedFiles.remove ( javaFileToRecompile ) ; cstFileToUsedFiles.remove ( javaFileToRecompile ) ; } }

Target:
public void updateCompilerState ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToRecompile , @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToDelete ) { for ( java.lang.String javaFileToDelete : filesToDelete ) { javaFileToTypeNamePath.remove ( javaFileToDelete ) ; codeFileToUsedFiles.remove ( javaFileToDelete ) ; structFileToUsedFiles.remove ( javaFileToDelete ) ; cstFileToUsedFiles.remove ( javaFileToDelete ) ; } for ( java.lang.String javaFileToRecompile : filesToRecompile ) { javaFileToTypeNamePath.remove ( javaFileToRecompile ) ; codeFileToUsedFiles.remove ( javaFileToRecompile ) ; structFileToUsedFiles.remove ( javaFileToRecompile ) ; cstFileToUsedFiles.remove ( javaFileToRecompile ) ; } }
Source:
public static double copySign ( double magnitude , double sign ) { return sun.misc.FpUtils.rawCopySign ( magnitude , sign ) ; }

Target:
public static double copySign ( double magnitude , double sign ) { return java.lang.Double.longBitsToDouble ( ( ( ( java.lang.Double.doubleToRawLongBits ( sign ) ) & ( sun.misc.DoubleConsts.SIGN_BIT_MASK ) ) | ( ( java.lang.Double.doubleToRawLongBits ( magnitude ) ) & ( ( sun.misc.DoubleConsts.EXP_BIT_MASK ) | ( sun.misc.DoubleConsts.SIGNIF_BIT_MASK ) ) ) ) ) ; }
Source:
public void test_initWithKey ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.algorithm ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }

Target:
public void test_initWithSecureRandom ( ) throws java.lang.Exception { java.security.SecureRandom sr = new java.security.SecureRandom ( ) ; javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.ALGORITHM_3DES ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , sr ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , sr ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }
Source:
public boolean requestChildRectangleOnScreen ( final android.view.View child , final android.graphics.Rect rect , final boolean immediate ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestChildRectangleOnScreen ( child , rect , immediate ) ; } } ) ; return ret ; } return mAwContents.requestChildRectangleOnScreen ( child , rect , immediate ) ; }

Target:
public void onMeasure ( final int widthMeasureSpec , final int heightMeasureSpec ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; } } ) ; return ; } mAwContents.onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; }
Source:
public void computeScroll ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { computeScroll ( ) ; } } ) ; return ; } mAwContents.computeScroll ( ) ; }

Target:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.onVisibilityChanged ( changedView , visibility ) ; }
Source:
boolean equalNumbers ( @ android.support.annotation.Nullable java.lang.String number1 , @ android.support.annotation.Nullable java.lang.String number2 ) { if ( ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number1 ) ) || ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number2 ) ) ) { return compareSipAddresses ( number1 , number2 ) ; } else { return android.telephony.PhoneNumberUtils.compare ( number1 , number2 ) ; } }

Target:
boolean equalNumbers ( @ android.support.annotation.Nullable java.lang.String number1 , @ android.support.annotation.Nullable java.lang.String number2 ) { if ( ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number1 ) ) || ( com.android.dialer.phonenumberutil.PhoneNumberHelper.isUriNumber ( number2 ) ) ) { return compareSipAddresses ( number1 , number2 ) ; } if ( ( com.android.dialer.phonenumberutil.PhoneNumberHelper.numberHasSpecialChars ( number1 ) ) || ( com.android.dialer.phonenumberutil.PhoneNumberHelper.numberHasSpecialChars ( number2 ) ) ) { return com.android.dialer.phonenumberutil.PhoneNumberHelper.sameRawNumbers ( number1 , number2 ) ; } return android.telephony.PhoneNumberUtils.compare ( number1 , number2 ) ; }
Source:
private void revertToNitzTimeZone ( ) { java.lang.String tmpLog = "Reverting to NITZ TimeZone: tz=" + ( mSavedTimeZoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , tmpLog ) ; } mTimeZoneLog.log ( tmpLog ) ; if ( ( mSavedTimeZoneId ) != null ) { setAndBroadcastNetworkSetTimeZone ( mSavedTimeZoneId ) ; } else { java.lang.String iso = mDeviceState.getNetworkCountryIsoForPhone ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( iso ) ) ) { updateTimeZoneByNetworkCountryCode ( iso ) ; } } }

Target:
private void handleAutoTimeZoneEnabled ( ) { java.lang.String tmpLog = "Reverting to NITZ TimeZone: tz=" + ( mSavedTimeZoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , tmpLog ) ; } mTimeZoneLog.log ( tmpLog ) ; if ( ( mSavedTimeZoneId ) != null ) { setAndBroadcastNetworkSetTimeZone ( mSavedTimeZoneId ) ; } else { java.lang.String iso = mDeviceState.getNetworkCountryIsoForPhone ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( iso ) ) ) { updateTimeZoneByNetworkCountryCode ( iso ) ; } } }
Source:
public com.google.common.collect.ImmutableList < java.lang.String > defaultWithLambda ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 3 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.ConcreteOverridesDefaultWithLambda.TWO : java.lang.String.valueOf ( i ) ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }

Target:
public java.util.List < java.lang.String > defaultWithLambda ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 3 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.ConcreteOverridesDefaultWithLambda.TWO : java.lang.String.valueOf ( i ) ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
private boolean shouldRunEntireModule ( com.android.compatibility.common.util.IModuleResult module ) { if ( ( ! ( mResultTypes.contains ( com.android.compatibility.common.tradefed.result.SubPlanHelper.NOT_EXECUTED ) ) ) && ( ! ( module.isDone ( ) ) ) ) { return false ; } java.util.Set < com.android.compatibility.common.util.TestStatus > statusesToRun = getStatusesToRun ( ) ; for ( com.android.compatibility.common.util.TestStatus status : com.android.compatibility.common.util.TestStatus.values ( ) ) { if ( ! ( statusesToRun.contains ( status ) ) ) { if ( ( module.countResults ( status ) ) > 0 ) { return false ; } } } return true ; }

Target:
private boolean shouldRunEntireModule ( com.android.compatibility.common.util.IModuleResult module ) { if ( ( ! ( mResultTypes.contains ( com.android.compatibility.common.tradefed.result.SubPlanCreator.NOT_EXECUTED ) ) ) && ( ! ( module.isDone ( ) ) ) ) { return false ; } java.util.Set < com.android.compatibility.common.util.TestStatus > statusesToRun = getStatusesToRun ( ) ; for ( com.android.compatibility.common.util.TestStatus status : com.android.compatibility.common.util.TestStatus.values ( ) ) { if ( ! ( statusesToRun.contains ( status ) ) ) { if ( ( module.countResults ( status ) ) > 0 ) { return false ; } } } return true ; }
Source:
private void msgDeviceBrowseConnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseConnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse connected over different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = true ; }

Target:
private void msgDeviceBrowseConnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgDeviceBrowseConnect device " + device ) ) ; if ( ! ( device.equals ( mA2dpDevice ) ) ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( ( ( "Browse connected over different device a2dp " + ( mA2dpDevice ) ) + " browse " ) + device ) ) ; return ; } mBrowseConnected = true ; notifyChildrenChanged ( "__ROOT__" ) ; }
Source:
public void testLargeEnumSetSerialization ( ) { assertTrue ( ( ( libcore.java.util.EnumSetTest.Element.values ( ) . length ) > 64 ) ) ; java.lang.String s = "aced0005737200246a6176612e7574696c2e456e756d5365742453657269616c" + ( ( ( ( ( ( ( "697a6174696f6e50726f78790507d3db7654cad10200024c000b656c656d656e7" + "4547970657400114c6a6176612f6c616e672f436c6173733b5b0008656c656d65" ) + "6e74737400115b4c6a6176612f6c616e672f456e756d3b7870767200256c69626" ) + "36f72652e6a6176612e7574696c2e456e756d5365745465737424456c656d656e" ) + "7400000000000000001200007872000e6a6176612e6c616e672e456e756d00000" ) + "000000000001200007870757200115b4c6a6176612e6c616e672e456e756d3ba8" ) + "8dea2d33d22f980200007870000000047e71007e0004740001487e71007e00047" ) + "4000254427e71007e000474000244597e71007e000474000355554f" ) ; java.util.EnumSet < libcore.java.util.EnumSetTest.Element > set = java.util.EnumSet.of ( libcore.java.util.EnumSetTest.Element.H , libcore.java.util.EnumSetTest.Element.TB , libcore.java.util.EnumSetTest.Element.DY , libcore.java.util.EnumSetTest.Element.UUO ) ; new libcore.util.SerializationTester < java.util.EnumSet < libcore.java.util.EnumSetTest.Element > > ( set , s ) . test ( ) ; }

Target:
public void testLargeEnumSetSerialization ( ) { assertTrue ( ( ( libcore.java.util.EnumSetTest.Element.values ( ) . length ) > 64 ) ) ; java.lang.String s = "aced0005737200246a6176612e7574696c2e456e756d5365742453657269616c" + ( ( ( ( ( ( ( "697a6174696f6e50726f78790507d3db7654cad10200024c000b656c656d656e7" + "4547970657400114c6a6176612f6c616e672f436c6173733b5b0008656c656d65" ) + "6e74737400115b4c6a6176612f6c616e672f456e756d3b7870767200256c69626" ) + "36f72652e6a6176612e7574696c2e456e756d5365745465737424456c656d656e" ) + "7400000000000000001200007872000e6a6176612e6c616e672e456e756d00000" ) + "000000000001200007870757200115b4c6a6176612e6c616e672e456e756d3ba8" ) + "8dea2d33d22f980200007870000000047e71007e0004740001487e71007e00047" ) + "4000254427e71007e000474000244597e71007e000474000355554f" ) ; java.util.EnumSet < libcore.java.util.EnumSetTest.Element > set = java.util.EnumSet.of ( libcore.java.util.EnumSetTest.Element.H , libcore.java.util.EnumSetTest.Element.TB , libcore.java.util.EnumSetTest.Element.DY , libcore.java.util.EnumSetTest.Element.UUO ) ; new libcore.libcore.util.SerializationTester < java.util.EnumSet < libcore.java.util.EnumSetTest.Element > > ( set , s ) . test ( ) ; }
Source:
void sendCallEvent ( com.android.server.telecom.Call call , java.lang.String event , android.os.Bundle extras ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "sendCallEvent" ) ) ) { try { logOutgoing ( "sendCallEvent %s %s" , callId , event ) ; mServiceInterface.sendCallEvent ( callId , event , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void sendCallEvent ( com.android.server.telecom.Call call , java.lang.String event , android.os.Bundle extras ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "sendCallEvent" ) ) ) { try { logOutgoing ( "sendCallEvent %s %s" , callId , event ) ; mServiceInterface.sendCallEvent ( callId , event , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }