auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testEmptyIterator ( ) { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; int i = 0 ; java.util.Iterator it = q.iterator ( ) ; while ( it.hasNext ( ) ) { assertTrue ( q.contains ( it.next ( ) ) ) ; ++ i ; } assertEquals ( 0 , i ) ; }

Target:
public void testEmptyIterator ( ) { java.util.NavigableSet s = new java.util.concurrent.ConcurrentSkipListSet ( ) ; assertIteratorExhausted ( s.iterator ( ) ) ; assertIteratorExhausted ( s.descendingSet ( ) . iterator ( ) ) ; }
Source:
public static void execShell ( java.lang.String command ) { dalvik.system.Zygote.nativeExecShell ( command ) ; }

Target:
public static void execShell ( java.lang.String command ) { java.lang.String [ ] args = new java.lang.String [ ] { "/system/bin/sh" , "-c" , command } ; try { Libcore.os.execv ( args [ 0 ] , args ) ; } catch ( libcore.io.ErrnoException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private static void prepareCredential ( ) { if ( ( com.google.gct.testing.launcher.CloudAuthenticator.httpTransport ) == null ) { com.google.gct.testing.launcher.CloudAuthenticator.httpTransport = com.google.gct.testing.launcher.CloudAuthenticator.createHttpTransport ( ) ; } if ( ( com.google.gct.testing.launcher.CloudAuthenticator.credential ) == null ) { if ( ! ( com.google.gct.testing.launcher.CloudAuthenticator.authorize ( ) ) ) { throw new java.lang.RuntimeException ( "Failed to authorize in Google Cloud!" ) ; } com.google.gct.testing.launcher.CloudAuthenticator.credential = com.google.gct.login.GoogleLogin.getInstance ( ) . getCredential ( ) ; } }

Target:
public static void prepareCredential ( ) { if ( ( com.google.gct.testing.launcher.CloudAuthenticator.httpTransport ) == null ) { com.google.gct.testing.launcher.CloudAuthenticator.httpTransport = com.google.gct.testing.launcher.CloudAuthenticator.createHttpTransport ( ) ; } if ( ( com.google.gct.testing.launcher.CloudAuthenticator.credential ) == null ) { if ( ! ( com.google.gct.testing.launcher.CloudAuthenticator.authorize ( ) ) ) { throw new java.lang.RuntimeException ( "Failed to authorize to Google Cloud!" ) ; } com.google.gct.testing.launcher.CloudAuthenticator.credential = com.google.gct.login.GoogleLogin.getInstance ( ) . getCredential ( ) ; } }
Source:
public void startStreaming ( android.telephony.MbmsStreamingManager streamingManager ) { try { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) ) ; } catch ( android.telephony.mbms.MbmsException e ) { android.widget.Toast.makeText ( mActivity , ( "Error starting streaming" + ( e.getErrorCode ( ) ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } }

Target:
public boolean startStreaming ( android.telephony.MbmsStreamingManager streamingManager ) { try { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) ) ; return true ; } catch ( android.telephony.mbms.MbmsException e ) { android.widget.Toast.makeText ( mActivity , ( "Error starting streaming: " + ( e.getErrorCode ( ) ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } return false ; }
Source:
private void dispose ( ) { com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor monitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.getMonitor ( ) ; monitor.removeProjectListener ( mProjectListener ) ; monitor.removeFileListener ( mFileListener ) ; synchronized ( com.android.ide.eclipse.adt.internal.sdk.Sdk.sLock ) { for ( java.util.Map.Entry < org.eclipse.core.resources.IProject , com.android.ide.eclipse.adt.internal.project.ProjectState > entry : com.android.ide.eclipse.adt.internal.sdk.Sdk.sProjectStateMap.entrySet ( ) ) { entry.getValue ( ) . setTarget ( null ) ; } } }

Target:
private void dispose ( ) { com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor monitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.getMonitor ( ) ; monitor.removeProjectListener ( mProjectListener ) ; monitor.removeFileListener ( mFileListener ) ; monitor.removeResourceEventListener ( mResourceEventListener ) ; synchronized ( com.android.ide.eclipse.adt.internal.sdk.Sdk.sLock ) { for ( java.util.Map.Entry < org.eclipse.core.resources.IProject , com.android.ide.eclipse.adt.internal.project.ProjectState > entry : com.android.ide.eclipse.adt.internal.sdk.Sdk.sProjectStateMap.entrySet ( ) ) { entry.getValue ( ) . setTarget ( null ) ; } } }
Source:
private boolean isActionBarIcon ( com.android.tools.lint.detector.api.Context context , java.lang.String name , java.io.File file ) { if ( isActionBarIcon ( name ) ) { return true ; } if ( ( ( file != null ) && ( name.startsWith ( "ic_menu_" ) ) ) && ( com.android.tools.lint.checks.IconDetector.isAndroid30 ( context , com.android.tools.lint.detector.api.Context.getFolderVersion ( file ) ) ) ) { return true ; } return false ; }

Target:
private boolean isActionBarIcon ( com.android.tools.lint.detector.api.Context context , java.lang.String name , java.io.File file ) { if ( isActionBarIcon ( name ) ) { return true ; } if ( ( ( file != null ) && ( name.startsWith ( "ic_menu_" ) ) ) && ( com.android.tools.lint.checks.IconDetector.isAndroid30 ( context , com.android.tools.lint.detector.api.ResourceContext.getFolderVersion ( file ) ) ) ) { return true ; } return false ; }
Source:
public void add ( int index , long value ) { if ( ( index < 0 ) || ( index > ( mSize ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ) ; } ensureCapacity ( 1 ) ; if ( ( ( mSize ) - index ) != 0 ) { java.lang.System.arraycopy ( mValues , index , mValues , ( index + 1 ) , ( ( mSize ) - index ) ) ; } mValues [ index ] = value ; ( mSize ) ++ ; }

Target:
public void add ( int index , long value ) { ensureCapacity ( 1 ) ; int rightSegment = ( mSize ) - index ; ( mSize ) ++ ; checkBounds ( index ) ; if ( rightSegment != 0 ) { java.lang.System.arraycopy ( mValues , index , mValues , ( index + 1 ) , rightSegment ) ; } mValues [ index ] = value ; }
Source:
public void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.CannotDeleteFileException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.delete ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( ( file.isDirectory ( ) ? new com.android.sched.util.location.DirectoryLocation ( file ) : new com.android.sched.util.location.FileLocation ( file ) ) ) ; } }

Target:
public void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( vfs.isClosed ( ) ) ; java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.delete ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( ( file.isDirectory ( ) ? new com.android.sched.util.location.DirectoryLocation ( file ) : new com.android.sched.util.location.FileLocation ( file ) ) ) ; } }
Source:
public java.util.List < java.io.File > getAidlImports ( ) { java.util.List < java.io.File > list = new java.util.ArrayList < java.io.File > ( ) ; for ( com.android.builder.AndroidDependency lib : mFlatLibraryProjects ) { java.io.File aidlLib = lib.getAidlFolder ( ) ; if ( ( aidlLib != null ) && ( aidlLib.isDirectory ( ) ) ) { list.add ( aidlLib ) ; } } return list ; }

Target:
public java.util.List < java.io.File > getAidlImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.AndroidDependency lib : mFlatLibraryProjects ) { java.io.File aidlLib = lib.getAidlFolder ( ) ; if ( ( aidlLib != null ) && ( aidlLib.isDirectory ( ) ) ) { list.add ( aidlLib ) ; } } return list ; }
Source:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( ) ) ; } com.android.dx.command.dexer.Main.createDexFile ( ) ; }

