auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSetNetworkExtra ( ) { org.mockito.Mockito.when ( mWifiNative.setNetworkVariable ( org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyString ( ) , org.mockito.Mockito.anyString ( ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mWifiNative.setNetworkExtra ( com.android.server.wifi.WifiNativeTest.NETWORK_ID , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VARIABLE , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VALUES ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . setNetworkVariable ( com.android.server.wifi.WifiNativeTest.NETWORK_ID , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_VARIABLE , com.android.server.wifi.WifiNativeTest.NETWORK_EXTRAS_SERIALIZED ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.when ( mWifiVendorHal.startVendorHal ( org.mockito.Mockito.anyBoolean ( ) ) ) . thenReturn ( true ) ; mWifiNative = new com.android.server.wifi.WifiNative ( "test0" , mWifiVendorHal , mStaIfaceHal , mP2pIfaceHal , mWificondControl ) ; }
Source:
public void testRemoveMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.removeImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . notifyFeatureRemoved ( org.mockito.Matchers.eq ( 0 ) ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . setImsFeatureStatusCallback ( null ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getImsFeatureMap ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertNull ( mTestImsService.getImsFeatureFromType ( features , ImsFeature.MMTEL ) ) ; }

Target:
public void testRemoveMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.removeImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . notifyFeatureRemoved ( org.mockito.Matchers.eq ( 0 ) ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . setImsFeatureStatusCallback ( null ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getImsFeatureMap ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertNull ( mTestImsService.getImsFeatureFromType ( features , ImsFeature.MMTEL ) ) ; }
Source:
public static < T , C extends java.util.Collection < T > > com.google.common.truth.CollectionSubject < ? extends com.google.common.truth.CollectionSubject < ? , T , C > , T , C > assertThat ( java.util.Collection < T > target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }

Target:
public static com.google.common.truth.BigDecimalSubject assertThat ( @ com.android.annotations.Nullable java.math.BigDecimal target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }
Source:
public java.net.NetworkInterface getNetworkInterface ( ) throws java.net.SocketException { java.net.NetworkInterface ni = ( ( java.net.NetworkInterface ) ( getImpl ( ) . getOption ( java.net.SocketOptions.IP_MULTICAST_IF2 ) ) ) ; if ( ( ni.getIndex ( ) ) == 0 ) { java.net.InetAddress [ ] addrs = new java.net.InetAddress [ 1 ] ; addrs [ 0 ] = java.net.InetAddress.anyLocalAddress ( ) ; return new java.net.NetworkInterface ( addrs [ 0 ] . getHostName ( ) , 0 , addrs ) ; } else { return ni ; } }

Target:
public java.net.NetworkInterface getNetworkInterface ( ) throws java.net.SocketException { java.lang.Integer niIndex = ( ( java.lang.Integer ) ( getImpl ( ) . getOption ( java.net.SocketOptions.IP_MULTICAST_IF2 ) ) ) ; if ( niIndex == 0 ) { java.net.InetAddress [ ] addrs = new java.net.InetAddress [ 1 ] ; addrs [ 0 ] = java.net.InetAddress.anyLocalAddress ( ) ; return new java.net.NetworkInterface ( addrs [ 0 ] . getHostName ( ) , 0 , addrs ) ; } else { return java.net.NetworkInterface.getByIndex ( niIndex ) ; } }
Source:
public static void computeTanpi ( android.renderscript.cts.TestTanpi.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.tan ( ( ( args.in ) * ( ( float ) ( java.lang.Math.PI ) ) ) ) , 6 , 128 ) ; }

Target:
public static void computeSinpi ( android.renderscript.cts.TestSinpi.ArgumentsFloatFloat args ) { android.renderscript.cts.Floaty ip = new android.renderscript.cts.Floaty ( ( ( float ) ( ( ( double ) ( args.in ) ) * ( java.lang.Math.PI ) ) ) , 1 , 1 ) ; args.out = android.renderscript.cts.Floaty.FloatyFromRange ( ( ( float ) ( java.lang.Math.sin ( ip.getDoubleMin ( ) ) ) ) , ( ( float ) ( java.lang.Math.sin ( ip.getDoubleMax ( ) ) ) ) , 4 , 128 ) ; }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.ResourceBundle bundle , java.lang.String msg , java.lang.Object ... params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; if ( ( params != null ) && ( ( params.length ) != 0 ) ) { lr.setParameters ( params ) ; } doLog ( lr , bundle ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { switch ( which ) { case android.content.DialogInterface.BUTTON_POSITIVE : com.android.bluetooth.opp.BluetoothOppManager mOppManager = com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) ; mOppManager.enableBluetooth ( ) ; mOppManager.mSendingFlag = true ; android.widget.Toast.makeText ( this , getString ( R.string.enabling_progress_content ) , Toast.LENGTH_SHORT ) . show ( ) ; android.content.Intent in = new android.content.Intent ( this , com.android.bluetooth.opp.BluetoothOppBtEnablingActivity.class ) ; in.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; this . startActivity ( in ) ; finish ( ) ; break ; case android.content.DialogInterface.BUTTON_NEGATIVE : finish ( ) ; break ; } }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mOppManager = com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) ; mOppManager.mSendingFlag = false ; final com.android.internal.app.AlertController.AlertParams p = mAlertParams ; p.mIconAttrId = android.R.attr.alertDialogIcon ; p.mTitle = getString ( R.string.bt_enable_title ) ; p.mView = createView ( ) ; p.mPositiveButtonText = getString ( R.string.bt_enable_ok ) ; p.mPositiveButtonListener = this ; p.mNegativeButtonText = getString ( R.string.bt_enable_cancel ) ; p.mNegativeButtonListener = this ; setupAlert ( ) ; }
Source:
public boolean setPermissionGrantState ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , java.lang.String permission , int grantState ) { throwIfParentInstance ( "setPermissionGrantState" ) ; try { return mService.setPermissionGrantState ( admin , packageName , permission , grantState ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }

Target:
public int enableSystemApp ( @ android.annotation.NonNull android.content.ComponentName admin , android.content.Intent intent ) { throwIfParentInstance ( "enableSystemApp" ) ; if ( ( mService ) != null ) { try { return mService.enableSystemAppWithIntent ( admin , mContext.getPackageName ( ) , intent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return 0 ; }
Source:
public void TestFormatReplaceNoOptimizationLeadingText ( ) { com.ibm.icu.impl.SimplePatternFormatter fmt = com.ibm.icu.impl.SimplePatternFormatter.compile ( "boo {2}, {0}, {1} and {3}" ) ; int [ ] offsets = new int [ 4 ] ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; assertEquals ( "format" , "boo original, freddy, frog and by" , fmt.formatAndReplace ( result , offsets , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; int [ ] expectedOffsets = new int [ ] { 14 , 22 , 4 , 31 } ; verifyOffsets ( expectedOffsets , offsets ) ; }

Target:
public void TestFormatReplaceNoOptimizationLeadingText ( ) { com.ibm.icu.text.SimpleFormatter fmt = com.ibm.icu.text.SimpleFormatter.compile ( "boo {2}, {0}, {1} and {3}" ) ; int [ ] offsets = new int [ 4 ] ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; assertEquals ( "format" , "boo original, freddy, frog and by" , fmt.formatAndReplace ( result , offsets , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; int [ ] expectedOffsets = new int [ ] { 14 , 22 , 4 , 31 } ; verifyOffsets ( expectedOffsets , offsets ) ; }
Source:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }

Target:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setToolsLocation ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true , com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteHprofConv ( ) , com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteTraceview ( ) ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }
Source:
public static void $noinline$deopt ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$deopt" ) ) ) { } DeoptimizationController.startDeoptimization ( ) ; }

Target:
public static void $noinline$deopt ( ) { boolean interpreting = Main.isInInterpreter ( "$noinline$deopt" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } if ( interpreting ) { while ( ! ( Main.isInOsrCode ( "$noinline$deopt" ) ) ) { } } DeoptimizationController.startDeoptimization ( ) ; }
Source:
public boolean retry ( com.android.tradefed.device.ITestDevice device , java.lang.String cmd , java.lang.String validation_cmd , java.util.function.Predicate < java.lang.String > predicate , int retry_count ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( int count = 0 ; count < retry_count ; count ++ ) { com.android.tradefed.log.LogUtil.CLog.i ( "Running a command: %s" , cmd ) ; device.executeShellCommand ( cmd ) ; if ( validateCmdSuccess ( device , validation_cmd , predicate ) ) { return true ; } } return false ; }

Target:
public boolean retry ( com.android.tradefed.device.ITestDevice device , java.lang.String cmd , java.lang.String validation_cmd , java.util.function.Predicate < java.lang.String > predicate , int retry_count ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( int count = 0 ; count < retry_count ; count ++ ) { com.android.tradefed.log.LogUtil.CLog.d ( "Running a command: %s" , cmd ) ; device.executeShellCommand ( cmd ) ; if ( validateCmdSuccess ( device , validation_cmd , predicate ) ) { return true ; } } return false ; }
Source:
public void ensureInitialized ( ) { if ( ( ( mConfiguration.getDevice ( ) ) == null ) && ( ( mEditedFile ) != null ) ) { java.lang.String data = com.android.ide.eclipse.adt.AdtPlugin.getFileProperty ( mEditedFile , com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser.NAME_CONFIG_STATE ) ; if ( ( mInitialState ) != null ) { data = mInitialState ; mInitialState = null ; } if ( data != null ) { mConfiguration.initialize ( data ) ; mConfiguration.syncFolderConfig ( ) ; } } }

Target:
public void ensureInitialized ( ) { if ( ( ( mConfiguration.getDevice ( ) ) == null ) && ( ( mEditedFile ) != null ) ) { java.lang.String data = com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationDescription.getDescription ( mEditedFile ) ; if ( ( mInitialState ) != null ) { data = mInitialState ; mInitialState = null ; } if ( data != null ) { mConfiguration.initialize ( data ) ; mConfiguration.syncFolderConfig ( ) ; } } }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; setParameters ( in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }
Source:
public javax.swing.JComponent getPreferredFocusedComponent ( ) { if ( myCreateBranch.isSelected ( ) ) { return myBranchName ; } else if ( myCreateChangelist.isSelected ( ) ) { return myChangelistName ; } else { return myTaskStateCombo.getComboBox ( ) ; } }

Target:
public javax.swing.JComponent getPreferredFocusedComponent ( ) { if ( myCreateBranch.isSelected ( ) ) { return myBranchName ; } else if ( myCreateChangelist.isSelected ( ) ) { return myChangelistName ; } else if ( myTaskStateCombo.isVisible ( ) ) { return myTaskStateCombo.getComboBox ( ) ; } return null ; }
Source:
public void testSetLinkPropertiesInvalidAddress ( ) throws java.lang.Exception { com.android.internal.telephony.dataconnection.DataCallResponse response = new com.android.internal.telephony.dataconnection.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , "224.224.224.224" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS , 1440 ) ; android.net.LinkProperties linkProperties = new android.net.LinkProperties ( ) ; org.junit.Assert.assertEquals ( SetupResult.ERR_UnacceptableParameter , setLinkProperties ( response , linkProperties ) ) ; }

Target:
public void testSetLinkPropertiesEmptyDns ( ) throws java.lang.Exception { android.telephony.data.DataCallResponse response = new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , java.util.Arrays.asList ( new android.telephony.data.InterfaceAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS , 0 ) ) , null , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; android.net.LinkProperties linkProperties = new android.net.LinkProperties ( ) ; org.junit.Assert.assertEquals ( SetupResult.SUCCESS , setLinkProperties ( response , linkProperties ) ) ; }
Source:
public void test3 ( ) { com.android.utils.HtmlBuilder builder1 = new com.android.utils.HtmlBuilder ( ) ; builder1.addBold ( "This is bold" ) ; assertEquals ( "<B>This is bold</B>" , builder1.getHtml ( ) ) ; com.android.utils.HtmlBuilder builder2 = new com.android.utils.HtmlBuilder ( ) ; builder2.add ( "Plain. " ) ; builder2.beginBold ( ) ; builder2.add ( "Bold. " ) ; builder2.addLink ( "mylink" , "runnable:0" ) ; builder2.endBold ( ) ; assertEquals ( "Plain. <B>Bold. <A HREF=\"runnable:0\">mylink</A></B>" , builder2.getHtml ( ) ) ; }

Target:
public void testAddList ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.add ( "Plain" ) . newline ( ) ; builder.beginList ( ) . listItem ( ) . add ( "item 1" ) . listItem ( ) . add ( "item 2" ) . endList ( ) ; assertEquals ( ( "Plain<BR/>\n" + ( ( ( "<DL>\n" + "<DD>-&NBSP;item 1\n" ) + "<DD>-&NBSP;item 2\n" ) + "</DL>" ) ) , builder.getHtml ( ) ) ; }
Source:
private static java.lang.String getNotifTicker ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif ) { java.lang.String ticker = java.lang.String.format ( "Position request! ReqId: [%s] ClientName: [%s]" , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.requestorId , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.requestorIdEncoding ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.text , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.textEncoding ) ) ; return ticker ; }

Target:
private static java.lang.String getNotifTicker ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif , android.content.Context context ) { java.lang.String ticker = java.lang.String.format ( context.getString ( R.string.gpsNotifTicker ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.requestorId , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.requestorIdEncoding ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.text , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.textEncoding ) ) ; return ticker ; }
Source:
public void testAddNonComparable ( ) { try { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }

Target:
public void testAddAll2 ( ) { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void dragSetData ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( org.eclipse.swt.dnd.TextTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = getSelectionAsText ( ) ; return ; } if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = mDragElements ; return ; } e.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; e.doit = false ; }

Target:
public void dragSetData ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( org.eclipse.swt.dnd.TextTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = getSelectionAsText ( mDragSelection ) ; return ; } if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) . isSupportedType ( e.dataType ) ) { e.data = mDragElements ; return ; } e.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; e.doit = false ; }
Source:
public void onEmptyViewActionButtonClicked ( ) { final android.app.Activity activity = getActivity ( ) ; if ( activity == null ) { return ; } java.lang.String [ ] deniedPermissions = com.android.dialer.util.PermissionsUtil.getPermissionsCurrentlyDenied ( getContext ( ) , PermissionsUtil.allContactsGroupPermissionsUsedInDialer ) ; if ( ( deniedPermissions.length ) > 0 ) { com.android.dialer.common.LogUtil.i ( "OldSpeedDialFragment.onEmptyViewActionButtonClicked" , ( "Requesting permissions: " + ( java.util.Arrays.toString ( deniedPermissions ) ) ) ) ; android.support.v13.app.FragmentCompat.requestPermissions ( this , deniedPermissions , com.android.dialer.app.list.OldSpeedDialFragment.READ_CONTACTS_PERMISSION_REQUEST_CODE ) ; } else { ( ( com.android.dialer.app.list.OldSpeedDialFragment.HostInterface ) ( activity ) ) . showAllContactsTab ( ) ; } }

Target:
public void onEmptyViewActionButtonClicked ( ) { java.lang.String [ ] deniedPermissions = com.android.dialer.util.PermissionsUtil.getPermissionsCurrentlyDenied ( getContext ( ) , PermissionsUtil.allContactsGroupPermissionsUsedInDialer ) ; if ( ( deniedPermissions.length ) > 0 ) { com.android.dialer.common.LogUtil.i ( "OldSpeedDialFragment.onEmptyViewActionButtonClicked" , ( "Requesting permissions: " + ( java.util.Arrays.toString ( deniedPermissions ) ) ) ) ; android.support.v13.app.FragmentCompat.requestPermissions ( this , deniedPermissions , com.android.dialer.app.list.OldSpeedDialFragment.READ_CONTACTS_PERMISSION_REQUEST_CODE ) ; } else { com.android.dialer.common.FragmentUtils.getParentUnsafe ( this , com.android.dialer.app.list.OldSpeedDialFragment.HostInterface.class ) . showAllContactsTab ( ) ; } }
Source:
public void stopStreaming ( ) { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; sendErrorToApp ( MbmsErrors.ERROR_MIDDLEWARE_LOST , null ) ; } finally { mParentSession.onStreamingServiceStopped ( this ) ; } }

