auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.eclipse.swt.graphics.Image getColumnImage ( java.lang.Object element , int columnIndex ) { if ( columnIndex == 1 ) { if ( element instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( element ) ) ; if ( ( item.hasDefault ( ) ) == false ) { return mWarningImage ; } } } return null ; }

Target:
public org.eclipse.swt.graphics.Image getColumnImage ( java.lang.Object element , int columnIndex ) { if ( columnIndex == 1 ) { if ( element instanceof com.android.ide.common.resources.ResourceItem ) { com.android.ide.common.resources.ResourceItem item = ( ( com.android.ide.common.resources.ResourceItem ) ( element ) ) ; if ( ( item.hasDefault ( ) ) == false ) { return mWarningImage ; } } } return null ; }
Source:
public void test_hashCode ( ) throws java.lang.Exception { java.net.InetAddress addr1 = java.net.InetAddress.getByName ( "1.0.0.1" ) ; java.net.InetAddress addr2 = java.net.InetAddress.getByName ( "1.0.0.1" ) ; assertTrue ( ( ( addr1.hashCode ( ) ) == ( addr2.hashCode ( ) ) ) ) ; assertTrue ( ( ( libcore.java.net.InetAddressTest.loopback6 ( ) . hashCode ( ) ) == ( libcore.java.net.InetAddressTest.localhost6 ( ) . hashCode ( ) ) ) ) ; }

Target:
public void test_hashCode ( ) throws java.lang.Exception { java.net.InetAddress addr1 = java.net.InetAddress.getByName ( "1.0.0.1" ) ; java.net.InetAddress addr2 = java.net.InetAddress.getByName ( "1.0.0.1" ) ; org.junit.Assert.assertTrue ( ( ( addr1.hashCode ( ) ) == ( addr2.hashCode ( ) ) ) ) ; org.junit.Assert.assertTrue ( ( ( libcore.java.net.InetAddressTest.loopback6 ( ) . hashCode ( ) ) == ( libcore.java.net.InetAddressTest.localhost6 ( ) . hashCode ( ) ) ) ) ; }
Source:
public boolean onPreferenceClick ( android.support.v7.preference.Preference preference ) { new android.app.AlertDialog.Builder ( getContext ( ) ) . setMessage ( R.string.clear_saved_traces_confirm ) . setPositiveButton ( android.R.string.yes , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { com.android.traceur.AtraceUtils.clearSavedTraces ( ) ; } } ) . setNegativeButton ( android.R.string.no , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { dialog.dismiss ( ) ; } } ) . create ( ) . show ( ) ; return true ; }

Target:
public boolean onPreferenceClick ( android.support.v7.preference.Preference preference ) { new android.app.AlertDialog.Builder ( getContext ( ) ) . setTitle ( R.string.clear_saved_traces_question ) . setMessage ( R.string.all_traces_will_be_deleted ) . setPositiveButton ( R.string.clear , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { com.android.traceur.AtraceUtils.clearSavedTraces ( ) ; } } ) . setNegativeButton ( android.R.string.no , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { dialog.dismiss ( ) ; } } ) . create ( ) . show ( ) ; return true ; }
Source:
public void testWrongLogin ( ) throws java.lang.Throwable { java.util.List < org.jetbrains.plugins.github.api.GithubGist.FileContent > expected = createContent ( ) ; org.jetbrains.plugins.github.GithubAuthData auth = myGitHubSettings.getAuthData ( ) ; org.jetbrains.plugins.github.GithubAuthData myAuth = org.jetbrains.plugins.github.GithubAuthData.createBasicAuth ( auth.getHost ( ) , ( ( myLogin1 ) + "some_suffix" ) , myPassword ) ; java.lang.String url = org.jetbrains.plugins.github.GithubCreateGistAction.createGist ( myProject , myAuth , expected , true , org.jetbrains.plugins.github.GIST_DESCRIPTION , null ) ; assertNull ( "Gist was created" , url ) ; checkNotification ( NotificationType.ERROR , "Can't create Gist" , null ) ; }

