auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( org.eclipse.jface.action.IAction action ) { java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.internal.lint.RunLintAction.getProjects ( mSelection , true ) ; if ( ! ( projects.isEmpty ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.startLint ( projects , null , false , true ) ; } else { org.eclipse.jface.dialogs.MessageDialog.openWarning ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , "Lint" , "Could not run Lint: Select a project first." ) ; } }

Target:
public void run ( org.eclipse.jface.action.IAction action ) { java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.internal.lint.RunLintAction.getProjects ( mSelection , true ) ; if ( ! ( projects.isEmpty ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.startLint ( projects , null , null , false , true ) ; } else { org.eclipse.jface.dialogs.MessageDialog.openWarning ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , "Lint" , "Could not run Lint: Select a project first." ) ; } }
Source:
private com.android.jack.dx.dex.code.DalvCode createCode ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull com.android.jack.dx.rop.code.RopMethod ropMethod ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( ) ; options.forceJumbo = forceJumbo ; options.targetApiLevel = apiLevel ; int paramSize = getParameterWordCount ( method ) ; int positionListKind ; com.android.jack.dx.rop.code.LocalVariableInfo lvInfo ; if ( emitLocalDebugInfo ) { lvInfo = com.android.jack.dx.rop.code.LocalVariableExtractor.extract ( ropMethod ) ; } else { lvInfo = null ; } if ( emitLineNumberTable ) { positionListKind = com.android.jack.dx.dex.code.PositionList.LINES ; } else { positionListKind = com.android.jack.dx.dex.code.PositionList.NONE ; } return com.android.jack.dx.dex.code.RopTranslator.translate ( ropMethod , positionListKind , lvInfo , paramSize , options ) ; }

Target:
private com.android.jack.dx.dex.code.DalvCode createCode ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull com.android.jack.dx.rop.code.RopMethod ropMethod ) { com.android.jack.dx.dex.DexOptions options = new com.android.jack.dx.dex.DexOptions ( apiLevel , forceJumbo ) ; int paramSize = getParameterWordCount ( method ) ; int positionListKind ; com.android.jack.dx.rop.code.LocalVariableInfo lvInfo ; if ( emitLocalDebugInfo ) { lvInfo = com.android.jack.dx.rop.code.LocalVariableExtractor.extract ( ropMethod ) ; } else { lvInfo = null ; } if ( emitLineNumberTable ) { positionListKind = com.android.jack.dx.dex.code.PositionList.LINES ; } else { positionListKind = com.android.jack.dx.dex.code.PositionList.NONE ; } return com.android.jack.dx.dex.code.RopTranslator.translate ( ropMethod , positionListKind , lvInfo , paramSize , options ) ; }
Source:
private V putImpl ( K key , V value ) { if ( key == null ) { throw new java.lang.NullPointerException ( "key == null" ) ; } keyType.cast ( key ) ; int keyOrdinal = key.ordinal ( ) ; if ( ! ( hasMapping [ keyOrdinal ] ) ) { hasMapping [ keyOrdinal ] = true ; ( mappingsCount ) ++ ; } V oldValue = ( ( V ) ( values [ keyOrdinal ] ) ) ; values [ keyOrdinal ] = value ; return oldValue ; }

Target:
private V putImpl ( K key , V value ) { if ( key == null ) { throw new java.lang.NullPointerException ( "key == null" ) ; } keyType.cast ( key ) ; int keyOrdinal = key.ordinal ( ) ; if ( ! ( hasMapping [ keyOrdinal ] ) ) { hasMapping [ keyOrdinal ] = true ; ( mappingsCount ) ++ ; } V oldValue = values [ keyOrdinal ] ; values [ keyOrdinal ] = value ; return oldValue ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.stk.StkMenuActivity.MSG_ID_TIMEOUT : com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkMenuActivity.LOG_TAG , ( "MSG_ID_TIMEOUT mState: " + ( mState ) ) ) ; mAcceptUsersInput = false ; if ( ( mState ) == ( com.android.stk.StkMenuActivity.STATE_SECONDARY ) ) { appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( mInstance ) ; } sendResponse ( StkAppService.RES_ID_TIMEOUT ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.stk.StkMenuActivity.MSG_ID_TIMEOUT : com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkMenuActivity.LOG_TAG , ( "MSG_ID_TIMEOUT mState: " + ( mState ) ) ) ; if ( ( mState ) == ( com.android.stk.StkMenuActivity.STATE_SECONDARY ) ) { appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( mInstance ) ; } sendResponse ( StkAppService.RES_ID_TIMEOUT ) ; break ; } }
Source:
private boolean sample ( long timeStamp ) { if ( timeStamp == ( java.lang.Long.MAX_VALUE ) ) { return true ; } else if ( timeStamp < ( mLatestSeen ) ) { return false ; } else if ( timeStamp == ( mLatestSeen ) ) { return true ; } else { if ( ( mLatestSeen ) != 0 ) { mElapsedTimes.add ( ( timeStamp - ( mLatestSeen ) ) ) ; } mLatestSeen = timeStamp ; return false ; } }