Target:
public void close ( ) { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; sendErrorToApp ( MbmsErrors.ERROR_MIDDLEWARE_LOST , null ) ; } finally { mParentSession.onStreamingServiceStopped ( this ) ; } }
Source:
private int labelToResultIndex ( int label ) { int sz = result.size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.cf.code.BasicBlock one = result.get ( i ) ; if ( ( one.getLabel ( ) ) == label ) { return i ; } } return - 1 ; }

Target:
private int labelToResultIndex ( int label ) { int sz = result.size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.rop.code.BasicBlock one = result.get ( i ) ; if ( ( one.getLabel ( ) ) == label ) { return i ; } } return - 1 ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; return service.getState ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getDevicesMatchingConnectionStates" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.utils.PositionXmlParser.Position attributePosition , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attributePosition ) , attribute.getId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }
Source:
public android.icu.util.TimeZone lookupTimeZoneByCountryAndOffset ( java.lang.String countryIso , int offsetSeconds , boolean isDst , long whenMillis , android.icu.util.TimeZone bias ) { libcore.util.CountryTimeZones countryTimeZones = lookupCountryTimeZones ( countryIso ) ; if ( countryTimeZones == null ) { return null ; } return countryTimeZones.lookupByOffsetWithBias ( offsetSeconds , isDst , whenMillis , bias ) ; }

