auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getMsisdnForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getMsisdn" ) ) ) { return null ; } return phone.getMsisdn ( ) ; } else { loge ( ( "getMsisdn phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public java.lang.String getMsisdnForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , subId , callingPackage , "getMsisdn" ) ) ) { return null ; } return phone.getMsisdn ( ) ; } else { loge ( ( "getMsisdn phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
private static java.lang.String makeTemporaryFile ( byte [ ] content ) throws java.lang.Exception { java.io.File f = java.io.File.createTempFile ( "temp-" , ".txt" ) ; java.io.FileOutputStream fos = new java.io.FileOutputStream ( f ) ; fos.write ( content ) ; fos.close ( ) ; return f.getPath ( ) ; }

Target:
private static java.io.File makeTemporaryFile ( byte [ ] content ) throws java.lang.Exception { java.io.File f = java.io.File.createTempFile ( "temp-" , ".txt" ) ; java.io.FileOutputStream fos = new java.io.FileOutputStream ( f ) ; fos.write ( content ) ; fos.close ( ) ; return f ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( ! ( isInterface ) ) && ( ! ( interfaces.isEmpty ( ) ) ) ) { recordIfInstanceMethod ( access , name , desc ) ; } return super . visitMethod ( access , name , desc , signature , exceptions ) ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ! ( isInterface ) ) { recordIfInstanceMethod ( access , name , desc ) ; } return super . visitMethod ( access , name , desc , signature , exceptions ) ; }
Source:
public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord ( java.util.UUID uuid ) throws java.io.IOException { if ( ( isBluetoothEnabled ( ) ) == false ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , false , false , this , ( - 1 ) , new android.os.ParcelUuid ( uuid ) ) ; }

Target:
public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord ( java.util.UUID uuid ) throws java.io.IOException { if ( ! ( isBluetoothEnabled ( ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , false , false , this , ( - 1 ) , new android.os.ParcelUuid ( uuid ) ) ; }
Source:
public void ioReceive ( ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "ioReceive" ) ; if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSIllegalArgumentException ( "Can only receive if IO_INPUT usage specified." ) ; } mRS.validate ( ) ; mRS.nAllocationIoReceive ( getID ( mRS ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void ioReceive ( ) { try { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "ioReceive" ) ; if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSIllegalArgumentException ( "Can only receive if IO_INPUT usage specified." ) ; } mRS.validate ( ) ; mRS.nAllocationIoReceive ( getID ( mRS ) ) ; } finally { android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; } }
Source:
private void deleteSelected ( ) { if ( mCursor.moveToPosition ( getSelectedItemPosition ( ) ) ) { java.lang.String name = mCursor.getString ( com.android.phone.settings.fdn.NAME_COLUMN ) ; java.lang.String number = mCursor.getString ( com.android.phone.settings.fdn.NUMBER_COLUMN ) ; android.content.Intent intent = mSubscriptionInfoHelper.getIntent ( com.android.phone.settings.fdn.DeleteFdnContactScreen.class ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NAME , name ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NUMBER , number ) ; startActivity ( intent ) ; } }

Target:
private void deleteSelected ( ) { deleteSelected ( getSelectedItemPosition ( ) ) ; }
Source:
public void test_wrongTypeRegisteredClass ( ) throws java.lang.Exception { try { java.util.ServiceLoader.load ( libcore.java.util.ServiceLoaderTestInterfaceWrongType.class ) . iterator ( ) . next ( ) ; fail ( ) ; } catch ( java.util.ServiceConfigurationError expected ) { assertTrue ( ( ( expected.getCause ( ) ) instanceof java.lang.ClassCastException ) ) ; } }

Target:
public void test_wrongTypeRegisteredClass ( ) throws java.lang.Exception { try { java.util.ServiceLoader.load ( libcore.java.util.ServiceLoaderTestInterfaceWrongType.class ) . iterator ( ) . next ( ) ; fail ( ) ; } catch ( java.util.ServiceConfigurationError expected ) { assertTrue ( expected.toString ( ) , ( ( expected.getCause ( ) ) instanceof java.lang.ClassCastException ) ) ; } }
Source:
public boolean disconnectMap ( android.bluetooth.BluetoothDevice device ) { boolean result = false ; if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnectMap" ) ; if ( getRemoteDevice ( ) . equals ( device ) ) { switch ( mState ) { case android.bluetooth.BluetoothMap.STATE_CONNECTED : stopObexServerSessions ( ( - 1 ) ) ; result = true ; break ; default : break ; } } return result ; }

Target:
public boolean disconnectMap ( android.bluetooth.BluetoothDevice device ) { boolean result = false ; if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "disconnectMap" ) ; if ( ( ( getRemoteDevice ( ) ) != null ) && ( getRemoteDevice ( ) . equals ( device ) ) ) { switch ( mState ) { case android.bluetooth.BluetoothMap.STATE_CONNECTED : stopObexServerSessions ( ( - 1 ) ) ; result = true ; break ; default : break ; } } return result ; }
Source:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getWlanWakeReasonCount ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "getWlanWakeReasonCount " + ( com.android.server.wifi.WifiNative.sWlan0Index ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWlanWakeReasonCountNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "getWlanWakeReasonCount " + ( com.android.server.wifi.WifiNative.sWlan0Index ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWlanWakeReasonCountNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }
Source:
public void run ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Add two notifications" ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Cancel two notifications" ) ; mNM.cancel ( 1 ) ; mNM.cancel ( 2 ) ; } }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; }
Source:
public java.lang.Object clone ( ) { try { java.util.ResourceBundle.CacheKey clone = ( ( java.util.ResourceBundle.CacheKey ) ( super . clone ( ) ) ) ; if ( ( loaderRef ) != null ) { clone.loaderRef = new java.util.ResourceBundle.LoaderReference ( loaderRef.get ( ) , java.util.ResourceBundle.referenceQueue , clone ) ; } clone.cause = null ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.util.ResourceBundle.CacheKey clone = ( ( java.util.ResourceBundle.CacheKey ) ( super . clone ( ) ) ) ; if ( ( loaderRef ) != null ) { clone.loaderRef = new java.util.ResourceBundle.LoaderReference ( loaderRef.get ( ) , java.util.ResourceBundle.referenceQueue , clone ) ; } clone.cause = null ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
public void insertElement ( int at , @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlockElement element ) { int size = elements.size ( ) ; if ( at < 0 ) { at = size + at ; } assert ( at >= 0 ) && ( at <= size ) ; if ( at == size ) { appendElement ( element ) ; } else { elements.add ( at , getLastElement ( ) ) ; element.updateParents ( this ) ; } }

Target:
public void insertElement ( int at , @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlockElement element ) { int size = elements.size ( ) ; if ( at < 0 ) { at = size + at ; } assert ( at >= 0 ) && ( at <= size ) ; if ( at == size ) { appendElement ( element ) ; } else { elements.add ( at , element ) ; element.updateParents ( this ) ; } }
Source:
public static com.android.dx.rop.type.Prototype internInts ( com.android.dx.rop.type.Type returnType , int count ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; sb.append ( '(' ) ; for ( int i = 0 ; i < count ; i ++ ) { sb.append ( 'I' ) ; } sb.append ( ')' ) ; sb.append ( returnType.getDescriptor ( ) ) ; return com.android.dx.rop.type.Prototype.intern ( sb.toString ( ) ) ; }

Target:
public static com.android.dx.rop.type.Prototype internInts ( com.android.dx.rop.type.Type returnType , int count ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; sb.append ( '(' ) ; for ( int i = 0 ; i < count ; i ++ ) { sb.append ( 'I' ) ; } sb.append ( ')' ) ; sb.append ( returnType.getDescriptor ( ) ) ; return com.android.dx.rop.type.Prototype.intern ( sb.toString ( ) ) ; }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( "getConnectionState(): device=" + device ) ) ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getConnectionState ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return STATE_DISCONNECTED ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getConnectionState ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return STATE_DISCONNECTED ; }
Source:
public void warning ( java.lang.String tag , java.lang.String message , java.lang.Object data ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.WARNING , "%1$s: %2$s" , mName , description ) ; if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.TAG_RESOURCES_FORMAT.equals ( tag ) ) { if ( ( description.equals ( "You must supply a layout_width attribute." ) ) || ( description.equals ( "You must supply a layout_height attribute." ) ) ) { tag = com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger.TAG_MISSING_DIMENSION ; } } addWarning ( tag , description ) ; }