Target:
private boolean sample ( long timeStamp ) { if ( timeStamp == ( java.lang.Long.MAX_VALUE ) ) { return true ; } else if ( timeStamp < ( mLatestSeen ) ) { return false ; } else if ( timeStamp == ( mLatestSeen ) ) { return true ; } else { mElapsedTimes.add ( timeStamp ) ; mLatestSeen = timeStamp ; return false ; } }
Source:
public void openLibrary ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.libraries.Library library ) { warnIfGradleProject ( ) ; final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { config.selectProjectOrGlobalLibrary ( library , true ) ; } } ) ; }

Target:
public void openLibrary ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.libraries.Library library ) { final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { config.selectProjectOrGlobalLibrary ( library , true ) ; } } ) ; }
Source:
public static long $noinline$AddNegs3 ( long arg1 , long arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long res = 0 ; long n_arg1 = - arg1 ; long n_arg2 = - arg2 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( n_arg1 + n_arg2 ) + i ; } return res ; }

Target:
public static long $noinline$AddNegs3 ( long arg1 , long arg2 ) { long res = 0 ; long n_arg1 = - arg1 ; long n_arg2 = - arg2 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( n_arg1 + n_arg2 ) + i ; } return res ; }
Source:
public E pollLast ( ) { int t = ( ( tail ) - 1 ) & ( ( elements.length ) - 1 ) ; E result = elements [ t ] ; if ( result == null ) return null ; elements [ t ] = null ; tail = t ; return result ; }

Target:
public E pollLast ( ) { int t = ( ( tail ) - 1 ) & ( ( elements.length ) - 1 ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( elements [ t ] ) ) ; if ( result == null ) return null ; elements [ t ] = null ; tail = t ; return result ; }
Source:
public java.lang.String printPosition ( boolean shortFormat ) { com.android.utils.PositionXmlParser.Position position = getPosition ( ) ; if ( position == null ) { return com.android.manifmerger.XmlNode.UNKNOWN_POSITION ; } return new java.lang.StringBuilder ( ) . append ( ( ( getSourceLocation ( ) ) != null ? getSourceLocation ( ) . print ( shortFormat ) : "Unknown location" ) ) . append ( ":" ) . append ( position.getLine ( ) ) . append ( ":" ) . append ( position.getColumn ( ) ) . toString ( ) ; }

Target:
public int getColumn ( ) { return getPosition ( ) . getColumn ( ) ; }
Source:
private void createAndUpdateCatServiceLocked ( ) { if ( ( ( mUiccApplications.length ) > 0 ) && ( ( mUiccApplications [ 0 ] ) != null ) ) { if ( ( mCatService ) == null ) { mCatService = com.android.internal.telephony.cat.CatService.getInstance ( mCi , mContext , mUiccCard , mPhoneId ) ; } else { mCatService.update ( mCi , mContext , mUiccCard ) ; } } else { if ( ( mCatService ) != null ) { mCatService.dispose ( ) ; } mCatService = null ; } }

Target:
private void createAndUpdateCatServiceLocked ( ) { if ( ( ( mUiccApplications.length ) > 0 ) && ( ( mUiccApplications [ 0 ] ) != null ) ) { if ( ( mCatService ) == null ) { mCatService = com.android.internal.telephony.cat.CatService.getInstance ( mCi , mContext , this , mPhoneId ) ; } else { mCatService.update ( mCi , mContext , this ) ; } } else { if ( ( mCatService ) != null ) { mCatService.dispose ( ) ; } mCatService = null ; } }
Source:
public void test_destroy ( ) { java.lang.String [ ] commands = new java.lang.String [ ] { "ls" } ; try { java.lang.Process process = java.lang.Runtime.getRuntime ( ) . exec ( commands , null , null ) ; process.destroy ( ) ; } catch ( java.io.IOException e ) { fail ( "IOException was thrown." ) ; } }

Target:
public void test_destroy ( ) throws java.lang.Exception { java.lang.String [ ] commands = new java.lang.String [ ] { "ls" } ; java.lang.Process process = java.lang.Runtime.getRuntime ( ) . exec ( commands , null , null ) ; process.destroy ( ) ; process.destroy ( ) ; process.destroy ( ) ; }
Source:
private android.net.wifi.WifiConfiguration getInternalConfiguredNetwork ( int networkId ) { if ( networkId == ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManager.TAG , "Looking up network with invalid networkId -1" ) ; return null ; } android.net.wifi.WifiConfiguration internalConfig = mConfiguredNetworks.getForCurrentUser ( networkId ) ; if ( internalConfig == null ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManager.TAG , ( "Cannot find network with networkId " + networkId ) ) ; } return internalConfig ; }

Target:
private android.net.wifi.WifiConfiguration getInternalConfiguredNetwork ( int networkId ) { if ( networkId == ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) { android.util.Log.w ( com.android.server.wifi.WifiConfigManager.TAG , "Looking up network with invalid networkId -1" ) ; return null ; } android.net.wifi.WifiConfiguration internalConfig = mConfiguredNetworks.getForCurrentUser ( networkId ) ; if ( internalConfig == null ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManager.TAG , ( "Cannot find network with networkId " + networkId ) ) ; } return internalConfig ; }
Source:
static void native_rQuadTo ( int nPath , float dx1 , float dy1 , float dx2 , float dy2 ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.rQuadTo ( dx1 , dy1 , dx2 , dy2 ) ; }