Target:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { if ( ( com.android.dx.command.dexer.Main.dexOutPool ) != null ) { com.android.dx.command.dexer.Main.dexOutputFutures.add ( com.android.dx.command.dexer.Main.dexOutPool.submit ( new com.android.dx.command.dexer.Main.DexWriter ( com.android.dx.command.dexer.Main.outputDex ) ) ) ; } else { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( com.android.dx.command.dexer.Main.outputDex ) ) ; } } com.android.dx.command.dexer.Main.createDexFile ( ) ; }
Source:
public void testDetachFromWindow ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/pkg/DetachedFromWindow.java:7: Warning: Overriding method should call super.onDetachedFromWindow [MissingSuperCall]\n" + " protected void onDetachedFromWindow() {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/DetachedFromWindow.java:26: Warning: Overriding method should call super.onDetachedFromWindow [MissingSuperCall]\n" ) + " protected void onDetachedFromWindow() {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( ( "src/test/pkg/DetachedFromWindow.java.txt=>" + "src/test/pkg/DetachedFromWindow.java" ) ) ) ; }

Target:
public void testDetachFromWindow ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/pkg/DetachedFromWindow.java:7: Error: Overriding method should call super.onDetachedFromWindow [MissingSuperCall]\n" + " protected void onDetachedFromWindow() {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/DetachedFromWindow.java:26: Error: Overriding method should call super.onDetachedFromWindow [MissingSuperCall]\n" ) + " protected void onDetachedFromWindow() {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( ( "src/test/pkg/DetachedFromWindow.java.txt=>" + "src/test/pkg/DetachedFromWindow.java" ) ) ) ; }
Source:
public void testAesCbcHmacSha256Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , android.net.cts.IpSecManagerTest.getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha256Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void swap ( ) { super . swap ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup2 ( ) { super . dup2 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup2 ( ) ; }
Source:
public void testProcSelfPagemapSane ( ) throws android.system.ErrnoException , java.io.IOException { java.io.FileDescriptor pagemap = null ; try { pagemap = android.system.Os.open ( "/proc/self/pagemap" , OsConstants.O_RDONLY , 0 ) ; for ( android.util.Pair < java.lang.Long , java.lang.Long > range : android.permission.cts.FileSystemPermissionTest.mappedPageRanges ( ) ) if ( ! ( android.permission.cts.FileSystemPermissionTest.pfnIsZero ( pagemap , range.first , range.second ) ) ) fail ( ( "Device is missing the following kernel security patch: " + "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce" ) ) ; } catch ( android.system.ErrnoException e ) { if ( ( e.errno ) == ( android.system.OsConstants.EPERM ) ) return ; throw e ; } finally { if ( pagemap != null ) android.system.Os.close ( pagemap ) ; } }

Target:
public void testProcSelfPagemapSane ( ) throws android.system.ErrnoException , java.io.IOException { java.io.FileDescriptor pagemap = null ; int dumpable = android.system.Os.prctl ( OsConstants.PR_GET_DUMPABLE , 0 , 0 , 0 , 0 ) ; android.system.Os.prctl ( OsConstants.PR_SET_DUMPABLE , 1 , 0 , 0 , 0 ) ; try { pagemap = android.system.Os.open ( "/proc/self/pagemap" , OsConstants.O_RDONLY , 0 ) ; for ( android.util.Pair < java.lang.Long , java.lang.Long > range : android.permission.cts.FileSystemPermissionTest.mappedPageRanges ( ) ) if ( ! ( android.permission.cts.FileSystemPermissionTest.pfnIsZero ( pagemap , range.first , range.second ) ) ) fail ( ( "Device is missing the following kernel security patch: " + "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce" ) ) ; } catch ( android.system.ErrnoException e ) { if ( ( e.errno ) == ( android.system.OsConstants.EPERM ) ) return ; throw e ; } finally { if ( pagemap != null ) android.system.Os.close ( pagemap ) ; android.system.Os.prctl ( OsConstants.PR_SET_DUMPABLE , dumpable , 0 , 0 , 0 ) ; } }
Source:
public void updateUserName ( int userId , java.lang.String name ) { com.android.server.pm.PackageManagerService.enforceSystemOrRoot ( "Only the system can rename users" ) ; com.android.server.pm.PackageManagerService.sUserManager.updateUserName ( userId , name ) ; }

Target:
private boolean isPackageDeviceAdmin ( java.lang.String packageName , int userId ) { android.app.admin.IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.DEVICE_POLICY_SERVICE ) ) ; try { if ( ( dpm != null ) && ( ( dpm.packageHasActiveAdmins ( packageName , userId ) ) || ( dpm.isDeviceOwner ( packageName ) ) ) ) { return true ; } } catch ( android.os.RemoteException e ) { } return false ; }
Source:
public void testGetPackage ( ) { assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.PACKAGE_NAME , mManifestTestApp.getPackage ( ) ) ; }

