auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void connect ( ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; if ( ! ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.ourInitialized ) ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.init ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.setupFlushing ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.ourInitialized = true ; } } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void connect ( ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { if ( ! ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.ourInitialized ) ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.init ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.setupFlushing ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.ourInitialized = true ; } } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
public void testStageInstallWithErrorCode_withBadlyFormedRevision ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRevisionBytes = validDistroVersion.toBytes ( ) ; invalidRevisionBytes [ ( ( invalidRevisionBytes.length ) - 3 ) ] = 'A' ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidRevisionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withBadlyFormedRevision ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRevisionBytes = validDistroVersion.toBytes ( ) ; invalidRevisionBytes [ ( ( invalidRevisionBytes.length ) - 3 ) ] = 'A' ; com.android.timezone.distro.TimeZoneDistro distro = createTimeZoneDistroWithVersionBytes ( invalidRevisionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
static void native_getCTM ( int canvas , int matrix ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( canvas ) ; if ( canvasDelegate == null ) { return ; } android.graphics.Matrix_Delegate matrixDelegate = android.graphics.Matrix_Delegate.getDelegate ( matrix ) ; if ( matrixDelegate == null ) { return ; } java.awt.geom.AffineTransform transform = canvasDelegate.getSnapshot ( ) . getTransform ( ) ; matrixDelegate.set ( android.graphics.Matrix_Delegate.makeValues ( transform ) ) ; }

Target:
static void native_getCTM ( long canvas , long matrix ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( canvas ) ; if ( canvasDelegate == null ) { return ; } android.graphics.Matrix_Delegate matrixDelegate = android.graphics.Matrix_Delegate.getDelegate ( matrix ) ; if ( matrixDelegate == null ) { return ; } java.awt.geom.AffineTransform transform = canvasDelegate.getSnapshot ( ) . getTransform ( ) ; matrixDelegate.set ( android.graphics.Matrix_Delegate.makeValues ( transform ) ) ; }
Source:
public static java.util.List < java.lang.String > getTestCaseNames ( junit.framework.Test test , boolean flatten ) { java.util.List < junit.framework.Test > tests = ( ( java.util.List < junit.framework.Test > ) ( android.test.TestCaseUtil.getTests ( test , flatten ) ) ) ; java.util.List < java.lang.String > testCaseNames = com.google.android.collect.Lists.newArrayList ( ) ; for ( junit.framework.Test aTest : tests ) { testCaseNames.add ( android.test.TestCaseUtil.getTestName ( aTest ) ) ; } return testCaseNames ; }

Target:
public static java.util.List < java.lang.String > getTestCaseNames ( junit.framework.Test test , boolean flatten ) { java.util.List < junit.framework.Test > tests = ( ( java.util.List < junit.framework.Test > ) ( android.test.TestCaseUtil.getTests ( test , flatten ) ) ) ; java.util.List < java.lang.String > testCaseNames = new java.util.ArrayList < > ( ) ; for ( junit.framework.Test aTest : tests ) { testCaseNames.add ( android.test.TestCaseUtil.getTestName ( aTest ) ) ; } return testCaseNames ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = tests.support.Support_PortManager.getNextPort ( ) ; server = new tests.support.Support_TestWebServer ( ) ; server.initServer ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port , false ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; gifURLCon = openGifURLConnection ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new tests.support.Support_TestWebServer ( ) ; org.apache.harmony.luni.tests.java.net.URLConnectionTest.port = server.initServer ( ) ; url = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test1" ) ) ; uc = url.openConnection ( ) ; url2 = new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + "/test2" ) ) ; uc2 = url2.openConnection ( ) ; fileURL = createTempHelloWorldFile ( ) ; fileURLCon = fileURL.openConnection ( ) ; jarURLCon = openJarURLConnection ( ) ; gifURLCon = openGifURLConnection ( ) ; }
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( com.android.bluetooth.btservice.ProfileService.DBG ) { log ( "onBind" ) ; } if ( ( ( mAdapter ) != null ) && ( ( mBinder ) == null ) ) { throw new java.lang.UnsupportedOperationException ( ( "Cannot bind to " + ( mName ) ) ) ; } return mBinder ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( com.android.bluetooth.btservice.ProfileService.DBG ) { android.util.Log.d ( mName , "onBind" ) ; } if ( ( ( mAdapter ) != null ) && ( ( mBinder ) == null ) ) { throw new java.lang.UnsupportedOperationException ( ( "Cannot bind to " + ( mName ) ) ) ; } return mBinder ; }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , "test" ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }
Source:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }

Target:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { writeTo ( out , null , humanOut , verbose ) ; }
Source:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureIsWorkCall ( ) ; checkIfVideoCapable ( ) ; } }