Target:
public android.icu.util.TimeZone lookupTimeZoneByCountryAndOffset ( java.lang.String countryIso , int offsetMillis , boolean isDst , long whenMillis , android.icu.util.TimeZone bias ) { libcore.util.CountryTimeZones countryTimeZones = lookupCountryTimeZones ( countryIso ) ; if ( countryTimeZones == null ) { return null ; } return countryTimeZones.lookupByOffsetWithBias ( offsetMillis , isDst , whenMillis , bias ) ; }
Source:
private void removeAt ( int index ) { ( size ) -- ; elements [ index ] = elements [ size ] ; siftDown ( index ) ; elements [ size ] = null ; }

Target:
private void removeAt ( int index ) { ( size ) -- ; E moved = elements [ size ] ; elements [ index ] = moved ; siftDown ( index ) ; elements [ size ] = null ; if ( moved == ( elements [ index ] ) ) { siftUp ( index ) ; } }
Source:
private void verifyAndReset ( ) { org.easymock.EasyMock.verify ( mActivityManager , mStatsService , mPolicyListener , mNetworkManager , mTime , mConnManager , mNotifManager ) ; org.easymock.EasyMock.reset ( mActivityManager , mStatsService , mPolicyListener , mNetworkManager , mTime , mConnManager , mNotifManager ) ; }