Target:
public void testGetActivities ( ) { assertEquals ( 1 , mManifestTestApp.getActivities ( ) . length ) ; com.android.sdklib.xml.ManifestData.Activity activity = mManifestTestApp.getActivities ( ) [ 0 ] ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertEquals ( activity , mManifestTestApp.getActivities ( ) [ 0 ] ) ; }
Source:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . deInitNan ( ) ; mUsageEnabled = true ; queryCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendNanStateChangedBroadcast ( true ) ; }

Target:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . deInitAware ( ) ; mUsageEnabled = true ; queryCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendAwareStateChangedBroadcast ( true ) ; }
Source:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertMeidDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }

Target:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertCdmaDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertNull ( deviceId ) ; assertHardwareId ( ) ; assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }
Source:
private static void assertSubArrayEquals ( byte [ ] expected , int len , byte [ ] actual ) { assertEquals ( len , actual.length ) ; for ( int i = 0 ; i < len ; ++ i ) { assertEquals ( expected [ i ] , actual [ i ] ) ; } }

Target:
private static java.lang.String intsToString ( int [ ] toConvert , int length ) { java.lang.String [ ] out = new java.lang.String [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { out [ i ] = "0x" + ( java.lang.Integer.toHexString ( toConvert [ i ] ) ) ; } return java.util.Arrays.toString ( out ) ; }
Source:
private static com.android.jack.shrob.proguard.ProguardParser createParserFromFile ( @ javax.annotation.Nonnull java.io.File file ) { try { com.android.jack.shrob.proguard.ProguardParser parser = com.android.jack.shrob.proguard.GrammarActions.createParserCommon ( new org.antlr.runtime.ANTLRFileStream ( file.getAbsolutePath ( ) ) ) ; return parser ; } catch ( java.io.IOException e ) { com.android.jack.shrob.proguard.GrammarActions.logger.log ( java.util.logging.Level.SEVERE , "Error while creating parser for file {0}" , file.getAbsolutePath ( ) ) ; } return null ; }

Target:
private static com.android.jack.shrob.proguard.ProguardParser createParserFromFile ( @ javax.annotation.Nonnull java.io.File file ) { try { com.android.jack.shrob.proguard.ProguardParser parser = com.android.jack.shrob.proguard.GrammarActions.createParserCommon ( new org.antlr.runtime.ANTLRFileStream ( file.getPath ( ) ) ) ; return parser ; } catch ( java.io.IOException e ) { com.android.jack.shrob.proguard.GrammarActions.logger.log ( java.util.logging.Level.SEVERE , "Error while creating parser for file {0}" , file.getPath ( ) ) ; } return null ; }
Source:
public void aggregateContact ( android.database.sqlite.SQLiteDatabase db , long rawContactId , java.lang.String accountType , java.lang.String accountName , long currentContactId ) { if ( ! ( mEnabled ) ) { return ; } com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates = new com.android.providers.contacts.ContactAggregator.MatchCandidateList ( ) ; com.android.providers.contacts.ContactMatcher matcher = new com.android.providers.contacts.ContactMatcher ( ) ; android.content.ContentValues values = new android.content.ContentValues ( ) ; aggregateContact ( db , rawContactId , accountType , accountName , currentContactId , candidates , matcher , values ) ; }

Target:
protected java.lang.String [ ] getCommonNicknameClusters ( java.lang.String normalizedName ) { return mCommonNicknameCache.getCommonNicknameClusters ( normalizedName ) ; }
Source:
private void processExisting ( int permissions ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException , com.android.sched.util.file.WrongPermissionException { assert ( file ) != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( ( ( com.android.sched.util.location.FileOrDirLocation ) ( location ) ) ) ; } if ( ! ( file.isDirectory ( ) ) ) { throw new com.android.sched.util.file.NotDirectoryException ( ( ( com.android.sched.util.location.DirectoryLocation ) ( location ) ) ) ; } checkPermissions ( file , permissions ) ; }

Target:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileOrDirLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( ! ( file.isDirectory ( ) ) ) { throw new com.android.sched.util.file.NotDirectoryException ( ( ( com.android.sched.util.location.DirectoryLocation ) ( location ) ) ) ; } }
Source:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( ( ( ( ( ( "" + ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1.0 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 18.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: " ) ) + ( com.android.sdklib.SdkVersionInfo.HIGHEST_KNOWN_STABLE_API ) ) + ".0.0 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }

Target:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( ( ( ( ( ( "" + ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 18.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: " ) ) + ( com.android.sdklib.SdkVersionInfo.HIGHEST_KNOWN_STABLE_API ) ) + ".0.0 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }
Source:
static android.app.ContextImpl createSystemUiContext ( android.app.ContextImpl systemContext ) { final android.app.LoadedApk packageInfo = systemContext.mPackageInfo ; android.app.ContextImpl context = new android.app.ContextImpl ( null , systemContext.mMainThread , packageInfo , null , null , null , 0 , null ) ; context.setResources ( android.app.ContextImpl.createResources ( null , packageInfo , null , Display.DEFAULT_DISPLAY , null , packageInfo.getCompatibilityInfo ( ) ) ) ; return context ; }

Target:
static android.app.ContextImpl createSystemUiContext ( android.app.ContextImpl systemContext ) { final android.app.LoadedApk loadedApk = systemContext.mLoadedApk ; android.app.ContextImpl context = new android.app.ContextImpl ( null , systemContext.mMainThread , loadedApk , null , null , null , 0 , null ) ; context.setResources ( loadedApk.createResources ( null , null , Display.DEFAULT_DISPLAY , null , loadedApk.getCompatibilityInfo ( ) ) ) ; return context ; }
Source:
private java.net.InetAddress socksGetServerAddress ( ) throws java.net.UnknownHostException { java.lang.String proxyName ; java.net.InetSocketAddress addr = ( ( java.net.InetSocketAddress ) ( proxy.address ( ) ) ) ; proxyName = addr.getHostName ( ) ; if ( proxyName == null ) { proxyName = addr.getAddress ( ) . getHostAddress ( ) ; } return java.net.InetAddress.getByName ( proxyName ) ; }

Target:
private java.net.InetAddress socksGetServerAddress ( ) throws java.net.UnknownHostException { java.net.InetSocketAddress socketAddress = ( ( java.net.InetSocketAddress ) ( proxy.address ( ) ) ) ; java.net.InetAddress address = socketAddress.getAddress ( ) ; return address != null ? address : java.net.InetAddress.getByName ( socketAddress.getHostName ( ) ) ; }
Source:
private java.util.List < java.lang.String > buildCommandLineJunit ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.CheckForNull java.lang.String jUnitRunnerName , @ javax.annotation.Nonnull java.lang.String [ ] jUnitTestClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) { java.util.List < java.lang.String > args = new java.util.ArrayList < java.lang.String > ( ) ; addStartOfCommandLine ( options , classpathFiles , args ) ; args.add ( jUnitRunnerName ) ; for ( java.lang.String className : jUnitTestClasses ) { args.add ( className ) ; } return args ; }

Target:
private java.util.List < java.lang.String > buildCommandLineJunit ( @ javax.annotation.Nonnull java.lang.String [ ] options , @ javax.annotation.CheckForNull java.lang.String jUnitRunnerName , @ javax.annotation.Nonnull java.lang.String [ ] jUnitTestClasses , @ javax.annotation.Nonnull java.io.File ... classpathFiles ) { java.util.List < java.lang.String > commandLine = new java.util.ArrayList < java.lang.String > ( ) ; addStartOfCommandLine ( options , classpathFiles , commandLine ) ; commandLine.add ( jUnitRunnerName ) ; for ( java.lang.String className : jUnitTestClasses ) { commandLine.add ( className ) ; } return commandLine ; }
Source:
public java.lang.Class < ? > forClass ( ) { if ( ( cl ) == null ) { return null ; } if ( ( java.lang.System.getSecurityManager ( ) ) != null ) { if ( sun.reflect.misc.ReflectUtil.needsPackageAccessCheck ( dalvik.system.VMStack.getCallingClassLoader ( ) , cl.getClassLoader ( ) ) ) { sun.reflect.misc.ReflectUtil.checkPackageAccess ( cl ) ; } } return cl ; }

Target:
public java.lang.Class < ? > forClass ( ) { if ( ( cl ) == null ) { return null ; } requireInitialized ( ) ; if ( ( java.lang.System.getSecurityManager ( ) ) != null ) { if ( sun.reflect.misc.ReflectUtil.needsPackageAccessCheck ( dalvik.system.VMStack.getCallingClassLoader ( ) , cl.getClassLoader ( ) ) ) { sun.reflect.misc.ReflectUtil.checkPackageAccess ( cl ) ; } } return cl ; }
Source:
public void onFailure ( int reason , java.lang.String description ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putInt ( "callbackId" , mCallbackId ) ; bundle.putInt ( "sessionId" , mSessionId ) ; bundle.putInt ( "reason" , reason ) ; bundle.putString ( "description" , description ) ; mEventFacade.postEvent ( "WifiNanRangingListenerOnFailure" , bundle ) ; }

Target:
public void onFailure ( int reason , java.lang.String description ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putInt ( "callbackId" , mCallbackId ) ; bundle.putInt ( "sessionId" , mSessionId ) ; bundle.putInt ( "reason" , reason ) ; bundle.putString ( "description" , description ) ; mEventFacade.postEvent ( "WifiAwareRangingListenerOnFailure" , bundle ) ; }
Source:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { buildBrowsablePlayersList ( ) ; buildMediaPlayersList ( ) ; } } }

Target:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { new com.android.bluetooth.avrcp.Avrcp.BrowsablePlayerListBuilder ( ) . start ( ) ; } } }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "NanSessionState:" ) ; pw.println ( ( " mSessionId: " + ( mSessionId ) ) ) ; pw.println ( ( " mIsPublishSession: " + ( mIsPublishSession ) ) ) ; pw.println ( ( " mPubSubId: " + ( mPubSubId ) ) ) ; pw.println ( ( ( " mMacByRequestorInstanceId: [" + ( mMacByRequestorInstanceId ) ) + "]" ) ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "AwareSessionState:" ) ; pw.println ( ( " mSessionId: " + ( mSessionId ) ) ) ; pw.println ( ( " mIsPublishSession: " + ( mIsPublishSession ) ) ) ; pw.println ( ( " mPubSubId: " + ( mPubSubId ) ) ) ; pw.println ( ( ( " mMacByRequestorInstanceId: [" + ( mMacByRequestorInstanceId ) ) + "]" ) ) ; }
Source:
public void test_ja ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ja = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.JAPANESE ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ぁ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ァ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "日" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Smith" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "沈" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ᄀ" , "" ) ; }

Target:
public void test_ja ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex ja = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.JAPANESE ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ぁ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ァ" , "あ" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "日" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "Smith" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "沈" , "" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ja , "ᄀ" , "" ) ; }
Source:
public java.lang.String getDescriptionForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.util.Locale languageCode , java.lang.String userRegion ) { com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType numberType = phoneUtil.getNumberType ( number ) ; if ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) { return "" ; } else if ( ! ( canBeGeocoded ( numberType ) ) ) { return getCountryNameForNumber ( number , languageCode ) ; } return getDescriptionForValidNumber ( number , languageCode , userRegion ) ; }