Target:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureIsWorkCall ( ) ; } checkIfVideoCapable ( ) ; }
Source:
static android.support.v8.renderscript.Element createUser ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element.DataType dt ) { android.support.v8.renderscript.Element.DataKind dk = android.support.v8.renderscript.Element.DataKind.USER ; boolean norm = false ; int vecSize = 1 ; int id = rs.nElementCreate ( dt.mID , dk.mID , norm , vecSize ) ; return new android.support.v8.renderscript.Element ( id , rs , dt , dk , norm , vecSize ) ; }

Target:
static android.support.v8.renderscript.Element createUser ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element.DataType dt ) { android.support.v8.renderscript.Element.DataKind dk = android.support.v8.renderscript.Element.DataKind.USER ; boolean norm = false ; int vecSize = 1 ; long id = rs.nElementCreate ( dt.mID , dk.mID , norm , vecSize ) ; return new android.support.v8.renderscript.Element ( id , rs , dt , dk , norm , vecSize ) ; }
Source:
public java.util.Set < java.lang.String > getAbiFilters ( ) { return ndkConfig.getAbiFilters ( ) . isEmpty ( ) ? null : com.google.common.collect.Sets.newHashSet ( com.google.common.collect.Iterables.transform ( ndkConfig.getAbiFilters ( ) , new com.google.common.base.Function < com.android.build.gradle.managed.ManagedString , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( @ com.android.annotations.Nullable com.android.build.gradle.managed.ManagedString managedString ) { return managedString == null ? null : managedString.getValue ( ) ; } } ) ) ; }