Target:
static void native_rQuadTo ( long nPath , float dx1 , float dy1 , float dx2 , float dy2 ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.rQuadTo ( dx1 , dy1 , dx2 , dy2 ) ; }
Source:
public final java.io.InputStream openNonAsset ( int cookie , java.lang.String fileName , int accessMode ) throws java.io.IOException { synchronized ( this ) { if ( ! ( mOpen ) ) { throw new java.lang.RuntimeException ( "Assetmanager has been closed" ) ; } int asset = openNonAssetNative ( cookie , fileName , accessMode ) ; if ( asset != 0 ) { android.content.res.AssetManager.AssetInputStream res = new android.content.res.AssetManager.AssetInputStream ( asset ) ; incRefsLocked ( res.hashCode ( ) ) ; return res ; } } throw new java.io.FileNotFoundException ( ( "Asset absolute file: " + fileName ) ) ; }

Target:
public final java.io.InputStream openNonAsset ( int cookie , java.lang.String fileName , int accessMode ) throws java.io.IOException { synchronized ( this ) { if ( ! ( mOpen ) ) { throw new java.lang.RuntimeException ( "Assetmanager has been closed" ) ; } long asset = openNonAssetNative ( cookie , fileName , accessMode ) ; if ( asset != 0 ) { android.content.res.AssetManager.AssetInputStream res = new android.content.res.AssetManager.AssetInputStream ( asset ) ; incRefsLocked ( res.hashCode ( ) ) ; return res ; } } throw new java.io.FileNotFoundException ( ( "Asset absolute file: " + fileName ) ) ; }
Source:
public void menuAboutToShow ( org.eclipse.jface.action.IMenuManager manager ) { for ( org.eclipse.jface.action.IContributionItem contrib : mMenuManager.getItems ( ) ) { if ( contrib instanceof org.eclipse.jface.action.ActionContributionItem ) { org.eclipse.jface.action.IAction action = ( ( org.eclipse.jface.action.ActionContributionItem ) ( contrib ) ) . getAction ( ) ; if ( action instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.DelegateAction ) { ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.DelegateAction ) ( action ) ) . updateFromEditorPart ( mGraphicalEditorPart ) ; } } } }