Target:
public java.lang.String getDescriptionForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.util.Locale languageCode , java.lang.String userRegion ) { com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType numberType = phoneUtil.getNumberType ( number ) ; if ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) { return "" ; } else if ( ! ( phoneUtil.isNumberGeographical ( numberType , number.getCountryCode ( ) ) ) ) { return getCountryNameForNumber ( number , languageCode ) ; } return getDescriptionForValidNumber ( number , languageCode , userRegion ) ; }
Source:
private void connectNativeNetdService ( ) { boolean nativeServiceAvailable = false ; try { mNetdService = INetd.Stub.asInterface ( android.os.ServiceManager.getService ( com.android.server.NetworkManagementService.NETD_SERVICE_NAME ) ) ; nativeServiceAvailable = mNetdService.isAlive ( ) ; } catch ( android.os.RemoteException e ) { } if ( ! nativeServiceAvailable ) { android.util.Slog.wtf ( com.android.server.NetworkManagementService.TAG , ( "Can't connect to NativeNetdService " + ( com.android.server.NetworkManagementService.NETD_SERVICE_NAME ) ) ) ; } }

Target:
private void connectNativeNetdService ( ) { mNetdService = android.net.util.NetdService.get ( ) ; }
Source:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; }

Target:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; }
Source:
public void moveToFront ( ) { checkCaller ( ) ; startActivityFromRecentsInner ( mTaskId , null ) ; }

