auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static void assertGsmDeviceId ( java.lang.String deviceId ) { java.lang.String imeiPattern = "[0-9]{14,15}" ; org.junit.Assert.assertTrue ( ( ( ( "IMEI device id " + deviceId ) + " does not match pattern " ) + imeiPattern ) , java.util.regex.Pattern.matches ( imeiPattern , deviceId ) ) ; if ( ( deviceId.length ( ) ) == 15 ) { android.telephony.cts.TelephonyManagerTest.assertImeiCheckDigit ( deviceId ) ; } }

Target:
private static void assertImei ( java.lang.String id ) { java.lang.String imeiPattern = "[0-9]{14,15}" ; org.junit.Assert.assertTrue ( ( ( ( "IMEI " + id ) + " does not match pattern " ) + imeiPattern ) , java.util.regex.Pattern.matches ( imeiPattern , id ) ) ; if ( ( id.length ( ) ) == 15 ) { android.telephony.cts.TelephonyManagerTest.assertImeiCheckDigit ( id ) ; } }
Source:
public synchronized void clear ( ) { if ( ! ( mMap.isEmpty ( ) ) ) { java.lang.System.out.println ( ( "PREDEX CACHE HITS: " + ( mHits ) ) ) ; java.lang.System.out.println ( ( "PREDEX CACHE MISSES: " + ( mMisses ) ) ) ; } mMap.clear ( ) ; mHits = 0 ; mMisses = 0 ; }

Target:
public synchronized void clear ( @ com.android.annotations.Nullable java.io.File itemStorage , @ com.android.annotations.Nullable com.android.utils.ILogger logger ) throws java.io.IOException { if ( ! ( mMap.isEmpty ( ) ) ) { if ( itemStorage != null ) { saveItems ( itemStorage ) ; } if ( logger != null ) { logger.info ( ( "PREDEX CACHE HITS: " + ( mHits ) ) ) ; logger.info ( ( "PREDEX CACHE MISSES: " + ( mMisses ) ) ) ; } } mMap.clear ( ) ; mStoredItems.clear ( ) ; mHits = 0 ; mMisses = 0 ; }
Source:
private static void sourceIfExist ( org.gradle.platform.base.BinarySpec binary , com.android.build.gradle.model.AndroidComponentModelSourceSet projectSourceSet , java.lang.String sourceSetName ) { org.gradle.language.base.FunctionalSourceSet sourceSet = projectSourceSet.findByName ( sourceSetName ) ; if ( sourceSet != null ) { binary.source ( sourceSet ) ; } }

Target:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.C" ) ; source.getSource ( ) . include ( "**/*.CPP" ) ; source.getSource ( ) . include ( "**/*.c++" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; }
Source:
public void setHs20 ( boolean hs20 ) { if ( hs20 ) { doBooleanCommand ( "SET HS20 1" ) ; } else { doBooleanCommand ( "SET HS20 0" ) ; } }

Target:
public boolean stopFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.addRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-ADD 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }
Source:
public void onSetInitialAttachApnComplete ( @ android.telephony.data.DataServiceCallback.Result int result ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onSetInitialAttachApnComplete ( result ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.mTag , "Failed to onSetInitialAttachApnComplete on the remote" ) ; } } }

Target:
public void onSetInitialAttachApnComplete ( @ android.telephony.data.DataServiceCallback.Result int result ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onSetInitialAttachApnComplete ( result ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.TAG , "Failed to onSetInitialAttachApnComplete on the remote" ) ; } } }
Source:
public void handleMessage ( android.os.Message m ) { super . handleMessage ( m ) ; switch ( m.what ) { case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_OPEN_NOTIFICATION_PANEL : animateExpandNotificationsPanel ( ) ; break ; case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_OPEN_SETTINGS_PANEL : animateExpandSettingsPanel ( ) ; break ; case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_CLOSE_PANELS : animateCollapsePanels ( ) ; break ; case MSG_SHOW_INTRUDER : setIntruderAlertVisibility ( true ) ; break ; case MSG_HIDE_INTRUDER : setIntruderAlertVisibility ( false ) ; mCurrentlyIntrudingNotification = null ; break ; } }

Target:
public void handleMessage ( android.os.Message m ) { super . handleMessage ( m ) ; switch ( m.what ) { case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_OPEN_NOTIFICATION_PANEL : animateExpandNotificationsPanel ( ) ; break ; case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_OPEN_SETTINGS_PANEL : animateExpandSettingsPanel ( ) ; break ; case com.android.systemui.statusbar.phone.PhoneStatusBar.MSG_CLOSE_PANELS : animateCollapsePanels ( ) ; break ; case MSG_SHOW_HEADS_UP : setHeadsUpVisibility ( true ) ; break ; case MSG_HIDE_HEADS_UP : setHeadsUpVisibility ( false ) ; break ; case MSG_ESCALATE_HEADS_UP : escalateHeadsUp ( ) ; setHeadsUpVisibility ( false ) ; break ; } }
Source:
static int getReportingMode ( android.hardware.Sensor sensor ) { return android.hardware.Sensor.sSensorReportingModes [ ( ( sensor.mType ) - 1 ) ] ; }

