auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTest.getLocales ( ) ; android.icu.impl.InvalidFormatException [ ] exceptions = new android.icu.impl.InvalidFormatException [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { exceptions [ i ] = new android.icu.impl.InvalidFormatException ( locales [ i ] . toString ( ) ) ; } return exceptions ; }

Target:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = android.icu.dev.test.serializable.SerializableTestUtility.getLocales ( ) ; android.icu.impl.InvalidFormatException [ ] exceptions = new android.icu.impl.InvalidFormatException [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { exceptions [ i ] = new android.icu.impl.InvalidFormatException ( locales [ i ] . toString ( ) ) ; } return exceptions ; }
Source:
public void adjustLocalOrRemoteStreamVolume ( int streamType , int direction , java.lang.String callingPackage ) { if ( android.media.AudioService.DEBUG_VOL ) android.util.Log.d ( android.media.AudioService.TAG , ( ( "adjustLocalOrRemoteStreamVolume(dir=" + direction ) + ")" ) ) ; if ( android.media.AudioSystem.isStreamActive ( AudioSystem.STREAM_MUSIC , 0 ) ) { adjustStreamVolume ( AudioSystem.STREAM_MUSIC , direction , 0 , callingPackage ) ; } else if ( mMediaFocusControl.checkUpdateRemoteStateIfActive ( AudioSystem.STREAM_MUSIC ) ) { mMediaFocusControl.adjustRemoteVolume ( AudioSystem.STREAM_MUSIC , direction , 0 ) ; } }

Target:
private void checkAllFixedVolumeDevices ( int streamType ) { mStreamStates [ streamType ] . checkFixedVolumeDevices ( ) ; }
Source:
public int getMinSdkVersion ( ) { int minSdkVersion = mMergedFlavor.getMinSdkVersion ( ) ; if ( minSdkVersion == ( - 1 ) ) { java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; minSdkVersion = com.android.builder.VariantConfiguration.sManifestParser.getMinSdkVersion ( manifestLocation ) ; } return minSdkVersion ; }

Target:
public int getMinSdkVersion ( ) { if ( ( mTestedConfig ) != null ) { return mTestedConfig.getMinSdkVersion ( ) ; } int minSdkVersion = mMergedFlavor.getMinSdkVersion ( ) ; if ( minSdkVersion == ( - 1 ) ) { java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; minSdkVersion = com.android.builder.VariantConfiguration.sManifestParser.getMinSdkVersion ( manifestLocation ) ; } return minSdkVersion ; }
Source:
synchronized void nScriptSetVarV ( int id , int slot , byte [ ] val ) { validate ( ) ; rsnScriptSetVarV ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }
Source:
private void cleanStore ( ) { for ( java.io.File dir : new java.io.File [ ] { org.conscrypt.TrustedCertificateStoreTest.DIR_SYSTEM , org.conscrypt.TrustedCertificateStoreTest.DIR_ADDED , org.conscrypt.TrustedCertificateStoreTest.DIR_DELETED , org.conscrypt.TrustedCertificateStoreTest.DIR_TEST } ) { java.io.File [ ] files = dir.listFiles ( ) ; if ( files == null ) { continue ; } for ( java.io.File file : files ) { assertTrue ( ( "Should delete " + ( file.getPath ( ) ) ) , file.delete ( ) ) ; } } store = null ; }

Target:
private void cleanStore ( ) { for ( java.io.File dir : new java.io.File [ ] { dirSystem , dirAdded , dirDeleted , dirTest } ) { java.io.File [ ] files = dir.listFiles ( ) ; if ( files == null ) { continue ; } for ( java.io.File file : files ) { assertTrue ( ( "Should delete " + ( file.getPath ( ) ) ) , file.delete ( ) ) ; } } store = null ; }
Source:
public boolean visit ( org.eclipse.jdt.core.dom.ImportDeclaration id ) { org.eclipse.jdt.core.dom.Name importName = id.getName ( ) ; if ( importName.isQualifiedName ( ) ) { org.eclipse.jdt.core.dom.QualifiedName qualifiedImportName = ( ( org.eclipse.jdt.core.dom.QualifiedName ) ( importName ) ) ; if ( qualifiedImportName.getName ( ) . getIdentifier ( ) . equals ( AndroidConstants.FN_RESOURCE_BASE ) ) { mRewriter.replace ( qualifiedImportName.getQualifier ( ) , mNewPackageName , null ) ; } } return true ; }

Target:
public boolean visit ( org.eclipse.jdt.core.dom.ImportDeclaration id ) { org.eclipse.jdt.core.dom.Name importName = id.getName ( ) ; if ( importName.isQualifiedName ( ) ) { org.eclipse.jdt.core.dom.QualifiedName qualifiedImportName = ( ( org.eclipse.jdt.core.dom.QualifiedName ) ( importName ) ) ; if ( qualifiedImportName.getName ( ) . getIdentifier ( ) . equals ( AdtConstants.FN_RESOURCE_BASE ) ) { mRewriter.replace ( qualifiedImportName.getQualifier ( ) , mNewPackageName , null ) ; } } return true ; }
Source:
protected final void doStop ( ) { executor ( com.google.common.util.concurrent.Service.State.STOPPING ) . execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { shutDown ( ) ; notifyStopped ( ) ; } catch ( java.lang.Throwable t ) { notifyFailed ( t ) ; throw com.google.common.base.Throwables.propagate ( t ) ; } } } ) ; }