Target:
public java.util.Set < java.lang.String > getAbiFilters ( ) { return ndkConfig.getAbiFilters ( ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
private boolean run ( ) throws java.io.IOException { vogar.Run run = new vogar.Run ( this ) ; if ( ( configArgs.length ) > 0 ) { run.console.verbose ( ( "loaded arguments from .vogarconfig: " + ( vogar.util.Strings.join ( " " , configArgs ) ) ) ) ; } return run.driver.buildAndRun ( actionFiles , actionClassesAndPackages ) ; }

Target:
private boolean run ( ) throws java.io.IOException { vogar.Run run = new vogar.Run ( this ) ; if ( ( configArgs.length ) > 0 ) { run.console.verbose ( ( "loaded arguments from .vogarconfig: " + ( vogar.util.Strings.join ( " " , ( ( java.lang.Object ) ( configArgs ) ) ) ) ) ) ; } return run.driver.buildAndRun ( actionFiles , actionClassesAndPackages ) ; }
Source:
private void runTaskResize ( ) throws java.lang.Exception { final java.lang.String taskIdStr = nextArgRequired ( ) ; final int taskId = java.lang.Integer.valueOf ( taskIdStr ) ; final android.graphics.Rect bounds = getBounds ( ) ; if ( bounds == null ) { java.lang.System.err.println ( "Error: invalid input bounds" ) ; return ; } try { mAm.resizeTask ( taskId , bounds ) ; } catch ( android.os.RemoteException e ) { } }

Target:
private void runTaskResize ( ) throws java.lang.Exception { final java.lang.String taskIdStr = nextArgRequired ( ) ; final int taskId = java.lang.Integer.parseInt ( taskIdStr ) ; final android.graphics.Rect bounds = getBounds ( ) ; if ( bounds == null ) { java.lang.System.err.println ( "Error: invalid input bounds" ) ; return ; } try { mAm.resizeTask ( taskId , bounds ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void onPinnedStackAnimationEnded ( ) { if ( com.android.systemui.pip.tv.PipManager.DEBUG ) android.util.Log.d ( com.android.systemui.pip.tv.PipManager.TAG , "onPinnedStackAnimationEnded()" ) ; if ( ! ( checkCurrentUserId ( mContext , com.android.systemui.pip.tv.PipManager.DEBUG ) ) ) { return ; } switch ( getState ( ) ) { case com.android.systemui.pip.tv.PipManager.STATE_PIP_MENU : showPipMenu ( ) ; break ; } }

Target:
public void onPinnedStackAnimationEnded ( ) { if ( com.android.systemui.pip.tv.PipManager.DEBUG ) android.util.Log.d ( com.android.systemui.pip.tv.PipManager.TAG , "onPinnedStackAnimationEnded()" ) ; switch ( getState ( ) ) { case com.android.systemui.pip.tv.PipManager.STATE_PIP_MENU : showPipMenu ( ) ; break ; } }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , true , true , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , uid , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
public void testRootnF32 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandomInts ( 305419896 , 32 , 1 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n1 ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }

Target:
public void testRootnF32 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandomInts ( 305419896 , 1 , 32 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n1 ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.ThreeAddressCode tcaBuilder = new com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.ThreeAddressCode ( method ) ; tcaBuilder.accept ( method ) ; new com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.SubTreeDefinitionMarkersRemover ( ) . accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.ThreeAddressCode tcaBuilder = new com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.ThreeAddressCode ( method ) ; tcaBuilder.accept ( method ) ; new com.android.jack.transformations.threeaddresscode.ThreeAddressCodeBuilder.SubTreeDefinitionMarkersRemover ( ) . accept ( method ) ; }
Source:
public java.util.List < com.android.jack.cfg.CatchBasicBlock > getExceptionBlocks ( ) { if ( ( getInternalSuccessors ( ) . get ( com.android.jack.cfg.PeiBasicBlock.NO_CATCH_EXCEPTION_INDEX ) ) != null ) { return java.util.Collections.< com.android.jack.cfg.CatchBasicBlock > emptyList ( ) ; } return ( ( java.util.List < com.android.jack.cfg.CatchBasicBlock > ) ( ( java.util.List < ? extends com.android.jack.cfg.BasicBlock > ) ( getInternalSuccessors ( ) . subList ( com.android.jack.cfg.PeiBasicBlock.EXCEPTION_BLOCKS_START_INDEX , getInternalSuccessors ( ) . size ( ) ) ) ) ) ; }

Target:
public java.util.List < com.android.jack.cfg.CatchBasicBlock > getExceptionBlocks ( ) { return ( ( java.util.List < com.android.jack.cfg.CatchBasicBlock > ) ( ( java.util.List < ? extends com.android.jack.cfg.BasicBlock > ) ( getInternalSuccessors ( ) . subList ( com.android.jack.cfg.PeiBasicBlock.EXCEPTION_BLOCKS_START_INDEX , getInternalSuccessors ( ) . size ( ) ) ) ) ) ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatViewerFilter > getCurrentLiveFilters ( ) { java.util.List < com.android.ddmuilib.logcat.LogCatViewerFilter > liveFilters = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatViewerFilter > ( ) ; java.util.List < com.android.ddmuilib.logcat.LogCatFilter > liveFilterSettings = com.android.ddmuilib.logcat.LogCatFilter.fromString ( mLiveFilterText.getText ( ) , com.android.ddmlib.Log.LogLevel.getByString ( mLiveFilterLevelCombo.getText ( ) ) ) ; for ( com.android.ddmuilib.logcat.LogCatFilter s : liveFilterSettings ) { liveFilters.add ( new com.android.ddmuilib.logcat.LogCatViewerFilter ( s ) ) ; } return liveFilters ; }

Target:
private java.util.List < com.android.ddmuilib.logcat.LogCatFilter > getCurrentLiveFilters ( ) { return com.android.ddmuilib.logcat.LogCatFilter.fromString ( mLiveFilterText.getText ( ) , com.android.ddmlib.Log.LogLevel.getByString ( mLiveFilterLevelCombo.getText ( ) ) ) ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicBlur create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) && ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8 ( rs ) ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } int id = rs.nScriptIntrinsicCreate ( 5 , e.getID ( rs ) ) ; android.support.v8.renderscript.ScriptIntrinsicBlur sib = new android.support.v8.renderscript.ScriptIntrinsicBlur ( id , rs ) ; sib.setRadius ( 5.0F ) ; return sib ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicBlur create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) && ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8 ( rs ) ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } long id = rs.nScriptIntrinsicCreate ( 5 , e.getID ( rs ) ) ; android.support.v8.renderscript.ScriptIntrinsicBlur sib = new android.support.v8.renderscript.ScriptIntrinsicBlur ( id , rs ) ; sib.setRadius ( 5.0F ) ; return sib ; }
Source:
public void testInstallWithInvalidBundleVersionFile ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithInvalidBundleVersion ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertFalse ( installer.install ( tzData.getBundleBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstallWithInvalidBundleVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithInvalidBundleVersion ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertFalse ( installer.install ( tzData.getBundleBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public static int waitpid ( int pid , android.system.Int32Ref status , int options ) throws android.system.ErrnoException { if ( status == null ) { return Libcore.os.waitpid ( pid , null , options ) ; } else { android.system.MutableInt internalStatus = new android.system.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } } }

Target:
public static int waitpid ( int pid , android.system.Int32Ref status , int options ) throws android.system.ErrnoException { return Libcore.os.waitpid ( pid , status , options ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral literal ) { com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( literal.getFieldId ( ) . getName ( ) ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( literal.getFieldId ( ) ) ; result = new com.android.jack.dx.rop.cst.CstEnumRef ( name , nat ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral literal ) { result = new com.android.jack.dx.rop.cst.CstEnumRef ( new com.android.jack.dx.rop.cst.CstString ( literal.getFieldId ( ) . getName ( ) ) , com.android.jack.backend.dex.rop.RopHelper.createSignature ( literal.getFieldId ( ) ) ) ; return false ; }
Source:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onDetachedFromWindow ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.detach ( ) ; } }

Target:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.onDetachedFromWindow ( ) ; }
Source:
protected java.util.List < java.lang.String > getRootClassNames ( android.os.Bundle args ) { java.lang.String rootClasses = args.getString ( com.android.cts.core.runner.CoreTestRunner.ARGUMENT_ROOT_CLASSES ) ; java.util.List < java.lang.String > roots ; if ( rootClasses == null ) { roots = null ; } else { roots = com.android.cts.core.runner.CoreTestRunner.CLASS_LIST_SPLITTER.splitToList ( rootClasses ) ; } return roots ; }

Target:
private java.util.List < java.lang.String > getRootClassNames ( android.os.Bundle args ) { java.lang.String rootClasses = args.getString ( com.android.cts.core.runner.CoreTestRunner.ARGUMENT_ROOT_CLASSES ) ; java.util.List < java.lang.String > roots ; if ( rootClasses == null ) { roots = null ; } else { roots = com.android.cts.core.runner.CoreTestRunner.CLASS_LIST_SPLITTER.splitToList ( rootClasses ) ; } return roots ; }
Source:
private long getSuggestedRetryDelay ( android.os.AsyncResult ar ) { android.telephony.data.DataCallResponse response = ( ( android.telephony.data.DataCallResponse ) ( ar.result ) ) ; if ( ( response.getSuggestedRetryTime ( ) ) < 0 ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "No suggested retry delay." ) ; return com.android.internal.telephony.RetryManager.NO_SUGGESTED_RETRY_DELAY ; } else if ( ( response.getSuggestedRetryTime ( ) ) == ( java.lang.Integer.MAX_VALUE ) ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "Modem suggested not retrying." ) ; return com.android.internal.telephony.RetryManager.NO_RETRY ; } return ( ( long ) ( response.getSuggestedRetryTime ( ) ) ) ; }

Target:
private long getSuggestedRetryDelay ( android.telephony.data.DataCallResponse response ) { if ( ( response.getSuggestedRetryTime ( ) ) < 0 ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "No suggested retry delay." ) ; return com.android.internal.telephony.RetryManager.NO_SUGGESTED_RETRY_DELAY ; } else if ( ( response.getSuggestedRetryTime ( ) ) == ( java.lang.Integer.MAX_VALUE ) ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "Modem suggested not retrying." ) ; return com.android.internal.telephony.RetryManager.NO_RETRY ; } return ( ( long ) ( response.getSuggestedRetryTime ( ) ) ) ; }
Source:
public void test_isJavaIdentifierStartC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaIdentifierStart ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaIdentifierStart ( '$' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaIdentifierStart ( '_' ) ) ; assertTrue ( "digit returned true" , ( ! ( java.lang.Character.isJavaIdentifierStart ( '9' ) ) ) ) ; assertTrue ( "ignorable control returned true" , ( ! ( java.lang.Character.isJavaIdentifierStart ( '​' ) ) ) ) ; assertTrue ( "semi returned true" , ( ! ( java.lang.Character.isJavaIdentifierStart ( ';' ) ) ) ) ; }