Target:
static int getReportingMode ( android.hardware.Sensor sensor ) { int offset = ( sensor.mType ) * 2 ; if ( offset >= ( android.hardware.Sensor.sSensorReportingModes.length ) ) { int minDelay = sensor.mMinDelay ; if ( minDelay == 0 ) { return android.hardware.Sensor.REPORTING_MODE_ON_CHANGE ; } else if ( minDelay < 0 ) { return android.hardware.Sensor.REPORTING_MODE_ONE_SHOT ; } else { return android.hardware.Sensor.REPORTING_MODE_CONTINUOUS ; } } return android.hardware.Sensor.sSensorReportingModes [ offset ] ; }
Source:
private static < E > com.google.common.collect.ImmutableList < E > construct ( java.lang.Object ... elements ) { for ( int i = 0 ; i < ( elements.length ) ; i ++ ) { com.google.common.collect.ObjectArrays.checkElementNotNull ( elements [ i ] , i ) ; } return new com.google.common.collect.RegularImmutableList < E > ( elements ) ; }

Target:
private static < E > com.google.common.collect.ImmutableList < E > construct ( java.lang.Object ... elements ) { return com.google.common.collect.ImmutableList.asImmutableList ( com.google.common.collect.ObjectArrays.checkElementsNotNull ( elements ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } mManager = ( ( android.media.tv.TvInputManager ) ( mContext.getSystemService ( Context.TV_INPUT_SERVICE ) ) ) ; mStubId = android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) . getId ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } mManager = ( ( android.media.tv.TvInputManager ) ( getActivity ( ) . getSystemService ( Context.TV_INPUT_SERVICE ) ) ) ; mStubId = android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) . getId ( ) ; }
Source:
public int available ( ) throws java.io.IOException { java.io.FileDescriptor myFd = fd ; if ( myFd == null ) throw new java.io.IOException ( "socket closed" ) ; android.util.MutableInt avail = new android.util.MutableInt ( 0 ) ; try { android.system.Os.ioctlInt ( myFd , OsConstants.FIONREAD , avail ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } return avail.value ; }

Target:
public int available ( ) throws java.io.IOException { java.io.FileDescriptor myFd = fd ; if ( myFd == null ) throw new java.io.IOException ( "socket closed" ) ; android.system.Int32Ref avail = new android.system.Int32Ref ( 0 ) ; try { android.system.Os.ioctlInt ( myFd , OsConstants.FIONREAD , avail ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } return avail.value ; }
Source:
public java.lang.String getKeyAttributeName ( ) { return null ; }

Target:
public java.lang.String getKey ( com.android.manifmerger.XmlElement xmlElement ) { java.lang.String key = ( ( mNamespaceUri ) == null ) ? xmlElement.getXml ( ) . getAttribute ( mAttributeName ) : xmlElement.getXml ( ) . getAttributeNS ( mNamespaceUri , mAttributeName ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( key ) ) return null ; return key ; }
Source:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws java.io.IOException { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; if ( ( folderData.folderType ) == null ) { return null ; } return createResourceFile ( file , folderData , logger ) ; }

Target:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; if ( ( folderData.folderType ) == null ) { return null ; } return com.android.ide.common.res2.ResourceSet.createResourceFile ( file , folderData , logger ) ; }
Source:
void onScanParamSetupCompleted ( int status , int scannerId ) throws android.os.RemoteException { com.android.bluetooth.gatt.ScannerMap.App app = mScannerMap.getById ( scannerId ) ; if ( ( app == null ) || ( ( app.callback ) == null ) ) { android.util.Log.e ( com.android.bluetooth.gatt.GattService.TAG , "Advertise app or callback is null" ) ; return ; } android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "onScanParamSetupCompleted : " + status ) ) ; }

Target:
void onScanParamSetupCompleted ( int status , int scannerId ) throws android.os.RemoteException { com.android.bluetooth.gatt.ScannerMap.App app = mScannerMap.getById ( scannerId ) ; if ( ( app == null ) || ( ( app.callback ) == null ) ) { android.util.Log.e ( com.android.bluetooth.gatt.GattService.TAG , "Advertise app or callback is null" ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "onScanParamSetupCompleted : " + status ) ) ; }
Source:
public void onVoiceButtonClicked ( com.android.dialer.main.impl.VoiceSearchResultCallback voiceSearchResultCallback ) { try { android.content.Intent voiceIntent = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_RECOGNIZE_SPEECH ) ; mainActivity.startActivityForResult ( voiceIntent , ActivityRequestCodes.DIALTACTS_VOICE_SEARCH ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( mainActivity , R.string.voice_search_not_available , Toast.LENGTH_SHORT ) . show ( ) ; } }