Target:
public java.lang.String get ( ) { return ( ( serviceName ( ) ) + " " ) + ( state ( ) ) ; }
Source:
public void computeScroll ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { computeScroll ( ) ; } } ) ; return ; } mAwContents.computeScroll ( ) ; }

Target:
public void setHorizontalScrollbarOverlay ( final boolean overlay ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHorizontalScrollbarOverlay ( overlay ) ; } } ) ; return ; } mAwContents.setHorizontalScrollbarOverlay ( overlay ) ; }
Source:
private boolean validEfCfis ( byte [ ] data ) { if ( data != null ) { if ( ( ( data [ 0 ] ) < 1 ) || ( ( data [ 0 ] ) > 4 ) ) { logw ( ( ( "MSP byte: " + ( data [ 0 ] ) ) + " is not between 1 and 4" ) , null ) ; } return true ; } return false ; }

Target:
private boolean validEfCfis ( byte [ ] data ) { if ( data != null ) { if ( ( ( data [ 0 ] ) < 1 ) || ( ( data [ 0 ] ) > 4 ) ) { logw ( ( ( "MSP byte: " + ( data [ 0 ] ) ) + " is not between 1 and 4" ) , null ) ; } for ( byte b : data ) { if ( b != ( ( byte ) ( 255 ) ) ) { return true ; } } } return false ; }
Source:
public void testNewActivityDuringOccluded ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedActivity" ) ; gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedWithDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedWithDialogActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_ACTIVITY_OPEN , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testNewActivityDuringOccluded ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedActivity" ) ; gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedWithDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedWithDialogActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_ACTIVITY_OPEN , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
public void queryRemoteConnectionServices ( com.android.internal.telecom.RemoteServiceCallback callback ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; com.android.server.telecom.Log.startSession ( "CSW.qRCS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "queryRemoteConnectionServices %s" , callback ) ; this . queryRemoteConnectionServices ( callingUserHandle , callback ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void queryRemoteConnectionServices ( com.android.internal.telecom.RemoteServiceCallback callback ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; android.telecom.Log.startSession ( "CSW.qRCS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "queryRemoteConnectionServices %s" , callback ) ; this . queryRemoteConnectionServices ( callingUserHandle , callback ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public void testGetLastCn ( ) { assertLastCn ( "" , null ) ; assertLastCn ( "ou=xxx" , null ) ; assertLastCn ( "ou=xxx,cn=xxx" , "xxx" ) ; assertLastCn ( "ou=xxx+cn=yyy,cn=zzz+cn=abc" , "abc" ) ; assertLastCn ( "cn=a,cn=b" , "b" ) ; assertLastCn ( "cn=Cc,cn=Bb,cn=Aa" , "Aa" ) ; assertLastCn ( "cn=imap.gmail.com" , "imap.gmail.com" ) ; }

Target:
public void testGetFirstCn ( ) { assertFirstCn ( "" , null ) ; assertFirstCn ( "ou=xxx" , null ) ; assertFirstCn ( "ou=xxx,cn=xxx" , "xxx" ) ; assertFirstCn ( "ou=xxx+cn=yyy,cn=zzz+cn=abc" , "yyy" ) ; assertFirstCn ( "cn=a,cn=b" , "a" ) ; assertFirstCn ( "cn=Cc,cn=Bb,cn=Aa" , "Cc" ) ; assertFirstCn ( "cn=imap.gmail.com" , "imap.gmail.com" ) ; }
Source:
private boolean scanWithParams ( java.lang.String freqList , java.lang.String hiddenNetworkSSIDList ) { java.lang.StringBuilder scanCommand = new java.lang.StringBuilder ( ) ; scanCommand.append ( "SCAN TYPE=ONLY" ) ; if ( freqList != null ) { scanCommand.append ( ( " freq=" + freqList ) ) ; } if ( hiddenNetworkSSIDList != null ) { scanCommand.append ( ( " ssid " + hiddenNetworkSSIDList ) ) ; } return doBooleanCommand ( scanCommand.toString ( ) ) ; }

Target:
public android.net.wifi.IApInterface setupDriverForSoftApMode ( ) { android.net.wifi.IApInterface apInterface = mWificondControl.setupDriverForSoftApMode ( ) ; if ( ! ( startHal ( false ) ) ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "Failed to start HAL for AP mode" ) ; } return apInterface ; }
Source:
public void testEncrypt ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( "AES/CBC/PKCS5Padding" ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , key , iv ) ; java.io.InputStream in = new javax.crypto.CipherInputStream ( new java.io.ByteArrayInputStream ( plainText.getBytes ( "UTF-8" ) ) , cipher ) ; byte [ ] bytes = readAll ( in ) ; assertEquals ( java.util.Arrays.toString ( aesCipherText ) , java.util.Arrays.toString ( bytes ) ) ; }