Target:
public void testWrongLogin ( ) throws java.lang.Throwable { java.util.List < org.jetbrains.plugins.github.api.GithubGist.FileContent > expected = createContent ( ) ; org.jetbrains.plugins.github.util.GithubAuthData auth = myGitHubSettings.getAuthData ( ) ; org.jetbrains.plugins.github.util.GithubAuthData myAuth = org.jetbrains.plugins.github.util.GithubAuthData.createBasicAuth ( auth.getHost ( ) , ( ( myLogin1 ) + "some_suffix" ) , myPassword ) ; java.lang.String url = org.jetbrains.plugins.github.GithubCreateGistAction.createGist ( myProject , myAuth , expected , true , org.jetbrains.plugins.github.GIST_DESCRIPTION , null ) ; assertNull ( "Gist was created" , url ) ; checkNotification ( NotificationType.ERROR , "Can't create Gist" , null ) ; }
Source:
public void testGetNetworkCountryIso ( ) { android.content.pm.PackageManager packageManager = getContext ( ) . getPackageManager ( ) ; java.lang.String countryCode = mTelephonyManager.getNetworkCountryIso ( ) ; if ( packageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { assertTrue ( ( ( ( "Country code '" + countryCode ) + "' did not match " ) + ( android.telephony.cts.TelephonyManagerTest.ISO_COUNTRY_CODE_PATTERN ) ) , java.util.regex.Pattern.matches ( android.telephony.cts.TelephonyManagerTest.ISO_COUNTRY_CODE_PATTERN , countryCode ) ) ; } else { } }

Target:
public void testGetSimCountryIso ( ) { android.content.pm.PackageManager packageManager = android.telephony.cts.TelephonyManagerTest.getContext ( ) . getPackageManager ( ) ; java.lang.String countryCode = mTelephonyManager.getSimCountryIso ( ) ; if ( packageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { org.junit.Assert.assertTrue ( ( ( ( "Country code '" + countryCode ) + "' did not match " ) + ( android.telephony.cts.TelephonyManagerTest.ISO_COUNTRY_CODE_PATTERN ) ) , java.util.regex.Pattern.matches ( android.telephony.cts.TelephonyManagerTest.ISO_COUNTRY_CODE_PATTERN , countryCode ) ) ; } else { } }
Source:
public synchronized void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile file ) throws com.android.sched.util.file.CannotDeleteFileException { com.android.sched.vfs.BaseVElement element = map.get ( name ) ; if ( ( element != null ) && ( element instanceof com.android.sched.vfs.BaseVFile ) ) { map.remove ( name ) ; vfs.delete ( ( ( com.android.sched.vfs.BaseVFile ) ( file ) ) ) ; return ; } throw new com.android.sched.util.file.CannotDeleteFileException ( vfs.getVFileLocation ( this , name ) ) ; }

Target:
synchronized void internalDelete ( @ javax.annotation.Nonnull java.lang.String name ) { map.remove ( name ) ; }
Source:
protected synchronized native int peek ( java.net.InetAddress i ) throws java.io.IOException ;

Target:
protected synchronized int peek ( java.net.InetAddress i ) throws java.io.IOException { java.net.DatagramPacket p = new java.net.DatagramPacket ( libcore.util.EmptyArray.BYTE , 0 ) ; doRecv ( p , android.system.OsConstants.MSG_PEEK ) ; i.holder ( ) . address = p.getAddress ( ) . holder ( ) . address ; return p.getPort ( ) ; }
Source:
private void setIpAddressStatus ( ) { java.lang.String ipAddress = com.android.settings.Utils.getDefaultIpAddresses ( this . mCM ) ; if ( ipAddress != null ) { mIpAddress.setSummary ( ipAddress ) ; } else { mIpAddress.setSummary ( mUnavailable ) ; } }

Target:
private void setBtStatus ( ) { android.bluetooth.BluetoothAdapter bluetooth = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; if ( ( bluetooth != null ) && ( ( mBtAddress ) != null ) ) { java.lang.String address = ( bluetooth.isEnabled ( ) ) ? bluetooth.getAddress ( ) : null ; if ( ! ( android.text.TextUtils.isEmpty ( address ) ) ) { mBtAddress.setSummary ( address.toLowerCase ( ) ) ; } else { mBtAddress.setSummary ( mUnavailable ) ; } } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mHasFeature = ( mHasFeature ) && ( hasDeviceFeature ( "android.software.managed_users" ) ) ; if ( mHasFeature ) { mUserId = createManagedProfile ( ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.MANAGED_PROFILE_APK ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.INTENT_RECEIVER_APK ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.INTENT_SENDER_APK ) ; setProfileOwner ( ( ( ( com.android.cts.devicepolicy.ManagedProfileTest.MANAGED_PROFILE_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ManagedProfileTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; startUser ( mUserId ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mHasFeature = ( mHasFeature ) && ( hasDeviceFeature ( "android.software.managed_users" ) ) ; mHasNfcFeature = hasDeviceFeature ( "android.hardware.nfc" ) ; if ( mHasFeature ) { mUserId = createManagedProfile ( ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.MANAGED_PROFILE_APK ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.INTENT_RECEIVER_APK ) ; installApp ( com.android.cts.devicepolicy.ManagedProfileTest.INTENT_SENDER_APK ) ; setProfileOwner ( ( ( ( com.android.cts.devicepolicy.ManagedProfileTest.MANAGED_PROFILE_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ManagedProfileTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; startUser ( mUserId ) ; } }
Source:
public boolean isAssociated ( Value value , final int inputId ) { final java.lang.Object input = getInput ( value ) ; if ( input instanceof com.intellij.util.indexing.TIntHashSet ) { return ( ( com.intellij.util.indexing.TIntHashSet ) ( input ) ) . contains ( inputId ) ; } if ( input instanceof java.lang.Integer ) { return inputId == ( ( ( java.lang.Integer ) ( input ) ) . intValue ( ) ) ; } if ( input instanceof com.intellij.util.indexing.ValueContainerImpl.IdBitSet ) { return ( ( com.intellij.util.indexing.ValueContainerImpl.IdBitSet ) ( input ) ) . get ( inputId ) ; } return false ; }

Target:
public boolean isAssociated ( Value value , final int inputId ) { final java.lang.Object fileSetObject = getFileSetObject ( value ) ; if ( fileSetObject instanceof com.intellij.util.indexing.TIntHashSet ) { return ( ( com.intellij.util.indexing.TIntHashSet ) ( fileSetObject ) ) . contains ( inputId ) ; } if ( fileSetObject instanceof java.lang.Integer ) { return inputId == ( ( ( java.lang.Integer ) ( fileSetObject ) ) . intValue ( ) ) ; } if ( fileSetObject instanceof com.intellij.util.indexing.ValueContainerImpl.IdBitSet ) { return ( ( com.intellij.util.indexing.ValueContainerImpl.IdBitSet ) ( fileSetObject ) ) . get ( inputId ) ; } return false ; }
Source:
protected java.lang.String createMessage ( @ javax.annotation.Nonnull java.lang.String description ) { return ( ( ( ( description + " cannot have its " ) + ( ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ? "readable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ? "writable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.EXECUTE ) ? "executable" : "???" ) ) + " permission " ) + ( ( setOrClear ) == ( com.android.sched.util.file.CannotSetPermissionException.SetOrClearPermission.SET ) ? "set" : ( setOrClear ) == ( com.android.sched.util.file.CannotSetPermissionException.SetOrClearPermission.CLEAR ) ? "cleared" : "???" ) ) + ( ( change ) == ( com.android.sched.util.file.FileOrDirectory.ChangePermission.EVERYBODY ) ? " for everybody" : "" ) ; }

Target:
protected java.lang.String createMessage ( @ javax.annotation.Nonnull java.lang.String description ) { return ( ( ( ( description + " cannot have its " ) + ( ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ? "readable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ? "writable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.EXECUTE ) ? "executable" : "???" ) ) + " permission " ) + ( ( setOrClear ) == ( com.android.sched.util.file.CannotChangePermissionException.SetOrClearPermission.SET ) ? "set" : ( setOrClear ) == ( com.android.sched.util.file.CannotChangePermissionException.SetOrClearPermission.CLEAR ) ? "cleared" : "???" ) ) + ( ( change ) == ( com.android.sched.util.file.FileOrDirectory.ChangePermission.EVERYBODY ) ? " for everybody" : "" ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aget_char.d.T_aget_char_1 t = new dot.junit.opcodes.aget_char.d.T_aget_char_1 ( ) ; char [ ] arr = new char [ 2 ] ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aget_char.d.T_aget_char_5" , java.lang.VerifyError.class ) ; }
Source:
public void compareExtStructure ( ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( com.android.jack.compile.androidtree.ext.ExtCompilationTest.BOOTCLASSPATH , null , com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST , false , true , 0.4F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public void compareExtStructure ( ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( new com.android.jack.Options ( ) , com.android.jack.compile.androidtree.ext.ExtCompilationTest.BOOTCLASSPATH , null , com.android.jack.compile.androidtree.ext.ExtCompilationTest.REF_BOOTCLASSPATH , null , com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST , false , true , 0.4F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
public < T > T getReference ( int idx , java.lang.Class < T > referenceType ) { if ( referenceType != ( type.ptypes ( ) [ idx ] ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "Argument: " + idx ) + " is not of type " ) + referenceType ) ) ; } return ( ( T ) ( references [ idx ] ) ) ; }

Target:
public < T > T getReference ( int idx , java.lang.Class < T > referenceType ) { if ( referenceType != ( type.ptypes ( ) [ idx ] ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( ( ( "Argument: " + idx ) + " is of type " ) + ( type.ptypes ( ) [ idx ] ) ) + " expected " ) + referenceType ) + "" ) ) ; } return ( ( T ) ( references [ idx ] ) ) ; }
Source:
public K getKey ( ) { return entry.getKey ( ) ; }

Target:
public static < K , V > java.util.Map < K , java.util.Set < V > > asMap ( com.google.common.collect.SetMultimap < K , V > multimap ) { return ( ( java.util.Map < K , java.util.Set < V > > ) ( ( java.util.Map < K , ? > ) ( multimap.asMap ( ) ) ) ) ; }
Source:
private static void setDefaultChangeableProperties ( java.util.Properties p ) { p.put ( "java.io.tmpdir" , "/tmp" ) ; p.put ( "user.home" , "" ) ; }

Target:
private static void setDefaultChangeableProperties ( java.util.Properties p ) { if ( ! ( java.lang.System.unchangeableSystemProperties.containsKey ( "java.io.tmpdir" ) ) ) { p.put ( "java.io.tmpdir" , "/tmp" ) ; } if ( ! ( java.lang.System.unchangeableSystemProperties.containsKey ( "user.home" ) ) ) { p.put ( "user.home" , "" ) ; } }
Source:
private boolean isRequired ( ) { int first_api_level = java.lang.System.GetProperty ( "ro.product.first_api_level" ) ; if ( first_api_level && ( first_api_level < ( android.security.cts.EncryptionTest.min_api_level ) ) ) { return false ; } else { return ! ( hasLowRAM ( ) ) ; } }

Target:
public void testEncryption ( ) throws java.lang.Exception { if ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) { return ; } if ( hasLowRAM ( ) ) { android.util.Log.i ( android.security.cts.EncryptionTest.TAG , "hasLowRAM: true" ) ; return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement == ( this ) ) { return mUpdaterData.getSources ( ) . getSources ( ) ; } else if ( parentElement instanceof com.android.sdklib.internal.repository.RepoSource ) { return getRepoSourceChildren ( ( ( com.android.sdklib.internal.repository.RepoSource ) ( parentElement ) ) ) ; } else if ( parentElement instanceof java.lang.Package ) { return getPackageChildren ( ( ( java.lang.Package ) ( parentElement ) ) ) ; } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object parentElement ) { if ( parentElement == ( this ) ) { return mUpdaterData.getSources ( ) . getSources ( ) ; } else if ( parentElement instanceof com.android.sdklib.internal.repository.SdkSource ) { return getRepoSourceChildren ( ( ( com.android.sdklib.internal.repository.SdkSource ) ( parentElement ) ) ) ; } else if ( parentElement instanceof java.lang.Package ) { return getPackageChildren ( ( ( java.lang.Package ) ( parentElement ) ) ) ; } return new java.lang.Object [ 0 ] ; }
Source:
private java.util.List < java.awt.Rectangle > getVerticalRectangles ( java.util.List < com.android.ninepatch.NinePatch.Pair < java.lang.Integer > > topPairs ) { java.util.List < java.awt.Rectangle > rectangles = new java.util.ArrayList < java.awt.Rectangle > ( ) ; for ( com.android.ninepatch.NinePatch.Pair < java.lang.Integer > top : topPairs ) { int x = top.mFirst ; int width = ( top.mSecond ) - ( top.mFirst ) ; rectangles.add ( new java.awt.Rectangle ( x , 1 , width , ( ( mImage.getHeight ( ) ) - 2 ) ) ) ; } return rectangles ; }

Target:
public java.awt.image.BufferedImage getImage ( ) { return mImage ; }
Source:
private static void waitForServiceStartAndConnect ( ) { if ( ! ( android.webkit.WebViewZygote.sStartedService ) ) { throw new android.util.AndroidRuntimeException ( ( "Tried waiting for the WebView Zygote Service to " + "start running without first starting the service." ) ) ; } java.lang.String serviceName ; synchronized ( android.webkit.WebViewZygote.sLock ) { serviceName = android.webkit.WebViewZygote.getServiceNameLocked ( ) ; } try { android.os.SystemService.waitForState ( serviceName , SystemService.State.RUNNING , 5000 ) ; } catch ( java.util.concurrent.TimeoutException e ) { android.util.Log.e ( android.webkit.WebViewZygote.LOGTAG , ( "Timed out waiting for " + serviceName ) ) ; return ; } synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.connectToZygoteIfNeededLocked ( ) ; } }

Target:
public static void setMultiprocessEnabled ( boolean enabled ) { synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.sMultiprocessEnabled = enabled ; if ( enabled ) { android.webkit.WebViewZygote.connectToZygoteIfNeededLocked ( ) ; } else { android.webkit.WebViewZygote.stopZygoteLocked ( ) ; } } }
Source:
com.android.sched.vfs.DirectFS.DirectVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) , name ) ; com.android.sched.util.file.AbstractStreamFile.check ( file , new com.android.sched.util.location.FileLocation ( file ) ) ; return new com.android.sched.vfs.DirectFS.DirectVFile ( this , parent , name ) ; }

Target:
com.android.sched.util.location.FileLocation getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return new com.android.sched.util.location.FileLocation ( getNativeFile ( parent.getPath ( ) , name ) ) ; }
Source:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( java.util.UUID uid ) { android.bluetooth.BluetoothGattDescriptor descriptor = null ; android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID ) ; if ( characteristic != null ) { descriptor = characteristic.getDescriptor ( uid ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; } } return descriptor ; }

Target:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID ) ; if ( characteristic == null ) return null ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.DESCRIPTOR_UUID ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; return null ; } return descriptor ; }
Source:
public static void createTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }

Target:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.content.pm.PackageManager pm = getContext ( ) . getPackageManager ( ) ; try { pm.getPackageInfo ( android.calllog.cts.CallLogBackupTest.CALLLOG_BACKUP_PACKAGE , 0 ) ; mCallLogBackupPackageName = android.calllog.cts.CallLogBackupTest.CALLLOG_BACKUP_PACKAGE ; } catch ( android.content.pm.PackageManager e ) { mCallLogBackupPackageName = android.calllog.cts.CallLogBackupTest.ALT_CALLLOG_BACKUP_PACKAGE ; } }
Source:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { com.android.sched.util.location.Location location = clOrI.getLocation ( ) ; if ( location instanceof com.android.jack.library.TypeInInputLibraryLocation ) { com.android.jack.library.InputLibrary inputLibrary = ( ( com.android.jack.library.TypeInInputLibraryLocation ) ( location ) ) . getInputLibraryLocation ( ) . getInputLibrary ( ) ; if ( inputLibrary.getBinaryKinds ( ) . containsAll ( session.getGeneratedBinaryKinds ( ) ) ) { return false ; } } return true ; }

Target:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { com.android.sched.util.location.Location location = clOrI.getLocation ( ) ; if ( location instanceof com.android.jack.library.TypeInInputLibraryLocation ) { com.android.jack.library.InputLibrary inputLibrary = ( ( com.android.jack.library.TypeInInputLibraryLocation ) ( location ) ) . getInputLibraryLocation ( ) . getInputLibrary ( ) ; if ( inputLibrary.getFileTypes ( ) . containsAll ( session.getGeneratedFileTypes ( ) ) ) { return false ; } } return true ; }
Source:
void waitForQueuedThread ( jsr166.SemaphoreTest.PublicSemaphore s , java.lang.Thread t ) { long startTime = java.lang.System.nanoTime ( ) ; while ( ! ( s.hasQueuedThread ( t ) ) ) { if ( ( millisElapsedSince ( startTime ) ) > ( LONG_DELAY_MS ) ) throw new jsr166.AssertionFailedError ( "timed out" ) ; java.lang.Thread.yield ( ) ; } assertTrue ( s.hasQueuedThreads ( ) ) ; assertTrue ( t.isAlive ( ) ) ; }

Target:
void waitForQueuedThread ( jsr166.SemaphoreTest.PublicSemaphore s , java.lang.Thread t ) { long startTime = java.lang.System.nanoTime ( ) ; while ( ! ( s.hasQueuedThread ( t ) ) ) { if ( ( millisElapsedSince ( startTime ) ) > ( LONG_DELAY_MS ) ) throw new junit.framework.AssertionFailedError ( "timed out" ) ; java.lang.Thread.yield ( ) ; } assertTrue ( s.hasQueuedThreads ( ) ) ; assertTrue ( t.isAlive ( ) ) ; }
Source:
public static com.android.launcher3.compat.WallpaperManagerCompat getInstance ( android.content.Context context ) { synchronized ( com.android.launcher3.compat.WallpaperManagerCompat.sInstanceLock ) { if ( ( com.android.launcher3.compat.WallpaperManagerCompat.sInstance ) == null ) { context = context.getApplicationContext ( ) ; if ( com.android.launcher3.Utilities.ATLEAST_OREO ) { try { com.android.launcher3.compat.WallpaperManagerCompat.sInstance = new com.android.launcher3.compat.WallpaperManagerCompatVOMR1 ( context ) ; } catch ( java.lang.Throwable e ) { } } if ( ( com.android.launcher3.compat.WallpaperManagerCompat.sInstance ) == null ) { com.android.launcher3.compat.WallpaperManagerCompat.sInstance = new com.android.launcher3.compat.WallpaperManagerCompatVL ( context ) ; } } return com.android.launcher3.compat.WallpaperManagerCompat.sInstance ; } }

Target:
public static com.android.launcher3.compat.WallpaperManagerCompat getInstance ( android.content.Context context ) { synchronized ( com.android.launcher3.compat.WallpaperManagerCompat.sInstanceLock ) { if ( ( com.android.launcher3.compat.WallpaperManagerCompat.sInstance ) == null ) { context = context.getApplicationContext ( ) ; if ( com.android.launcher3.Utilities.ATLEAST_OREO_MR1 ) { try { com.android.launcher3.compat.WallpaperManagerCompat.sInstance = new com.android.launcher3.compat.WallpaperManagerCompatVOMR1 ( context ) ; } catch ( java.lang.Throwable e ) { } } if ( ( com.android.launcher3.compat.WallpaperManagerCompat.sInstance ) == null ) { com.android.launcher3.compat.WallpaperManagerCompat.sInstance = new com.android.launcher3.compat.WallpaperManagerCompatVL ( context ) ; } } return com.android.launcher3.compat.WallpaperManagerCompat.sInstance ; } }
Source:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }

Target:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.onSizeChanged ( w , h , ow , oh ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; mSourcePackageName = android.wm.cts.CrossAppDragAndDropTests.SOURCE_PACKAGE_NAME ; mTargetPackageName = android.wm.cts.CrossAppDragAndDropTests.TARGET_PACKAGE_NAME ; cleanupState ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mSourcePackageName ) ) ) ; mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mTargetPackageName ) ) ) ; }
Source:
public void onComplete ( ) { BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number ) , com.android.dialer.spam.Spam.get ( this ) . isDialogReportSpamCheckedByDefault ( ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnSpamDialogClickListener ( ) { @ java.lang.Override public void onClick ( boolean isSpamChecked ) { blockReportNumberAndFinish ( number , isSpamChecked , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.BLOCK_REPORT_SPAM_DIALOG_TAG ) ; }

Target:
public void onComplete ( ) { BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number ) , com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogReportSpamCheckedByDefault ( ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnSpamDialogClickListener ( ) { @ java.lang.Override public void onClick ( boolean isSpamChecked ) { blockReportNumberAndFinish ( number , isSpamChecked , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.BLOCK_REPORT_SPAM_DIALOG_TAG ) ; }
Source:
private static void provideJarEntry ( java.util.jar.JarFile jarFile , java.util.jar.JarEntry jarEntry , com.android.apksigner.core.ApkSignerEngine.InspectJarEntryRequest request , byte [ ] tmpbuf ) throws java.io.IOException { com.android.apksigner.core.util.DataSink dataSink = request.getDataSink ( ) ; try ( java.io.InputStream in = jarFile.getInputStream ( jarEntry ) ) { int chunkSize ; while ( ( chunkSize = in.read ( tmpbuf ) ) > 0 ) { dataSink.consume ( tmpbuf , 0 , chunkSize ) ; } request.done ( ) ; } }

Target:
private static void provideJarEntry ( java.util.jar.JarFile jarFile , java.util.jar.JarEntry jarEntry , com.android.apksig.ApkSignerEngine.InspectJarEntryRequest request , byte [ ] tmpbuf ) throws java.io.IOException { com.android.apksig.util.DataSink dataSink = request.getDataSink ( ) ; try ( java.io.InputStream in = jarFile.getInputStream ( jarEntry ) ) { int chunkSize ; while ( ( chunkSize = in.read ( tmpbuf ) ) > 0 ) { dataSink.consume ( tmpbuf , 0 , chunkSize ) ; } request.done ( ) ; } }
Source:
private com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule initializeRule ( com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule , java.lang.String targetFqcn ) { try { if ( rule.onInitialize ( targetFqcn ) ) { mRulesCache.put ( targetFqcn , rule ) ; return rule ; } else { rule.onDispose ( ) ; } } catch ( java.lang.Exception e ) { logError ( "%s.onInit() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } return null ; }

Target:
private com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule initializeRule ( com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule , java.lang.String targetFqcn ) { try { if ( rule instanceof groovy.lang.GroovyObject ) { initializeMetaClass ( ( ( groovy.lang.GroovyObject ) ( rule ) ) , targetFqcn ) ; } if ( rule.onInitialize ( targetFqcn ) ) { mRulesCache.put ( targetFqcn , rule ) ; return rule ; } else { rule.onDispose ( ) ; } } catch ( java.lang.Exception e ) { logError ( "%s.onInit() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } return null ; }
Source:
private android.net.StaticIpConfiguration passThroughParcel ( android.net.StaticIpConfiguration s ) { android.os.Parcel p = android.os.Parcel.obtain ( ) ; android.net.StaticIpConfiguration s2 = null ; try { s.writeToParcel ( p , 0 ) ; p.setDataPosition ( 0 ) ; s2 = StaticIpConfiguration.CREATOR.createFromParcel ( p ) ; } finally { p.recycle ( ) ; } assertNotNull ( s2 ) ; return s2 ; }

Target:
private android.net.StaticIpConfiguration passThroughParcel ( android.net.StaticIpConfiguration s ) { android.os.Parcel p = android.os.Parcel.obtain ( ) ; android.net.StaticIpConfiguration s2 = null ; try { s.writeToParcel ( p , 0 ) ; p.setDataPosition ( 0 ) ; s2 = StaticIpConfiguration.CREATOR.createFromParcel ( p ) ; } finally { p.recycle ( ) ; } org.junit.Assert.assertNotNull ( s2 ) ; return s2 ; }
Source:
public void stopAppSwitches ( ) { if ( ( checkCallingPermission ( android.Manifest.permission.STOP_APP_SWITCHES ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "Requires permission " + ( android.Manifest.permission.STOP_APP_SWITCHES ) ) ) ; } synchronized ( this ) { mAppSwitchesAllowedTime = ( android.os.SystemClock.uptimeMillis ( ) ) + ( com.android.server.am.ActivityManagerService.APP_SWITCH_DELAY_TIME ) ; mDidAppSwitch = false ; mHandler.removeMessages ( com.android.server.am.ActivityManagerService.DO_PENDING_ACTIVITY_LAUNCHES_MSG ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.server.am.ActivityManagerService.DO_PENDING_ACTIVITY_LAUNCHES_MSG ) ; mHandler.sendMessageDelayed ( msg , com.android.server.am.ActivityManagerService.APP_SWITCH_DELAY_TIME ) ; } }

Target:
public void stopAppSwitches ( ) { if ( ( checkCallingPermission ( android.Manifest.permission.STOP_APP_SWITCHES ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "viewquires permission " + ( android.Manifest.permission.STOP_APP_SWITCHES ) ) ) ; } synchronized ( this ) { mAppSwitchesAllowedTime = ( android.os.SystemClock.uptimeMillis ( ) ) + ( com.android.server.am.ActivityManagerService.APP_SWITCH_DELAY_TIME ) ; mDidAppSwitch = false ; mHandler.removeMessages ( com.android.server.am.ActivityManagerService.DO_PENDING_ACTIVITY_LAUNCHES_MSG ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.server.am.ActivityManagerService.DO_PENDING_ACTIVITY_LAUNCHES_MSG ) ; mHandler.sendMessageDelayed ( msg , com.android.server.am.ActivityManagerService.APP_SWITCH_DELAY_TIME ) ; } }
Source:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTest.getLocales ( ) ; android.icu.text.DateFormatSymbols [ ] dfs = new android.icu.text.DateFormatSymbols [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { android.icu.util.ULocale uloc = android.icu.util.ULocale.forLocale ( locales [ i ] ) ; dfs [ i ] = android.icu.dev.test.serializable.FormatTests.getCannedDateFormatSymbols ( uloc ) ; } return dfs ; }

Target:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTestUtility.getLocales ( ) ; android.icu.text.DateFormatSymbols [ ] dfs = new android.icu.text.DateFormatSymbols [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { android.icu.util.ULocale uloc = android.icu.util.ULocale.forLocale ( locales [ i ] ) ; dfs [ i ] = android.icu.dev.test.serializable.FormatHandler.getCannedDateFormatSymbols ( uloc ) ; } return dfs ; }
Source:
public void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout ) throws com.android.builder.testing.api.DeviceException { try { iDevice.uninstallPackage ( packageName ) ; } catch ( java.lang.Exception e ) { throw new com.android.builder.testing.api.DeviceException ( e ) ; } }

Target:
public void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException { try { iDevice.installPackage ( apkFile.getAbsolutePath ( ) , true ) ; } catch ( java.lang.Exception e ) { logger.error ( e , ( "Unable to install " + ( apkFile.getAbsolutePath ( ) ) ) ) ; throw new com.android.builder.testing.api.DeviceException ( e ) ; } }
Source:
public void setVerbosityLevel ( @ javax.annotation.Nonnull com.android.jack.api.v01.VerbosityLevel arg0 ) throws com.android.jack.api.v01.ConfigurationException { }

Target:
public void setVerbosityLevel ( @ javax.annotation.Nonnull com.android.jack.api.v01.VerbosityLevel verbosityLevel ) throws com.android.jack.api.v01.ConfigurationException { com.android.jack.Options.VerbosityLevel jackVerbosityLevel ; switch ( verbosityLevel ) { case DEBUG : { jackVerbosityLevel = com.android.jack.api.v01.com.android.jack.Options.VerbosityLevel ; break ; } case ERROR : { jackVerbosityLevel = com.android.jack.api.v01.com.android.jack.Options.VerbosityLevel ; break ; } case INFO : { jackVerbosityLevel = com.android.jack.api.v01.com.android.jack.Options.VerbosityLevel ; break ; } case WARNING : { jackVerbosityLevel = com.android.jack.api.v01.com.android.jack.Options.VerbosityLevel ; break ; } default : { throw new com.android.jack.api.v01.ConfigurationException ( ( ( "Verbosity level '" + verbosityLevel ) + "' is unsupported" ) ) ; } } options.setVerbosityLevel ( jackVerbosityLevel ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { if ( ! ( mDestroyed ) ) { if ( ( ( mID ) != 0 ) && ( mRS.isAlive ( ) ) ) { mRS.nObjDestroy ( mID ) ; } mRS = null ; mID = 0 ; mDestroyed = true ; } super . finalize ( ) ; }

Target:
public void destroy ( ) { if ( mDestroyed ) { throw new android.renderscript.RSInvalidStateException ( "Object already destroyed." ) ; } helpDestroy ( ) ; }
Source:
public void TestRTWordMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( params.inclusion ) >= 9 ) { loopCount = 2000 ; } logln ( "Word Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBIWordMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBIWordMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getWordInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "word" , seed , loopCount ) ; }

Target:
public void TestRTWordMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) >= 9 ) { loopCount = 2000 ; } logln ( "Word Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBIWordMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBIWordMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getWordInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "word" , seed , loopCount ) ; }
Source:
public java.io.File getCCompiler ( com.android.build.gradle.internal.core.Abi abi ) { java.lang.String compiler = ( ( toolchain ) == ( com.android.build.gradle.internal.core.Toolchain.CLANG ) ) ? "clang" : ( abi.getGccPrefix ( ) ) + "-gcc" ; return new java.io.File ( getToolchainPath ( abi ) , ( "bin/" + compiler ) ) ; }

Target:
public java.io.File getCppCompiler ( com.android.build.gradle.internal.core.Abi abi ) { java.lang.String compiler = ( ( toolchain ) == ( com.android.build.gradle.internal.core.Toolchain.CLANG ) ) ? "clang++" : ( abi.getGccExecutablePrefix ( ) ) + "-g++" ; return new java.io.File ( getToolchainPath ( toolchain , toolchainVersion , abi ) , ( "bin/" + compiler ) ) ; }
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsUintUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; long max = ( args.inMaxValue ) & - 1 ; long min = ( args.inMinValue ) & - 1 ; long in = ( args.inValue ) & - 1 ; args.out = ( ( int ) ( java.lang.StrictMath.min ( max , java.lang.StrictMath.max ( in , min ) ) ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsUintUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; long min = ( args.inMinValue ) & 4294967295L ; long max = ( args.inMaxValue ) & 4294967295L ; long in = ( args.inValue ) & 4294967295L ; args.out = ( ( int ) ( java.lang.StrictMath.min ( max , java.lang.StrictMath.max ( in , min ) ) ) ) ; }
Source:
public int getDrmObjectType ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getDrmObjectType ( mUniqueId , path , mimeType ) ; }

Target:
public boolean canHandle ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } return _canHandle ( mUniqueId , path , mimeType ) ; }
Source:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; requestWindowFeature ( Window.FEATURE_INDETERMINATE_PROGRESS ) ; mContentResolver = getContentResolver ( ) ; mQueryHandler = new com.android.mms.ui.ManageSimMessages.QueryHandler ( mContentResolver , this ) ; setContentView ( R.layout.sim_list ) ; mSimList = ( ( android.widget.ListView ) ( findViewById ( R.id.messages ) ) ) ; mMessage = ( ( android.widget.TextView ) ( findViewById ( R.id.empty_message ) ) ) ; init ( ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; requestWindowFeature ( Window.FEATURE_INDETERMINATE_PROGRESS ) ; mContentResolver = getContentResolver ( ) ; mQueryHandler = new com.android.mms.ui.ManageSimMessages.QueryHandler ( mContentResolver , this ) ; setContentView ( R.layout.sim_list ) ; mSimList = ( ( android.widget.ListView ) ( findViewById ( R.id.messages ) ) ) ; mMessage = ( ( android.widget.TextView ) ( findViewById ( R.id.empty_message ) ) ) ; android.app.ActionBar actionBar = getActionBar ( ) ; actionBar.setDisplayHomeAsUpEnabled ( true ) ; init ( ) ; }
Source:
public void test_with_adjustment_LocalDate ( ) { java.time.OffsetDateTime test = TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalDate.of ( 2012 , 9 , 3 ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }

Target:
public void test_with_adjustment_LocalDate ( ) { java.time.OffsetDateTime test = tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalDate.of ( 2012 , 9 , 3 ) ) ; org.testng.Assert.assertEquals ( test , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 9 , 3 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }
Source:
private java.util.zip.ZipFile processZip ( java.io.File file ) throws java.util.zip.ZipException { try { return new java.util.zip.ZipFile ( file ) ; } catch ( java.util.zip.ZipException e ) { throw e ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }

Target:
private java.util.zip.ZipFile processZip ( @ javax.annotation.Nonnull java.io.File file ) throws com.android.sched.util.file.ZipException { try { return new java.util.zip.ZipFile ( file ) ; } catch ( java.util.zip.ZipException e ) { throw new com.android.sched.util.file.ZipException ( getLocation ( ) , e ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
public void showCapture ( final org.eclipse.swt.widgets.Shell shell , final com.android.hierarchyviewerlib.device.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } } } ) ; }

Target:
public void loadCaptureInBackground ( final com.android.hierarchyviewerlib.models.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { loadCapture ( viewNode ) ; } } ) ; }
Source:
public static android.net.wifi.WifiEnterpriseConfig createPEAPWifiEnterpriseConfigWithGTCPhase2 ( ) { android.net.wifi.WifiEnterpriseConfig config = new android.net.wifi.WifiEnterpriseConfig ( ) ; config.setEapMethod ( WifiEnterpriseConfig.Eap.PEAP ) ; config.setPhase2Method ( WifiEnterpriseConfig.Phase2.GTC ) ; config.setCaCertificateAliases ( new java.lang.String [ ] { ( com.android.server.wifi.WifiConfigurationTestUtil.TEST_CA_CERT_ALIAS ) + "PEAP" } ) ; config.setCaCertificates ( new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CA_CERT0 , android.net.wifi.FakeKeys.CA_CERT1 } ) ; return config ; }

Target:
public static android.net.wifi.WifiEnterpriseConfig createPEAPWifiEnterpriseConfigWithGTCPhase2 ( ) { android.net.wifi.WifiEnterpriseConfig config = new android.net.wifi.WifiEnterpriseConfig ( ) ; config.setEapMethod ( WifiEnterpriseConfig.Eap.PEAP ) ; config.setPhase2Method ( WifiEnterpriseConfig.Phase2.GTC ) ; config.setCaCertificateAliases ( new java.lang.String [ ] { ( com.android.server.wifi.WifiConfigurationTestUtil.TEST_CA_CERT_ALIAS ) + "PEAP" } ) ; config.setCaCertificates ( new java.security.cert.X509Certificate [ ] { FakeKeys.CA_CERT0 , FakeKeys.CA_CERT1 } ) ; return config ; }
Source:
protected void iterate ( ) { if ( ( -- ( n ) ) < 0 ) { n = ( list.length ) - 1 ; } java.lang.String id = list [ n ] ; java.lang.Object o = service.get ( id ) ; log.logln ( ( ( ( " id: " + id ) + " result: " ) + o ) ) ; }

Target:
protected void iterate ( ) { if ( ( -- ( n ) ) < 0 ) { n = ( list.length ) - 1 ; } java.lang.String id = list [ n ] ; java.lang.Object o = service.get ( id ) ; android.icu.dev.test.TestFmwk.logln ( ( ( ( " id: " + id ) + " result: " ) + o ) ) ; }
Source:
private void resolveIntent ( ) { android.content.Intent intent = getIntent ( ) ; mName = intent.getStringExtra ( com.android.phone.DeleteFdnContactScreen.INTENT_EXTRA_NAME ) ; mNumber = intent.getStringExtra ( com.android.phone.DeleteFdnContactScreen.INTENT_EXTRA_NUMBER ) ; if ( android.text.TextUtils.isEmpty ( mName ) ) { finish ( ) ; } }

Target:
private void deleteContact ( ) { java.lang.StringBuilder buf = new java.lang.StringBuilder ( ) ; if ( android.text.TextUtils.isEmpty ( mName ) ) { buf.append ( "number='" ) ; } else { buf.append ( "tag='" ) ; buf.append ( mName ) ; buf.append ( "' AND number='" ) ; } buf.append ( mNumber ) ; buf.append ( "' AND pin2='" ) ; buf.append ( mPin2 ) ; buf.append ( "'" ) ; android.net.Uri uri = android.net.Uri.parse ( "content://icc/fdn" ) ; mQueryHandler = new com.android.phone.DeleteFdnContactScreen.QueryHandler ( getContentResolver ( ) ) ; mQueryHandler.startDelete ( 0 , null , uri , buf.toString ( ) , null ) ; displayProgress ( true ) ; }
Source:
public int compare ( com.android.server.AlarmManagerService.Alarm a1 , com.android.server.AlarmManagerService.Alarm a2 ) { long when1 = a1.when ; long when2 = a2.when ; if ( ( when1 - when2 ) > 0 ) { return 1 ; } if ( ( when1 - when2 ) < 0 ) { return - 1 ; } return 0 ; }

Target:
public int compare ( com.android.server.AlarmManagerService.Alarm a1 , com.android.server.AlarmManagerService.Alarm a2 ) { long when1 = a1.whenElapsed ; long when2 = a2.whenElapsed ; if ( ( when1 - when2 ) > 0 ) { return 1 ; } if ( ( when1 - when2 ) < 0 ) { return - 1 ; } return 0 ; }
Source:
private void doTest ( final java.lang.String text , final java.util.List < java.lang.String > expected ) { final java.util.ArrayList < java.lang.String > tokens = new java.util.ArrayList < java.lang.String > ( ) ; new com.intellij.util.xml.converters.DelimitedListProcessor ( ";" ) { @ java.lang.Override protected void processToken ( final int start , final int end , final boolean delimitersOnly ) { tokens.add ( text.substring ( start , end ) ) ; } } . processText ( text ) ; assertEquals ( expected , tokens ) ; }

Target:
private void doTest ( final java.lang.String text , final java.util.List < java.lang.String > expected ) { final java.util.ArrayList < java.lang.String > tokens = new java.util.ArrayList < java.lang.String > ( ) ; new com.intellij.openapi.util.text.DelimitedListProcessor ( ";" ) { @ java.lang.Override protected void processToken ( final int start , final int end , final boolean delimitersOnly ) { tokens.add ( text.substring ( start , end ) ) ; } } . processText ( text ) ; assertEquals ( expected , tokens ) ; }