Target:
public void onVoiceButtonClicked ( com.android.dialer.main.impl.VoiceSearchResultCallback voiceSearchResultCallback ) { com.android.dialer.logging.Logger.get ( mainActivity ) . logImpression ( DialerImpression.Type.NUI_CLICK_SEARCH_BAR_VOICE_BUTTON ) ; try { android.content.Intent voiceIntent = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_RECOGNIZE_SPEECH ) ; mainActivity.startActivityForResult ( voiceIntent , ActivityRequestCodes.DIALTACTS_VOICE_SEARCH ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( mainActivity , R.string.voice_search_not_available , Toast.LENGTH_SHORT ) . show ( ) ; } }
Source:
public java.lang.String getName ( ) { if ( ( name ) == null ) { boolean first = true ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.builder.model.ProductFlavor flavor : flavorList ) { if ( first ) { sb.append ( flavor.getName ( ) ) ; first = false ; } else { sb.append ( com.android.utils.StringHelper.capitalize ( flavor.getName ( ) ) ) ; } } name = sb.toString ( ) ; } return name ; }

Target:
public java.lang.String getName ( ) { if ( ( name ) == null ) { boolean first = true ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( T flavor : flavorList ) { if ( first ) { sb.append ( flavor.getName ( ) ) ; first = false ; } else { sb.append ( com.android.utils.StringHelper.capitalize ( flavor.getName ( ) ) ) ; } } name = sb.toString ( ) ; } return name ; }
Source:
public void testReplaceWith ( ) { try { tests.api.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( null ) ; fail ( "should throw null pointer exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } try { tests.api.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "" ) ; fail ( "should throw null pointer exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } try { tests.api.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "testReplaceWith" ) ; fail ( "should throw illegal argument exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } tests.api.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "a" ) ; assertSame ( "a" , tests.api.java.nio.charset.CharsetDecoderTest.decoder.replacement ( ) ) ; }

Target:
public void testReplaceWith ( ) { try { org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( null ) ; fail ( "should throw null pointer exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } try { org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "" ) ; fail ( "should throw null pointer exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } try { org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "testReplaceWith" ) ; fail ( "should throw illegal argument exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder.replaceWith ( "a" ) ; assertSame ( "a" , org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder.replacement ( ) ) ; }
Source:
private static com.android.sdklib.repository.FullRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , int major , int minor , int micro ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , major , minor , micro ) ) ) < 0 ) { return new com.android.sdklib.repository.FullRevision ( major , minor , micro ) ; } else { return null ; } }

Target:
private static com.android.sdklib.repository.PreciseRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , com.android.sdklib.repository.PreciseRevision revision ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , revision.getMajor ( ) , revision.getMinor ( ) , revision.getMicro ( ) ) ) ) < 0 ) { return revision ; } else { return null ; } }
Source:
public static long $noinline$returnLong ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 400000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return - 281474976706287L ; }