Target:
public void testEncrypt ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( "AES/CBC/PKCS5Padding" ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , key , iv ) ; java.io.InputStream in = new javax.crypto.CipherInputStream ( new java.io.ByteArrayInputStream ( plainText.getBytes ( "UTF-8" ) ) , cipher ) ; byte [ ] bytes = readAll ( in ) ; assertEquals ( java.util.Arrays.toString ( aesCipherText ) , java.util.Arrays.toString ( bytes ) ) ; assertEquals ( ( - 1 ) , in.read ( ) ) ; }
Source:
public void onItemSelected ( android.widget.AdapterView < ? > parent , android.view.View view , int position , long id ) { if ( parent == ( mSecuritySpinner ) ) { mAccessPointSecurity = position ; showSecurityFields ( ) ; } else if ( parent == ( mNetworkSetupSpinner ) ) { showNetworkSetupFields ( ) ; } else if ( parent == ( mProxySettingsSpinner ) ) { showProxyFields ( ) ; } else { showIpConfigFields ( ) ; } enableSubmitIfAppropriate ( ) ; }

Target:
public void onItemSelected ( android.widget.AdapterView < ? > parent , android.view.View view , int position , long id ) { if ( parent == ( mSecuritySpinner ) ) { mAccessPointSecurity = position ; showSecurityFields ( ) ; } else if ( parent == ( mEapMethodSpinner ) ) { showSecurityFields ( ) ; } else if ( parent == ( mNetworkSetupSpinner ) ) { showNetworkSetupFields ( ) ; } else if ( parent == ( mProxySettingsSpinner ) ) { showProxyFields ( ) ; } else { showIpConfigFields ( ) ; } enableSubmitIfAppropriate ( ) ; }
Source:
private static java.util.Set < java.net.SocketOption < ? > > defaultOptions ( ) { java.util.HashSet < java.net.SocketOption < ? > > set = new java.util.HashSet < java.net.SocketOption < ? > > ( 5 ) ; set.add ( java.net.StandardSocketOptions.SO_SNDBUF ) ; set.add ( java.net.StandardSocketOptions.SO_RCVBUF ) ; set.add ( java.net.StandardSocketOptions.SO_KEEPALIVE ) ; set.add ( java.net.StandardSocketOptions.SO_REUSEADDR ) ; set.add ( java.net.StandardSocketOptions.TCP_NODELAY ) ; return java.util.Collections.unmodifiableSet ( set ) ; }

Target:
private static java.util.Set < java.net.SocketOption < ? > > defaultOptions ( ) { java.util.HashSet < java.net.SocketOption < ? > > set = new java.util.HashSet < java.net.SocketOption < ? > > ( 5 ) ; set.add ( java.net.StandardSocketOptions.SO_SNDBUF ) ; set.add ( java.net.StandardSocketOptions.SO_RCVBUF ) ; set.add ( java.net.StandardSocketOptions.SO_KEEPALIVE ) ; set.add ( java.net.StandardSocketOptions.SO_REUSEADDR ) ; set.add ( java.net.StandardSocketOptions.TCP_NODELAY ) ; if ( sun.net.ExtendedOptionsImpl.flowSupported ( ) ) { set.add ( jdk.net.ExtendedSocketOptions.SO_FLOW_SLA ) ; } return java.util.Collections.unmodifiableSet ( set ) ; }
Source:
protected void disconnect ( ) { synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }

Target:
void disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
void startHomeActivity ( android.content.Intent intent , android.content.pm.ActivityInfo aInfo ) { moveHomeStackTaskToTop ( com.android.server.am.ActivityRecord.HOME_ACTIVITY_TYPE ) ; startActivityLocked ( null , intent , null , aInfo , null , null , null , null , 0 , 0 , 0 , null , 0 , 0 , 0 , null , false , null , null , null ) ; }