Target:
public void menuAboutToShow ( org.eclipse.jface.action.IMenuManager manager ) { for ( org.eclipse.jface.action.IContributionItem contrib : manager.getItems ( ) ) { if ( contrib instanceof org.eclipse.jface.action.ActionContributionItem ) { org.eclipse.jface.action.IAction action = ( ( org.eclipse.jface.action.ActionContributionItem ) ( contrib ) ) . getAction ( ) ; if ( action instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.DelegateAction ) { ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.DelegateAction ) ( action ) ) . updateFromEditorPart ( mGraphicalEditorPart ) ; } } } }
Source:
static java.lang.String getResourceArg ( org.w3c.dom.Node method , org.w3c.dom.Node call , int argIndex ) { assert ( call instanceof lombok.ast.MethodInvocation ) || ( call instanceof lombok.ast.ConstructorInvocation ) ; com.android.tools.lint.checks.StringFormatDetector.StringTracker tracker = new com.android.tools.lint.checks.StringFormatDetector.StringTracker ( method , call , argIndex ) ; method.accept ( tracker ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }

Target:
static java.lang.String getResourceArg ( org.w3c.dom.Node method , org.w3c.dom.Node call , int argIndex ) { assert ( call instanceof lombok.ast.MethodInvocation ) || ( call instanceof lombok.ast.ConstructorInvocation ) ; com.android.tools.lint.checks.StringFormatDetector.StringTracker tracker = new com.android.tools.lint.checks.StringFormatDetector.StringTracker ( null , method , call , argIndex ) ; method.accept ( tracker ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }
Source:
void test ( ) { BRANCH ( ( ( 39808.0 - ( cts ) ) - ( dev ) ) ) ; java.lang.String listeners = android.provider.Settings.Secure.getString ( getContentResolver ( ) , com.android.cts.verifier.notifications.ENABLED_NOTIFICATION_LISTENERS ) ; if ( ( listeners == null ) || ( ! ( listeners.contains ( com.android.cts.verifier.notifications.LISTENER_PATH ) ) ) ) { status = PASS ; } else { status = WAIT_FOR_USER ; } }

Target:
protected void test ( ) { java.lang.String listeners = android.provider.Settings.Secure.getString ( getContentResolver ( ) , com.android.cts.verifier.notifications.ENABLED_NOTIFICATION_LISTENERS ) ; if ( ( listeners == null ) || ( ! ( listeners.contains ( com.android.cts.verifier.notifications.LISTENER_PATH ) ) ) ) { status = PASS ; } else { status = WAIT_FOR_USER ; } }
Source:
static void native_set ( int native_dst , int native_src ) { android.graphics.Paint_Delegate delegate_dst = android.graphics.Paint_Delegate.sManager.getDelegate ( native_dst ) ; if ( delegate_dst == null ) { return ; } android.graphics.Paint_Delegate delegate_src = android.graphics.Paint_Delegate.sManager.getDelegate ( native_src ) ; if ( delegate_src == null ) { return ; } delegate_dst.set ( delegate_src ) ; }

Target:
static void native_set ( long native_dst , long native_src ) { android.graphics.Paint_Delegate delegate_dst = android.graphics.Paint_Delegate.sManager.getDelegate ( native_dst ) ; if ( delegate_dst == null ) { return ; } android.graphics.Paint_Delegate delegate_src = android.graphics.Paint_Delegate.sManager.getDelegate ( native_src ) ; if ( delegate_src == null ) { return ; } delegate_dst.set ( delegate_src ) ; }
Source:
public java.nio.ByteBuffer putChar ( int i , char x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putChar ( ix ( checkIndex ( i , SizeOf.CHAR ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putChar ( int i , char x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putChar ( ix ( checkIndex ( i , SizeOf.CHAR ) ) , x ) ; return this ; }
Source:
public boolean setConfiguredNetworkBSSID ( java.lang.String bssid ) { if ( mVerboseLoggingEnabled ) localLog ( ( "setConfiguredNetworkBSSID: " + ( mSupplicantNetworkId ) ) ) ; if ( ! ( mWifiNative.setNetworkVariable ( mSupplicantNetworkId , WifiConfiguration.bssidVarName , bssid ) ) ) { loge ( ( "Set BSSID of network in wpa_supplicant failed on " + ( mSupplicantNetworkId ) ) ) ; return false ; } return true ; }

Target:
public boolean setConfiguredNetworkBSSID ( java.lang.String bssid ) { if ( ! ( mWifiNative.setNetworkVariable ( mSupplicantNetworkId , WifiConfiguration.bssidVarName , bssid ) ) ) { loge ( ( "Set BSSID of network in wpa_supplicant failed on " + ( mSupplicantNetworkId ) ) ) ; return false ; } return true ; }
Source:
private void writeMethods ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) throws java.io.IOException { writer.writeOpenNodeList ( ) ; for ( org.objectweb.asm.tree.MethodNode mn : cn.methods ) { new com.android.jill.frontend.java.MethodBodyWriter ( writer , annotWriter , cn , mn , sourceInfoWriter ) . write ( ) ; } writer.writeCloseNodeList ( ) ; }

Target:
private void writeMethods ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) throws java.io.IOException { writer.writeOpenNodeList ( ) ; for ( org.objectweb.asm.tree.MethodNode mn : cn.methods ) { new com.android.jill.frontend.java.MethodBodyWriter ( writer , annotWriter , cn , mn , sourceInfoWriter , options ) . write ( ) ; } writer.writeCloseNodeList ( ) ; }
Source:
public void test_handshakeWithSCTFromTLSExtension ( ) throws java.lang.Exception { if ( ! ( NativeCrypto.isBoringSSL ) ) { return ; } org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey ) ; connection.clientHooks.ctVerifier = ctVerifier ; connection.clientHooks.ctVerificationEnabled = true ; connection.serverHooks.sctTLSExtension = org.conscrypt.TestUtils.readTestFile ( "ct-signed-timestamp-list" ) ; connection.doHandshake ( ) ; assertTrue ( connection.clientHooks.isHandshakeCompleted ) ; assertTrue ( connection.serverHooks.isHandshakeCompleted ) ; }

Target:
public void test_handshakeWithSCTFromTLSExtension ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey ) ; connection.clientHooks.ctVerifier = ctVerifier ; connection.clientHooks.ctVerificationEnabled = true ; connection.serverHooks.sctTLSExtension = org.conscrypt.TestUtils.readTestFile ( "ct-signed-timestamp-list" ) ; connection.doHandshake ( ) ; assertTrue ( connection.clientHooks.isHandshakeCompleted ) ; assertTrue ( connection.serverHooks.isHandshakeCompleted ) ; }
Source:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
public void testException ( ) { logWriter.println ( "testException started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; if ( ! ( checkCanUseInstanceFilterCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } java.lang.String exceptionClassSignature = "Lorg/apache/harmony/jpda/tests/jdwp/EventModifiers/InstanceOnlyModifierDebuggee$TestException;" ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createExceptionEventBuilder ( exceptionClassSignature , true , false ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testException done" ) ; }

Target:
public void testException ( ) { logWriter.println ( "testException started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; java.lang.String exceptionClassSignature = "Lorg/apache/harmony/jpda/tests/jdwp/EventModifiers/InstanceOnlyModifierDebuggee$TestException;" ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createExceptionEventBuilder ( exceptionClassSignature , true , false ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testException done" ) ; }
Source:
static void blowup ( char [ ] [ ] holder ) { try { for ( int i = 0 ; i < ( holder.length ) ; ++ i ) { holder [ i ] = new char [ 128 * 1024 ] ; } } catch ( java.lang.OutOfMemoryError oome ) { Main.ArrayMemEater.sawOome = true ; } }

Target:
static void blowup ( char [ ] [ ] holder ) { try { for ( int i = 0 ; i < ( holder.length ) ; ++ i ) { holder [ i ] = new char [ 1024 * 1024 ] ; } } catch ( java.lang.OutOfMemoryError oome ) { Main.ArrayMemEater.sawOome = true ; } }
Source:
public void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
public void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.clientSetPreferredPhy ( clientIf , address , txPhy , rxPhy , phyOptions ) ; }
Source:
public synchronized long skip ( long n ) throws java.io.IOException { if ( closed ) { return 0 ; } if ( ( in ) instanceof sun.net.www.http.ChunkedInputStream ) { n = in.skip ( n ) ; } else { long min = ( n > ( ( expected ) - ( count ) ) ) ? ( expected ) - ( count ) : n ; n = in.skip ( min ) ; } justRead ( n ) ; return n ; }