Target:
public static long $noinline$returnLong ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 400000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$returnLong" ) ) ) { } java.lang.System.out.println ( i ) ; return - 281474976706287L ; }
Source:
public final byte byte_literal ( ) throws org.jf.smali.RecognitionException { byte value = 0 ; org.antlr.runtime.tree.CommonTree BYTE_LITERAL194 = null ; try { { BYTE_LITERAL194 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BYTE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BYTE_LITERAL_in_byte_literal3292 ) ) ) ; value = org.jf.smali.LiteralTools.parseByte ( ( BYTE_LITERAL194 != null ? BYTE_LITERAL194.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final byte byte_literal ( ) throws org.jf.smali.RecognitionException { byte value = 0 ; org.antlr.runtime.tree.CommonTree BYTE_LITERAL194 = null ; try { { BYTE_LITERAL194 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BYTE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BYTE_LITERAL_in_byte_literal3294 ) ) ) ; value = org.jf.smali.LiteralTools.parseByte ( ( BYTE_LITERAL194 != null ? BYTE_LITERAL194.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public boolean disconnect ( ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , "disconnect()" ) ; boolean result = false ; if ( ( mService ) != null ) { try { result = mService.disconnect ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean unplug ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "unplug(): device=" + device ) ) ; boolean result = false ; if ( ( mService ) != null ) { try { result = mService.unplug ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
private java.text.DecimalFormat newDecimalFormat ( android.icu.dev.test.format.NumberFormatTestTuple tuple ) { java.text.DecimalFormat fmt = new java.text.DecimalFormat ( ( ( tuple.pattern ) == null ? "0" : tuple.pattern ) , new java.text.DecimalFormatSymbols ( ( ( tuple.locale ) == null ? android.icu.dev.test.format.NumberFormatTest.EN : tuple.locale ) . toLocale ( ) ) ) ; adjustDecimalFormat ( tuple , fmt ) ; return fmt ; }

Target:
private java.text.DecimalFormat newDecimalFormat ( android.icu.dev.test.format.NumberFormatTestData tuple ) { java.text.DecimalFormat fmt = new java.text.DecimalFormat ( ( ( tuple.pattern ) == null ? "0" : tuple.pattern ) , new java.text.DecimalFormatSymbols ( ( ( tuple.locale ) == null ? android.icu.dev.test.format.NumberFormatTest.EN : tuple.locale ) . toLocale ( ) ) ) ; adjustDecimalFormat ( tuple , fmt ) ; return fmt ; }
Source:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { java.lang.Object [ ] [ ] data = new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_9 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_10 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_11 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_12 } } ; return java.util.Arrays.asList ( data ) ; }

Target:
public static java.util.Collection < java.lang.Object [ ] > data ( ) { java.lang.Object [ ] [ ] data = new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_9 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_10 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_11 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v1_12 } , new java.lang.Object [ ] { org.jetbrains.plugins.gradle.tooling.builder.AbstractModelBuilderTest.GRADLE_v2_0 } } ; return java.util.Arrays.asList ( data ) ; }
Source:
public void assign ( java.net.HttpCookie cookie , java.lang.String attrName , java.lang.String attrValue ) { if ( ( cookie.getMaxAge ( ) ) == ( java.net.HttpCookie.MAX_AGE_UNSPECIFIED ) ) { java.util.Date date = libcore.net.http.HttpDate.parse ( attrValue ) ; if ( date != null ) { cookie.setMaxAge ( ( ( ( date.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ) / 1000 ) ) ; } else { cookie.setMaxAge ( 0 ) ; } } }

Target:
public void assign ( java.net.HttpCookie cookie , java.lang.String attrName , java.lang.String attrValue ) { if ( ( cookie.getMaxAge ( ) ) == ( java.net.HttpCookie.MAX_AGE_UNSPECIFIED ) ) { java.util.Date date = libcore.net.http.HttpDate.parse ( attrValue ) ; long maxAgeInSeconds = 0 ; if ( date != null ) { maxAgeInSeconds = ( ( date.getTime ( ) ) - ( cookie.whenCreated ) ) / 1000 ; if ( maxAgeInSeconds < 0 ) { maxAgeInSeconds = 0 ; } } cookie.setMaxAge ( maxAgeInSeconds ) ; } }
Source:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } }

Target:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } } }
Source:
public int count ( @ javax.annotation.Nullable java.lang.Object element ) { try { if ( multimap ( ) . containsKey ( element ) ) { java.util.Collection < V > values = multimap ( ) . asMap ( ) . get ( element ) ; return values == null ? 0 : values.size ( ) ; } return 0 ; } catch ( java.lang.ClassCastException e ) { return 0 ; } catch ( java.lang.NullPointerException e ) { return 0 ; } }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object element ) { return multimap.containsKey ( element ) ; }
Source:
private void setupInCallScreen ( ) { com.android.incallui.incall.protocol.InCallScreen inCallScreen = ( ( com.android.incallui.incall.protocol.InCallScreen ) ( getSupportFragmentManager ( ) . findFragmentByTag ( com.android.incallui.callpending.CallPendingActivity.TAG_IN_CALL_SCREEN ) ) ) ; inCallScreen.setPrimary ( createPrimaryInfo ( ) ) ; inCallScreen.setCallState ( com.android.incallui.incall.protocol.PrimaryCallState.createEmptyPrimaryCallStateWithState ( State.CALL_PENDING , getCallPendingLabel ( ) ) ) ; inCallScreen.setEndCallButtonEnabled ( true , true ) ; }

Target:
private void setupInCallScreen ( ) { com.android.incallui.incall.protocol.InCallScreen inCallScreen = ( ( com.android.incallui.incall.protocol.InCallScreen ) ( getSupportFragmentManager ( ) . findFragmentByTag ( com.android.incallui.callpending.CallPendingActivity.TAG_IN_CALL_SCREEN ) ) ) ; inCallScreen.setPrimary ( createPrimaryInfo ( ) ) ; inCallScreen.setCallState ( com.android.incallui.incall.protocol.PrimaryCallState.builder ( ) . setState ( State.CALL_PENDING ) . setCustomLabel ( getCallPendingLabel ( ) ) . build ( ) ) ; inCallScreen.setEndCallButtonEnabled ( true , true ) ; }
Source:
public void testSslCertificateWithEmptyIssuer ( ) throws java.lang.Exception { java.security.cert.CertificateFactory certificateFactory = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.X509Certificate x509Certificate = ( ( java.security.cert.X509Certificate ) ( certificateFactory.generateCertificate ( new java.io.ByteArrayInputStream ( android.net.http.SslCertificateTest.Issue1597Certificate.getBytes ( ) ) ) ) ) ; assertEquals ( x509Certificate.getIssuerDN ( ) . getName ( ) , "" ) ; android.net.http.SslCertificate sslCertificate = new android.net.http.SslCertificate ( x509Certificate ) ; assertEquals ( sslCertificate.getIssuedBy ( ) . getDName ( ) , "" ) ; }