Target:
public void finishAndRemoveTask ( ) { checkCaller ( ) ; synchronized ( this ) { long origId = android.os.Binder.clearCallingIdentity ( ) ; try { if ( ! ( removeTaskByIdLocked ( mTaskId , false , com.android.server.am.ActivityManagerService.REMOVE_FROM_RECENTS ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Unable to find task ID " + ( mTaskId ) ) ) ; } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } } }
Source:
public static boolean weakerAccess ( final int me , final int then ) { return ( ( ( ( me & ( org.jetbrains.asm4.Opcodes.ACC_PRIVATE ) ) > 0 ) && ( ( then & ( org.jetbrains.asm4.Opcodes.ACC_PRIVATE ) ) == 0 ) ) || ( ( ( me & ( org.jetbrains.asm4.Opcodes.ACC_PROTECTED ) ) > 0 ) && ( ( then & ( org.jetbrains.asm4.Opcodes.ACC_PUBLIC ) ) > 0 ) ) ) || ( ( org.jetbrains.jps.builders.java.dependencyView.Difference.isPackageLocal ( me ) ) && ( ( then & ( org.jetbrains.asm4.Opcodes.ACC_PROTECTED ) ) > 0 ) ) ; }

Target:
public static boolean weakerAccess ( final int me , final int then ) { return ( ( ( ( me & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PRIVATE ) ) > 0 ) && ( ( then & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PRIVATE ) ) == 0 ) ) || ( ( ( me & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PROTECTED ) ) > 0 ) && ( ( then & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PUBLIC ) ) > 0 ) ) ) || ( ( org.jetbrains.jps.builders.java.dependencyView.Difference.isPackageLocal ( me ) ) && ( ( then & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PROTECTED ) ) > 0 ) ) ; }
Source:
public void setNetworkAvailable ( final boolean networkUp ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setNetworkAvailable ( networkUp ) ; } } ) ; return ; } mAwContents.setNetworkAvailable ( networkUp ) ; }