Target:
public void warning ( java.lang.String tag , java.lang.String message , java.lang.Object data ) { java.lang.String description = describe ( message ) ; boolean log = true ; if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.TAG_RESOURCES_FORMAT.equals ( tag ) ) { if ( ( description.equals ( "You must supply a layout_width attribute." ) ) || ( description.equals ( "You must supply a layout_height attribute." ) ) ) { tag = com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger.TAG_MISSING_DIMENSION ; log = false ; } } if ( log ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.WARNING , "%1$s: %2$s" , mName , description ) ; } addWarning ( tag , description ) ; }
Source:
public static java.lang.String getFragmentLayout ( org.w3c.dom.Node node ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata metadata = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.get ( ) ; java.lang.String layout = metadata.getProperty ( ( ( org.eclipse.jface.text.IDocument ) ( null ) ) , node , LayoutMetadata.KEY_FRAGMENT_LAYOUT ) ; if ( layout != null ) { return layout ; } return null ; }

Target:
public static java.lang.String getFragmentLayout ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { java.lang.String layout = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.getProperty ( node , LayoutMetadata.KEY_FRAGMENT_LAYOUT ) ; if ( layout != null ) { return layout ; } return null ; }
Source:
public java.util.List < N > getSuccessors ( ) { java.util.List < N > filteredSuccessors = new java.util.ArrayList < N > ( ) ; for ( N succ : successors ) { if ( succ != null ) { filteredSuccessors.add ( succ ) ; } } return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableList ( filteredSuccessors ) ; }

Target:
public abstract java.util.List < N > getSuccessors ( ) ;
Source:
static boolean installOnSd ( int flags ) { if ( ( ( flags & ( android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ) ) != 0 ) || ( ( flags & ( android.content.pm.PackageManager.INSTALL_INTERNAL ) ) != 0 ) ) { return false ; } if ( ( flags & ( android.content.pm.PackageManager.INSTALL_EXTERNAL ) ) != 0 ) { return true ; } return false ; }