Target:
public void testSslCertificateWithEmptyIssuer ( ) throws java.lang.Exception { java.security.cert.X509Certificate x509Certificate = android.net.http.SslCertificateTest.generateCertificate ( android.net.http.SslCertificateTest.Issue1597Certificate ) ; assertEquals ( "" , x509Certificate.getSubjectDN ( ) . getName ( ) ) ; android.net.http.SslCertificate sslCertificate = new android.net.http.SslCertificate ( x509Certificate ) ; assertEquals ( "" , sslCertificate.getIssuedBy ( ) . getDName ( ) ) ; }
Source:
public boolean matchesName ( @ com.android.annotations.NonNull java.lang.String name ) { int length = name.length ( ) ; if ( ( mChars.length ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( mChars [ i ] ) != ( name.charAt ( i ) ) ) { return false ; } } return true ; }

Target:
private static boolean sameChars ( java.lang.String str , char [ ] chars ) { int length = str.length ( ) ; if ( ( chars.length ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( chars [ i ] ) != ( str.charAt ( i ) ) ) { return false ; } } return true ; }
Source:
private void markInitialization ( int newInstructionOffset ) { int initializationOffset = partialEvaluator.initializationOffset ( newInstructionOffset ) ; proguard.optimize.evaluation.TracedStack tracedStack = partialEvaluator.getStackAfter ( newInstructionOffset ) ; markStackEntryAfter ( initializationOffset , ( ( tracedStack.size ( ) ) - 1 ) ) ; markInstruction ( initializationOffset ) ; }

Target:
private void markInitialization ( int newInstructionOffset ) { int initializationOffset = partialEvaluator.initializationOffset ( newInstructionOffset ) ; proguard.evaluation.TracedStack tracedStack = partialEvaluator.getStackAfter ( newInstructionOffset ) ; markStackEntryAfter ( initializationOffset , ( ( tracedStack.size ( ) ) - 1 ) ) ; markInstruction ( initializationOffset ) ; }
Source:
public boolean isPrefix ( ) { return mPrefix ; }

