auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static int connect ( java.net.ProtocolFamily family , java.io.FileDescriptor fd , java.net.InetAddress remote , int remotePort ) throws java.io.IOException { boolean preferIPv6 = ( sun.nio.ch.Net.isIPv6Available ( ) ) && ( family != ( java.net.StandardProtocolFamily.INET ) ) ; return sun.nio.ch.Net.connect0 ( preferIPv6 , fd , remote , remotePort ) ; }

Target:
static int connect ( java.net.ProtocolFamily family , java.io.FileDescriptor fd , java.net.InetAddress remote , int remotePort ) throws java.io.IOException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; boolean preferIPv6 = ( sun.nio.ch.Net.isIPv6Available ( ) ) && ( family != ( java.net.StandardProtocolFamily.INET ) ) ; return sun.nio.ch.Net.connect0 ( preferIPv6 , fd , remote , remotePort ) ; }
Source:
private static com.ibm.icu.text.RelativeDateTimeFormatter getFormatter ( com.ibm.icu.util.ULocale locale , libcore.icu.RelativeDateTimeFormatter.Style style , com.ibm.icu.text.DisplayContext capitalizationContext ) { java.lang.String key = ( ( ( locale + "\t" ) + style ) + "\t" ) + capitalizationContext ; libcore.icu.RelativeDateTimeFormatter formatter = libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.get ( key ) ; if ( formatter == null ) { formatter = libcore.icu.com.ibm.icu.text.RelativeDateTimeFormatter.getInstance ( locale , null , style , capitalizationContext ) ; libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.put ( key , formatter ) ; } return formatter ; }