Target:
private static boolean installOnSd ( int flags ) { if ( ( flags & ( android.content.pm.PackageManager.INSTALL_INTERNAL ) ) != 0 ) { return false ; } if ( ( flags & ( android.content.pm.PackageManager.INSTALL_EXTERNAL ) ) != 0 ) { return true ; } return false ; }
Source:
public void testWeakCompareAndSet ( ) { java.util.concurrent.atomic.AtomicBoolean ai = new java.util.concurrent.atomic.AtomicBoolean ( true ) ; while ( ! ( ai.weakCompareAndSet ( true , false ) ) ) ; assertFalse ( ai.get ( ) ) ; while ( ! ( ai.weakCompareAndSet ( false , false ) ) ) ; assertFalse ( ai.get ( ) ) ; while ( ! ( ai.weakCompareAndSet ( false , true ) ) ) ; assertTrue ( ai.get ( ) ) ; }

Target:
public void testWeakCompareAndSet ( ) { java.util.concurrent.atomic.AtomicBoolean ai = new java.util.concurrent.atomic.AtomicBoolean ( true ) ; do { } while ( ! ( ai.weakCompareAndSet ( true , false ) ) ) ; assertFalse ( ai.get ( ) ) ; do { } while ( ! ( ai.weakCompareAndSet ( false , false ) ) ) ; assertFalse ( ai.get ( ) ) ; do { } while ( ! ( ai.weakCompareAndSet ( false , true ) ) ) ; assertTrue ( ai.get ( ) ) ; }
Source:
public void logVerbose ( final java.lang.String log ) { if ( acceptLog ( log , false ) ) { syncExec ( mLogDescription , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { appendLine ( com.android.sdkuilib.internal.repository.sdkman2.LogWindow.TextStyle.DEFAULT , ( " " + log ) ) ; } } ) ; if ( ( mSecondaryLog ) != null ) { mSecondaryLog.printf ( " %1$s" , log ) ; } } }

Target:
public void logVerbose ( final java.lang.String log ) { if ( acceptLog ( log , false ) ) { syncExec ( mLogDescription , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { appendLine ( com.android.sdkuilib.internal.repository.sdkman2.LogWindow.TextStyle.DEFAULT , ( " " + log ) ) ; } } ) ; if ( ( mSecondaryLog ) != null ) { mSecondaryLog.info ( " %1$s" , log ) ; } } }
Source:
public boolean requestDrawGL ( android.view.HardwareCanvas canvas , android.view.ViewRootImpl viewRootImpl ) { if ( ( mDestroyRunnable.mNativeDrawGLFunctor ) == 0 ) { throw new java.lang.RuntimeException ( "requested DrawGL on already destroyed DrawGLFunctor" ) ; } mDestroyRunnable.mViewRootImpl = viewRootImpl ; if ( canvas != null ) { int ret = canvas.callDrawGLFunction ( mDestroyRunnable.nativeDrawGLFunctor ( ) ) ; if ( ret != ( android.view.DisplayList.STATUS_DONE ) ) { android.util.Log.e ( com.android.webview.chromium.DrawGLFunctor.TAG , ( "callDrawGLFunction error: " + ret ) ) ; return false ; } } else { viewRootImpl.attachFunctor ( mDestroyRunnable.nativeDrawGLFunctor ( ) ) ; } return true ; }

Target:
public boolean requestDrawGL ( android.view.HardwareCanvas canvas , android.view.ViewRootImpl viewRootImpl ) { if ( ( mDestroyRunnable.mNativeDrawGLFunctor ) == 0 ) { throw new java.lang.RuntimeException ( "requested DrawGL on already destroyed DrawGLFunctor" ) ; } mDestroyRunnable.mViewRootImpl = viewRootImpl ; if ( canvas != null ) { int ret = canvas.callDrawGLFunction ( mDestroyRunnable.mNativeDrawGLFunctor ) ; if ( ret != ( android.view.DisplayList.STATUS_DONE ) ) { android.util.Log.e ( com.android.webview.chromium.DrawGLFunctor.TAG , ( "callDrawGLFunction error: " + ret ) ) ; return false ; } } else { viewRootImpl.attachFunctor ( mDestroyRunnable.mNativeDrawGLFunctor ) ; } return true ; }
Source:
static boolean native_clipPath ( int nativeCanvas , int nativePath , int regionOp ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return true ; } android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.getDelegate ( nativePath ) ; if ( pathDelegate == null ) { return true ; } return canvasDelegate.mSnapshot.clip ( pathDelegate.getJavaShape ( ) , regionOp ) ; }

Target:
static boolean native_clipPath ( long nativeCanvas , long nativePath , int regionOp ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return true ; } android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.getDelegate ( nativePath ) ; if ( pathDelegate == null ) { return true ; } return canvasDelegate.mSnapshot.clip ( pathDelegate.getJavaShape ( ) , regionOp ) ; }
Source:
public java.lang.StringBuffer format ( long value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; if ( ( roundingMode ) == ( java.math.RoundingMode.UNNECESSARY ) ) { checkRoundingUnnecessary ( value ) ; } buffer.append ( ndf.formatLong ( value , position ) ) ; return buffer ; }

Target:
public java.lang.StringBuffer format ( long value , java.lang.StringBuffer buffer , java.text.FieldPosition position ) { checkBufferAndFieldPosition ( buffer , position ) ; buffer.append ( ndf.formatLong ( value , position ) ) ; return buffer ; }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { if ( ( mType ) != ( Type.OBJECT ) ) { return ; } if ( visitor.visitEnter ( this ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . accept ( visitor ) ; } } visitor.visitLeave ( this ) ; } }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { if ( visitor.visitEnter ( this ) ) { if ( ( mType ) == ( Type.OBJECT ) ) { for ( java.lang.Object value : getValues ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . accept ( visitor ) ; } } } visitor.visitLeave ( this ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( ! ( Main.triggerArrayOOM ( Main.holder ) ) ) { java.lang.System.out.println ( "NEW_ARRAY did not throw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not throw OOME" ) ; } java.lang.System.runFinalization ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( ! ( Main.triggerArrayOOM ( Main.holder ) ) ) { Main.holder = null ; java.lang.System.out.println ( "NEW_ARRAY did not throw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { Main.holder = null ; java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not throw OOME" ) ; } Main.holder = null ; java.lang.System.runFinalization ( ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; synchronized ( this ) { if ( ( ( mState ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) && ( ( com.android.bluetooth.map.BluetoothMapService.sRemoteDevice ) != null ) ) { devices.add ( com.android.bluetooth.map.BluetoothMapService.sRemoteDevice ) ; } } return devices ; }

Target:
private java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < > ( ) ; synchronized ( this ) { if ( ( ( mState ) == ( android.bluetooth.BluetoothMap.STATE_CONNECTED ) ) && ( ( com.android.bluetooth.map.BluetoothMapService.sRemoteDevice ) != null ) ) { devices.add ( com.android.bluetooth.map.BluetoothMapService.sRemoteDevice ) ; } } return devices ; }
Source:
public synchronized java.lang.Object clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.Vector < E > v = ( ( java.util.Vector < E > ) ( super . clone ( ) ) ) ; v.elementData = java.util.Arrays.copyOf ( elementData , elementCount ) ; v.modCount = 0 ; return v ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public synchronized java.lang.Object clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.Vector < E > v = ( ( java.util.Vector < E > ) ( super . clone ( ) ) ) ; v.elementData = java.util.Arrays.copyOf ( elementData , elementCount ) ; v.modCount = 0 ; return v ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
private void resetFolderPath ( boolean validate ) { com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.TypeInfo type = getSelectedType ( ) ; if ( type != null ) { mConfigSelector.getConfiguration ( mTempConfig ) ; java.lang.StringBuffer sb = new java.lang.StringBuffer ( com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.RES_FOLDER_ABS ) ; sb.append ( mTempConfig.getFolderName ( type.getResFolderType ( ) , mProject ) ) ; mInternalWsFolderPathUpdate = true ; mWsFolderPathTextField.setText ( sb.toString ( ) ) ; mInternalWsFolderPathUpdate = false ; if ( validate ) { validatePage ( ) ; } } }

Target:
private void resetFolderPath ( boolean validate ) { com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.TypeInfo type = getSelectedType ( ) ; if ( type != null ) { mConfigSelector.getConfiguration ( mTempConfig ) ; java.lang.StringBuffer sb = new java.lang.StringBuffer ( com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.RES_FOLDER_ABS ) ; sb.append ( mTempConfig.getFolderName ( type.getResFolderType ( ) ) ) ; mInternalWsFolderPathUpdate = true ; mWsFolderPathTextField.setText ( sb.toString ( ) ) ; mInternalWsFolderPathUpdate = false ; if ( validate ) { validatePage ( ) ; } } }
Source:
public void watchdogBitePnoGoodIncrementsMetrics ( ) { when ( mWifiNS.selectNetwork ( anyObject ( ) , anyBoolean ( ) , anyBoolean ( ) , anyBoolean ( ) ) ) . thenReturn ( null ) ; mWifiConnectivityManager.handleScreenStateChanged ( false ) ; mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_DISCONNECTED ) ; mAlarmManager.dispatch ( WifiConnectivityManager.WATCHDOG_TIMER_TAG ) ; mLooper.dispatchAll ( ) ; verify ( mWifiMetrics ) . incrementNumConnectivityWatchdogPnoGood ( ) ; verify ( mWifiMetrics , never ( ) ) . incrementNumConnectivityWatchdogPnoBad ( ) ; }

Target:
public void watchdogBitePnoGoodIncrementsMetrics ( ) { when ( mWifiNS.selectNetwork ( anyObject ( ) , anyObject ( ) , anyBoolean ( ) , anyBoolean ( ) , anyBoolean ( ) ) ) . thenReturn ( null ) ; mWifiConnectivityManager.handleScreenStateChanged ( false ) ; mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_DISCONNECTED ) ; mAlarmManager.dispatch ( WifiConnectivityManager.WATCHDOG_TIMER_TAG ) ; mLooper.dispatchAll ( ) ; verify ( mWifiMetrics ) . incrementNumConnectivityWatchdogPnoGood ( ) ; verify ( mWifiMetrics , never ( ) ) . incrementNumConnectivityWatchdogPnoBad ( ) ; }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = heap.getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
public void testNewConstructors_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr1 = new java.security.SecureRandom ( ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr1.getProvider ( ) . getClass ( ) ) ; test_SecureRandom ( sr1 ) ; java.security.SecureRandom sr2 = new java.security.SecureRandom ( libcore.java.security.SecureRandomTest.STATIC_SEED_BYTES ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr2.getProvider ( ) . getClass ( ) ) ; test_SecureRandom ( sr2 ) ; }

Target:
public void testNewConstructors_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr1 = new java.security.SecureRandom ( ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr1.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr1 ) ; java.security.SecureRandom sr2 = new java.security.SecureRandom ( libcore.java.security.SecureRandomTest.STATIC_SEED_BYTES ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr2.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr2 ) ; }
Source:
private void setPosition ( java.nio.ByteBuffer out ) { if ( out.hasArray ( ) ) { out.position ( ( ( ( out.position ( ) ) + ( data [ java.nio.charset.CharsetEncoderICU.OUTPUT_OFFSET ] ) ) - ( out.arrayOffset ( ) ) ) ) ; } else { out.put ( output , 0 , data [ java.nio.charset.CharsetEncoderICU.OUTPUT_OFFSET ] ) ; } output = null ; }

Target:
private void setPosition ( java.nio.ByteBuffer out ) { if ( out.hasArray ( ) ) { out.position ( ( ( data [ java.nio.charset.CharsetEncoderICU.OUTPUT_OFFSET ] ) - ( out.arrayOffset ( ) ) ) ) ; } else { out.put ( output , 0 , data [ java.nio.charset.CharsetEncoderICU.OUTPUT_OFFSET ] ) ; } output = null ; }
Source:
protected static org.conscrypt.OpenSSLKey wrapPlatformKey ( java.security.interfaces.RSAPrivateKey rsaPrivateKey ) throws java.security.InvalidKeyException { org.conscrypt.OpenSSLKey wrapper = org.conscrypt.Platform.wrapRsaKey ( rsaPrivateKey ) ; if ( wrapper != null ) { return wrapper ; } return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.getRSAPrivateKeyWrapper ( rsaPrivateKey , rsaPrivateKey.getModulus ( ) . toByteArray ( ) ) ) ; }

Target:
protected static org.conscrypt.OpenSSLKey wrapPlatformKey ( java.security.interfaces.RSAPrivateKey rsaPrivateKey ) throws java.security.InvalidKeyException { org.conscrypt.OpenSSLKey wrapper = org.conscrypt.Platform.wrapRsaKey ( rsaPrivateKey ) ; if ( wrapper != null ) { return wrapper ; } return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.getRSAPrivateKeyWrapper ( rsaPrivateKey , rsaPrivateKey.getModulus ( ) . toByteArray ( ) ) , true ) ; }
Source:
private void writeStaticFieldRef ( @ javax.annotation.Nonnull org.objectweb.asm.tree.FieldInsnNode fldInsn ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeKeyword ( Token.FIELD_REF ) ; writer.writeOpen ( ) ; writer.writeId ( fldInsn.name ) ; writer.writeId ( fldInsn.desc ) ; writer.writeId ( org.objectweb.asm.Type.getObjectType ( fldInsn.owner ) . getDescriptor ( ) ) ; writer.writeFieldRefKindEnum ( com.android.jill.frontend.java.MethodBodyWriter.FieldRefKind.STATIC ) ; writer.writeNull ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeStaticFieldRef ( @ javax.annotation.Nonnull org.objectweb.asm.tree.FieldInsnNode fldInsn ) throws java.io.IOException { writeDebugBegin ( currentClass , currentLine ) ; writer.writeKeyword ( Token.FIELD_REF ) ; writer.writeOpen ( ) ; writer.writeId ( fldInsn.name ) ; writer.writeId ( fldInsn.desc ) ; writer.writeId ( org.objectweb.asm.Type.getObjectType ( fldInsn.owner ) . getDescriptor ( ) ) ; writer.writeFieldRefKindEnum ( com.android.jill.frontend.java.MethodBodyWriter.FieldRefKind.STATIC ) ; writer.writeNull ( ) ; writeDebugEnd ( currentClass , currentLine ) ; writer.writeClose ( ) ; }
Source:
public void testDefaultMethod018 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEFAULTMETHOD018 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void testDefaultMethod018 ( ) throws java.lang.Exception { run ( DEFAULTMETHOD018 ) ; }
Source:
public com.android.server.wifi.wificond.SingleScanSettings createFromParcel ( android.os.Parcel in ) { com.android.server.wifi.wificond.SingleScanSettings result = new com.android.server.wifi.wificond.SingleScanSettings ( ) ; result.isFullScan = ( ( in.readInt ( ) ) != 0 ) ? true : false ; result.channelSettings = new ArrayList < com.android.server.wifi.wificond.ChannelSettings > ( ) ; in.readTypedList ( result.channelSettings , ChannelSettings.CREATOR ) ; result.hiddenNetworks = new ArrayList < com.android.server.wifi.wificond.HiddenNetwork > ( ) ; in.readTypedList ( result.hiddenNetworks , HiddenNetwork.CREATOR ) ; if ( ( in.dataAvail ( ) ) != 0 ) { android.util.Log.e ( com.android.server.wifi.wificond.SingleScanSettings.TAG , "Found trailing data after parcel parsing." ) ; } return result ; }

Target:
public com.android.server.wifi.wificond.SingleScanSettings createFromParcel ( android.os.Parcel in ) { com.android.server.wifi.wificond.SingleScanSettings result = new com.android.server.wifi.wificond.SingleScanSettings ( ) ; result.channelSettings = new ArrayList < com.android.server.wifi.wificond.ChannelSettings > ( ) ; in.readTypedList ( result.channelSettings , ChannelSettings.CREATOR ) ; result.hiddenNetworks = new ArrayList < com.android.server.wifi.wificond.HiddenNetwork > ( ) ; in.readTypedList ( result.hiddenNetworks , HiddenNetwork.CREATOR ) ; if ( ( in.dataAvail ( ) ) != 0 ) { android.util.Log.e ( com.android.server.wifi.wificond.SingleScanSettings.TAG , "Found trailing data after parcel parsing." ) ; } return result ; }
Source:
public void testAddAll4 ( ) { try { jsr166.AbstractQueueTest.Fail q = new jsr166.AbstractQueueTest.Fail ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }

Target:
public void testAddAll4 ( ) { jsr166.AbstractQueueTest.Fail q = new jsr166.AbstractQueueTest.Fail ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }
Source:
private static void generateTestManifest ( java.lang.String testPackageName , java.lang.String minSdkVersion , int targetSdkVersion , java.lang.String testedPackageName , java.lang.String instrumentationRunner , java.lang.Boolean handleProfiling , java.lang.Boolean functionalTest , java.lang.String outManifestLocation ) { com.android.builder.internal.TestManifestGenerator generator = new com.android.builder.internal.TestManifestGenerator ( outManifestLocation , testPackageName , minSdkVersion , targetSdkVersion , testedPackageName , instrumentationRunner , handleProfiling , functionalTest ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private static void generateTestManifest ( @ com.android.annotations.NonNull java.lang.String testPackageName , @ com.android.annotations.Nullable java.lang.String minSdkVersion , @ com.android.annotations.Nullable java.lang.String targetSdkVersion , @ com.android.annotations.NonNull java.lang.String testedPackageName , @ com.android.annotations.NonNull java.lang.String instrumentationRunner , @ com.android.annotations.NonNull java.lang.Boolean handleProfiling , @ com.android.annotations.NonNull java.lang.Boolean functionalTest , @ com.android.annotations.NonNull java.io.File outManifestLocation ) { com.android.builder.internal.TestManifestGenerator generator = new com.android.builder.internal.TestManifestGenerator ( outManifestLocation , testPackageName , minSdkVersion , targetSdkVersion , testedPackageName , instrumentationRunner , handleProfiling , functionalTest ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public int getSupportedFeatureSet ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getSupportedFeatureSet ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "Failing getSupportedFeatureset because HAL isn't started" ) ; return 0 ; } } } }

Target:
public int getSupportedFeatureSet ( ) { return mWifiVendorHal.getSupportedFeatureSet ( ) ; }
Source:
private static boolean willWorkForMulticast ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( ( ( ( ( iface.isUp ( ) ) && ( ( ( org.apache.harmony.tests.java.net.MulticastSocketTest.getOsFlags ( iface ) ) & ( android.system.OsConstants.IFF_RUNNING ) ) != 0 ) ) && ( ! ( iface.isLoopback ( ) ) ) ) && ( ! ( iface.isPointToPoint ( ) ) ) ) && ( iface.supportsMulticast ( ) ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }

Target:
private static boolean willWorkForMulticast ( java.net.NetworkInterface iface ) throws java.io.IOException { return ( ( ( ( iface.isUp ( ) ) && ( ! ( iface.isLoopback ( ) ) ) ) && ( ! ( iface.isPointToPoint ( ) ) ) ) && ( iface.supportsMulticast ( ) ) ) && ( iface.getInetAddresses ( ) . hasMoreElements ( ) ) ; }
Source:
static void nativeDraw ( int canvas_instance , android.graphics.Rect loc , int bitmap_instance , int chunk , int paint_instance_or_null , int destDensity , int srcDensity ) { android.graphics.NinePatch_Delegate.draw ( canvas_instance , loc.left , loc.top , loc.width ( ) , loc.height ( ) , bitmap_instance , chunk , paint_instance_or_null , destDensity , srcDensity ) ; }

Target:
static void nativeDraw ( long canvas_instance , android.graphics.Rect loc , long bitmap_instance , long chunk , long paint_instance_or_null , int destDensity , int srcDensity ) { android.graphics.NinePatch_Delegate.draw ( canvas_instance , loc.left , loc.top , loc.width ( ) , loc.height ( ) , bitmap_instance , chunk , paint_instance_or_null , destDensity , srcDensity ) ; }
Source:
public void testProvider_removeProvider_Success ( ) throws java.lang.Exception { libcore.java.security.ProviderTest.MockProvider provider = new libcore.java.security.ProviderTest.MockProvider ( "MockProvider" ) ; assertNotNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; java.security.Security.addProvider ( provider ) ; assertNotNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; java.security.Security.removeProvider ( provider.getName ( ) ) ; assertNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; }

Target:
public void testProvider_removeProvider_Success ( ) throws java.lang.Exception { libcore.java.security.ProviderTest.MockProvider provider = new libcore.java.security.ProviderTest.MockProvider ( "MockProvider" ) ; assertNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; java.security.Security.addProvider ( provider ) ; assertNotNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; java.security.Security.removeProvider ( provider.getName ( ) ) ; assertNull ( java.security.Security.getProvider ( provider.getName ( ) ) ) ; }
Source:
public java.nio.IntBuffer asIntBuffer ( ) { int size = ( this . remaining ( ) ) > > 2 ; int off = position ( ) ; return ( ( java.nio.IntBuffer ) ( new java.nio.ByteBufferAsIntBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public java.nio.IntBuffer asIntBuffer ( ) { int size = ( this . remaining ( ) ) > > 2 ; int off = position ( ) ; return new java.nio.ByteBufferAsIntBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mFocusManagerUT = new com.android.server.telecom.ConnectionServiceFocusManager ( mockCallsManagerRequester , android.os.Looper.getMainLooper ( ) ) ; mNewCall = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.createFakeCall ( mNewConnectionService , CallState.NEW ) ; mActiveCall = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.createFakeCall ( mActiveConnectionService , CallState.ACTIVE ) ; org.mockito.ArgumentCaptor < com.android.server.telecom.CallsManager.CallsManagerListener > captor = org.mockito.ArgumentCaptor.forClass ( CallsManager.CallsManagerListener.class ) ; org.mockito.Mockito.verify ( mockCallsManagerRequester ) . setCallsManagerListener ( captor.capture ( ) ) ; mCallsManagerListener = captor.getValue ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mFocusManagerUT = new com.android.server.telecom.ConnectionServiceFocusManager ( mockCallsManagerRequester ) ; mNewCall = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.createFakeCall ( mNewConnectionService , CallState.NEW ) ; mActiveCall = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.createFakeCall ( mActiveConnectionService , CallState.ACTIVE ) ; org.mockito.ArgumentCaptor < com.android.server.telecom.CallsManager.CallsManagerListener > captor = org.mockito.ArgumentCaptor.forClass ( CallsManager.CallsManagerListener.class ) ; org.mockito.Mockito.verify ( mockCallsManagerRequester ) . setCallsManagerListener ( captor.capture ( ) ) ; mCallsManagerListener = captor.getValue ( ) ; }
Source:
private boolean isPlayingState ( @ android.annotation.Nullable android.media.session.PlaybackState state ) { if ( state == null ) return false ; return ( ( state != null ) && ( ( state.getState ( ) ) == ( android.media.session.PlaybackState.STATE_PLAYING ) ) ) || ( ( state.getState ( ) ) == ( android.media.session.PlaybackState.STATE_BUFFERING ) ) ; }

Target:
private boolean isPlayingState ( @ android.annotation.Nullable android.media.session.PlaybackState state ) { if ( state == null ) { return false ; } return ( state != null ) && ( ( state.getState ( ) ) == ( android.media.session.PlaybackState.STATE_PLAYING ) ) ; }
Source:
public java.lang.String getNationalSignificantNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.StringBuilder nationalNumber = new java.lang.StringBuilder ( ) ; if ( number.isItalianLeadingZero ( ) ) { char [ ] zeros = new char [ number.getNumberOfLeadingZeros ( ) ] ; java.util.Arrays.fill ( zeros , '0' ) ; nationalNumber.append ( new java.lang.String ( zeros ) ) ; } nationalNumber.append ( number.getNationalNumber ( ) ) ; return nationalNumber.toString ( ) ; }

Target:
public java.lang.String getNationalSignificantNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.StringBuilder nationalNumber = new java.lang.StringBuilder ( ) ; if ( ( number.isItalianLeadingZero ( ) ) && ( ( number.getNumberOfLeadingZeros ( ) ) > 0 ) ) { char [ ] zeros = new char [ number.getNumberOfLeadingZeros ( ) ] ; java.util.Arrays.fill ( zeros , '0' ) ; nationalNumber.append ( new java.lang.String ( zeros ) ) ; } nationalNumber.append ( number.getNationalNumber ( ) ) ; return nationalNumber.toString ( ) ; }
Source:
public void visitMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable lombok.ast.AstVisitor visitor , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { if ( ( ( node.astArguments ( ) . size ( ) ) == 1 ) && ( ! ( node.astArguments ( ) . first ( ) . toString ( ) . equals ( "false" ) ) ) ) { context.report ( com.android.tools.lint.checks.SetJavaScriptEnabledDetector.ISSUE , node , context.getLocation ( node ) , ( "Using `setJavaScriptEnabled` can introduce XSS vulnerabilities " + "into you application, review carefully." ) , null ) ; } }

Target:
public void visitMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable lombok.ast.AstVisitor visitor , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { if ( ( ( node.astArguments ( ) . size ( ) ) == 1 ) && ( ! ( node.astArguments ( ) . first ( ) . toString ( ) . equals ( "false" ) ) ) ) { context.report ( com.android.tools.lint.checks.SetJavaScriptEnabledDetector.ISSUE , node , context.getLocation ( node ) , ( "Using `setJavaScriptEnabled` can introduce XSS vulnerabilities " + "into you application, review carefully." ) ) ; } }
Source:
public java.util.Collection < T > eval ( @ javax.annotation.Nonnull com.android.jack.preprocessor.Scope scope , @ javax.annotation.Nonnull com.android.jack.preprocessor.Context context ) { java.util.Collection < T > collection = on.eval ( scope , context ) ; if ( ! ( collection.isEmpty ( ) ) ) { context.addAnnotate ( new com.android.jack.preprocessor.AddAnnotationStep ( toAdd , collection ) ) ; } return collection ; }

Target:
public java.util.Collection < T > eval ( @ javax.annotation.Nonnull com.android.jack.preprocessor.Scope scope , @ javax.annotation.Nonnull com.android.jack.preprocessor.Context context ) { java.util.Collection < T > collection = on.eval ( scope , context ) ; if ( ! ( collection.isEmpty ( ) ) ) { context.addAnnotate ( toAdd , collection ) ; } return collection ; }
Source:
public static final java.text.DateFormatSymbols getInstance ( java.util.Locale locale ) { java.text.DateFormatSymbols dfs = java.text.DateFormatSymbols.getProviderInstance ( locale ) ; if ( dfs != null ) { return dfs ; } return ( ( java.text.DateFormatSymbols ) ( java.text.DateFormatSymbols.getCachedInstance ( locale ) . clone ( ) ) ) ; }

Target:
public static final java.text.DateFormatSymbols getInstance ( java.util.Locale locale ) { return ( ( java.text.DateFormatSymbols ) ( java.text.DateFormatSymbols.getCachedInstance ( locale ) . clone ( ) ) ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , long [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 8 ) ) ; }
Source:
protected void doApply ( java.util.zip.ZipFile patchFile , java.io.File toFile ) throws java.io.IOException { try { com.intellij.updater.Utils.delete ( toFile ) ; } catch ( java.io.IOException e ) { if ( ( com.intellij.updater.Utils.isWindows ( ) ) && ( toFile.exists ( ) ) ) { throw new com.intellij.updater.RetryException ( e ) ; } else { throw e ; } } }

Target:
protected void doApply ( java.util.zip.ZipFile patchFile , java.io.File toFile ) throws java.io.IOException { com.intellij.updater.Utils.delete ( toFile ) ; }
Source:
public void run ( ) { java.io.PrintWriter pw = new java.io.PrintWriter ( new java.io.OutputStreamWriter ( pos ) ) ; pw.print ( "hello, world\r" ) ; pw.flush ( ) ; try { java.lang.Thread.sleep ( ( ( 2 * 60 ) * 1000 ) ) ; } catch ( java.lang.InterruptedException ex ) { fail ( ) ; } }

Target:
public void run ( ) { java.io.PrintWriter pw = new java.io.PrintWriter ( new java.io.OutputStreamWriter ( pos ) ) ; pw.print ( "hello, world\r" ) ; pw.flush ( ) ; }
Source:
public void test_lockJJZ_Long_MAX_VALUE ( ) throws java.lang.Exception { final long POSITION = 0 ; final long SIZE = java.lang.Long.MAX_VALUE ; fileLock = readOnlyFileChannel.lock ( POSITION , SIZE , true ) ; assertTrue ( fileLock.isValid ( ) ) ; assertTrue ( fileLock.isShared ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.channel ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.acquiredBy ( ) ) ; }

Target:
public void test_lockJJZ_Long_MAX_VALUE ( ) throws java.lang.Exception { final long POSITION = 0 ; final long SIZE = java.lang.Long.MAX_VALUE ; fileLock = readOnlyFileChannel.lock ( POSITION , SIZE , true ) ; assertTrue ( fileLock.isValid ( ) ) ; assertTrue ( fileLock.isShared ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.channel ( ) ) ; }
Source:
public void updateIcon ( java.lang.String slot , int index , int viewIndex , com.android.internal.statusbar.StatusBarIcon old , com.android.internal.statusbar.StatusBarIcon icon ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( ( ( "updateIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) + " old=" ) + old ) + " icon=" ) + icon ) ) ; com.android.systemui.statusbar.StatusBarIconView view = ( ( com.android.systemui.statusbar.StatusBarIconView ) ( mStatusIcons.getChildAt ( viewIndex ) ) ) ; view.set ( icon ) ; }

Target:
public void updateIcon ( java.lang.String slot , int index , int viewIndex , com.android.internal.statusbar.StatusBarIcon old , com.android.internal.statusbar.StatusBarIcon icon ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Log.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( ( ( "updateIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) + " old=" ) + old ) + " icon=" ) + icon ) ) ; com.android.systemui.statusbar.StatusBarIconView view = ( ( com.android.systemui.statusbar.StatusBarIconView ) ( mStatusIcons.getChildAt ( viewIndex ) ) ) ; view.set ( icon ) ; }