Target:
public boolean matchesMccMnc ( java.lang.String mccMnc ) { if ( mccMnc == null ) { return false ; } if ( ( mccMnc.length ( ) ) != ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) { return false ; } int checkLength = com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ; if ( ( mPrefix ) && ( ( mImsi.length ( ) ) < ( com.android.server.wifi.IMSIParameter.MCC_MNC_LENGTH ) ) ) { checkLength = mImsi.length ( ) ; } return mImsi.regionMatches ( false , 0 , mccMnc , 0 , checkLength ) ; }
Source:
public void testApplyingWithAbsentFileToDelete ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; new java.io.File ( myOlderDir , "bin/idea.bat" ) . delete ( ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testRevertingWithAbsentFileToDelete ( ) throws java.lang.Exception { com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; new java.io.File ( myOlderDir , "bin/idea.bat" ) . delete ( ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; preparationResult.patch.getActions ( ) . add ( new com.intellij.updater.PatchFileCreatorTest.MyFailOnApplyPatchAction ( patch ) ) ; assertNothingHasChanged ( patch , preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) ) ; }
Source:
public java.lang.String makeKey ( java.lang.String element ) { return ( ( keyPrefix ) + "-" ) + ( vogar.Md5Cache.md5 ( element ) ) ; }

Target:
public java.lang.String makeKey ( java.lang.String ... elements ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( java.lang.String element : elements ) { sb.append ( element ) ; sb.append ( '|' ) ; } return ( ( keyPrefix ) + "-" ) + ( vogar.Md5Cache.md5 ( sb.toString ( ) ) ) ; }
Source:
static int foo ( ) { try { Main.constantIndexing2 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { try { Main.constantIndexingForward6 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e2 ) { return 99 ; } } return 0 ; }

Target:
static int foo ( ) { try { Main.assertIsManaged ( ) ; Main.constantIndexing2 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { Main.assertIsManaged ( ) ; try { Main.constantIndexingForward6 ( new int [ 3 ] ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException e2 ) { Main.assertIsManaged ( ) ; return 99 ; } } return 0 ; }
Source:
void sendScanResultsAvailableBroadcast ( boolean scanSucceeded ) { android.content.Intent intent = new android.content.Intent ( android.net.wifi.WifiManager.SCAN_RESULTS_AVAILABLE_ACTION ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; intent.putExtra ( WifiManager.EXTRA_RESULTS_UPDATED , scanSucceeded ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }

Target:
private void fetchPktcntNative ( android.net.wifi.RssiPacketCountInfo info ) { int [ ] counters = null ; try { counters = mClientInterface.getPacketCounters ( ) ; if ( ( counters == null ) || ( ( counters.length ) != 2 ) ) { return ; } } catch ( android.os.RemoteException e1 ) { } info.txgood = counters [ 0 ] ; info.txbad = counters [ 1 ] ; }
Source:
public void visitClass ( com.google.gct.idea.appengine.validation.PsiClass aClass ) { if ( ! ( isEndpointClass ( aClass ) ) ) { return ; } com.google.gct.idea.appengine.validation.PsiMethod [ ] allMethods = aClass.getMethods ( ) ; java.util.Map < java.lang.String , com.google.gct.idea.appengine.validation.PsiMethod > restfulSignatures = com.google.common.collect.Maps.newHashMap ( ) ; for ( com.google.gct.idea.appengine.validation.PsiMethod aMethod : allMethods ) { validateRestSignatureUnique ( aMethod , restfulSignatures ) ; } }

Target:
public void visitClass ( com.google.gct.idea.appengine.validation.PsiClass aClass ) { if ( ! ( com.google.gct.idea.appengine.util.EndpointUtilities.isEndpointClass ( aClass ) ) ) { return ; } com.google.gct.idea.appengine.validation.PsiMethod [ ] allMethods = aClass.getMethods ( ) ; java.util.Map < java.lang.String , com.google.gct.idea.appengine.validation.PsiMethod > restfulSignatures = com.google.common.collect.Maps.newHashMap ( ) ; for ( com.google.gct.idea.appengine.validation.PsiMethod aMethod : allMethods ) { validateRestSignatureUnique ( aMethod , restfulSignatures ) ; } }
Source:
public static void $opt$noinline$testOsrInlineLoop ( java.lang.String [ ] args ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; Main.assertIntEquals ( 12 , Main.$opt$inline$testRemoveSuspendCheck ( 12 , 5 ) ) ; Main.ensureHasOsrCode ( "$opt$noinline$testOsrInlineLoop" ) ; }

Target:
public static void $opt$noinline$testOsrInlineLoop ( java.lang.String [ ] args ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; Main.assertIntEquals ( 12 , Main.$opt$inline$testRemoveSuspendCheck ( 12 , 5 ) ) ; Main.ensureHasProfilingInfo ( "$opt$noinline$testOsrInlineLoop" ) ; Main.ensureHasOsrCode ( "$opt$noinline$testOsrInlineLoop" ) ; }
Source:
public boolean onTransact ( int code , android.os.Parcel data , android.os.Parcel reply , int flags ) throws android.os.RemoteException { try { return super . onTransact ( code , data , reply , flags ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( e instanceof java.lang.SecurityException ) ) { android.util.Log.e ( com.android.server.WindowManagerService.TAG , "Window Session Crash" , e ) ; } throw e ; } }

Target:
public boolean onTransact ( int code , android.os.Parcel data , android.os.Parcel reply , int flags ) throws android.os.RemoteException { try { return super . onTransact ( code , data , reply , flags ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( e instanceof java.lang.SecurityException ) ) { android.util.Slog.e ( com.android.server.WindowManagerService.TAG , "Window Session Crash" , e ) ; } throw e ; } }
Source:
public static com.android.sdklib.xml.ManifestData parse ( com.android.sdklib.io.IAbstractFolder projectFolder ) throws com.android.sdklib.io.StreamException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.io.IAbstractFile manifestFile = com.android.sdklib.xml.AndroidManifest.getManifest ( projectFolder ) ; if ( manifestFile == null ) { throw new java.io.FileNotFoundException ( ) ; } return com.android.sdklib.xml.AndroidManifestParser.parse ( manifestFile , true , null ) ; }

Target:
public static com.android.sdklib.xml.ManifestData parse ( com.android.io.IAbstractFolder projectFolder ) throws com.android.io.StreamException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.io.IAbstractFile manifestFile = com.android.sdklib.xml.AndroidManifest.getManifest ( projectFolder ) ; if ( manifestFile == null ) { throw new java.io.FileNotFoundException ( ) ; } return com.android.sdklib.xml.AndroidManifestParser.parse ( manifestFile , true , null ) ; }
Source:
public static com.android.jack.dx.rop.cst.CstFieldRef createFieldRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface receiverType ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( receiverType ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( field.getName ( ) ) ; com.android.jack.dx.rop.cst.CstString descriptor = com.android.jack.backend.dex.rop.RopHelper.createSignature ( field ) ; com.android.jack.dx.rop.cst.CstFieldRef fieldRef = new com.android.jack.dx.rop.cst.CstFieldRef ( definingClass , name , descriptor ) ; return fieldRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstFieldRef createFieldRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface receiverType ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( receiverType ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( field.getName ( ) ) ; com.android.jack.dx.rop.cst.CstFieldRef fieldRef = new com.android.jack.dx.rop.cst.CstFieldRef ( definingClass , name , com.android.jack.backend.dex.rop.RopHelper.getCstType ( field.getType ( ) ) ) ; return fieldRef ; }
Source:
void assertCallConferenceableList ( final android.telecom.Call call , final java.util.List < android.telecom.Call > conferenceableList ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return conferenceableList ; } @ java.lang.Override public java.lang.Object actual ( ) { return call.getConferenceableCalls ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( ( "Call: " + call ) + " does not have the correct conferenceable call list." ) ) ; }

Target:
void assertCallConferenceableList ( final android.telecom.Call call , final java.util.List < android.telecom.Call > conferenceableList ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return conferenceableList ; } @ java.lang.Override public java.lang.Object actual ( ) { return call.getConferenceableCalls ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( ( "Call: " + call ) + " does not have the correct conferenceable call list." ) ) ; }
Source:
public void activated ( ) { if ( ! ( mActive ) ) { mActive = true ; mActionBar.updateErrorIndicator ( ) ; boolean changed = mConfigComposite.syncRenderState ( ) ; if ( changed ) { return ; } if ( mNeedsRecompute ) { recomputeLayout ( ) ; } } }

Target:
public void activated ( ) { if ( ! ( mActive ) ) { mActive = true ; syncDockingState ( ) ; mActionBar.updateErrorIndicator ( ) ; boolean changed = mConfigComposite.syncRenderState ( ) ; if ( changed ) { return ; } if ( mNeedsRecompute ) { recomputeLayout ( ) ; } } }
Source:
public boolean setNetworkSelectionModeManual ( int subId , java.lang.String operatorNumeric , boolean persistSelection ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; com.android.internal.telephony.OperatorInfo operator = new com.android.internal.telephony.OperatorInfo ( "" , "" , operatorNumeric ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( ( ( "setNetworkSelectionModeManual: subId:" + subId ) + " operator:" ) + operator ) ) ; com.android.phone.PhoneInterfaceManager.ManualNetworkSelectionArgument arg = new com.android.phone.PhoneInterfaceManager.ManualNetworkSelectionArgument ( operator , persistSelection ) ; return ( ( java.lang.Boolean ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_SET_NETWORK_SELECTION_MODE_MANUAL , arg , subId ) ) ) ; }

Target:
public boolean setNetworkSelectionModeManual ( int subId , java.lang.String operatorNumeric , boolean persistSelection ) { com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfModifyPermissionOrCarrierPrivilege ( mApp , subId , "setNetworkSelectionModeManual" ) ; com.android.internal.telephony.OperatorInfo operator = new com.android.internal.telephony.OperatorInfo ( "" , "" , operatorNumeric ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( ( ( "setNetworkSelectionModeManual: subId:" + subId ) + " operator:" ) + operator ) ) ; com.android.phone.PhoneInterfaceManager.ManualNetworkSelectionArgument arg = new com.android.phone.PhoneInterfaceManager.ManualNetworkSelectionArgument ( operator , persistSelection ) ; return ( ( java.lang.Boolean ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_SET_NETWORK_SELECTION_MODE_MANUAL , arg , subId ) ) ) ; }
Source:
public void testKeyStore_IsKeyEntry_PrivateKey_Success ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertTrue ( "Should return true for PrivateKeyEntry" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_IsKeyEntry_PrivateKey_Encrypted_Success ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertTrue ( "Should return true for PrivateKeyEntry" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
private android.os.Message obtainCompleteMessage ( int what ) { ( pendingOperations ) ++ ; lastRelevantPoll = null ; needsPoll = true ; if ( com.android.internal.telephony.gsm.GsmCallTracker.DBG_POLL ) log ( ( ( ( "obtainCompleteMessage: pendingOperations=" + ( pendingOperations ) ) + ", needsPoll=" ) + ( needsPoll ) ) ) ; return obtainMessage ( what ) ; }

Target:
private void operationComplete ( ) { ( mPendingOperations ) -- ; if ( com.android.internal.telephony.gsm.GsmCallTracker.DBG_POLL ) log ( ( ( ( "operationComplete: pendingOperations=" + ( mPendingOperations ) ) + ", needsPoll=" ) + ( mNeedsPoll ) ) ) ; if ( ( ( mPendingOperations ) == 0 ) && ( mNeedsPoll ) ) { mLastRelevantPoll = obtainMessage ( com.android.internal.telephony.gsm.EVENT_POLL_CALLS_RESULT ) ; mCi.getCurrentCalls ( mLastRelevantPoll ) ; } else if ( ( mPendingOperations ) < 0 ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , "GsmCallTracker.pendingOperations < 0" ) ; mPendingOperations = 0 ; } }
Source:
private static java.util.Map < java.util.Set < com.android.tools.lint.checks.PluralsDatabase.Quantity > , java.lang.Boolean > newIdentityHashMap ( java.util.Set < com.android.tools.lint.checks.PluralsDatabase.Quantity > ... elements ) { java.util.Map < java.util.Set < com.android.tools.lint.checks.PluralsDatabase.Quantity > , java.lang.Boolean > map = com.google.common.collect.Maps.newIdentityHashMap ( ) ; for ( java.util.Set < com.android.tools.lint.checks.PluralsDatabase.Quantity > set : elements ) { map.put ( set , true ) ; } return map ; }

Target:
private static java.lang.String getExampleForQuantityTwo ( @ com.android.annotations.NonNull java.lang.String language ) { int index = com.android.tools.lint.checks.PluralsDatabase.getLanguageIndex ( language ) ; switch ( index ) { case 34 : return "2, 12" ; case 101 : return "2, 102, 202, 302, 402, 502, 602, 702, 1002, …" ; case 11 : return "2, 22, 32, 42, 52, 62, 82, 102, 1002, …" ; case 37 : return "2, 12, 22, 32, 42, 52, 62, 72, 102, 1002, …" ; case - 1 : default : return null ; } }
Source:
public void unscheduleDrawable ( android.graphics.drawable.Drawable who , java.lang.Runnable what ) { if ( ( ( verifyDrawable ( who ) ) && ( what != null ) ) && ( ( mAttachInfo ) != null ) ) { mAttachInfo.mHandler.removeCallbacks ( what , who ) ; } }

Target:
public void unscheduleDrawable ( android.graphics.drawable.Drawable who , java.lang.Runnable what ) { if ( ( verifyDrawable ( who ) ) && ( what != null ) ) { if ( ( mAttachInfo ) != null ) { mAttachInfo.mHandler.removeCallbacks ( what , who ) ; } else { android.view.ViewRootImpl.getRunQueue ( ) . removeCallbacks ( what ) ; } } }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
private void terminateSessionLocal ( int clientId , int sessionId ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( ( ( "terminateSessionLocal(): clientId=" + clientId ) + ", sessionId=" ) + sessionId ) ) ; } com.android.server.wifi.nan.WifiNanClientState client = mClients.get ( clientId ) ; if ( client == null ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "terminateSession: no client exists for clientId=" + clientId ) ) ; return ; } client.terminateSession ( sessionId ) ; }