Target:
void startHomeActivity ( android.content.Intent intent , android.content.pm.ActivityInfo aInfo , java.lang.String reason ) { moveHomeStackTaskToTop ( com.android.server.am.ActivityRecord.HOME_ACTIVITY_TYPE , reason ) ; startActivityLocked ( null , intent , null , aInfo , null , null , null , null , 0 , 0 , 0 , null , 0 , 0 , 0 , null , false , null , null , null ) ; }
Source:
private void initLocalAddressAndPort ( ) { java.net.SocketAddress sa ; try { sa = Libcore.os.getsockname ( fd ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( sa ) ) ; localAddress = isa.getAddress ( ) ; localPort = isa.getPort ( ) ; if ( ( socket ) != null ) { socket.socketImpl ( ) . initLocalPort ( localPort ) ; } }

Target:
void onBind ( boolean updateSocketState ) { java.net.SocketAddress sa ; try { sa = Libcore.os.getsockname ( fd ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } isBound = true ; java.net.InetSocketAddress localSocketAddress = ( ( java.net.InetSocketAddress ) ( sa ) ) ; localAddress = localSocketAddress.getAddress ( ) ; localPort = localSocketAddress.getPort ( ) ; if ( updateSocketState && ( ( socket ) != null ) ) { socket.onBind ( localAddress , localPort ) ; } }
Source:
protected void syncWithBuildFile ( ) { com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet facet = com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getInstance ( moduleSelector.getModule ( ) ) ; if ( facet != null ) { com.google.appengine.gradle.model.AppEngineModel model = facet.getIdeaAppEngineProject ( ) . getDelegate ( ) ; myServerPortField.setText ( model.getHttpPort ( ) . toString ( ) ) ; myServerAddressField.setText ( model.getHttpAddress ( ) ) ; myAppEngineSdkField.setText ( model.getAppEngineSdkRoot ( ) ) ; myWarPathField.setText ( model.getWarDir ( ) . getAbsolutePath ( ) ) ; } }

Target:
protected void syncWithBuildFile ( ) { com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet facet = com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getInstance ( moduleSelector.getModule ( ) ) ; if ( facet != null ) { com.google.gct.idea.appengine.gradle.facet.AppEngineConfigurationProperties model = facet.getConfiguration ( ) . getState ( ) ; myServerPortField.setText ( model.HTTP_PORT.toString ( ) ) ; myServerAddressField.setText ( model.HTTP_ADDRESS ) ; myAppEngineSdkField.setText ( model.APPENGINE_SDKROOT ) ; myWarPathField.setText ( model.WAR_DIR ) ; } }
Source:
public void testWildcardMatchesChildDomain ( ) { assertFalse ( verifier.verifyHostName ( "a.b.c.d" , "*.c.d" ) ) ; }

Target:
public void testWildcardsRejectedForSingleLabelPatterns ( ) { assertFalse ( verifyWithDomainNamePattern ( "d" , "*" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "d." , "*." ) ) ; assertFalse ( verifyWithDomainNamePattern ( "d" , "d*" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "d." , "d*." ) ) ; assertFalse ( verifyWithDomainNamePattern ( "d" , "*d" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "d." , "*d." ) ) ; assertFalse ( verifyWithDomainNamePattern ( "ddd" , "d*d" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "ddd." , "d*d." ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiMonitor > wifiMonitorConstructor = com.android.server.wifi.WifiMonitor.class . getDeclaredConstructor ( ) ; wifiMonitorConstructor.setAccessible ( true ) ; mWifiMonitor = org.mockito.Mockito.spy ( wifiMonitorConstructor.newInstance ( ) ) ; mLooper = new android.os.test.TestLooper ( ) ; mHandlerSpy = org.mockito.Mockito.spy ( new android.os.Handler ( mLooper.getLooper ( ) ) ) ; mWifiMonitor.setMonitoring ( com.android.server.wifi.WifiMonitorTest.WLAN_IFACE_NAME , true ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mWifiMonitor = new com.android.server.wifi.WifiMonitor ( org.mockito.Mockito.mock ( com.android.server.wifi.WifiInjector.class ) ) ; mLooper = new android.os.test.TestLooper ( ) ; mHandlerSpy = org.mockito.Mockito.spy ( new android.os.Handler ( mLooper.getLooper ( ) ) ) ; mWifiMonitor.setMonitoring ( com.android.server.wifi.WifiMonitorTest.WLAN_IFACE_NAME , true ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( new Main ( ) ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main m = new Main ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( m ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; Main.testInstanceOf ( m ) ; Main.testCheckCast ( m ) ; }
Source:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; mVersion.saveProperties ( props ) ; if ( ( mVersionName ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.PlatformPackage.PROP_VERSION , mVersionName ) ; } }

Target:
void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; mVersion.saveProperties ( props ) ; if ( ( mVersionName ) != null ) { props.setProperty ( com.android.sdklib.internal.repository.PlatformPackage.PROP_VERSION , mVersionName ) ; } if ( ( mLayoutlibVersion.getFirst ( ) . intValue ( ) ) != ( com.android.sdklib.internal.repository.PlatformPackage.LAYOUTLIB_API_NOT_SPECIFIED ) ) { props.setProperty ( com.android.sdklib.internal.repository.PlatformPackage.PROP_LAYOUTLIB_API , mLayoutlibVersion.getFirst ( ) . toString ( ) ) ; props.setProperty ( com.android.sdklib.internal.repository.PlatformPackage.PROP_LAYOUTLIB_REV , mLayoutlibVersion.getSecond ( ) . toString ( ) ) ; } }
Source:
public org.w3c.dom.Node toXml ( org.w3c.dom.Element location ) { location.appendChild ( mSourceLocation.toXml ( location.getOwnerDocument ( ) ) ) ; location.appendChild ( com.android.manifmerger.PositionImpl.toXml ( mPosition , location.getOwnerDocument ( ) ) ) ; return location ; }

Target:
public java.lang.String toString ( ) { java.lang.String toString = mSourceLocation.print ( true ) ; if ( ( mPosition ) != null ) { toString += ( ( ":" + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; } return toString ; }
Source:
private void setAndBroadcastNetworkSetTimeZone ( java.lang.String zoneId ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( "setAndBroadcastNetworkSetTimeZone: setTimeZone=" + zoneId ) ) ; } mTimeServiceHelper.setDeviceTimeZone ( zoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTimeZone: call alarm.setTimeZone and broadcast" + " zoneId=" ) + zoneId ) ) ; } }

Target:
private void setAndBroadcastNetworkSetTimeZone ( java.lang.String zoneId ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( "setAndBroadcastNetworkSetTimeZone: setTimeZone=" + zoneId ) ) ; } mTimeServiceHelper.setDeviceTimeZone ( zoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTimeZone: called setDeviceTimeZone()" + " zoneId=" ) + zoneId ) ) ; } }
Source:
private android.content.Intent getIntent ( int position ) { android.widget.ListAdapter adapter = getListAdapter ( ) ; java.util.Map < java.lang.String , ? > data = ( ( java.util.Map < java.lang.String , ? > ) ( adapter.getItem ( position ) ) ) ; return ( ( android.content.Intent ) ( data.get ( com.android.cts.verifier.TestListActivity.TestListAdapter.INTENT ) ) ) ; }

Target:
private android.content.Intent getIntent ( int position ) { com.android.cts.verifier.TestListAdapter adapter = getListAdapter ( ) ; com.android.cts.verifier.TestListAdapter.TestListItem item = adapter.getItem ( position ) ; return item.intent ; }
Source:
public void matchProviderWithNoProvidersInstalled ( ) throws java.lang.Exception { java.util.List < android.util.Pair < com.android.server.wifi.hotspot2.PasspointProvider , com.android.server.wifi.hotspot2.PasspointMatch > > result = mManager.matchProvider ( createMockScanDetail ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void matchProviderWithNoMatch ( ) throws java.lang.Exception { com.android.server.wifi.hotspot2.PasspointProvider provider = addTestProvider ( ) ; com.android.server.wifi.hotspot2.ANQPData entry = new com.android.server.wifi.hotspot2.ANQPData ( mClock , null ) ; org.mockito.Mockito.when ( mAnqpCache.getEntry ( com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_ANQP_KEY ) ) . thenReturn ( entry ) ; org.mockito.Mockito.when ( provider.match ( org.mockito.Mockito.anyMap ( ) ) ) . thenReturn ( PasspointMatch.None ) ; java.util.List < android.util.Pair < com.android.server.wifi.hotspot2.PasspointProvider , com.android.server.wifi.hotspot2.PasspointMatch > > result = mManager.matchProvider ( createTestScanResult ( ) ) ; org.junit.Assert.assertEquals ( 0 , result.size ( ) ) ; }
Source:
public com.android.sdklib.internal.repository.packages.Package.UpdateInfo canBeUpdatedBy ( java.lang.Package replacementPackage ) { if ( replacementPackage == null ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ! ( sameItemAs ( replacementPackage , true ) ) ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ( ! ( getRevision ( ) . isPreview ( ) ) ) && ( replacementPackage.getRevision ( ) . isPreview ( ) ) ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) . compareTo ( this . getRevision ( ) ) ) > 0 ) { return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.UPDATE ; } return com.android.sdklib.internal.repository.packages.Package.UpdateInfo.NOT_UPDATE ; }

Target:
public com.android.sdklib.internal.repository.packages.UpdateInfo canBeUpdatedBy ( java.lang.Package replacementPackage ) { if ( replacementPackage == null ) { return UpdateInfo.INCOMPATIBLE ; } if ( ! ( sameItemAs ( replacementPackage , true ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( ! ( getRevision ( ) . isPreview ( ) ) ) && ( replacementPackage.getRevision ( ) . isPreview ( ) ) ) { return UpdateInfo.INCOMPATIBLE ; } if ( ( replacementPackage.getRevision ( ) . compareTo ( this . getRevision ( ) ) ) > 0 ) { return UpdateInfo.UPDATE ; } return UpdateInfo.NOT_UPDATE ; }
Source:
public void run ( ) { redraw ( ) ; }

Target:
public void paintControl ( org.eclipse.swt.events.PaintEvent e ) { synchronized ( this ) { e.gc.setBackground ( org.eclipse.swt.widgets.Display.getDefault ( ) . getSystemColor ( SWT.COLOR_WHITE ) ) ; e.gc.fillRectangle ( 0 , 0 , getBounds ( ) . width , getBounds ( ) . height ) ; if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { e.gc.setTransform ( transform ) ; com.android.hierarchyvieweruilib.TreeView.paintRecursive ( e.gc , tree ) ; } } }
Source:
void createRemainingTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.internal.TaskManager taskManager , com.android.build.gradle.model.AndroidComponentSpec spec ) { com.android.build.gradle.internal.VariantManager variantManager = ( spec = DefaultAndroidComponentSpec ) . variantManager ; taskManager.createTopLevelTestTasks ( new com.android.build.gradle.model.TaskCollectionBuilderAdaptor ( tasks ) , ( ! ( variantManager.productFlavors.isEmpty ( ) ) ) ) ; }

Target:
public void createRemainingTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.internal.TaskManager taskManager , com.android.build.gradle.model.AndroidComponentSpec spec ) { com.android.build.gradle.internal.VariantManager variantManager = ( ( com.android.build.gradle.model.DefaultAndroidComponentSpec ) ( spec ) ) . getVariantManager ( ) ; taskManager.createTopLevelTestTasks ( new com.android.build.gradle.model.TaskCollectionBuilderAdaptor ( tasks ) , ( ! ( variantManager.getProductFlavors ( ) . isEmpty ( ) ) ) ) ; }
Source:
public java.util.Set < java.io.File > call ( ) { return scope.getGlobalScope ( ) . getAndroidBuilder ( ) . getPackagedJars ( config ) ; }

Target:
public java.util.Set < java.io.File > call ( ) { if ( ( config.isMinifyEnabled ( ) ) && ( ( variantData.obfuscationTask ) != null ) ) { return variantData.obfuscationTask.getOutputs ( ) . getFiles ( ) . getFiles ( ) ; } return scope.getGlobalScope ( ) . getAndroidBuilder ( ) . getPackagedJars ( config ) ; }
Source:
public void testSubjectAltNameWithIpAddress ( ) { assertTrue ( verifier.verify ( "1.2.3.4" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertFalse ( verifier.verify ( "1.2.3.5" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertTrue ( verifier.verify ( "192.168.100.1" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "192.168.100.1" ) ) ) ; }

Target:
public void testSubjectAltNameWithIpAddress ( ) { assertTrue ( verifyWithServerCertificate ( "1.2.3.4" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "1.2.3.5" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertTrue ( verifyWithServerCertificate ( "192.168.100.1" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "192.168.100.1" ) ) ) ; }
Source:
public boolean isEndpointClass ( com.intellij.psi.PsiElement psiElement ) { com.intellij.psi.PsiClass psiClass = com.google.gct.intellij.endpoints.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , false ) ) { return true ; } else { return false ; } }

Target:
public boolean isEndpointClass ( com.intellij.psi.PsiElement psiElement ) { com.intellij.psi.PsiClass psiClass = com.google.gct.intellij.endpoints.util.PsiUtils.findClass ( psiElement ) ; if ( psiClass == null ) { return false ; } if ( ( ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API , true ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_CLASS , true ) ) ) || ( com.intellij.codeInsight.AnnotationUtil.isAnnotated ( psiClass , GctConstants.APP_ENGINE_ANNOTATION_API_REFERENCE , true ) ) ) { return true ; } else { return false ; } }
Source:
private static boolean isShowFragmentMethodCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation call ) { java.lang.String methodName = call.astName ( ) . astValue ( ) ; return ( com.android.tools.lint.checks.CleanupDetector.SHOW.equals ( methodName ) ) && ( com.android.tools.lint.checks.CleanupDetector.isMethodOnFragmentClass ( context , call , com.android.tools.lint.checks.CleanupDetector.DIALOG_FRAGMENT , com.android.tools.lint.checks.CleanupDetector.DIALOG_V4_FRAGMENT , true ) ) ; }

Target:
private static boolean isShowFragmentMethodCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiMethodCallExpression call ) { java.lang.String methodName = call.getMethodExpression ( ) . getReferenceName ( ) ; return ( com.android.tools.lint.checks.CleanupDetector.SHOW.equals ( methodName ) ) && ( com.android.tools.lint.checks.CleanupDetector.isMethodOnFragmentClass ( context , call , com.android.tools.lint.checks.CleanupDetector.DIALOG_FRAGMENT , com.android.tools.lint.checks.CleanupDetector.DIALOG_V4_FRAGMENT , true ) ) ; }
Source:
public void run ( ) { pair.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { pair.listener.failed ( from , cause ) ; } } ) ; }

Target:
private void failed ( final com.google.common.util.concurrent.Service.State from , final java.lang.Throwable cause ) { new com.google.common.util.concurrent.ListenerCallQueue.Callback < com.google.common.util.concurrent.Service.Listener > ( ( ( ( ( "failed({from = " + from ) + ", cause = " ) + cause ) + "})" ) ) { @ java.lang.Override void call ( com.google.common.util.concurrent.Service.Listener listener ) { listener.failed ( from , cause ) ; } } . enqueueOn ( listeners ) ; }
Source:
private int getGsmRelatedSignalStrength ( ) { int level = getLteLevel ( ) ; if ( level == ( android.telephony.SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN ) ) { level = getTdScdmaLevel ( ) ; if ( level == ( android.telephony.SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN ) ) { level = getGsmLevel ( ) ; } } return level ; }

Target:
private int getGsmRelatedSignalStrength ( ) { int level = getLteLevel ( ) ; if ( level == ( android.telephony.SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN ) ) { level = getTdScdmaLevel ( ) ; if ( level == ( android.telephony.SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN ) ) { level = getWcdmaLevel ( ) ; if ( level == ( android.telephony.SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN ) ) { level = getGsmLevel ( ) ; } } } return level ; }
Source:
public E poll ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long nanos = unit.toNanos ( timeout ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; try { while ( ( count ) == 0 ) { if ( nanos <= 0 ) return null ; nanos = notEmpty.awaitNanos ( nanos ) ; } return extract ( ) ; } finally { lock.unlock ( ) ; } }

Target:
public E take ( ) throws java.lang.InterruptedException { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; try { while ( ( count ) == 0 ) notEmpty.await ( ) ; return dequeue ( ) ; } finally { lock.unlock ( ) ; } }
Source:
public java.lang.Object clone ( ) { com.ibm.icu.text.SimpleDateFormat other = ( ( com.ibm.icu.text.SimpleDateFormat ) ( super . clone ( ) ) ) ; other.formatData = ( ( com.ibm.icu.text.DateFormatSymbols ) ( formatData.clone ( ) ) ) ; return other ; }

Target:
public java.lang.Object clone ( ) { com.ibm.icu.text.SimpleDateFormat other = ( ( com.ibm.icu.text.SimpleDateFormat ) ( super . clone ( ) ) ) ; other.formatData = ( ( com.ibm.icu.text.DateFormatSymbols ) ( formatData.clone ( ) ) ) ; if ( ( this . decimalBuf ) != null ) { other.decimalBuf = new char [ com.ibm.icu.text.SimpleDateFormat.DECIMAL_BUF_SIZE ] ; } return other ; }
Source:
public void testVariantLevelAbiFilter ( ) { com.android.build.VariantOutput match ; java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , com.google.common.collect.Sets.newHashSet ( "bar" , "foo" ) , 160 , "foo" , "zzz" ) ; assertEquals ( 1 , result.size ( ) ) ; assertEquals ( match.getMainOutputFile ( ) , result.get ( 0 ) ) ; }

Target:
public void testSingleOutput ( ) throws com.android.ide.common.process.ProcessException { com.android.build.VariantOutput match ; java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( 1 , result.size ( ) ) ; assertEquals ( match.getMainOutputFile ( ) . getOutputFile ( ) , result.get ( 0 ) ) ; }
Source:
public void handleCallSetupRequestFromSim ( boolean accept , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; int [ ] param = new int [ 1 ] ; param [ 0 ] = ( accept ) ? 1 : 0 ; rr.mParcel.writeIntArray ( param ) ; send ( rr ) ; }

Target:
public void handleCallSetupRequestFromSim ( boolean accept , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; int [ ] param = new int [ 1 ] ; param [ 0 ] = ( accept ) ? 1 : 0 ; rr.mParcel.writeIntArray ( param ) ; send ( rr ) ; }
Source:
private static void installMocksInStateManager ( com.android.server.wifi.nan.WifiNanStateManager nanStateManager , com.android.server.wifi.nan.WifiNanRttStateManager mockRtt , com.android.server.wifi.nan.WifiNanDataPathStateManager mockDpMgr ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanStateManager.class . getDeclaredField ( "mRtt" ) ; field.setAccessible ( true ) ; field.set ( nanStateManager , mockRtt ) ; field = com.android.server.wifi.nan.WifiNanStateManager.class . getDeclaredField ( "mDataPathMgr" ) ; field.setAccessible ( true ) ; field.set ( nanStateManager , mockDpMgr ) ; }

Target:
private static void installMocksInStateManager ( com.android.server.wifi.aware.WifiAwareStateManager awareStateManager , com.android.server.wifi.aware.WifiAwareRttStateManager mockRtt , com.android.server.wifi.aware.WifiAwareDataPathStateManager mockDpMgr ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareStateManager.class . getDeclaredField ( "mRtt" ) ; field.setAccessible ( true ) ; field.set ( awareStateManager , mockRtt ) ; field = com.android.server.wifi.aware.WifiAwareStateManager.class . getDeclaredField ( "mDataPathMgr" ) ; field.setAccessible ( true ) ; field.set ( awareStateManager , mockDpMgr ) ; }
Source:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; } android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; mContext.sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; com.android.internal.telephony.metrics.TelephonyMetrics.getInstance ( ) . writeNITZEvent ( mPhone.getPhoneId ( ) , time ) ; }

Target:
private void setAndBroadcastNetworkSetTimeZone ( java.lang.String zoneId ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( "setAndBroadcastNetworkSetTimeZone: setTimeZone=" + zoneId ) ) ; } mTimeServiceHelper.setDeviceTimeZone ( zoneId ) ; if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTimeZone: call alarm.setTimeZone and broadcast" + " zoneId=" ) + zoneId ) ) ; } }
Source:
public java.lang.String getIsimImpi ( ) { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpi ( ) ; } else { return null ; } }