Target:
android.net.INetworkPolicyListener waitAndVerify ( ) { assertNotNull ( "waitAndVerify() called before expect()" , latch ) ; try { assertTrue ( "callback not called in 5 seconds" , latch.await ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ) ; } catch ( java.lang.InterruptedException e ) { fail ( "Thread interrupted before callback called" ) ; } finally { latch = null ; } return org.mockito.Mockito.verify ( listener , org.mockito.Mockito.atLeastOnce ( ) ) ; }
Source:
public void testPreviewVersions ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; if ( ! ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION.startsWith ( "1.0.0-rc" ) ) ) { return ; } assertEquals ( ( "" + ( ( ( "build.gradle:6: Warning: A newer version of com.android.tools.build:gradle than 1.0.0-rc0 is available: 1.0.0-rc1 [GradleDependency]\n" + " classpath \'com.android.tools.build:gradle:1.0.0-rc0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "gradle/PreviewDependencies.gradle=>build.gradle" ) ) ; }

Target:
public void testPreviewVersions ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; if ( ! ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION.startsWith ( "1.0.0-rc" ) ) ) { return ; } assertEquals ( ( ( ( ( ( ( "" + "build.gradle:6: Warning: A newer version of com.android.tools.build:gradle than 1.0.0-rc0 is available: " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION ) ) + " [GradleDependency]\n" ) + " classpath \'com.android.tools.build:gradle:1.0.0-rc0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) , lintProject ( "gradle/PreviewDependencies.gradle=>build.gradle" ) ) ; }
Source:
public static < T > com.google.common.collect.UnmodifiableIterator < T > forArray ( final T ... array ) { com.google.common.base.Preconditions.checkNotNull ( array ) ; return new com.google.common.collect.AbstractIndexedListIterator < T > ( array.length ) { @ java.lang.Override protected T get ( int index ) { return array [ index ] ; } } ; }

Target:
public static < T > com.google.common.collect.UnmodifiableIterator < T > forArray ( final T ... array ) { return com.google.common.collect.Iterators.forArray ( array , 0 , array.length , 0 ) ; }
Source:
public void testInterfaceCountersUdp4UdpEncap ( ) 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_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1000 , false ) ; }

Target:
public void testAesCbcHmacSha384Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
public void visitClass ( com.intellij.psi.PsiClass psiClass ) { if ( ! ( isEndpointClass ( psiClass ) ) ) { return ; } com.intellij.psi.PsiMethod [ ] allConstructors = psiClass.getConstructors ( ) ; if ( ( allConstructors.length ) == 0 ) { return ; } for ( com.intellij.psi.PsiMethod aConstructor : allConstructors ) { if ( isPublicNullaryConstructor ( aConstructor ) ) { return ; } } holder.registerProblem ( psiClass , "Each class that is within an API must have a public nullary constructor." , LocalQuickFix.EMPTY_ARRAY ) ; }

Target:
public void visitClass ( com.intellij.psi.PsiClass psiClass ) { if ( ! ( isEndpointClass ( psiClass ) ) ) { return ; } com.intellij.psi.PsiMethod [ ] allConstructors = psiClass.getConstructors ( ) ; if ( ( allConstructors.length ) == 0 ) { return ; } for ( com.intellij.psi.PsiMethod aConstructor : allConstructors ) { if ( isPublicNullaryConstructor ( aConstructor ) ) { return ; } } holder.registerProblem ( psiClass , "Each class that is within an API must have a public nullary constructor." , new com.google.gct.intellij.endpoints.validation.ConstructorInspection.MyQuickFix ( psiClass ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; mImageReaderLock.lock ( ) ; try { mImageReader.close ( ) ; mImageReader = null ; mSurface = null ; } finally { mImageReaderLock.unlock ( ) ; } }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; mImageReaderLock.lock ( ) ; try { mImageReader.close ( ) ; mImageReader = null ; mSurface = null ; } finally { mImageReaderLock.unlock ( ) ; } mCheckThread.quit ( ) ; }
Source:
public static void startDeoptimization ( ) { try { java.io.File tempFile = DeoptimizationController.createTempFile ( ) ; tempFile.deleteOnExit ( ) ; java.lang.String tempFileName = tempFile.getPath ( ) ; DeoptimizationController.VMDebug.startMethodTracing ( tempFileName , 0 , 0 , false , 1000 ) ; if ( ( DeoptimizationController.VMDebug.getMethodTracingMode ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( "Not tracing." ) ; } } catch ( java.lang.Exception exc ) { exc.printStackTrace ( java.lang.System.err ) ; } }

Target:
public static void startDeoptimization ( ) { java.io.File tempFile = null ; try { tempFile = DeoptimizationController.createTempFile ( ) ; java.lang.String tempFileName = tempFile.getPath ( ) ; DeoptimizationController.VMDebug.startMethodTracing ( tempFileName , 0 , 0 , false , 1000 ) ; if ( ( DeoptimizationController.VMDebug.getMethodTracingMode ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( "Not tracing." ) ; } } catch ( java.lang.Exception exc ) { exc.printStackTrace ( java.lang.System.err ) ; } finally { if ( tempFile != null ) { tempFile.delete ( ) ; } } }
Source:
private static void provideCipherPaddings ( java.lang.String algorithm , java.lang.String [ ] newPaddings ) { java.util.Set < java.lang.String > paddings = libcore.java.security.StandardNames.CIPHER_MODES.get ( algorithm ) ; if ( paddings == null ) { paddings = new java.util.HashSet < java.lang.String > ( ) ; libcore.java.security.StandardNames.CIPHER_MODES.put ( algorithm , paddings ) ; } paddings.addAll ( java.util.Arrays.asList ( newPaddings ) ) ; }

Target:
private static void provideCipherPaddings ( java.lang.String algorithm , java.lang.String [ ] newPaddings ) { java.util.Set < java.lang.String > paddings = libcore.java.security.StandardNames.CIPHER_PADDINGS.get ( algorithm ) ; if ( paddings == null ) { paddings = new java.util.HashSet < java.lang.String > ( ) ; libcore.java.security.StandardNames.CIPHER_PADDINGS.put ( algorithm , paddings ) ; } paddings.addAll ( java.util.Arrays.asList ( newPaddings ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < ( ruleSets.length ) ; i ++ ) { result.append ( ruleSets [ i ] . toString ( ) ) ; } return result.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( android.icu.text.NFRuleSet ruleSet : ruleSets ) { result.append ( ruleSet.toString ( ) ) ; } return result.toString ( ) ; }
Source:
private static com.ibm.icu.text.MeasureFormat.MeasureFormatData loadLocaleData ( com.ibm.icu.util.ULocale locale ) { com.ibm.icu.impl.ICUResourceBundle resource = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_UNIT_BASE_NAME , locale ) ) ) ; com.ibm.icu.text.MeasureFormat.MeasureFormatData cacheData = new com.ibm.icu.text.MeasureFormat.MeasureFormatData ( ) ; com.ibm.icu.text.MeasureFormat.UnitDataSink sink = new com.ibm.icu.text.MeasureFormat.UnitDataSink ( cacheData ) ; resource.getAllTableItemsWithFallback ( "" , sink ) ; return cacheData ; }

Target:
private static com.ibm.icu.text.MeasureFormat.MeasureFormatData loadLocaleData ( com.ibm.icu.util.ULocale locale ) { com.ibm.icu.impl.ICUResourceBundle resource = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_UNIT_BASE_NAME , locale ) ) ) ; com.ibm.icu.text.MeasureFormat.MeasureFormatData cacheData = new com.ibm.icu.text.MeasureFormat.MeasureFormatData ( ) ; com.ibm.icu.text.MeasureFormat.UnitDataSink sink = new com.ibm.icu.text.MeasureFormat.UnitDataSink ( cacheData ) ; resource.getAllItemsWithFallback ( "" , sink ) ; return cacheData ; }
Source:
public java.util.List < java.io.File > getResourceFolders ( ) { java.util.List < java.io.File > folders = mClient.getResourceFolders ( this ) ; if ( ( ( folders.size ( ) ) == 1 ) && ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( mDir ) ) ) { mMinSdk = mTargetSdk = com.android.SdkConstants.HIGHEST_KNOWN_API ; java.io.File folder = new java.io.File ( folders.get ( 0 ) , com.android.SdkConstants.RES_FOLDER ) ; if ( ! ( folder.exists ( ) ) ) { folders = java.util.Collections.emptyList ( ) ; } } return folders ; }

Target:
public java.util.List < java.io.File > getResourceFolders ( ) { java.util.List < java.io.File > folders = mClient.getResourceFolders ( this ) ; if ( ( ( folders.size ( ) ) == 1 ) && ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( mDir ) ) ) { mMinSdk = mTargetSdk = com.android.ide.common.sdk.SdkVersionInfo.HIGHEST_KNOWN_API ; java.io.File folder = new java.io.File ( folders.get ( 0 ) , com.android.SdkConstants.RES_FOLDER ) ; if ( ! ( folder.exists ( ) ) ) { folders = java.util.Collections.emptyList ( ) ; } } return folders ; }
Source:
public java.io.File getBinaryFile ( ) { assert ( binaryFile ) != null ; return binaryFile ; }

Target:
public java.io.File getBinaryFile ( ) { assert ( binaryFile ) != null ; if ( ( ( workingDir ) != null ) && ( ! ( binaryFile.isAbsolute ( ) ) ) ) { return new java.io.File ( workingDir , binaryFile.getPath ( ) ) ; } else { return binaryFile ; } }
Source:
private void getPlayStatusRequestFromNative ( byte [ ] address ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_PLAY_STATUS ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void getPlayStatusRequestFromNative ( byte [ ] address ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "getPlayStatusRequestFromNative: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_PLAY_STATUS ) ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
public static long AddNegs3 ( long arg1 , long arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long res = 0 ; long n_arg1 = - arg1 ; long n_arg2 = - arg2 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( n_arg1 + n_arg2 ) + i ; } return res ; }

Target:
public static long $noinline$AddNegs3 ( long arg1 , long arg2 ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long res = 0 ; long n_arg1 = - arg1 ; long n_arg2 = - arg2 ; for ( long i = 0 ; i < 1 ; i ++ ) { res += ( n_arg1 + n_arg2 ) + i ; } return res ; }
Source:
public boolean setPin ( byte [ ] pin ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot set Remote Device pin" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.setPin ( this , true , pin.length , pin ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean sdpSearch ( android.os.ParcelUuid uuid ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot query remote device sdp records" ) ; return false ; } try { return service.sdpSearch ( this , uuid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { org.eclipse.swt.widgets.FileDialog fileDialog = new org.eclipse.swt.widgets.FileDialog ( loadButton.getShell ( ) , org.eclipse.swt.SWT.OPEN ) ; fileDialog.setText ( "Load bugreport" ) ; java.lang.String filename = fileDialog.open ( ) ; if ( filename != null ) { mDataFile = new java.io.File ( filename ) ; generateDataset ( mDataFile ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { mMode = mDisplayMode.getSelectionIndex ( ) ; if ( ( mDataFile ) != null ) { generateDataset ( mDataFile ) ; } else if ( ( getCurrentDevice ( ) ) != null ) { loadFromDevice ( ) ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int literal = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int target = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( this , opcode , 0 , null , ( baseAddress + target ) , literal ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { return com.android.jack.dx.io.instructions.InstructionCodec.decodeRegisterList ( this , opcodeUnit , in ) ; }
Source:
public byte [ ] generatePremasterSecret ( ) throws java.io.IOException { byte [ ] psk = pskIdentity.getPSK ( ) ; byte [ ] other_secret = generateOtherSecret ( psk.length ) ; java.io.ByteArrayOutputStream buf = new java.io.ByteArrayOutputStream ( ( ( 4 + ( other_secret.length ) ) + ( psk.length ) ) ) ; org.bouncycastle.crypto.tls.TlsUtils.writeOpaque16 ( other_secret , buf ) ; org.bouncycastle.crypto.tls.TlsUtils.writeOpaque16 ( psk , buf ) ; return buf.toByteArray ( ) ; }

Target:
public byte [ ] generatePremasterSecret ( ) throws java.io.IOException { byte [ ] other_secret = generateOtherSecret ( psk.length ) ; java.io.ByteArrayOutputStream buf = new java.io.ByteArrayOutputStream ( ( ( 4 + ( other_secret.length ) ) + ( psk.length ) ) ) ; org.bouncycastle.crypto.tls.TlsUtils.writeOpaque16 ( other_secret , buf ) ; org.bouncycastle.crypto.tls.TlsUtils.writeOpaque16 ( psk , buf ) ; org.bouncycastle.util.Arrays.fill ( psk , ( ( byte ) ( 0 ) ) ) ; this . psk = null ; return buf.toByteArray ( ) ; }
Source:
public void parkUntil ( long time ) { synchronized ( lock ) { long delayMillis = time - ( java.lang.System.currentTimeMillis ( ) ) ; if ( delayMillis <= 0 ) { parkState = java.lang.Thread.ParkState.UNPARKED ; } else { parkFor ( ( delayMillis * ( java.lang.Thread.NANOS_PER_MILLI ) ) ) ; } } }

Target:
public final void parkUntil$ ( long time ) { synchronized ( lock ) { long delayMillis = time - ( java.lang.System.currentTimeMillis ( ) ) ; if ( delayMillis <= 0 ) { parkState = java.lang.Thread.ParkState.UNPARKED ; } else { parkFor$ ( ( delayMillis * ( java.lang.Thread.NANOS_PER_MILLI ) ) ) ; } } }
Source:
void stopTone ( com.android.server.telecom.Call call ) { if ( ( mCall ) != call ) { return ; } synchronized ( this ) { if ( ( mToneGenerator ) == null ) { com.android.server.telecom.Log.d ( this , "stopTone: mToneGenerator == null." ) ; } else { com.android.server.telecom.Log.d ( this , "stopping local tone." ) ; mToneGenerator.stopTone ( ) ; } } }

Target:
void stopTone ( com.android.server.telecom.Call call ) { if ( ( mCall ) != call ) { return ; } synchronized ( this ) { if ( ( mToneGenerator ) == null ) { android.telecom.Log.d ( this , "stopTone: mToneGenerator == null." ) ; } else { android.telecom.Log.d ( this , "stopping local tone." ) ; mToneGenerator.stopTone ( ) ; } } }
Source:
public synchronized java.nio.channels.DatagramChannel connect ( java.net.SocketAddress address ) throws java.io.IOException { checkOpen ( ) ; if ( connected ) { throw new java.lang.IllegalStateException ( ) ; } java.net.InetSocketAddress inetSocketAddress = java.nio.SocketChannelImpl.validateAddress ( address ) ; try { begin ( ) ; libcore.io.IoBridge.connect ( fd , inetSocketAddress.getAddress ( ) , inetSocketAddress.getPort ( ) ) ; } catch ( java.net.ConnectException e ) { } finally { end ( true ) ; } connectAddress = inetSocketAddress ; connected = true ; isBound = true ; return this ; }

Target:
void onConnect ( java.net.InetAddress remoteAddress , int remotePort , boolean updateSocketState ) { connected = true ; connectAddress = new java.net.InetSocketAddress ( remoteAddress , remotePort ) ; if ( updateSocketState && ( ( socket ) != null ) ) { socket.onConnect ( remoteAddress , remotePort ) ; } }
Source:
protected void sendText ( java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddr , destAddr , text , ( deliveryIntent != null ) ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destAddr ) ; } else { android.util.Log.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendText(): getSubmitPdu() returned null" ) ; } }

Target:
protected void sendText ( java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddr , destAddr , text , ( deliveryIntent != null ) ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destAddr ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendText(): getSubmitPdu() returned null" ) ; } }
Source:
public void run ( ) { if ( ! ( shell.isDisposed ( ) ) ) { canRestart [ 0 ] = org.eclipse.jface.dialogs.MessageDialog.openQuestion ( shell , "ADB Restart" , ( "A package that depends on ADB has been updated. \n" + "Do you want to restart ADB now?" ) ) ; } }

Target:
protected void askForAdbRestart ( com.android.sdklib.internal.repository.ITaskMonitor monitor ) { if ( ! ( getSettingsController ( ) . getSettings ( ) . getAskBeforeAdbRestart ( ) ) ) { com.android.sdklib.internal.repository.AdbWrapper adb = new com.android.sdklib.internal.repository.AdbWrapper ( getOsSdkRoot ( ) , monitor ) ; adb.stopAdb ( ) ; adb.startAdb ( ) ; } }
Source:
public void test_getLast ( ) { assertTrue ( "Returned incorrect first element" , ll.getLast ( ) . equals ( objArray [ ( ( objArray.length ) - 1 ) ] ) ) ; ll.clear ( ) ; try { ll.getLast ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_getFirst ( ) { assertTrue ( "Returned incorrect first element" , ll.getFirst ( ) . equals ( objArray [ 0 ] ) ) ; java.util.LinkedList list = new java.util.LinkedList ( ) ; try { list.getFirst ( ) ; fail ( "Should throw NoSuchElementException" ) ; } catch ( java.util.NoSuchElementException e ) { } }
Source:
< P_IN > java.util.stream.Node < java.lang.Double > opEvaluateParallel ( java.util.stream.PipelineHelper < java.lang.Double > helper , java.util.Spliterator < P_IN > spliterator , java.util.function.IntFunction < java.lang.Double [ ] > generator ) { return ( ( java.util.stream.Node < java.lang.Double > ) ( op.opEvaluateParallel ( helper , spliterator , generator ) ) ) ; }

Target:
public < P_IN > java.util.Spliterator < java.lang.Double > opEvaluateParallelLazy ( java.util.stream.PipelineHelper < java.lang.Double > helper , java.util.Spliterator < P_IN > spliterator ) { return op.opEvaluateParallelLazy ( helper , spliterator ) ; }