Target:
private void terminateSessionLocal ( int clientId , int sessionId ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( ( ( "terminateSessionLocal(): clientId=" + clientId ) + ", sessionId=" ) + sessionId ) ) ; } com.android.server.wifi.aware.WifiAwareClientState client = mClients.get ( clientId ) ; if ( client == null ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "terminateSession: no client exists for clientId=" + clientId ) ) ; return ; } client.terminateSession ( sessionId ) ; }
Source:
public void calculateAndReportScoreSucceeds ( ) throws java.lang.Exception { int aggressiveHandover = 0 ; mWifiInfo.setRssi ( ( - 77 ) ) ; mWifiScoreReport.calculateAndReportScore ( mWifiInfo , mNetworkAgent , aggressiveHandover , mWifiMetrics ) ; org.mockito.Mockito.verify ( mNetworkAgent ) . sendNetworkScore ( org.mockito.Mockito.anyInt ( ) ) ; org.mockito.Mockito.verify ( mWifiMetrics ) . incrementWifiScoreCount ( org.mockito.Mockito.anyInt ( ) ) ; }

Target:
public void calculateAndReportScoreSucceedsAggressively ( ) throws java.lang.Exception { mAggr = 1 ; mWifiInfo.setRssi ( ( - 77 ) ) ; mWifiScoreReport.calculateAndReportScore ( mWifiInfo , mNetworkAgent , mAggr , mWifiMetrics ) ; org.mockito.Mockito.verify ( mNetworkAgent ) . sendNetworkScore ( org.mockito.Mockito.anyInt ( ) ) ; org.mockito.Mockito.verify ( mWifiMetrics ) . incrementWifiScoreCount ( org.mockito.Mockito.anyInt ( ) ) ; }