Target:
private static com.ibm.icu.text.RelativeDateTimeFormatter getFormatter ( com.ibm.icu.util.ULocale locale , libcore.icu.RelativeDateTimeFormatter.Style style , com.ibm.icu.text.DisplayContext displayContext ) { java.lang.String key = ( ( ( locale + "\t" ) + style ) + "\t" ) + displayContext ; libcore.icu.RelativeDateTimeFormatter formatter = libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.get ( key ) ; if ( formatter == null ) { formatter = libcore.icu.com.ibm.icu.text.RelativeDateTimeFormatter.getInstance ( locale , null , style , displayContext ) ; libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.put ( key , formatter ) ; } return formatter ; }
Source:
private void verifyNorm ( ) throws java.lang.Throwable { float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; android.hardware.cts.helpers.sensorTestOperations.VerifyNormOperation verifyNorm = new android.hardware.cts.helpers.sensorTestOperations.VerifyNormOperation ( this . getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ; verifyNorm.execute ( ) ; logSuccess ( ) ; }

Target:
private void verifyNorm ( ) throws java.lang.Throwable { float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; android.hardware.cts.helpers.sensorTestOperations.VerifyMagnitudeOperation verifyNorm = new android.hardware.cts.helpers.sensorTestOperations.VerifyMagnitudeOperation ( this . getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ; verifyNorm.execute ( ) ; logSuccess ( ) ; }
Source:
public static < T > void assertThat ( java.lang.String reason , T actual , org.hamcrest.Matcher < T > matcher ) { if ( ! ( matcher.matches ( actual ) ) ) { org.hamcrest.Description description = new org.hamcrest.StringDescription ( ) ; description.appendText ( reason ) . appendText ( "\nExpected: " ) . appendDescriptionOf ( matcher ) . appendText ( "\n got: " ) . appendValue ( actual ) . appendText ( "\n" ) ; throw new java.lang.AssertionError ( description.toString ( ) ) ; } }

Target:
public static < T > void assertThat ( java.lang.String reason , T actual , org.hamcrest.Matcher < ? super T > matcher ) { if ( ! ( matcher.matches ( actual ) ) ) { org.hamcrest.Description description = new org.hamcrest.StringDescription ( ) ; description.appendText ( reason ) . appendText ( "\nExpected: " ) . appendDescriptionOf ( matcher ) . appendText ( "\n but: " ) ; matcher.describeMismatch ( actual , description ) ; throw new java.lang.AssertionError ( description.toString ( ) ) ; } }
Source:
public static java.io.File getAapt ( ) { java.io.File aapt = new java.io.File ( com.android.build.gradle.integration.common.utils.SdkHelper.findSdkDir ( ) , "build-tools/20.0.0/aapt" ) ; org.junit.Assert.assertTrue ( "Test requires build-tools 20.0.0" , aapt.isFile ( ) ) ; return aapt ; }

Target:
public static java.io.File getAapt ( com.android.sdklib.repository.FullRevision fullRevision ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.sdklib.SdkManager sdkManager = com.android.sdklib.SdkManager.createManager ( com.android.build.gradle.integration.common.utils.SdkHelper.findSdkDir ( ) . getAbsolutePath ( ) , logger ) ; assert sdkManager != null ; com.android.sdklib.BuildToolInfo buildToolInfo = sdkManager.getBuildTool ( fullRevision ) ; if ( buildToolInfo == null ) { throw new java.lang.RuntimeException ( ( "Test requires build-tools " + ( fullRevision.toString ( ) ) ) ) ; } return new java.io.File ( buildToolInfo.getPath ( BuildToolInfo.PathId.AAPT ) ) ; }
Source:
public boolean visitMethodInvocation ( lombok.ast.MethodInvocation node ) { if ( node == ( mTarget ) ) { mSeenTarget = true ; } else if ( ( ( mSeenTarget ) || ( ( node.astOperand ( ) ) == ( mTarget ) ) ) && ( "show" . equals ( node.astName ( ) . astValue ( ) ) ) ) { mFound = true ; } return true ; }

Target:
public void visitReturnStatement ( com.intellij.psi.PsiReturnStatement node ) { super . visitReturnStatement ( node ) ; if ( ( node.getReturnValue ( ) ) == ( mTarget ) ) { mFound = true ; } }
Source:
public void badType ( ) { com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; com.android.builder.model.SyncIssue issue = new com.android.build.gradle.integration.common.truth.IssueSubjectTest.FakeIssue ( 1 , 2 ) ; com.android.build.gradle.integration.common.truth.IssueSubject subject = new com.android.build.gradle.integration.common.truth.IssueSubject ( failure , issue ) ; subject.hasType ( 0 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . is ( "Not true that <1|2|> has type <0>. It is <2>" ) ; }

Target:
public void badType ( ) { com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; com.android.builder.model.SyncIssue issue = new com.android.build.gradle.integration.common.truth.IssueSubjectTest.FakeIssue ( 1 , 2 ) ; com.android.build.gradle.integration.common.truth.IssueSubject subject = new com.android.build.gradle.integration.common.truth.IssueSubject ( failure , issue ) ; subject.hasType ( 0 ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . isEqualTo ( "Not true that <1|2|> has type <0>. It is <2>" ) ; }
Source:
public void testAesCbcHmacSha384Tcp4UdpEncap ( ) 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_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAesCbcHmacSha1Tcp4UdpEncap ( ) 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_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
public int hashCode ( ) { int h = hash ; if ( ( h == 0 ) && ( ( count ) > 0 ) ) { for ( int i = 0 ; i < ( count ) ; i ++ ) { h = ( 31 * h ) + ( charAt ( i ) ) ; } hash = h ; } return h ; }

Target:
public int hashCode ( ) { int h = hash ; final int len = length ( ) ; if ( ( h == 0 ) && ( len > 0 ) ) { for ( int i = 0 ; i < len ; i ++ ) { h = ( 31 * h ) + ( charAt ( i ) ) ; } hash = h ; } return h ; }
Source:
public void addRecipient ( java.lang.String name , java.lang.String formattedName , java.lang.String [ ] phoneNumbers , java.lang.String [ ] emailAddresses , java.lang.String [ ] btUids , java.lang.String [ ] btUcis ) { if ( ( mRecipient ) == null ) mRecipient = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.vCard > ( ) ; mRecipient.add ( new com.android.bluetooth.map.BluetoothMapbMessage.vCard ( name , formattedName , phoneNumbers , emailAddresses , btUids , btUcis ) ) ; }

Target:
public void addRecipient ( java.lang.String name , java.lang.String formattedName , java.lang.String [ ] phoneNumbers , java.lang.String [ ] emailAddresses , java.lang.String [ ] btUids , java.lang.String [ ] btUcis ) { if ( ( mRecipient ) == null ) mRecipient = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.VCard > ( ) ; mRecipient.add ( new com.android.bluetooth.map.BluetoothMapbMessage.VCard ( name , formattedName , phoneNumbers , emailAddresses , btUids , btUcis ) ) ; }
Source:
public void registerOnActivityPausedListener ( android.app.Activity activity , android.app.OnActivityPausedListener listener ) { synchronized ( mOnPauseListeners ) { java.util.ArrayList < android.app.OnActivityPausedListener > list = mOnPauseListeners.get ( activity ) ; if ( list == null ) { list = new java.util.ArrayList < android.app.OnActivityPausedListener > ( ) ; mOnPauseListeners.put ( activity , list ) ; } list.add ( listener ) ; } }

Target:
public void unregisterOnActivityPausedListener ( android.app.Activity activity , android.app.OnActivityPausedListener listener ) { synchronized ( mOnPauseListeners ) { java.util.ArrayList < android.app.OnActivityPausedListener > list = mOnPauseListeners.get ( activity ) ; if ( list != null ) { list.remove ( listener ) ; } } }
Source:
private void responseLastCallFailCauseInfo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LastCallFailCauseInfo fcInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.LastCallFailCause ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.LastCallFailCause ( ) ; ret.causeCode = fcInfo.causeCode ; ret.vendorCause = fcInfo.vendorCause ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void test_SSL_get_options ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_get_options ( org.conscrypt.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; assertTrue ( ( ( org.conscrypt.NativeCrypto.SSL_get_options ( s ) ) != 0 ) ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_get_options ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_get_options ( org.conscrypt.NativeCryptoTest.NULL ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.junit.Assert.assertTrue ( ( ( org.conscrypt.NativeCrypto.SSL_get_options ( s ) ) != 0 ) ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
android.net.Uri getLocalRef ( ) { java.io.File folder = android.os.Environment.getExternalStoragePublicDirectory ( Environment.DIRECTORY_DCIM ) ; android.util.Log.v ( com.android.rs.test.MainActivity.TAG , ( "DIRECTORY_DOCUMENTS = " + ( folder.getAbsolutePath ( ) ) ) ) ; java.io.File f = findJpeg ( folder ) ; if ( f != null ) { android.util.Log.v ( com.android.rs.test.MainActivity.TAG , ( "File = " + f ) ) ; return android.net.Uri.fromFile ( f ) ; } return null ; }

Target:
android.net.Uri getLocalRef ( ) { java.io.File folder = android.os.Environment.getExternalStoragePublicDirectory ( Environment.DIRECTORY_DCIM ) ; android.util.Log.v ( com.android.rs.refocus.MainActivity.TAG , ( "DIRECTORY_DOCUMENTS = " + ( folder.getAbsolutePath ( ) ) ) ) ; java.io.File f = findJpeg ( folder ) ; if ( f != null ) { android.util.Log.v ( com.android.rs.refocus.MainActivity.TAG , ( "File = " + f ) ) ; return android.net.Uri.fromFile ( f ) ; } return null ; }
Source:
private static android.content.Intent makeAlarmIntent ( android.content.Context context , android.net.Uri voicemailUri , java.lang.String transcriptId , long delayMillis , double baseMultiplier , int remainingAttempts ) { android.content.Intent intent = new android.content.Intent ( context , com.android.voicemail.impl.transcribe.GetTranscriptReceiver.class ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_VOICEMAIL_URI , voicemailUri ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_TRANSCRIPT_ID , transcriptId ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_DELAY_MILLIS , delayMillis ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_BASE_MULTIPLIER , baseMultiplier ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_REMAINING_ATTEMPTS , remainingAttempts ) ; return intent ; }

Target:
private static android.content.Intent makeBaseAlarmIntent ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( context.getApplicationContext ( ) , com.android.voicemail.impl.transcribe.GetTranscriptReceiver.class ) ; intent.setAction ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.POLL_ALARM_ACTION ) ; return intent ; }
Source:
public void onChange ( boolean selfChange ) { if ( ! ( isBleScanAlwaysAvailable ( ) ) ) { disableBleScanMode ( ) ; clearBleApps ( ) ; try { if ( ( mBluetooth ) != null ) mBluetooth.onBrEdrDown ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "error when disabling bluetooth" , e ) ; } } }

Target:
public void onChange ( boolean selfChange ) { if ( ! ( isBleScanAlwaysAvailable ( ) ) ) { disableBleScanMode ( ) ; clearBleApps ( ) ; try { mBluetoothLock.readLock ( ) . lock ( ) ; if ( ( mBluetooth ) != null ) mBluetooth.onBrEdrDown ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.BluetoothManagerService.TAG , "error when disabling bluetooth" , e ) ; } finally { mBluetoothLock.readLock ( ) . unlock ( ) ; } } }
Source:
public static final javax.crypto.Mac getInstance ( java.lang.String algorithm ) throws java.security.NoSuchAlgorithmException { if ( algorithm == null ) { throw new java.lang.NullPointerException ( "algorithm == null" ) ; } org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = javax.crypto.Mac.ENGINE.getInstance ( algorithm , null ) ; return new javax.crypto.Mac ( ( ( javax.crypto.MacSpi ) ( sap.spi ) ) , sap.provider , algorithm ) ; }

Target:
public static final javax.crypto.Mac getInstance ( java.lang.String algorithm ) throws java.security.NoSuchAlgorithmException { return javax.crypto.Mac.getMac ( algorithm , null ) ; }
Source:
public boolean contains ( java.lang.Object obj ) { if ( obj == null ) { return false ; } for ( java.util.Map < C , V > map : backingMap.values ( ) ) { if ( map.containsKey ( obj ) ) { return true ; } } return false ; }

Target:
public boolean contains ( java.lang.Object obj ) { return containsColumn ( obj ) ; }
Source:
public void testSetWifiEnabledNoToggle ( ) throws java.lang.Exception { when ( mSettingsStore.handleWifiToggled ( org.mockito.Matchers.eq ( true ) ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , true ) ) ; verify ( mWifiController , never ( ) ) . obtainMessageAndSend ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }

Target:
public void testSetWifiEnabledNoToggle ( ) throws java.lang.Exception { when ( mWifiStateMachine.syncGetWifiApState ( ) ) . thenReturn ( WifiManager.WIFI_AP_STATE_DISABLED ) ; when ( mSettingsStore.handleWifiToggled ( org.mockito.Matchers.eq ( true ) ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( mWifiServiceImpl.setWifiEnabled ( com.android.server.wifi.WifiServiceImplTest.TEST_PACKAGE_NAME , true ) ) ; verify ( mWifiController , never ( ) ) . sendMessage ( org.mockito.Matchers.eq ( com.android.server.wifi.WifiController.CMD_WIFI_TOGGLED ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescritor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = null ; com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { desc = internalFindFqcnViewDescritor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } if ( desc == null ) { desc = createUnknownDescriptor ( fqcn ) ; } return desc ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescriptor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = null ; com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { desc = internalFindFqcnViewDescritor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } if ( desc == null ) { desc = createUnknownDescriptor ( fqcn ) ; } return desc ; }
Source:
public static com.android.jack.dx.rop.code.Rop opReturn ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicFrameType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.RETURN_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.RETURN_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.RETURN_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.RETURN_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.RETURN_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_VOID : return com.android.jack.dx.rop.code.Rops.RETURN_VOID ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opReturn ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicFrameType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.RETURN_INT ; case com.android.jack.dx.rop.type.Type.BT_CLOSURE : case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.RETURN_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.RETURN_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.RETURN_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.RETURN_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_VOID : return com.android.jack.dx.rop.code.Rops.RETURN_VOID ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }
Source:
public void testEndCallWithNoForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getFirstCallWithState ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( null ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }

Target:
public void testEndCallWithNoForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getFirstCallWithState ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( org.mockito.Matchers.eq ( 0L ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; }
Source:
public void startTrackingWifiChange ( android.net.wifi.WifiScanner.WifiChangeListener listener ) { com.android.internal.util.Preconditions.checkNotNull ( listener , "listener cannot be null" ) ; int key = addListener ( listener ) ; if ( key == ( android.net.wifi.WifiScanner.INVALID_KEY ) ) return ; validateChannel ( ) ; mAsyncChannel.sendMessage ( android.net.wifi.WifiScanner.CMD_START_TRACKING_CHANGE , 0 , key ) ; }

Target:
public void stopTrackingWifiChange ( android.net.wifi.WifiScanner.WifiChangeListener listener ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public java.lang.String getPackageForIntentSender ( android.content.IIntentSender pendingResult ) { if ( ! ( pendingResult instanceof com.android.server.am.PendingIntentRecord ) ) { return null ; } synchronized ( this ) { try { com.android.server.am.PendingIntentRecord res = ( ( com.android.server.am.PendingIntentRecord ) ( pendingResult ) ) ; return res.key.packageName ; } catch ( java.lang.ClassCastException e ) { } } return null ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }
Source:
private static java.lang.String [ ] getExpansionIfKnown ( java.lang.reflect.Field optionField , com.google.devtools.common.options.Option annotation , @ javax.annotation.Nullable com.google.devtools.common.options.OptionsData optionsData ) { if ( optionsData != null ) { return optionsData.getEvaluatedExpansion ( optionField ) ; } else { if ( com.google.devtools.common.options.OptionsData.usesExpansionFunction ( annotation ) ) { return null ; } else { return annotation.expansion ( ) ; } } }

Target:
private static com.google.common.collect.ImmutableList < java.lang.String > getExpansionIfKnown ( java.lang.reflect.Field optionField , com.google.devtools.common.options.Option annotation , @ javax.annotation.Nullable com.google.devtools.common.options.OptionsData optionsData ) { if ( optionsData != null ) { return optionsData.getEvaluatedExpansion ( optionField ) ; } else { if ( com.google.devtools.common.options.OptionsData.usesExpansionFunction ( annotation ) ) { return null ; } else { return com.google.common.collect.ImmutableList.copyOf ( annotation.expansion ( ) ) ; } } }
Source:
private void removeConferenceParticipant ( com.android.services.telephony.ConferenceParticipantConnection participant ) { android.telecom.Log.i ( this , "removeConferenceParticipant: %s" , participant ) ; participant.removeConnectionListener ( mParticipantListener ) ; synchronized ( mUpdateSyncRoot ) { mConferenceParticipantConnections.remove ( participant.getUserEntity ( ) ) ; } mTelephonyConnectionService.removeConnection ( participant ) ; }

Target:
private void disconnectConferenceParticipants ( ) { android.telecom.Log.v ( this , "disconnectConferenceParticipants" ) ; synchronized ( mUpdateSyncRoot ) { for ( com.android.services.telephony.ConferenceParticipantConnection connection : mConferenceParticipantConnections.values ( ) ) { connection.removeConnectionListener ( mParticipantListener ) ; connection.setDisconnected ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.CANCELED ) ) ; mTelephonyConnectionService.removeConnection ( connection ) ; connection.destroy ( ) ; } mConferenceParticipantConnections.clear ( ) ; } }
Source:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { int idx = com.ibm.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }

Target:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }
Source:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { clearInternal ( ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( isCallerSystemUid ( ) ) ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { clearInternal ( ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }

Target:
public void findAllAsync ( final java.lang.String searchString ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findAllAsync ( searchString ) ; } } ) ; return ; } mAwContents.findAllAsync ( searchString ) ; }
Source:
void assertMuteState ( final android.telecom.InCallService incallService , final boolean isMuted ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return isMuted ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = incallService.getCallAudioState ( ) ; return state == null ? null : state.isMuted ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone's mute state should be: " + isMuted ) ) ; }

Target:
void assertMuteState ( final android.telecom.InCallService incallService , final boolean isMuted ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return isMuted ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = incallService.getCallAudioState ( ) ; return state == null ? null : state.isMuted ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone's mute state should be: " + isMuted ) ) ; }
Source:
public void onReceivedIcon ( android.graphics.Bitmap bitmap ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedIcon" ) ; mWebChromeClient.onReceivedIcon ( mWebView , bitmap ) ; } org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onReceivedIcon ( android.graphics.Bitmap bitmap ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedIcon" ) ; mWebChromeClient.onReceivedIcon ( mWebView , bitmap ) ; } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > lookup ( @ android.support.annotation.NonNull android.telecom.Call call ) { return executorService.submit ( ( ) -> { com.android.dialer.phonenumberproto.DialerPhoneNumberUtil dialerPhoneNumberUtil = new com.android.dialer.phonenumberproto.DialerPhoneNumberUtil ( com.google.i18n.phonenumbers.PhoneNumberUtil.getInstance ( ) ) ; com.android.dialer.DialerPhoneNumber number = dialerPhoneNumberUtil.parse ( com.android.dialer.telecom.TelecomCallUtil.getNumber ( call ) , com.android.dialer.telecom.TelecomCallUtil.getCountryCode ( appContext , call ) . orNull ( ) ) ; return queryNumbers ( com.google.common.collect.ImmutableSet.of ( number ) ) . get ( number ) ; } ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > lookup ( com.android.dialer.DialerPhoneNumber dialerPhoneNumber ) { return executorService.submit ( ( ) -> queryNumbers ( com.google.common.collect.ImmutableSet.of ( dialerPhoneNumber ) ) . get ( dialerPhoneNumber ) ) ; }
Source:
public void onFeatureRemoved ( ) { }

Target:
public void testNotifyCapabilityStatusChangedCallback ( ) throws java.lang.Exception { android.telephony.ims.feature.ImsFeature.Capabilities status = new android.telephony.ims.feature.ImsFeature.Capabilities ( ) ; status.addCapabilities ( TestImsFeature.CAPABILITY_TEST_1 ) ; status.addCapabilities ( TestImsFeature.CAPABILITY_TEST_2 ) ; mTestImsFeature.capabilitiesStatusChanged ( status ) ; junit.framework.Assert.assertEquals ( status.getMask ( ) , mTestImsFeature.queryCapabilityStatus ( ) . getMask ( ) ) ; org.mockito.Mockito.verify ( mCapabilityCallback ) . onCapabilitiesStatusChanged ( org.mockito.Matchers.eq ( status ) ) ; }
Source:
private int parseHistoricalBytes ( byte [ ] atrBytes , int index ) { if ( ( ( mHistoricalBytes.length ) + index ) > ( atrBytes.length ) ) { com.android.internal.telephony.uicc.AnswerToReset.loge ( "Failed to read the historical bytes." ) ; return - 1 ; } if ( ( mHistoricalBytes.length ) > 0 ) { java.lang.System.arraycopy ( atrBytes , index , mHistoricalBytes , 0 , mHistoricalBytes.length ) ; } return index + ( mHistoricalBytes.length ) ; }

Target:
public boolean isExtendedApduSupported ( ) { if ( ( mHistoricalBytes ) == null ) { return false ; } byte [ ] cardCapabilities = mHistoricalBytes.getValue ( com.android.internal.telephony.uicc.AnswerToReset.TAG_CARD_CAPABILITIES ) ; if ( ( cardCapabilities == null ) || ( ( cardCapabilities.length ) < 3 ) ) { return false ; } if ( mIsDirectConvention ) { return ( ( cardCapabilities [ com.android.internal.telephony.uicc.AnswerToReset.EXTENDED_APDU_INDEX ] ) & ( com.android.internal.telephony.uicc.AnswerToReset.B7_MASK ) ) > 0 ; } else { return ( ( cardCapabilities [ com.android.internal.telephony.uicc.AnswerToReset.EXTENDED_APDU_INDEX ] ) & ( com.android.internal.telephony.uicc.AnswerToReset.B2_MASK ) ) > 0 ; } }
Source:
private void queueSample ( int index , com.google.android.exoplayer.SampleHolder sample , android.os.ConditionVariable conditionVariable ) throws java.io.IOException { long writeStartTimeNs = android.os.SystemClock.elapsedRealtimeNanos ( ) ; mSampleBuffer.writeSample ( index , sample , conditionVariable ) ; if ( mSampleBuffer.isWriteSpeedSlow ( sample.size , ( ( android.os.SystemClock.elapsedRealtimeNanos ( ) ) - writeStartTimeNs ) ) ) { mSampleBuffer.handleWriteSpeedSlow ( ) ; } }

Target:
public int read ( byte [ ] buffer , int offset , int readLength ) throws java.io.IOException { return source.read ( buffer , offset , readLength ) ; }
Source:
public void onFinished ( android.preference.Preference preference , boolean reading ) { if ( ( ( mInitIndex ) < ( ( mPreferences.size ( ) ) - 1 ) ) && ( ! ( isFinishing ( ) ) ) ) { ( mInitIndex ) ++ ; android.preference.Preference pref = mPreferences.get ( mInitIndex ) ; if ( pref instanceof com.android.phone.CallWaitingCheckBoxPreference ) { ( ( com.android.phone.CallWaitingCheckBoxPreference ) ( pref ) ) . init ( this , false , mPhone ) ; } } super . onFinished ( preference , reading ) ; }

Target:
public void onFinished ( android.preference.Preference preference , boolean reading ) { if ( ( ( mInitIndex ) < ( ( mPreferences.size ( ) ) - 1 ) ) && ( ! ( isFinishing ( ) ) ) ) { ( mInitIndex ) ++ ; android.preference.Preference pref = mPreferences.get ( mInitIndex ) ; if ( pref instanceof com.android.phone.CallWaitingSwitchPreference ) { ( ( com.android.phone.CallWaitingSwitchPreference ) ( pref ) ) . init ( this , false , mPhone ) ; } } super . onFinished ( preference , reading ) ; }
Source:
public void srcToLib ( @ javax.annotation.Nonnull java.io.File out , boolean zipFiles , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { java.util.List < java.lang.String > commandLine = new java.util.ArrayList < java.lang.String > ( ) ; setOutputJack ( out , zipFiles ) ; srcToCommon ( commandLine , sources ) ; com.android.jack.test.toolchain.AbstractTestTools.addFile ( commandLine , false , sources ) ; run ( commandLine ) ; }

Target:
public void srcToLib ( @ javax.annotation.Nonnull java.io.File out , boolean zipFiles , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception { java.util.List < java.lang.String > commandLine = new java.util.ArrayList < java.lang.String > ( ) ; setOutputJack ( out , zipFiles ) ; srcToCommon ( commandLine , sources ) ; addSourceList ( commandLine , sources ) ; run ( commandLine ) ; }
Source:
public void test_handshake_failsWithMissingSCT ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey , true ) ; connection.clientHooks.ctVerificationEnabled = true ; try { connection.doHandshake ( ) ; fail ( "SSLHandshakeException not thrown" ) ; } catch ( java.util.concurrent.ExecutionException e ) { assertEquals ( javax.net.ssl.SSLHandshakeException.class , e.getCause ( ) . getClass ( ) ) ; assertEquals ( java.security.cert.CertificateException.class , e.getCause ( ) . getCause ( ) . getClass ( ) ) ; } }

Target:
public void test_handshake_failsWithInvalidSCT ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey , true ) ; connection.clientHooks.ctVerificationEnabled = true ; connection.serverHooks.sctTLSExtension = org.conscrypt.TestUtils.readTestFile ( "ct-signed-timestamp-list-invalid" ) ; connection.doHandshake ( ) ; assertTrue ( ( ( connection.clientException ) instanceof javax.net.ssl.SSLHandshakeException ) ) ; assertTrue ( ( ( connection.clientException.getCause ( ) ) instanceof java.security.cert.CertificateException ) ) ; }
Source:
public void readDescriptor ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int descrInstanceId , android.os.ParcelUuid descrId , int authReq ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.readDescriptor ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , descrInstanceId , descrId.getUuid ( ) , authReq ) ; }

Target:
public void readCharacteristic ( int clientIf , java.lang.String address , int handle , int authReq ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.readCharacteristic ( clientIf , address , handle , authReq ) ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "isConnected " + device ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) { return false ; } return ( ( service.getState ( ) ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( service.getRemoteDevice ( ) . equals ( device ) ) ; }

Target:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mState ; }
Source:
private void createFromPatternAndSymbols ( java.lang.String pattern , android.icu.text.DecimalFormatSymbols inputSymbols ) { symbols = ( ( android.icu.text.DecimalFormatSymbols ) ( inputSymbols.clone ( ) ) ) ; setCurrencyForSymbols ( ) ; applyPatternWithoutExpandAffix ( pattern , false ) ; if ( ( currencySignCount ) == ( android.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { currencyPluralInfo = new android.icu.text.CurrencyPluralInfo ( symbols.getULocale ( ) ) ; } else { expandAffixAdjustWidth ( null ) ; } }

Target:
private void createFromPatternAndSymbols ( java.lang.String pattern , android.icu.text.DecimalFormatSymbols inputSymbols ) { symbols = ( ( android.icu.text.DecimalFormatSymbols ) ( inputSymbols.clone ( ) ) ) ; if ( ( pattern.indexOf ( android.icu.text.DecimalFormat.CURRENCY_SIGN ) ) >= 0 ) { setCurrencyForSymbols ( ) ; } applyPatternWithoutExpandAffix ( pattern , false ) ; if ( ( currencySignCount ) == ( android.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { currencyPluralInfo = new android.icu.text.CurrencyPluralInfo ( symbols.getULocale ( ) ) ; } else { expandAffixAdjustWidth ( null ) ; } }
Source:
public void testValidateLocalRepositoryFile1 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_1.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getValidator ( 1 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }

Target:
public void testValidateLocalRepositoryFile4 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_4.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getRepoValidator ( 4 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }
Source:
public java.util.Map < java.lang.String , java.util.List < java.lang.String > > getHeaders ( ) throws java.io.IOException { java.util.Map < java.lang.String , java.util.List < java.lang.String > > result = new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; result.put ( null , java.util.Collections.singletonList ( "HTTP/1.1 502 Bad Gateway" ) ) ; return result ; }

Target:
public java.util.Map < java.lang.String , java.util.List < java.lang.String > > getHeaders ( ) throws java.io.IOException { java.util.Map < java.lang.String , java.util.List < java.lang.String > > result = new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; result.put ( null , java.util.Collections.singletonList ( "HTTP/1.1 504 Gateway Timeout" ) ) ; return result ; }
Source:
public boolean iccCardExist ( ) { return ( ( ( ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PIN_REQUIRED ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PUK_REQUIRED ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.NETWORK_LOCKED ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.READY ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PERM_DISABLED ) ) ; }

Target:
public boolean iccCardExist ( ) { return ( ( ( ( ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PIN_REQUIRED ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PUK_REQUIRED ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.NETWORK_LOCKED ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.READY ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.PERM_DISABLED ) ) ) || ( ( this ) == ( com.android.internal.telephony.IccCardConstants.State.CARD_IO_ERROR ) ) ; }
Source:
public void onMissedCallsUnreadCountFetched ( android.database.Cursor cursor ) { if ( ( ( ( getActivity ( ) ) == null ) || ( getActivity ( ) . isFinishing ( ) ) ) || ( cursor == null ) ) { return ; } int count = 0 ; try { count = cursor.getCount ( ) ; } finally { cursor.close ( ) ; } mViewPagerTabs.setUnreadCount ( count , com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_HISTORY ) ; mViewPagerTabs.updateTab ( com.android.dialer.app.list.DialtactsPagerAdapter.TAB_INDEX_HISTORY ) ; }

Target:
public void onMissedCallsUnreadCountFetched ( android.database.Cursor cursor ) { if ( ( ( ( getActivity ( ) ) == null ) || ( getActivity ( ) . isFinishing ( ) ) ) || ( cursor == null ) ) { return ; } int count = 0 ; try { count = cursor.getCount ( ) ; } finally { cursor.close ( ) ; } mViewPagerTabs.setUnreadCount ( count , DialtactsPagerAdapter.TAB_INDEX_HISTORY ) ; mViewPagerTabs.updateTab ( DialtactsPagerAdapter.TAB_INDEX_HISTORY ) ; }
Source:
public void onSpeakerphoneOn ( boolean on ) { if ( on ) { playbackSpeakerphone.setImageResource ( R.drawable.quantum_ic_volume_up_white_24 ) ; playbackSpeakerphone.setContentDescription ( context.getString ( R.string.voicemail_speaker_off ) ) ; } else { playbackSpeakerphone.setImageResource ( R.drawable.quantum_ic_volume_down_white_24 ) ; playbackSpeakerphone.setContentDescription ( context.getString ( R.string.voicemail_speaker_on ) ) ; } }

Target:
public void onSpeakerphoneOn ( boolean on ) { if ( on ) { playbackSpeakerphone.setImageResource ( R.drawable.quantum_ic_volume_up_vd_theme_24 ) ; playbackSpeakerphone.setContentDescription ( context.getString ( R.string.voicemail_speaker_off ) ) ; } else { playbackSpeakerphone.setImageResource ( R.drawable.quantum_ic_volume_down_white_24 ) ; playbackSpeakerphone.setContentDescription ( context.getString ( R.string.voicemail_speaker_on ) ) ; } }
Source:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }

Target:
public android.drm.DrmConvertedStatus convertData ( int convertId , byte [ ] inputData ) { if ( ( null == inputData ) || ( 0 >= ( inputData.length ) ) ) { throw new java.lang.IllegalArgumentException ( "Given inputData should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _convertData ( mUniqueId , convertId , inputData ) ; }
Source:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModelsIgnoringSyncIssues ( ) { return getAllModels ( new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , false ) ; }

Target:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModelsWithBenchmark ( @ com.android.annotations.Nullable java.lang.String benchmarkName , @ com.android.annotations.Nullable com.android.build.gradle.integration.common.fixture.GradleTestProject.BenchmarkMode benchmarkMode ) { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > allModels = getAllModels ( new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , false , benchmarkName , benchmarkMode ) ; for ( com.android.builder.model.AndroidProject project : allModels.values ( ) ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( project ) ; } return allModels ; }