Target:
public void test_isJavaIdentifierStartC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaIdentifierStart ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaIdentifierStart ( '$' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaIdentifierStart ( '_' ) ) ; assertFalse ( "digit returned true" , java.lang.Character.isJavaIdentifierStart ( '9' ) ) ; assertFalse ( "ignorable control returned true" , java.lang.Character.isJavaIdentifierStart ( '​' ) ) ; assertFalse ( "semi returned true" , java.lang.Character.isJavaIdentifierStart ( ';' ) ) ; }
Source:
protected boolean stop ( ) { try { unregisterReceiver ( mBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "Unable to unregister broadcast receiver" , e ) ; } mStateMachine.doQuit ( ) ; return true ; }

Target:
protected boolean stop ( ) { try { unregisterReceiver ( mBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "Unable to unregister broadcast receiver" , e ) ; } if ( ( mStateMachine ) != null ) { mStateMachine.doQuit ( ) ; } return true ; }
Source:
public boolean p2pFind ( int timeout ) { if ( timeout <= 0 ) { return p2pFind ( ) ; } if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.find ( timeout ) ; } else { return doBooleanCommand ( ( "P2P_FIND " + timeout ) ) ; } }

Target:
public boolean p2pFind ( int timeout ) { return mSupplicantP2pIfaceHal.find ( timeout ) ; }