Target:
public synchronized long skip ( long n ) throws java.io.IOException { if ( closed ) { return 0 ; } long min = ( n > ( ( expected ) - ( count ) ) ) ? ( expected ) - ( count ) : n ; n = in.skip ( min ) ; justRead ( n ) ; return n ; }
Source:
void regularScanTimeout ( com.android.bluetooth.gatt.ScanClient client ) { if ( ( ! ( isExemptFromScanDowngrade ( client ) ) ) && ( client.stats.isScanningTooLong ( ) ) ) { android.util.Log.w ( com.android.bluetooth.gatt.ScanManager.TAG , ( ( "Moving scan client to opportunistic (scannerId " + ( client.scannerId ) ) + ")" ) ) ; setOpportunisticScanClient ( client ) ; removeScanFilters ( client.scannerId ) ; client.stats.setScanTimeout ( ) ; } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { if ( com.android.bluetooth.gatt.ScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.ScanManager.TAG , "stop scan" ) ; gattClientScanNative ( false ) ; } }

Target:
void regularScanTimeout ( com.android.bluetooth.gatt.ScanClient client ) { if ( ( ! ( isExemptFromScanDowngrade ( client ) ) ) && ( client.stats.isScanningTooLong ( ) ) ) { android.util.Log.w ( com.android.bluetooth.gatt.ScanManager.TAG , ( ( "Moving scan client to opportunistic (scannerId " + ( client.scannerId ) ) + ")" ) ) ; setOpportunisticScanClient ( client ) ; removeScanFilters ( client.scannerId ) ; client.stats.setScanTimeout ( client.scannerId ) ; } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { if ( com.android.bluetooth.gatt.ScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.ScanManager.TAG , "stop scan" ) ; gattClientScanNative ( false ) ; } }
Source:
private void transformAnnotationDirectories ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationsDirectories ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section directoryIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationDirectory ( in , directoryIn , indexMap ) ; } } }

Target:
private void transformAnnotationDirectories ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationsDirectories ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section directoryIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationDirectory ( directoryIn , indexMap ) ; } } }
Source:
public int indexOf ( com.android.jack.dx.rop.type.Type type ) { if ( type == null ) { throw new java.lang.NullPointerException ( "type == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.TypeIdItem item = typeIds.get ( type ) ; if ( item == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + type ) ) ; } return item.getIndex ( ) ; }

Target:
public int indexOf ( com.android.jack.dx.rop.type.Type type ) { assert type != null ; throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.TypeIdItem item = typeIds.get ( type ) ; if ( item == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + type ) ) ; } return item.getIndex ( ) ; }
Source:
public void recommendation_noScans_noCurrentConfig_returnsEmpty ( ) throws java.lang.Exception { android.net.wifi.ScanResult [ ] scanResults = new android.net.wifi.ScanResult [ 0 ] ; android.net.RecommendationRequest request = new android.net.RecommendationRequest.Builder ( ) . setScanResults ( scanResults ) . setNetworkCapabilities ( new android.net.NetworkCapabilities ( ) . removeCapability ( NetworkCapabilities.NET_CAPABILITY_TRUSTED ) ) . build ( ) ; android.net.RecommendationResult result = verifyAndCaptureResult ( mProvider , request ) ; org.junit.Assert.assertNull ( result.getWifiConfiguration ( ) ) ; }

Target:
public void recommendation_noScans_noCurrentConfig_returnsEmpty ( ) throws java.lang.Exception { android.net.wifi.ScanResult [ ] scanResults = new android.net.wifi.ScanResult [ 0 ] ; android.net.RecommendationRequest request = new android.net.RecommendationRequest.Builder ( ) . setScanResults ( scanResults ) . setNetworkCapabilities ( new android.net.NetworkCapabilities ( ) . removeCapability ( NetworkCapabilities.NET_CAPABILITY_TRUSTED ) ) . build ( ) ; android.net.RecommendationResult result = verifyAndCaptureResult ( request ) ; org.junit.Assert.assertNull ( result.getWifiConfiguration ( ) ) ; }
Source:
private void writeBufferedData ( ) throws java.io.IOException { stopBufferedWriteAlarm ( ) ; long writeStartTime = mClock.getElapsedSinceBootMillis ( ) ; mSharedStore.writeBufferedRawData ( ) ; mUserStore.writeBufferedRawData ( ) ; long writeTime = ( mClock.getElapsedSinceBootMillis ( ) ) - writeStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Writing to stores completed in " + writeTime ) + " ms." ) ) ; }

Target:
private void writeBufferedData ( ) throws java.io.IOException { stopBufferedWriteAlarm ( ) ; long writeStartTime = mClock.getElapsedSinceBootMillis ( ) ; mSharedStore.writeBufferedRawData ( ) ; if ( ( mUserStore ) != null ) { mUserStore.writeBufferedRawData ( ) ; } long writeTime = ( mClock.getElapsedSinceBootMillis ( ) ) - writeStartTime ; android.util.Log.d ( com.android.server.wifi.WifiConfigStore.TAG , ( ( "Writing to stores completed in " + writeTime ) + " ms." ) ) ; }
Source:
private void dismissDialogsAndFinish ( ) { if ( ( mMMIDialog ) != null ) { mMMIDialog.dismiss ( ) ; } if ( ( mHandler ) != null ) { mCM.unregisterForMmiComplete ( mHandler ) ; } finish ( ) ; }

Target:
private void dismissDialogsAndFinish ( ) { if ( ( mMMIDialog ) != null ) { mMMIDialog.dismiss ( ) ; mMMIDialog = null ; } if ( ( mHandler ) != null ) { mCM.unregisterForMmiComplete ( mHandler ) ; mHandler = null ; } finish ( ) ; }
Source:
static void nativeSetPixels ( int nativeBitmap , int [ ] colors , int offset , int stride , int x , int y , int width , int height ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , width , height , colors , offset , stride ) ; }

Target:
static void nativeSetPixels ( long nativeBitmap , int [ ] colors , int offset , int stride , int x , int y , int width , int height ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return ; } delegate.getImage ( ) . setRGB ( x , y , width , height , colors , offset , stride ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.ddmlib.ThreadInfo selectedThread = getThreadSelection ( null ) ; if ( selectedThread != null ) { com.android.ddmlib.Client currentClient = getCurrentClient ( ) ; if ( currentClient != null ) { currentClient.requestThreadStackTrace ( selectedThread.getThreadId ( ) ) ; } } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { requestThreadStackTrace ( getThreadSelection ( null ) ) ; }
Source:
private static char maybeStripMarkers ( java.lang.String symbol , char fallback ) { final int length = symbol.length ( ) ; if ( length == 1 ) { return symbol.charAt ( 0 ) ; } if ( length == 2 ) { char first = symbol.charAt ( 0 ) ; if ( ( ( first == '‎' ) || ( first == '‏' ) ) || ( first == '؜' ) ) ; { return symbol.charAt ( 1 ) ; } } return fallback ; }

Target:
private static char maybeStripMarkers ( java.lang.String symbol , char fallback ) { final int length = symbol.length ( ) ; if ( length == 1 ) { return symbol.charAt ( 0 ) ; } if ( length > 1 ) { char first = symbol.charAt ( 0 ) ; if ( ( ( first == '‎' ) || ( first == '‏' ) ) || ( first == '؜' ) ) { return symbol.charAt ( 1 ) ; } } return fallback ; }
Source:
boolean filter ( ) { java.util.Optional < java.lang.String > carrierAppForFiltering = getCarrierAppPackageForFiltering ( ) ; java.util.List < java.lang.String > smsFilterPackages = new java.util.ArrayList < > ( ) ; if ( carrierAppForFiltering.isPresent ( ) ) { smsFilterPackages.add ( carrierAppForFiltering.get ( ) ) ; } com.android.internal.telephony.CarrierServicesSmsFilter.FilterAggregator filterAggregator = new com.android.internal.telephony.CarrierServicesSmsFilter.FilterAggregator ( smsFilterPackages.size ( ) ) ; for ( java.lang.String smsFilterPackage : smsFilterPackages ) { filterWithPackage ( smsFilterPackage , filterAggregator ) ; } boolean handled = ( smsFilterPackages.size ( ) ) > 0 ; return handled ; }

Target:
public boolean filter ( ) { java.util.Optional < java.lang.String > carrierAppForFiltering = getCarrierAppPackageForFiltering ( ) ; java.util.List < java.lang.String > smsFilterPackages = new java.util.ArrayList < > ( ) ; if ( carrierAppForFiltering.isPresent ( ) ) { smsFilterPackages.add ( carrierAppForFiltering.get ( ) ) ; } com.android.internal.telephony.CarrierServicesSmsFilter.FilterAggregator filterAggregator = new com.android.internal.telephony.CarrierServicesSmsFilter.FilterAggregator ( smsFilterPackages.size ( ) ) ; for ( java.lang.String smsFilterPackage : smsFilterPackages ) { filterWithPackage ( smsFilterPackage , filterAggregator ) ; } boolean handled = ( smsFilterPackages.size ( ) ) > 0 ; return handled ; }
Source:
private void raiseAlert ( short alertLevel , short alertDescription , java.lang.String message , java.lang.Exception cause ) throws java.io.IOException { peer.notifyAlertRaised ( alertLevel , alertDescription , message , cause ) ; byte [ ] error = new byte [ 2 ] ; error [ 0 ] = ( ( byte ) ( alertLevel ) ) ; error [ 1 ] = ( ( byte ) ( alertDescription ) ) ; sendRecord ( ContentType.alert , error , 0 , 2 ) ; }

Target:
private void raiseAlert ( short alertLevel , short alertDescription , java.lang.String message , java.lang.Throwable cause ) throws java.io.IOException { peer.notifyAlertRaised ( alertLevel , alertDescription , message , cause ) ; byte [ ] error = new byte [ 2 ] ; error [ 0 ] = ( ( byte ) ( alertLevel ) ) ; error [ 1 ] = ( ( byte ) ( alertDescription ) ) ; sendRecord ( ContentType.alert , error , 0 , 2 ) ; }
Source:
public E pollFirst ( ) { int h = head ; E result = elements [ h ] ; if ( result == null ) return null ; elements [ h ] = null ; head = ( h + 1 ) & ( ( elements.length ) - 1 ) ; return result ; }

Target:
public E pollFirst ( ) { int h = head ; @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( elements [ h ] ) ) ; if ( result == null ) return null ; elements [ h ] = null ; head = ( h + 1 ) & ( ( elements.length ) - 1 ) ; return result ; }
Source:
public int indexOf ( com.android.jack.dx.rop.cst.CstBaseMethodRef ref ) { if ( ref == null ) { throw new java.lang.NullPointerException ( "ref == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.MethodIdItem item = methodIds.get ( ref ) ; if ( item == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return item.getIndex ( ) ; }

Target:
public int indexOf ( com.android.jack.dx.rop.cst.CstBaseMethodRef ref ) { assert ref != null ; throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.MethodIdItem item = methodIds.get ( ref ) ; if ( item == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return item.getIndex ( ) ; }
Source:
private boolean handleEctIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { int len = dialString.length ( ) ; if ( len != 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 4: explicit call transfer" ) ; try { explicitCallTransfer ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "transfer failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.TRANSFER ) ; } return true ; }

Target:
private boolean handleEctIncallSupplementaryService ( java.lang.String dialString ) { int len = dialString.length ( ) ; if ( len != 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 4: explicit call transfer" ) ; explicitCallTransfer ( ) ; return true ; }
Source:
public void onIncomingCallRejected ( com.android.server.telecom.Call call , boolean rejectWithMessage , java.lang.String textMessage ) { if ( ( rejectWithMessage && ( ( call.getHandle ( ) ) != null ) ) && ( ! ( call.can ( Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION ) ) ) ) { int subId = mCallsManager.getPhoneAccountRegistrar ( ) . getSubscriptionIdForPhoneAccount ( call.getTargetPhoneAccount ( ) ) ; rejectCallWithMessage ( call.getContext ( ) , call.getHandle ( ) . getSchemeSpecificPart ( ) , textMessage , subId ) ; } }

Target:
public void onIncomingCallRejected ( com.android.server.telecom.Call call , boolean rejectWithMessage , java.lang.String textMessage ) { if ( ( rejectWithMessage && ( ( call.getHandle ( ) ) != null ) ) && ( ! ( call.can ( Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION ) ) ) ) { int subId = mCallsManager.getPhoneAccountRegistrar ( ) . getSubscriptionIdForPhoneAccount ( call.getTargetPhoneAccount ( ) ) ; rejectCallWithMessage ( call.getContext ( ) , call.getHandle ( ) . getSchemeSpecificPart ( ) , textMessage , subId , call.getName ( ) ) ; } }
Source:
public java.nio.ByteBuffer putShort ( short x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putShort ( ix ( nextPutIndex ( SizeOf.SHORT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putShort ( short x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putShort ( ix ( nextPutIndex ( SizeOf.SHORT ) ) , x ) ; return this ; }
Source:
private void runStackInfo ( ) throws java.lang.Exception { try { java.lang.String stackIdStr = nextArgRequired ( ) ; int stackId = java.lang.Integer.valueOf ( stackIdStr ) ; android.app.ActivityManager.StackInfo info = mAm.getStackInfo ( stackId ) ; java.lang.System.out.println ( info ) ; } catch ( android.os.RemoteException e ) { } }

Target:
private void runStackInfo ( ) throws java.lang.Exception { try { java.lang.String stackIdStr = nextArgRequired ( ) ; int stackId = java.lang.Integer.parseInt ( stackIdStr ) ; android.app.ActivityManager.StackInfo info = mAm.getStackInfo ( stackId ) ; java.lang.System.out.println ( info ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void addRegistrationListener ( int serviceClass , com.android.ims.ImsConnectionStateListener listener ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; if ( listener == null ) { throw new java.lang.NullPointerException ( "listener can't be null" ) ; } try { com.android.ims.ImsManager.ImsRegistrationListenerProxy p = createRegistrationListenerProxy ( serviceClass , listener ) ; mRegistrationListeners.add ( p ) ; mImsServiceProxy.addRegistrationListener ( ImsFeature.MMTEL , p ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationListener()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void addRegistrationListener ( int serviceClass , com.android.ims.ImsConnectionStateListener listener ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; if ( listener == null ) { throw new java.lang.NullPointerException ( "listener can't be null" ) ; } try { com.android.ims.ImsManager.ImsRegistrationListenerProxy p = createRegistrationListenerProxy ( serviceClass , listener ) ; mRegistrationListeners.add ( p ) ; mImsServiceProxy.addRegistrationListener ( p ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationListener()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void testMethodExit ( ) { logWriter.println ( "testMethodExit started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; if ( ! ( checkCanUseInstanceFilterCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createMethodExitEventBuilder ( org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.TEST_CLASS_NAME ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testMethodExit done" ) ; }

Target:
public void testMethodExit ( ) { logWriter.println ( "testMethodExit started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createMethodExitEventBuilder ( org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.TEST_CLASS_NAME ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testMethodExit done" ) ; }
Source:
public java.lang.String makeKey ( vogar.Classpath classpath ) { java.lang.String key = keyPrefix ; for ( java.io.File element : classpath.getElements ( ) ) { java.lang.String fileName = element.getName ( ) ; if ( ( ! ( fileName.endsWith ( ".jar" ) ) ) && ( ! ( fileName.endsWith ( ".jack" ) ) ) ) { return null ; } key += "-" + ( vogar.Md5Cache.md5 ( element ) ) ; } return key ; }

Target:
public java.lang.String makeKey ( vogar.Classpath classpath ) { java.lang.String key = keyPrefix ; for ( java.io.File element : classpath.getElements ( ) ) { java.lang.String fileName = element.getName ( ) ; if ( ! ( fileName.endsWith ( ".jar" ) ) ) { return null ; } key += "-" + ( vogar.Md5Cache.md5 ( element ) ) ; } return key ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState " + ( mState ) ) ) ; if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getState(): not allowed for non-active user" ) ; return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mState ; }

Target:
protected int getState ( ) { return mState ; }
Source:
public void testSign_SHA1withRSA_Key_EmptyKey_Failure ( ) throws java.lang.Exception { java.security.KeyFactory kf = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.spec.RSAPrivateKeySpec keySpec = new java.security.spec.RSAPrivateKeySpec ( null , null ) ; final java.security.PrivateKey privKey ; try { privKey = kf.generatePrivate ( keySpec ) ; } catch ( java.lang.NullPointerException e ) { return ; } catch ( java.security.spec.InvalidKeySpecException e ) { return ; } java.security.Signature sig = java.security.Signature.getInstance ( "SHA1withRSA" ) ; try { sig.initSign ( privKey ) ; fail ( "Should throw error when key is empty" ) ; } catch ( java.security.InvalidKeyException e ) { } }

Target:
public void testSign_SHA1withRSA_Key_EmptyKey_Failure ( ) throws java.lang.Exception { java.security.KeyFactory kf = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.spec.RSAPrivateKeySpec keySpec = new java.security.spec.RSAPrivateKeySpec ( null , null ) ; final java.security.PrivateKey privKey ; try { privKey = kf.generatePrivate ( keySpec ) ; } catch ( java.lang.NullPointerException e ) { return ; } catch ( java.security.spec.InvalidKeySpecException e ) { return ; } java.security.Signature sig = java.security.Signature.getInstance ( "SHA1withRSA" ) ; try { sig.initSign ( privKey ) ; fail ( "Should throw error when key is empty" ) ; } catch ( java.security.InvalidKeyException expected ) { } }
Source:
private static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( method ) ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }

Target:
private static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( method ) ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( descriptor ) ; return signature ; }
Source:
public void connect ( ) throws java.io.IOException { java.io.File f = new java.io.File ( filename ) ; if ( f.isDirectory ( ) ) { isDir = true ; is = getDirectoryListing ( f ) ; } else { is = new java.io.BufferedInputStream ( new java.io.FileInputStream ( f ) ) ; long lengthAsLong = f.length ( ) ; length = ( lengthAsLong <= ( java.lang.Integer.MAX_VALUE ) ) ? ( ( int ) ( lengthAsLong ) ) : java.lang.Integer.MAX_VALUE ; } connected = true ; }

Target:
public void connect ( ) throws java.io.IOException { java.io.File f = new java.io.File ( filename ) ; if ( f.isDirectory ( ) ) { isDir = true ; is = getDirectoryListing ( f ) ; } else { is = new java.io.BufferedInputStream ( new java.io.FileInputStream ( f ) ) ; length = f.length ( ) ; } connected = true ; }
Source:
public void testAddAll2 ( ) { try { java.util.TreeSet q = new java.util.TreeSet ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ jsr166.TreeSetTest.SIZE ] ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testAddAll2 ( ) { java.util.TreeSet q = new java.util.TreeSet ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ jsr166.TreeSetTest.SIZE ] ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicBlend create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( rs.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( rs ) ) ; return android.support.v8.renderscript.ScriptIntrinsicBlendThunker.create ( rs , e ) ; } int id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicBlend ( id , rs ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicBlend create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicBlend ( id , rs ) ; }
Source:
private java.lang.String getHeaderTitle ( ) { android.net.NetworkInfo info = mCm.getNetworkInfo ( mNetwork ) ; if ( info == null ) { return getString ( R.string.action_bar_label ) ; } android.net.NetworkCapabilities nc = mCm.getNetworkCapabilities ( mNetwork ) ; if ( ! ( nc.hasTransportType ( NetworkCapabilities.TRANSPORT_WIFI ) ) ) { return getString ( R.string.action_bar_label ) ; } return getString ( R.string.action_bar_title , info.getExtraInfo ( ) . replaceAll ( "^\"|\"$" , "" ) ) ; }

Target:
private java.lang.String getHeaderTitle ( ) { return getString ( R.string.action_bar_label ) ; }
Source:
public void imsStatusChanged ( int slotId , int feature , int status ) throws android.os.RemoteException { synchronized ( mLock ) { android.util.Log.i ( LOG_TAG , ( ( ( ( ( "imsStatusChanged: slot: " + slotId ) + " feature: " ) + feature ) + " status: " ) + status ) ) ; if ( ( ( mSlotId ) == slotId ) && ( feature == ( mSupportedFeature ) ) ) { mFeatureStatusCached = status ; } } if ( ( mStatusCallback ) != null ) { mStatusCallback.notifyStatusChanged ( ) ; } }

Target:
public void imsStatusChanged ( int slotId , int feature , int status ) throws android.os.RemoteException { synchronized ( mLock ) { android.util.Log.i ( LOG_TAG , ( ( ( ( ( "imsStatusChanged: slot: " + slotId ) + " feature: " ) + feature ) + " status: " ) + status ) ) ; if ( ( ( mSlotId ) == slotId ) && ( feature == ( mSupportedFeature ) ) ) { mFeatureStatusCached = status ; if ( ( mStatusCallback ) != null ) { mStatusCallback.notifyStatusChanged ( ) ; } } } }