Target:
public java.lang.String [ ] getIsimPcscf ( int subId ) throws android.os.RemoteException { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimPcscf ( ) ; } else { return null ; } } else { loge ( ( "getIsimPcscf phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public void printFilteredProblemTest_sdkReporter ( ) throws java.io.IOException { java.io.File refFile = new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , "jack/tests/com/android/jack/reporting/sdkreporter-ref.txt" ) ; com.android.jack.reporting.SdkReporter reporter = new com.android.jack.reporting.SdkReporter ( ) ; checkPrintFilteredProblem ( reporter , refFile ) ; }

Target:
public void printFilteredProblemTest_sdkReporter ( ) throws java.io.IOException { java.io.File refFile = new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , "jack/tests/com/android/jack/reporting/sdkreporter-ref.txt" ) ; com.android.jack.reporting.SdkReporter reporter = new com.android.jack.reporting.SdkReporter ( ) ; java.lang.String expectedFileString = new java.io.File ( com.android.jack.reporting.ReporterFormatTest.FILE_PATH ) . getAbsolutePath ( ) . replace ( "\\" , "\\\\" ) . replace ( "/" , "\\/" ) ; checkPrintFilteredProblem ( reporter , refFile , com.android.jack.reporting.ReporterFormatTest.ESCAPED_FILE_PATH , expectedFileString ) ; }
Source:
public void start ( com.android.bips.discovery.Discovery.Listener listener ) { mListeners.add ( listener ) ; mPrinters.values ( ) . forEach ( listener :: onPrinterFound ) ; start ( ) ; }

Target:
public void start ( com.android.bips.discovery.Discovery.Listener listener ) { mListeners.add ( listener ) ; if ( ! ( mPrinters.isEmpty ( ) ) ) { if ( ! ( mListeners.contains ( listener ) ) ) { return ; } for ( com.android.bips.discovery.DiscoveredPrinter printer : new java.util.ArrayList ( mPrinters.values ( ) ) ) { listener.onPrinterFound ( printer ) ; } } start ( ) ; }
Source:
public void testInstallWithWorkingDir ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.TzDataBundleInstallerTest.createFile ( new java.io.File ( workingDir , "myFile" ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createValidTzDataBundle ( "2030a" ) ; assertTrue ( install ( tzData ) ) ; assertTzDataInstalled ( tzData ) ; }

Target:
public void testSuccessfulFirstUpdate_sameVersionAsSystem ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData1 = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.SYSTEM_RULES_VERSION ) ; assertTrue ( installer.install ( tzData1.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( tzData1 ) ; }
Source:
public void mouseMoved ( java.awt.event.MouseEvent event ) { checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ; updateHoverRegion ( event.getX ( ) , event.getY ( ) ) ; repaint ( ) ; }

Target:
public void mousePressed ( java.awt.event.MouseEvent event ) { updateDrawMode ( event ) ; int x = imageXCoordinate ( event.getX ( ) ) ; int y = imageYCoordinate ( event.getY ( ) ) ; startDrawingLine ( x , y ) ; if ( ( currentMode ) == ( com.android.draw9patch.ui.ImageViewer.DrawMode.PATCH ) ) { startEditingRegion ( x , y ) ; } else { hoverHighlightRegions.clear ( ) ; setCursor ( java.awt.Cursor.getDefaultCursor ( ) ) ; repaint ( ) ; } }
Source:
public com.google.common.collect.ImmutableMap.Builder < K , V > put ( K key , V value ) { entries.add ( com.google.common.collect.ImmutableMap.entryOf ( key , value ) ) ; return this ; }

Target:
public com.google.common.collect.ImmutableMap < K , V > build ( ) { switch ( size ) { case 0 : return com.google.common.collect.ImmutableMap.of ( ) ; case 1 : return com.google.common.collect.ImmutableMap.of ( entries [ 0 ] . getKey ( ) , entries [ 0 ] . getValue ( ) ) ; default : return new com.google.common.collect.RegularImmutableMap < K , V > ( size , entries ) ; } }
Source:
public void testAesCbcHmacSha256Udp6 ( ) 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_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Tcp4 ( ) 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_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void setCompoundDrawablesRelativeWithIntrinsicBounds ( int start , int top , int end , int bottom ) { final android.content.res.Resources resources = getContext ( ) . getResources ( ) ; setCompoundDrawablesRelativeWithIntrinsicBounds ( ( start != 0 ? resources.getDrawable ( start ) : null ) , ( top != 0 ? resources.getDrawable ( top ) : null ) , ( end != 0 ? resources.getDrawable ( end ) : null ) , ( bottom != 0 ? resources.getDrawable ( bottom ) : null ) ) ; }

Target:
public void setCompoundDrawablesRelativeWithIntrinsicBounds ( int start , int top , int end , int bottom ) { final android.content.Context context = getContext ( ) ; setCompoundDrawablesRelativeWithIntrinsicBounds ( ( start != 0 ? context.getDrawable ( start ) : null ) , ( top != 0 ? context.getDrawable ( top ) : null ) , ( end != 0 ? context.getDrawable ( end ) : null ) , ( bottom != 0 ? context.getDrawable ( bottom ) : null ) ) ; }
Source:
public void testGet1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.get ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSubList1_IndexOutOfBoundsException ( ) { 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.subList ( ( - 1 ) , list.size ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public static void v ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.VERBOSE ) { android.util.Log.v ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void v ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.sIsUserExtendedLoggingEnabled ) { android.telecom.Log.maybeDisableLogging ( ) ; android.util.Slog.i ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } else if ( android.telecom.Log.VERBOSE ) { android.util.Slog.v ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } }