auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
protected final int next ( int numBits ) { int numBytes = ( numBits + 7 ) / 8 ; byte [ ] b = new byte [ numBytes ] ; int next = 0 ; nextBytes ( b ) ; for ( int i = 0 ; i < numBytes ; i ++ ) next = ( next << 8 ) + ( ( b [ i ] ) & 255 ) ; return next > > > ( ( numBytes * 8 ) - numBits ) ; }

Target:
protected final int next ( int numBits ) { int numBytes = ( numBits + 7 ) / 8 ; byte [ ] b = new byte [ numBytes ] ; int next = 0 ; nextBytes ( b ) ; for ( int i = 0 ; i < numBytes ; i ++ ) { next = ( next << 8 ) + ( ( b [ i ] ) & 255 ) ; } return next > > > ( ( numBytes * 8 ) - numBits ) ; }
Source:
public void testEvaluateNetworks_potentialConnectableNetworksIsNull ( ) { org.mockito.Mockito.when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mNetworkScoreManager.requestRecommendation ( org.mockito.Mockito.any ( android.net.RecommendationRequest.class ) ) ) . thenReturn ( android.net.RecommendationResult.createDoNotConnectRecommendation ( ) ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mTrustedScanDetail , mEphemeralScanDetail , mUntrustedScanDetail ) , null , null , false , true , null ) ; }

Target:
public void testEvaluateNetworks_potentialConnectableNetworksIsNull ( ) { when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( false ) ; when ( mNetworkScoreManager.requestRecommendation ( any ( android.net.RecommendationRequest.class ) ) ) . thenReturn ( android.net.RecommendationResult.createDoNotConnectRecommendation ( ) ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mTrustedScanDetail , mEphemeralScanDetail , mUntrustedScanDetail ) , null , null , false , true , null ) ; }
Source:
public void glDrawArrays ( int mode , int first , int count ) { begin ( "glDrawArrays" ) ; arg ( "mode" , mode ) ; arg ( "first" , first ) ; arg ( "count" , count ) ; startLogIndices ( ) ; for ( int i = 0 ; i < count ; i ++ ) { doElement ( mStringBuilder , i , ( first + count ) ) ; } endLogIndices ( ) ; end ( ) ; mgl.glDrawArrays ( mode , first , count ) ; checkError ( ) ; }

Target:
public void glDrawArrays ( int mode , int first , int count ) { begin ( "glDrawArrays" ) ; arg ( "mode" , mode ) ; arg ( "first" , first ) ; arg ( "count" , count ) ; startLogIndices ( ) ; for ( int i = 0 ; i < count ; i ++ ) { doElement ( mStringBuilder , i , ( first + i ) ) ; } endLogIndices ( ) ; end ( ) ; mgl.glDrawArrays ( mode , first , count ) ; checkError ( ) ; }
Source:
public static void run ( ) throws java.lang.Exception { art.Main.bindAgentJNIForClass ( art.Test924.class ) ; java.lang.Thread t = new java.lang.Thread ( "TestThread" ) { @ java.lang.Override public void run ( ) { try { art.Test924.doTest ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } } ; t.start ( ) ; t.join ( ) ; }

Target:
public static void run ( ) throws java.lang.Exception { java.lang.Thread t = new java.lang.Thread ( "TestThread" ) { @ java.lang.Override public void run ( ) { try { art.Test924.doTest ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } } ; t.start ( ) ; t.join ( ) ; }
Source:
public void installSystemApplicationInfo ( android.content.pm.ApplicationInfo info ) { synchronized ( this ) { android.app.ContextImpl context = getSystemContext ( ) ; context.init ( new android.app.LoadedApk ( this , "android" , context , info , android.content.res.CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) , null , this ) ; mProfiler = new android.app.ActivityThread.Profiler ( ) ; } }

Target:
public void installSystemApplicationInfo ( android.content.pm.ApplicationInfo info ) { synchronized ( this ) { getSystemContext ( ) . installSystemApplicationInfo ( info ) ; mProfiler = new android.app.ActivityThread.Profiler ( ) ; } }
Source:
public void test_accept_SOTIMEOUT ( ) throws java.io.IOException { final int SO_TIMEOUT = 10 ; java.nio.channels.ServerSocketChannel sc = java.nio.channels.ServerSocketChannel.open ( ) ; try { java.net.ServerSocket ss = sc.socket ( ) ; ss.bind ( null ) ; sc.configureBlocking ( false ) ; ss.setSoTimeout ( SO_TIMEOUT ) ; java.nio.channels.SocketChannel client = sc.accept ( ) ; assertNull ( client ) ; int soTimeout = ss.getSoTimeout ( ) ; assertEquals ( SO_TIMEOUT , soTimeout ) ; } finally { sc.close ( ) ; } }

Target:
public void test_accept_SOTIMEOUT ( ) throws java.io.IOException { final int SO_TIMEOUT = 10 ; java.nio.channels.ServerSocketChannel sc = java.nio.channels.ServerSocketChannel.open ( ) ; try { sc.bind ( null ) ; sc.configureBlocking ( false ) ; java.net.ServerSocket ss = sc.socket ( ) ; ss.setSoTimeout ( SO_TIMEOUT ) ; java.nio.channels.SocketChannel client = sc.accept ( ) ; assertNull ( client ) ; int soTimeout = ss.getSoTimeout ( ) ; assertEquals ( SO_TIMEOUT , soTimeout ) ; } finally { sc.close ( ) ; } }
Source:
public static boolean hasError ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration ) { return ( ( ( typeDeclaration.hasErrors ( ) ) || ( ( ( typeDeclaration.getCompilationUnitDeclaration ( ) ) != null ) && ( typeDeclaration.getCompilationUnitDeclaration ( ) . hasErrors ( ) ) ) ) || ( typeDeclaration.compilationResult.hasErrors ( ) ) ) || ( ( typeDeclaration.binding ) == null ) ; }

Target:
public static boolean hasError ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration ) { return ( ( typeDeclaration.hasErrors ( ) ) || ( ( ( typeDeclaration.getCompilationUnitDeclaration ( ) ) != null ) && ( typeDeclaration.getCompilationUnitDeclaration ( ) . hasErrors ( ) ) ) ) || ( ( typeDeclaration.binding ) == null ) ; }
Source:
private void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull java.lang.Object cookie , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull java.lang.String message ) { if ( context.isEnabled ( issue ) ) { boolean checkComments = context.containsCommentSuppress ( ) ; if ( checkComments ) { int startOffset = getStartOffset ( context , cookie ) ; if ( ( startOffset >= 0 ) && ( context.isSuppressedWithComment ( startOffset , issue ) ) ) { return ; } } context.report ( issue , createLocation ( context , cookie ) , message , null ) ; } }

Target:
private void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull java.lang.Object cookie , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull java.lang.String message ) { if ( context.isEnabled ( issue ) ) { boolean checkComments = context.containsCommentSuppress ( ) ; if ( checkComments ) { int startOffset = getStartOffset ( context , cookie ) ; if ( ( startOffset >= 0 ) && ( context.isSuppressedWithComment ( startOffset , issue ) ) ) { return ; } } context.report ( issue , createLocation ( context , cookie ) , message ) ; } }
Source:
private static java.lang.String concatenateRange ( java.lang.String [ ] array , int start , int end ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( 32 ) ; for ( int i = start ; i < end ; ++ i ) { if ( i != 0 ) { builder.append ( '-' ) ; } builder.append ( array [ i ] ) ; } return builder.toString ( ) ; }

Target:
private static java.lang.String concatenateRange ( java.lang.String [ ] array , int start , int end ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( 32 ) ; for ( int i = start ; i < end ; ++ i ) { if ( i != start ) { builder.append ( '-' ) ; } builder.append ( array [ i ] ) ; } return builder.toString ( ) ; }
Source:
private static byte [ ] byteArrayFromArrayList ( java.util.ArrayList < java.lang.Byte > bytes ) { byte [ ] byteArray = new byte [ bytes.size ( ) ] ; int i = 0 ; for ( java.lang.Byte b : bytes ) { byteArray [ ( i ++ ) ] = b ; } return byteArray ; }

Target:
public static byte [ ] byteArrayFromArrayList ( java.util.ArrayList < java.lang.Byte > bytes ) { byte [ ] byteArray = new byte [ bytes.size ( ) ] ; int i = 0 ; for ( java.lang.Byte b : bytes ) { byteArray [ ( i ++ ) ] = b ; } return byteArray ; }
Source:
private synchronized void loadStrings ( java.lang.String tzCanonicalID ) { if ( ( tzCanonicalID == null ) || ( ( tzCanonicalID.length ( ) ) == 0 ) ) { return ; } loadTimeZoneNames ( null , tzCanonicalID ) ; com.ibm.icu.impl.TimeZoneNamesImpl.ZNamesLoader loader = com.ibm.icu.impl.TimeZoneNamesImpl.ZNamesLoader.forMetaZoneNames ( ) ; java.util.Set < java.lang.String > mzIDs = getAvailableMetaZoneIDs ( tzCanonicalID ) ; for ( java.lang.String mzID : mzIDs ) { loadMetaZoneNames ( loader , mzID ) ; } addAllNamesIntoTrie ( ) ; }

Target:
private synchronized void loadStrings ( java.lang.String tzCanonicalID ) { if ( ( tzCanonicalID == null ) || ( ( tzCanonicalID.length ( ) ) == 0 ) ) { return ; } loadTimeZoneNames ( tzCanonicalID ) ; java.util.Set < java.lang.String > mzIDs = getAvailableMetaZoneIDs ( tzCanonicalID ) ; for ( java.lang.String mzID : mzIDs ) { loadMetaZoneNames ( mzID ) ; } }
Source:
public static java.util.logging.Logger getAnonymousLogger ( java.lang.String resourceBundleName ) { java.util.logging.LogManager manager = java.util.logging.LogManager.getLogManager ( ) ; manager.drainLoggerRefQueueBounded ( ) ; java.util.logging.Logger result = new java.util.logging.Logger ( null , resourceBundleName , dalvik.system.VMStack.getStackClass1 ( ) ) ; result.anonymous = true ; java.util.logging.Logger root = manager.getLogger ( "" ) ; result.doSetParent ( root ) ; return result ; }

Target:
public static java.util.logging.Logger getAnonymousLogger ( java.lang.String resourceBundleName ) { java.util.logging.LogManager manager = java.util.logging.LogManager.getLogManager ( ) ; manager.drainLoggerRefQueueBounded ( ) ; java.util.logging.Logger result = new java.util.logging.Logger ( null , resourceBundleName , dalvik.system.VMStack.getStackClass1 ( ) , manager , false ) ; result.anonymous = true ; java.util.logging.Logger root = manager.getLogger ( "" ) ; result.doSetParent ( root ) ; return result ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 1 ] ) ; java.lang.System.out.println ( "Hello, world!" ) ; if ( Main.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } Main.set ( 0 ) ; Main.set ( 1 ) ; Main.set ( 2 ) ; Main.set ( 4 ) ; Main.set ( 8 ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; if ( Main.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } Main.set ( 0 ) ; Main.set ( 1 ) ; Main.set ( 2 ) ; Main.set ( 4 ) ; Main.set ( 8 ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.io.BufferedReader in = new java.io.BufferedReader ( new java.io.InputStreamReader ( java.lang.System.in ) ) ; java.lang.String line = null ; java.lang.StringBuilder responseData = new java.lang.StringBuilder ( ) ; android.net.apf.ApfGenerator gen = new android.net.apf.ApfGenerator ( ) ; while ( ( line = in.readLine ( ) ) != null ) android.net.apf.Bpf2Apf.convertLine ( line , gen ) ; java.lang.System.out.write ( gen.generate ( ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.io.BufferedReader in = new java.io.BufferedReader ( new java.io.InputStreamReader ( java.lang.System.in ) ) ; java.lang.String line = null ; java.lang.StringBuilder responseData = new java.lang.StringBuilder ( ) ; android.net.apf.ApfGenerator gen = new android.net.apf.ApfGenerator ( 3 ) ; while ( ( line = in.readLine ( ) ) != null ) android.net.apf.Bpf2Apf.convertLine ( line , gen ) ; java.lang.System.out.write ( gen.generate ( ) ) ; }
Source:
private static com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createDesc ( java.lang.String name , java.lang.String fqn , boolean hasChildren ) { if ( hasChildren ) { return new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( name , name , fqn , "" , "" , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ 0 ] , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ 0 ] , new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor [ 1 ] , false ) ; } else { return new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( name , fqn ) ; } }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createDesc ( java.lang.String name , java.lang.String fqn , boolean hasChildren ) { if ( hasChildren ) { return new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( name , name , fqn , "" , "" , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ 0 ] , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ 0 ] , new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor [ 1 ] , false ) ; } else { return new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( name , fqn ) ; } }
Source:
public java.lang.String describeMissingPermissions ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder available ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; boolean first = true ; for ( com.android.tools.lint.checks.PermissionRequirement requirement : permissions ) { if ( ! ( requirement.isSatisfied ( available ) ) ) { if ( first ) { first = false ; } else { com.android.tools.lint.checks.PermissionRequirement.appendOperator ( sb , operator ) ; } sb.append ( requirement.describeMissingPermissions ( available ) ) ; } } return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( permissions.get ( 0 ) ) ; for ( int i = 1 ; i < ( permissions.size ( ) ) ; i ++ ) { com.android.tools.lint.checks.PermissionRequirement.appendOperator ( sb , operator ) ; sb.append ( permissions.get ( i ) ) ; } return sb.toString ( ) ; }
Source:
public void afterHandshake ( int session , int ssl , int context , java.net.Socket socket , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_npn_negotiated_protocol ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertTrue ( "NPN should enable cutthrough on the client" , ( 0 != ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_npn_negotiated_protocol ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertTrue ( "NPN should enable cutthrough on the client" , ( 0 != ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
private void convertTo9Patch ( ) { java.awt.image.BufferedImage buffer = com.android.draw9patch.graphics.GraphicsUtilities.createTranslucentCompatibleImage ( ( ( image.getWidth ( ) ) + 2 ) , ( ( image.getHeight ( ) ) + 2 ) ) ; java.awt.Graphics2D g2 = buffer.createGraphics ( ) ; g2.drawImage ( image , 1 , 1 , null ) ; g2.dispose ( ) ; image = buffer ; viewer.setImage ( image ) ; name = ( name.substring ( 0 , name.lastIndexOf ( '.' ) ) ) + ".9.png" ; }

Target:
private static java.awt.image.BufferedImage convertTo9Patch ( java.awt.image.BufferedImage image ) { java.awt.image.BufferedImage buffer = com.android.draw9patch.graphics.GraphicsUtilities.createTranslucentCompatibleImage ( ( ( image.getWidth ( ) ) + 2 ) , ( ( image.getHeight ( ) ) + 2 ) ) ; java.awt.Graphics2D g2 = buffer.createGraphics ( ) ; g2.drawImage ( image , 1 , 1 , null ) ; g2.dispose ( ) ; return buffer ; }
Source:
public void stop ( ) { if ( ! ( mStarted ) ) { return ; } mStarted = false ; mDbLoadFinished = false ; com.android.tv.data.ChannelLogoFetcher.stopFetchingChannelLogos ( ) ; mInputManager.removeCallback ( mTvInputCallback ) ; mContentResolver.unregisterContentObserver ( mChannelObserver ) ; mHandler.removeCallbacksAndMessages ( null ) ; mChannelWrapperMap.clear ( ) ; clearChannels ( ) ; mPostRunnablesAfterChannelUpdate.clear ( ) ; if ( ( mChannelsUpdateTask ) != null ) { mChannelsUpdateTask.cancel ( true ) ; mChannelsUpdateTask = null ; } applyUpdatedValuesToDb ( ) ; }

Target:
public void stop ( ) { if ( ! ( mStarted ) ) { return ; } mStarted = false ; mDbLoadFinished = false ; mInputManager.removeCallback ( mTvInputCallback ) ; mContentResolver.unregisterContentObserver ( mChannelObserver ) ; mHandler.removeCallbacksAndMessages ( null ) ; mChannelWrapperMap.clear ( ) ; clearChannels ( ) ; mPostRunnablesAfterChannelUpdate.clear ( ) ; if ( ( mChannelsUpdateTask ) != null ) { mChannelsUpdateTask.cancel ( true ) ; mChannelsUpdateTask = null ; } applyUpdatedValuesToDb ( ) ; }
Source:
private android.os.Parcel getParcelForFile ( java.io.File file ) throws java.io.IOException { java.io.FileInputStream stream = new java.io.FileInputStream ( file ) ; byte [ ] raw = com.android.server.am.UsageStatsService.readFully ( stream ) ; android.os.Parcel in = android.os.Parcel.obtain ( ) ; in.unmarshall ( raw , 0 , raw.length ) ; in.setDataPosition ( 0 ) ; stream.close ( ) ; return in ; }

Target:
private android.os.Parcel getParcelForFile ( java.io.File file ) throws java.io.IOException { java.io.FileInputStream stream = new java.io.FileInputStream ( file ) ; try { byte [ ] raw = com.android.server.am.UsageStatsService.readFully ( stream ) ; android.os.Parcel in = android.os.Parcel.obtain ( ) ; in.unmarshall ( raw , 0 , raw.length ) ; in.setDataPosition ( 0 ) ; return in ; } finally { stream.close ( ) ; } }
Source:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) && ( ! ( mWifiConfigStore.areStoresPresent ( ) ) ) ) { android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , ( "Legacy store files found. Ignore user switch/unlock until migration is " + "complete!" ) ) ; return ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }

Target:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }
Source:
public void findBestSampleSize ( ) { assertEquals ( 1 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 100 , 150 , 100 , 150 ) ) ; assertEquals ( 2 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 280 , 160 , 140 , 80 ) ) ; assertEquals ( 1 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 1000 , 800 , 501 , 401 ) ) ; assertEquals ( 4 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 100 , 200 , 24 , 50 ) ) ; }

Target:
public void findBestSampleSize ( ) { org.junit.Assert.assertEquals ( 1 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 100 , 150 , 100 , 150 ) ) ; org.junit.Assert.assertEquals ( 2 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 280 , 160 , 140 , 80 ) ) ; org.junit.Assert.assertEquals ( 1 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 1000 , 800 , 501 , 401 ) ) ; org.junit.Assert.assertEquals ( 4 , com.android.volley.toolbox.ImageRequest.findBestSampleSize ( 100 , 200 , 24 , 50 ) ) ; }
Source:
public void onResume ( ) { super . onResume ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( "onResume - mIsResponseSent[" + ( mIsResponseSent ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; startTimeOut ( ) ; if ( mIsResponseSent ) { cancelTimeOut ( ) ; finish ( ) ; } }

Target:
public void onResume ( ) { super . onResume ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( "onResume - mIsResponseSent[" + ( mIsResponseSent ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; startTimeOut ( ) ; }
Source:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( "jack-" ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }

Target:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }
Source:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_SignInit ( "RSA-SHA256" ) ; assertTrue ( ( ctx != ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_MD_CTX_destroy ( ctx ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_SignInit ( "foobar" ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_SignInit ( "RSA-SHA256" ) ; assertTrue ( ( ctx != ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_MD_CTX_destroy ( ctx ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_SignInit ( "foobar" ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public static com.android.jack.dx.rop.code.Rop opGetStatic ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.GET_STATIC_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.GET_STATIC_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_CLOSURE : case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_BOOLEAN : return com.android.jack.dx.rop.code.Rops.GET_STATIC_BOOLEAN ; case com.android.jack.dx.rop.type.Type.BT_BYTE : return com.android.jack.dx.rop.code.Rops.GET_STATIC_BYTE ; case com.android.jack.dx.rop.type.Type.BT_CHAR : return com.android.jack.dx.rop.code.Rops.GET_STATIC_CHAR ; case com.android.jack.dx.rop.type.Type.BT_SHORT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_SHORT ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opGetStatic ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.GET_STATIC_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.GET_STATIC_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_BOOLEAN : return com.android.jack.dx.rop.code.Rops.GET_STATIC_BOOLEAN ; case com.android.jack.dx.rop.type.Type.BT_BYTE : return com.android.jack.dx.rop.code.Rops.GET_STATIC_BYTE ; case com.android.jack.dx.rop.type.Type.BT_CHAR : return com.android.jack.dx.rop.code.Rops.GET_STATIC_CHAR ; case com.android.jack.dx.rop.type.Type.BT_SHORT : return com.android.jack.dx.rop.code.Rops.GET_STATIC_SHORT ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }
Source:
public void fidelityWarning ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( tag , message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addFidelityWarning ( description ) ; }

Target:
public void fidelityWarning ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addFidelityWarning ( tag , description ) ; }
Source:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config , android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( config , sdp , inQos , outQos , callback ) ; }

Target:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config , android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( config , sdp , inQos , outQos , callback ) ; }
Source:
public void test_verifySignedCertificateTimestamps_withInvalidOCSPResponse ( ) throws java.lang.Exception { if ( ! ( org.conscrypt.NativeCrypto.isBoringSSL ) ) { return ; } org.conscrypt.OpenSSLX509Certificate [ ] chain = new org.conscrypt.OpenSSLX509Certificate [ ] { cert , ca } ; byte [ ] ocspResponse = new byte [ ] { 1 , 2 , 3 , 4 } ; org.conscrypt.ct.CTVerificationResult result = ctVerifier.verifySignedCertificateTimestamps ( chain , null , ocspResponse ) ; assertEquals ( 0 , result.getValidSCTs ( ) . size ( ) ) ; assertEquals ( 0 , result.getInvalidSCTs ( ) . size ( ) ) ; }

Target:
public void test_verifySignedCertificateTimestamps_withInvalidOCSPResponse ( ) throws java.lang.Exception { org.conscrypt.OpenSSLX509Certificate [ ] chain = new org.conscrypt.OpenSSLX509Certificate [ ] { cert , ca } ; byte [ ] ocspResponse = new byte [ ] { 1 , 2 , 3 , 4 } ; org.conscrypt.ct.CTVerificationResult result = ctVerifier.verifySignedCertificateTimestamps ( chain , null , ocspResponse ) ; assertEquals ( 0 , result.getValidSCTs ( ) . size ( ) ) ; assertEquals ( 0 , result.getInvalidSCTs ( ) . size ( ) ) ; }
Source:
protected void readSourceFolder ( java.io.File sourceFolder , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { java.io.File [ ] folders = sourceFolder.listFiles ( ) ; if ( folders != null ) { for ( java.io.File folder : folders ) { if ( ( folder.isDirectory ( ) ) && ( com.android.ide.common.packaging.PackagingUtils.checkFolderForPackaging ( folder.getName ( ) ) ) ) { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( folder ) ; if ( ( folderData.folderType ) != null ) { parseFolder ( sourceFolder , folder , folderData , logger ) ; } } } } }

Target:
protected void readSourceFolder ( java.io.File sourceFolder , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { java.io.File [ ] folders = sourceFolder.listFiles ( ) ; if ( folders != null ) { for ( java.io.File folder : folders ) { if ( ( folder.isDirectory ( ) ) && ( com.android.ide.common.packaging.PackagingUtils.checkFolderForPackaging ( folder.getName ( ) ) ) ) { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( folder ) ; if ( folderData != null ) { parseFolder ( sourceFolder , folder , folderData , logger ) ; } } } } }
Source:
private static void check ( long actual , long expected , java.lang.String msg ) { if ( actual != expected ) { java.lang.System.out.println ( ( ( ( ( msg + " : " ) + actual ) + " != " ) + expected ) ) ; java.lang.System.exit ( ( - 1 ) ) ; } }

Target:
private static void check ( long actual , long expected , java.lang.String msg ) { if ( actual != expected ) { java.lang.System.out.println ( ( ( ( ( msg + " : " ) + actual ) + " != " ) + expected ) ) ; java.lang.System.exit ( 1 ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }
Source:
void onRemovedFromCallList ( ) { com.android.dialer.common.LogUtil.enterBlock ( "DialerCall.onRemovedFromCallList" ) ; if ( ( videoTechManager ) != null ) { videoTechManager.dispatchRemovedFromCallList ( ) ; } if ( ( ( rttTranscript ) != null ) && ( ! ( isCallRemoved ) ) ) { com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.rtt.RttTranscriptUtil.saveRttTranscript ( context , rttTranscript ) , new com.android.dialer.common.concurrent.DefaultFutureCallback ( ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; } isCallRemoved = true ; }

Target:
void onRemovedFromCallList ( ) { com.android.dialer.common.LogUtil.enterBlock ( "DialerCall.onRemovedFromCallList" ) ; if ( ( videoTechManager ) != null ) { videoTechManager.dispatchRemovedFromCallList ( ) ; } if ( ( ( rttTranscript ) != null ) && ( ! ( isCallRemoved ) ) ) { saveRttTranscript ( ) ; } isCallRemoved = true ; }
Source:
public boolean generate ( java.lang.String key , int uid ) { try { return ( mBinder.generate ( key , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean generate ( java.lang.String key , int uid , int flags ) { try { return ( mBinder.generate ( key , uid , flags ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private void loadClass ( ) throws java.io.IOException { java.io.DataInputStream in = mInput ; int serial = in.readInt ( ) ; long id = readId ( ) ; int stackTrace = in.readInt ( ) ; java.lang.String name = mStrings.get ( readId ( ) ) ; mClassNames.put ( id , name ) ; }

Target:
private void loadClass ( ) throws java.io.IOException { java.io.DataInputStream in = mInput ; in.readInt ( ) ; long id = readId ( ) ; in.readInt ( ) ; java.lang.String name = mStrings.get ( readId ( ) ) ; mClassNames.put ( id , name ) ; }
Source:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.REJECTED , new com.android.manifmerger.Actions.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , attribute.getId ( ) , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordImplicitRejection ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.XmlElement implicitAttributeOwner ) { java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.REJECTED , new com.android.manifmerger.Actions.ActionLocation ( implicitAttributeOwner.getDocument ( ) . getSourceLocation ( ) , implicitAttributeOwner.getPosition ( ) ) , attribute.getId ( ) , null , AttributeOperationType.REPLACE ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
public void testAssistantStackFinishToPreviousApp ( ) throws java.lang.Exception { launchActivityOnDisplay ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY , android.server.cts.ActivityManagerAssistantStackTests.mAssistantDisplayId ) ; enableAssistant ( ) ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.LAUNCH_ASSISTANT_ACTIVITY_INTO_STACK , android.server.cts.ActivityManagerAssistantStackTests.EXTRA_FINISH_SELF , "true" ) ; disableAssistant ( ) ; mAmWmState.waitForValidState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.waitForActivityState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY , android.server.cts.ActivityManagerState.STATE_RESUMED ) ; mAmWmState.assertFocusedActivity ( "TestActivity should be resumed" , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; mAmWmState.assertFrontStack ( "Fullscreen stack should be on top." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertFocusedStack ( "Fullscreen stack should be focused." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }

Target:
public void testAssistantStackFinishToPreviousApp ( ) throws java.lang.Exception { launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; enableAssistant ( ) ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.LAUNCH_ASSISTANT_ACTIVITY_INTO_STACK , android.server.cts.ActivityManagerAssistantStackTests.EXTRA_FINISH_SELF , "true" ) ; disableAssistant ( ) ; mAmWmState.waitForValidState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.waitForActivityState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY , android.server.cts.ActivityManagerState.STATE_RESUMED ) ; mAmWmState.assertFocusedActivity ( "TestActivity should be resumed" , android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; mAmWmState.assertFrontStack ( "Fullscreen stack should be on top." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertFocusedStack ( "Fullscreen stack should be focused." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassObj ( this ) ; for ( java.lang.Object value : getStaticFieldValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassObj ( this ) ; for ( java.lang.Object value : getStaticFieldValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( this , ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; }
Source:
private static java.lang.reflect.Method getDumpHprofDataMethod ( ) { java.lang.ClassLoader myLoader = Main.class . getClassLoader ( ) ; java.lang.Class vmdClass ; try { vmdClass = myLoader.loadClass ( "dalvik.system.VMDebug" ) ; } catch ( java.lang.ClassNotFoundException cnfe ) { return null ; } java.lang.reflect.Method meth ; try { meth = vmdClass.getMethod ( "dumpHprofData" , new java.lang.Class [ ] { java.lang.String.class } ) ; } catch ( java.lang.NoSuchMethodException nsme ) { java.lang.System.err.println ( "Found VMDebug but not dumpHprofData method" ) ; return null ; } return meth ; }

Target:
private static java.lang.reflect.Method getDumpHprofDataMethod ( ) { java.lang.ClassLoader myLoader = Main.class . getClassLoader ( ) ; java.lang.Class < ? > vmdClass ; try { vmdClass = myLoader.loadClass ( "dalvik.system.VMDebug" ) ; } catch ( java.lang.ClassNotFoundException cnfe ) { return null ; } java.lang.reflect.Method meth ; try { meth = vmdClass.getMethod ( "dumpHprofData" , java.lang.String.class ) ; } catch ( java.lang.NoSuchMethodException nsme ) { java.lang.System.err.println ( "Found VMDebug but not dumpHprofData method" ) ; return null ; } return meth ; }
Source:
boolean start ( ) { if ( ( ( ( mAdbOsLocation ) != null ) && ( ( com.android.ddmlib.AndroidDebugBridge.sAdbServerPort ) != null ) ) && ( ( ! ( mVersionCheck ) ) || ( ! ( startAdb ( ) ) ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }

Target:
boolean start ( ) { if ( ( ( ( mAdbOsLocation ) != null ) && ( ( com.android.ddmlib.AndroidDebugBridge.sAdbServerPort ) != 0 ) ) && ( ( ! ( mVersionCheck ) ) || ( ! ( startAdb ( ) ) ) ) ) { return false ; } mStarted = true ; mDeviceMonitor = new com.android.ddmlib.DeviceMonitor ( this ) ; mDeviceMonitor.start ( ) ; return true ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { if ( visitor.needLoading ( ) ) { loader.ensureFields ( this ) ; loader.ensureMethods ( this ) ; loader.ensureAnnotations ( this ) ; } visitor.accept ( fields ) ; visitor.accept ( methods ) ; annotations.traverse ( visitor ) ; } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { if ( visitor.needLoading ( ) ) { loader.ensureFields ( this ) ; loader.ensureMethods ( this ) ; loader.ensureAnnotations ( this ) ; } visitor.accept ( fields ) ; visitor.accept ( methods ) ; visitor.accept ( annotations ) ; } visitor.endVisit ( this ) ; }
Source:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException , java.lang.ClassNotFoundException { in.defaultReadObject ( ) ; if ( ( cType ) != ( android.icu.util.IslamicCalendar.CalculationType.ISLAMIC_CIVIL ) ) return ; if ( ! ( civil ) ) cType = android.icu.util.IslamicCalendar.CalculationType.ISLAMIC ; }

Target:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException , java.lang.ClassNotFoundException { in.defaultReadObject ( ) ; if ( ( cType ) == null ) { cType = ( civil ) ? android.icu.util.IslamicCalendar.CalculationType.ISLAMIC_CIVIL : android.icu.util.IslamicCalendar.CalculationType.ISLAMIC ; } else { civil = ( cType ) == ( android.icu.util.IslamicCalendar.CalculationType.ISLAMIC_CIVIL ) ; } }
Source:
public void test_unblock_Exception ( ) throws java.lang.Exception { setup ( false ) ; try { key.unblock ( sourceAddress ) ; } catch ( java.lang.IllegalStateException expected ) { } key.drop ( ) ; try { key.unblock ( sourceAddress ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void test_unblock_Exception ( ) throws java.lang.Exception { setup ( false ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } key.drop ( ) ; try { key.unblock ( sourceAddress ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.util.MutableInt arg ) throws android.system.ErrnoException { android.util.MutableInt internalArg = new android.util.MutableInt ( arg.value ) ; try { return Libcore.os.ioctlInt ( fd , cmd , internalArg ) ; } finally { arg.value = internalArg.value ; } }

Target:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.util.MutableInt arg ) throws android.system.ErrnoException { return Libcore.os.ioctlInt ( fd , cmd , arg ) ; }
Source:
private void addNavigationBar ( ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.DEBUG ) android.util.Slog.v ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( "addNavigationBar: about to add " + ( mNavigationBarView ) ) ) ; if ( ( mNavigationBarView ) == null ) return ; prepareNavigationBarView ( ) ; mWindowManager.addView ( mNavigationBarView , getNavigationBarLayoutParams ( ) ) ; }

Target:
private void addNavigationBar ( ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.DEBUG ) android.util.Log.v ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( "addNavigationBar: about to add " + ( mNavigationBarView ) ) ) ; if ( ( mNavigationBarView ) == null ) return ; prepareNavigationBarView ( ) ; mWindowManager.addView ( mNavigationBarView , getNavigationBarLayoutParams ( ) ) ; }
Source:
private static java.lang.Class < java.lang.Void > lookupType ( ) { try { java.lang.reflect.Method method = java.lang.Runnable.class . getMethod ( "run" , EmptyArray.CLASS ) ; return ( ( java.lang.Class < java.lang.Void > ) ( method.getReturnType ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
private static native java.lang.Class < java.lang.Void > lookupType ( ) ;
Source:
private void updateNodeProxies ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi , com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode parentKey ) { if ( vi == null ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode key = vi.getUiViewNode ( ) ; if ( key != null ) { mCanvas.getNodeFactory ( ) . create ( vi ) ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : vi.getChildren ( ) ) { updateNodeProxies ( child , key ) ; } }

Target:
private void updateNodeProxies ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { if ( vi == null ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode key = vi.getUiViewNode ( ) ; if ( key != null ) { mCanvas.getNodeFactory ( ) . create ( vi ) ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : vi.getChildren ( ) ) { updateNodeProxies ( child ) ; } }
Source:
static android.net.Uri getContentFilterUri ( java.lang.String query , long directoryId ) { android.net.Uri baseUri = ( ( android.os.Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.N ) ) ? com.android.dialer.searchfragment.directories.DirectoryContactsCursorLoader.ENTERPRISE_CONTENT_FILTER_URI : android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI ; return baseUri.buildUpon ( ) . appendPath ( query ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( directoryId ) ) . appendQueryParameter ( ContactsContract.REMOVE_DUPLICATE_ENTRIES , "true" ) . appendQueryParameter ( ContactsContract.LIMIT_PARAM_KEY , com.android.dialer.searchfragment.directories.DirectoryContactsCursorLoader.MAX_RESULTS ) . build ( ) ; }

Target:
static android.net.Uri getContentFilterUri ( java.lang.String query , long directoryId ) { return com.android.dialer.searchfragment.directories.DirectoryContactsCursorLoader.ENTERPRISE_CONTENT_FILTER_URI.buildUpon ( ) . appendPath ( query ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( directoryId ) ) . appendQueryParameter ( ContactsContract.REMOVE_DUPLICATE_ENTRIES , "true" ) . appendQueryParameter ( ContactsContract.LIMIT_PARAM_KEY , com.android.dialer.searchfragment.directories.DirectoryContactsCursorLoader.MAX_RESULTS ) . build ( ) ; }