Target:
private void loadUrlOnUiThread ( final org.chromium.content_public.browser.LoadUrlParams loadUrlParams ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { assert ( mAppTargetSdkVersion ) < ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ; mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAwContents.loadUrl ( loadUrlParams ) ; } } ) ; return ; } mAwContents.loadUrl ( loadUrlParams ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testfindStatic ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; versionedDxDir.mkdirs ( ) ; clearVersionedDxDir ( ) ; getGeneratedProxyClasses ( ) . clear ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ( ! ( versionedDxDir.exists ( ) ) ) && ( ! ( versionedDxDir.mkdirs ( ) ) ) ) { throw new java.io.IOException ( ( "Could not create " + ( versionedDxDir ) ) ) ; } clearVersionedDxDir ( ) ; getGeneratedProxyClasses ( ) . clear ( ) ; }
Source:
private void notifyHandshakeCompletedListeners ( ) { if ( ( ( listeners ) != null ) && ( ! ( listeners.isEmpty ( ) ) ) ) { javax.net.ssl.HandshakeCompletedEvent event = new javax.net.ssl.HandshakeCompletedEvent ( this , sslParameters.getSession ( ) ) ; for ( javax.net.ssl.HandshakeCompletedListener listener : listeners ) { try { listener.handshakeCompleted ( event ) ; } catch ( java.lang.RuntimeException e ) { java.lang.Thread thread = java.lang.Thread.currentThread ( ) ; thread.getUncaughtExceptionHandler ( ) . uncaughtException ( thread , e ) ; } } } }

Target:
private void notifyHandshakeCompletedListeners ( ) { if ( ( ( listeners ) != null ) && ( ! ( listeners.isEmpty ( ) ) ) ) { javax.net.ssl.HandshakeCompletedEvent event = new javax.net.ssl.HandshakeCompletedEvent ( this , sslSession ) ; for ( javax.net.ssl.HandshakeCompletedListener listener : listeners ) { try { listener.handshakeCompleted ( event ) ; } catch ( java.lang.RuntimeException e ) { java.lang.Thread thread = java.lang.Thread.currentThread ( ) ; thread.getUncaughtExceptionHandler ( ) . uncaughtException ( thread , e ) ; } } } }
Source:
public void removeTasks ( java.util.List < com.intellij.openapi.externalSystem.model.task.TaskData > tasks , com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase phase ) { if ( tasks.isEmpty ( ) ) return ; final com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.ExternalProjectsStateProvider stateProvider = com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.getInstance ( myProject ) . getStateProvider ( ) ; for ( com.intellij.openapi.externalSystem.model.task.TaskData task : tasks ) { final com.intellij.openapi.externalSystem.service.project.manage.TaskActivationState taskActivationState = stateProvider.getTasksActivation ( task.getOwner ( ) , task.getLinkedExternalProjectPath ( ) ) ; taskActivationState.getTasks ( phase ) . remove ( task.getName ( ) ) ; } fireTasksChanged ( ) ; }

Target:
public void removeTasks ( @ org.jetbrains.annotations.NotNull java.util.Collection < com.intellij.openapi.externalSystem.model.task.TaskData > tasks , @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase phase ) { if ( tasks.isEmpty ( ) ) return ; removeTasks ( com.intellij.util.containers.ContainerUtil.map ( tasks , new com.intellij.util.Function < com.intellij.openapi.externalSystem.model.task.TaskData , com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry > ( ) { @ java.lang.Override public com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry fun ( com.intellij.openapi.externalSystem.model.task.TaskData data ) { return new com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry ( data.getOwner ( ) , phase , data.getLinkedExternalProjectPath ( ) , data.getName ( ) ) ; } } ) ) ; }
Source:
public void testIntersectionType002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( INTERSECTION_TYPE_002 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.LAMBDA_TO_ANONYMOUS_CONVERTER.getName ( ) , java.lang.Boolean.TRUE.toString ( ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void testIntersectionType002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( INTERSECTION_TYPE_002 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.LAMBDA_TO_ANONYMOUS_CONVERTER.getName ( ) , java.lang.Boolean.TRUE.toString ( ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
public void testDupResourceSet ( ) throws java.lang.Exception { java.io.File root = com.android.builder.TestUtils.getRoot ( "resources" , "dupSet" ) ; com.android.builder.resources.ResourceSet set = new com.android.builder.resources.ResourceSet ( "main" ) ; set.addSource ( new java.io.File ( root , "res1" ) ) ; set.addSource ( new java.io.File ( root , "res2" ) ) ; boolean gotException = false ; try { set.loadFromFiles ( ) ; } catch ( com.android.builder.resources.DuplicateDataException e ) { gotException = true ; } assertTrue ( gotException ) ; }

Target:
public void testDupResourceSet ( ) throws java.lang.Exception { java.io.File root = com.android.builder.TestUtils.getRoot ( "resources" , "dupSet" ) ; com.android.builder.resources.ResourceSet set = new com.android.builder.resources.ResourceSet ( "main" ) ; set.addSource ( new java.io.File ( root , "res1" ) ) ; set.addSource ( new java.io.File ( root , "res2" ) ) ; boolean gotException = false ; com.android.builder.resources.RecordingLogger logger = new com.android.builder.resources.RecordingLogger ( ) ; try { set.loadFromFiles ( logger ) ; } catch ( com.android.builder.resources.DuplicateDataException e ) { gotException = true ; } checkLogger ( logger ) ; assertTrue ( gotException ) ; }
Source:
public void testKeepPausedAfterVisitingHome ( ) { mDevice.pressKeyCode ( KeyEvent.KEYCODE_MEDIA_PAUSE ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_INDEX_PLAY_PAUSE ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mDevice.pressHome ( ) ; mDevice.waitForIdle ( ) ; mMenuHelper.assertWaitForMenu ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_INDEX_PLAY_PAUSE ) ; }

Target:
private void assertButtonHasFocus ( java.lang.String buttonId ) { android.support.test.uiautomator.UiObject2 menu = mDevice.findObject ( com.android.tv.testing.uihelper.Constants.MENU ) ; android.support.test.uiautomator.UiObject2 focusedView = menu.findObject ( com.android.tv.testing.uihelper.Constants.FOCUSED_VIEW ) ; assertNotNull ( "Play controls row doesn't have a focused child." , focusedView ) ; android.support.test.uiautomator.UiObject2 focusedButtonGroup = focusedView.getParent ( ) ; assertNotNull ( "The focused item should have parent" , focusedButtonGroup ) ; assertEquals ( buttonId , focusedButtonGroup.getResourceName ( ) ) ; }
Source:
public void testRemove2_IndexOutOfBounds ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "adasdasd" ) ; c.remove ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testRemove2_IndexOutOfBounds ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.remove ( list.size ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { android.view.accessibility.AccessibilityNodeProvider ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.view.accessibility.AccessibilityNodeProvider > ( ) { @ java.lang.Override public android.view.accessibility.AccessibilityNodeProvider call ( ) { return getAccessibilityNodeProvider ( ) ; } } ) ; return ret ; } return mAwContents.getAccessibilityNodeProvider ( ) ; }

Target:
public void onInitializeAccessibilityNodeInfo ( final android.view.accessibility.AccessibilityNodeInfo info ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityNodeInfo ( info ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityNodeInfo ( info ) ; }
Source:
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 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_32 , data.length ) ; }
Source:
public void testEvaluateNetworks_untrustedNetworksAllowed_onlyDeletedEphemeral ( ) { org.mockito.Mockito.when ( mWifiConfigManager.wasEphemeralNetworkDeleted ( com.android.server.wifi.util.ScanResultUtil.createQuotedSSID ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.UNTRUSTED_SCAN_DETAIL.getScanResult ( ) . SSID ) ) ) . thenReturn ( true ) ; android.net.wifi.WifiConfiguration result = mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.UNTRUSTED_SCAN_DETAIL ) , null , null , false , true , null ) ; junit.framework.Assert.assertNull ( result ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; }

Target:
public void testEvaluateNetworks_onlyTrustedNetworksAllowed_noTrustedInScanList ( ) { android.net.wifi.WifiConfiguration result = mRecommendedNetworkEvaluator.evaluateNetworks ( com.google.android.collect.Lists.newArrayList ( mUntrustedScanDetail ) , null , null , false , false , null ) ; junit.framework.Assert.assertNull ( result ) ; org.mockito.Mockito.verifyZeroInteractions ( mNetworkScoreManager ) ; }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( ( parentElement instanceof com.android.ddmlib.IDevice ) && ( mDoTreeViewStuff ) ) { com.android.hierarchyviewerlib.device.Window [ ] list = mModel.getWindows ( ( ( com.android.ddmlib.IDevice ) ( parentElement ) ) ) ; if ( list != null ) { return list ; } } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( ( parentElement instanceof com.android.hierarchyviewerlib.device.IHvDevice ) && ( mDoTreeViewStuff ) ) { com.android.hierarchyviewerlib.models.Window [ ] list = mModel.getWindows ( ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( parentElement ) ) ) ; if ( list != null ) { return list ; } } return new java.lang.Object [ 0 ] ; }