auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( ( ( ( androidMinApiLevel ) >= ( com.android.jack.backend.dex.compatibility.AndroidCompatibilityChecker.N_API_LEVEL ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.lambda.DefaultBridgeInLambdaAdder.Visitor visitor = new com.android.jack.transformations.lambda.DefaultBridgeInLambdaAdder.Visitor ( ) ; visitor.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( ( ( ( androidMinApiLevel.getReleasedLevel ( ) ) >= ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.lambda.DefaultBridgeInLambdaAdder.Visitor visitor = new com.android.jack.transformations.lambda.DefaultBridgeInLambdaAdder.Visitor ( ) ; visitor.accept ( method ) ; }
Source:
void setAudioStatus ( boolean mute , int volume ) { synchronized ( mLock ) { mSystemAudioMute = mute ; mSystemAudioVolume = volume ; int maxVolume = mService.getAudioManager ( ) . getStreamMaxVolume ( AudioManager.STREAM_MUSIC ) ; mService.setAudioStatus ( mute , com.android.server.hdmi.VolumeControlAction.scaleToCustomVolume ( volume , maxVolume ) ) ; displayOsd ( HdmiControlManager.OSD_MESSAGE_AVR_VOLUME_CHANGED , ( mute ? android.hardware.hdmi.HdmiControlManager.AVR_VOLUME_MUTED : volume ) ) ; } }

Target:
void setAudioStatus ( boolean mute , int volume ) { if ( ! ( isSystemAudioActivated ( ) ) ) { return ; } synchronized ( mLock ) { mSystemAudioMute = mute ; mSystemAudioVolume = volume ; int maxVolume = mService.getAudioManager ( ) . getStreamMaxVolume ( AudioManager.STREAM_MUSIC ) ; mService.setAudioStatus ( mute , com.android.server.hdmi.VolumeControlAction.scaleToCustomVolume ( volume , maxVolume ) ) ; displayOsd ( HdmiControlManager.OSD_MESSAGE_AVR_VOLUME_CHANGED , ( mute ? android.hardware.hdmi.HdmiControlManager.AVR_VOLUME_MUTED : volume ) ) ; } }
Source:
private static void ensureTestWatcherInitialized ( ) { try { Main.addToBootClassLoader ( Main.LISTENER_LOCATION ) ; java.lang.Class < ? > testwatcher_class = java.lang.Class.forName ( "art.test.TestWatcher" , true , null ) ; Main.bindFunctionsForClass ( testwatcher_class ) ; } catch ( java.lang.Exception e ) { throw new java.lang.Error ( "Exception while making testwatcher" , e ) ; } }

Target:
private static void ensureTestWatcherInitialized ( ) { try { Main.addToBootClassLoader ( Main.LISTENER_LOCATION ) ; java.lang.Class < ? > testwatcher_class = java.lang.Class.forName ( "art.test.TestWatcher" , true , null ) ; Main.doEnableReporting = testwatcher_class.getDeclaredMethod ( "EnableReporting" ) ; Main.doDisableReporting = testwatcher_class.getDeclaredMethod ( "DisableReporting" ) ; } catch ( java.lang.Exception e ) { throw new java.lang.Error ( "Exception while making testwatcher" , e ) ; } }
Source:
public void test_init_and_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "" , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple" ) , "" ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
boolean setBluetoothClass ( android.bluetooth.BluetoothClass bluetoothClass ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; return mAdapterProperties.setBluetoothClass ( bluetoothClass.getClassOfDeviceBytes ( ) ) ; }

Target:
boolean setBluetoothClass ( android.bluetooth.BluetoothClass bluetoothClass ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; boolean result = mAdapterProperties.setBluetoothClass ( bluetoothClass ) ; if ( ! result ) { android.util.Log.e ( com.android.bluetooth.btservice.AdapterService.TAG , ( ( "Failed to set BluetoothClass (" + bluetoothClass ) + ") on local Bluetooth adapter." ) ) ; } return result && ( storeBluetoothClassConfig ( bluetoothClass.getClassOfDevice ( ) ) ) ; }
Source:
public void menuAboutToShow ( org.eclipse.jface.action.IMenuManager manager ) { int n = ( mMenuManager.getSize ( ) ) - numStaticActions ; if ( n > 0 ) { org.eclipse.jface.action.IContributionItem [ ] items = mMenuManager.getItems ( ) ; for ( int i = 0 ; i < n ; i ++ ) { mMenuManager.remove ( items [ i ] ) ; } } populateDynamicContextMenu ( ) ; }

Target:
public void menuAboutToShow ( org.eclipse.jface.action.IMenuManager manager ) { int n = ( menuManager.getSize ( ) ) - numStaticActions ; if ( n > 0 ) { org.eclipse.jface.action.IContributionItem [ ] items = menuManager.getItems ( ) ; for ( int i = 0 ; i < n ; i ++ ) { menuManager.remove ( items [ i ] ) ; } } populateDynamicContextMenu ( menuManager ) ; }
Source:
private void generateComponent ( javax.lang.model.element.TypeElement dialerComponentElement ) { com.squareup.javapoet.TypeSpec.Builder componentClass = ( dialerComponentElement.getKind ( ) . isClass ( ) ) ? cloneClass ( dialerComponentElement , RootComponentUtils.GENERATED_COMPONENT_PREFIX ) : cloneInterface ( dialerComponentElement , RootComponentUtils.GENERATED_COMPONENT_PREFIX ) ; componentClass.addAnnotation ( makeDaggerSubcomponentAnnotation ( dialerComponentElement ) ) ; com.android.dialer.rootcomponentgenerator.processor.RootComponentUtils.writeJavaFile ( processingEnv , com.squareup.javapoet.ClassName.get ( dialerComponentElement ) . packageName ( ) , dialerBoilerplateCode ( componentClass , dialerComponentElement ) ) ; }

Target:
private void generateComponent ( javax.lang.model.element.TypeElement dialerComponentElement ) { com.squareup.javapoet.TypeSpec.Builder componentClass = ( dialerComponentElement.getKind ( ) . isClass ( ) ) ? cloneClass ( dialerComponentElement , RootComponentUtils.GENERATED_COMPONENT_PREFIX ) : cloneInterface ( dialerComponentElement , RootComponentUtils.GENERATED_COMPONENT_PREFIX ) ; componentClass.addAnnotation ( makeDaggerSubcomponentAnnotation ( dialerComponentElement ) ) ; com.android.dialer.rootcomponentgenerator.RootComponentUtils.writeJavaFile ( processingEnv , com.squareup.javapoet.ClassName.get ( dialerComponentElement ) . packageName ( ) , dialerBoilerplateCode ( componentClass , dialerComponentElement ) ) ; }
Source:
public void test_parkUntil_2 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }

Target:
public void test_parkUntil_2 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }
Source:
public void testRevokePropagatedOnUpgradeOldToNewModel ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testRevokePropagatedOnUpgradeOldToNewModel_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.AssertionError expected ) { } assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , true , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokePropagatedOnUpgradeOldToNewModel_part2" ) ; }

Target:
public void testRevokePropagatedOnUpgradeOldToNewModel ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testRevokePropagatedOnUpgradeOldToNewModel_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.AssertionError expected ) { } assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , true , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokePropagatedOnUpgradeOldToNewModel_part2" ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { com.android.dialer.app.contactinfo.ContactInfoCache reference = contactInfoCacheWeakReference.get ( ) ; if ( reference == null ) { return ; } switch ( msg.what ) { case com.android.dialer.app.contactinfo.ContactInfoCache.REDRAW : reference.mOnContactInfoChangedListener.onContactInfoChanged ( ) ; break ; case com.android.dialer.app.contactinfo.ContactInfoCache.START_THREAD : reference.startRequestProcessing ( ) ; break ; default : } }

Target:
public void handleMessage ( android.os.Message msg ) { com.android.dialer.app.contactinfo.ContactInfoCache reference = contactInfoCacheWeakReference.get ( ) ; if ( reference == null ) { return ; } switch ( msg.what ) { case com.android.dialer.app.contactinfo.ContactInfoCache.REDRAW : reference.onContactInfoChangedListener.onContactInfoChanged ( ) ; break ; case com.android.dialer.app.contactinfo.ContactInfoCache.START_THREAD : reference.startRequestProcessing ( ) ; break ; default : } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mBitmapUse = new com.android.amm.test.BitmapUse ( ) ; mSoCodeUse = new com.android.amm.test.SoCodeUse ( ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mBitmapUse = new com.android.amm.test.BitmapUse ( ) ; mSoCodeUse = new com.android.amm.test.SoCodeUse ( ) ; android.widget.LinearLayout ll = new android.widget.LinearLayout ( this ) ; mTextureViewUse = new com.android.amm.test.TextureViewUse ( this , ll , 200 , 500 ) ; mSurfaceViewUse = new com.android.amm.test.SurfaceViewUse ( this , ll , 240 , 250 ) ; setContentView ( ll ) ; mThreadedRendererUse = new com.android.amm.test.ThreadedRendererUse ( this , 122 , 152 ) ; }
Source:
public synchronized void closeChannels ( ) { java.util.Collection < com.android.se.Channel > col = mChannels.values ( ) ; com.android.se.Channel [ ] channelList = col.toArray ( new com.android.se.Channel [ col.size ( ) ] ) ; for ( com.android.se.Channel channel : channelList ) { closeChannel ( channel ) ; } }

Target:
public synchronized void closeChannels ( ) { java.util.Collection < com.android.se.Channel > col = mChannels.values ( ) ; com.android.se.Channel [ ] channelList = col.toArray ( new com.android.se.Channel [ col.size ( ) ] ) ; for ( com.android.se.Channel channel : channelList ) { channel.close ( ) ; } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( mOutputName ) ; sb.append ( " / " ) . append ( mRelativePath ) ; sb.append ( " / " ) . append ( mBuildInfo ) ; sb.append ( " / " ) . append ( mMinor ) ; sb.append ( " / " ) . append ( mMinSdkVersion ) ; sb.append ( " / " ) . append ( mAbi ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; write ( sb , com.android.sdklib.internal.export.ApkData.PROP_OUTPUTNAME , mOutputName ) ; write ( sb , com.android.sdklib.internal.export.ApkData.PROP_BUILDINFO , mBuildInfo ) ; sb.append ( getLogLine ( ) ) ; return sb.toString ( ) ; }
Source:
protected int computeSerializedSize ( ) { int size = 0 ; int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; size += com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( unknownField.tag ) ; size += unknownField.bytes.length ; } return size ; }

Target:
public int getSerializedSize ( ) { int size = 0 ; int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; size += com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( unknownField.tag ) ; size += unknownField.bytes.length ; } cachedSize = size ; return size ; }
Source:
public void screenTurnedOff ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; synchronized ( mLock ) { mScreenOnEarly = false ; mScreenOnFully = false ; } if ( ( mKeyguardDelegate ) != null ) { mKeyguardDelegate.onScreenTurnedOff ( why ) ; } synchronized ( mLock ) { updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } }

Target:
public void run ( ) { requestTransientBars ( mNavigationBar ) ; }
Source:
private static java.nio.file.Path createAndRegisterLambdaDumpDirectory ( ) throws java.io.IOException { java.nio.file.Path dumpDirectory = java.nio.file.Files.createTempDirectory ( "lambdas" ) ; java.lang.System.setProperty ( LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY , dumpDirectory.toString ( ) ) ; com.google.devtools.build.android.desugar.Desugar.deleteTreeOnExit ( dumpDirectory ) ; return dumpDirectory ; }

Target:
private static java.nio.file.Path createAndRegisterLambdaDumpDirectory ( ) throws java.io.IOException { java.lang.String propertyValue = java.lang.System.getProperty ( LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY ) ; java.nio.file.Path dumpDirectory ; if ( propertyValue != null ) { dumpDirectory = java.nio.file.Paths.get ( propertyValue ) ; } else { dumpDirectory = java.nio.file.Files.createTempDirectory ( "lambdas" ) ; java.lang.System.setProperty ( LambdaClassMaker.LAMBDA_METAFACTORY_DUMPER_PROPERTY , dumpDirectory.toString ( ) ) ; } com.google.devtools.build.android.desugar.Desugar.deleteTreeOnExit ( dumpDirectory ) ; return dumpDirectory ; }
Source:
public void test_getDisplayName_unknown ( ) throws java.lang.Exception { java.util.Locale unknown = new java.util.Locale ( "xx" , "YY" , "Traditional" ) ; assertEquals ( "xx" , unknown.getLanguage ( ) ) ; assertEquals ( "YY" , unknown.getCountry ( ) ) ; assertEquals ( "Traditional" , unknown.getVariant ( ) ) ; assertEquals ( "xx" , unknown.getDisplayLanguage ( ) ) ; assertEquals ( "YY" , unknown.getDisplayCountry ( ) ) ; assertEquals ( "TRADITIONAL" , unknown.getDisplayVariant ( ) ) ; assertEquals ( "xx (YY,TRADITIONAL)" , unknown.getDisplayName ( ) ) ; }

Target:
public void test_getDisplayName_unknown ( ) throws java.lang.Exception { java.util.Locale unknown = new java.util.Locale ( "xx" , "YY" , "Traditional" ) ; assertEquals ( "xx" , unknown.getLanguage ( ) ) ; assertEquals ( "YY" , unknown.getCountry ( ) ) ; assertEquals ( "Traditional" , unknown.getVariant ( ) ) ; assertEquals ( "xx" , unknown.getDisplayLanguage ( ) ) ; assertEquals ( "YY" , unknown.getDisplayCountry ( ) ) ; assertEquals ( "Traditional" , unknown.getDisplayVariant ( ) ) ; assertEquals ( "xx (YY,Traditional)" , unknown.getDisplayName ( ) ) ; }
Source:
private boolean cleanUp ( ) { if ( ( ( codeFile ) == null ) || ( ! ( codeFile.exists ( ) ) ) ) { return false ; } if ( codeFile.isDirectory ( ) ) { mInstaller.rmPackageDir ( codeFile.getAbsolutePath ( ) ) ; } else { codeFile.delete ( ) ; } if ( ( ( resourceFile ) != null ) && ( ! ( android.os.FileUtils.contains ( codeFile , resourceFile ) ) ) ) { resourceFile.delete ( ) ; } return true ; }

Target:
private boolean cleanUp ( ) { if ( ( ( codeFile ) == null ) || ( ! ( codeFile.exists ( ) ) ) ) { return false ; } removeCodePathLI ( codeFile ) ; if ( ( ( resourceFile ) != null ) && ( ! ( android.os.FileUtils.contains ( codeFile , resourceFile ) ) ) ) { resourceFile.delete ( ) ; } return true ; }
Source:
private void sendEnableMsg ( boolean quietMode , java.lang.String packageName ) { mHandler.sendMessage ( mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_ENABLE , ( quietMode ? 1 : 0 ) , 0 ) ) ; addActiveLog ( packageName , true ) ; mLastEnabledTime = android.os.SystemClock.elapsedRealtime ( ) ; }

Target:
private void sendEnableMsg ( boolean quietMode , int reason , java.lang.String packageName ) { mHandler.sendMessage ( mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_ENABLE , ( quietMode ? 1 : 0 ) , 0 ) ) ; addActiveLog ( reason , packageName , true ) ; mLastEnabledTime = android.os.SystemClock.elapsedRealtime ( ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccSlot.EVENT_CARD_REMOVED : onIccSwap ( false ) ; break ; case com.android.internal.telephony.uicc.UiccSlot.EVENT_CARD_ADDED : onIccSwap ( true ) ; break ; default : loge ( ( "Unknown Event " + ( msg.what ) ) ) ; } }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { synchronized ( mLock ) { if ( which == ( android.content.DialogInterface.BUTTON_POSITIVE ) ) { if ( com.android.internal.telephony.uicc.UiccSlot.DBG ) log ( "Reboot due to SIM swap" ) ; android.os.PowerManager pm = ( ( android.os.PowerManager ) ( mContext.getSystemService ( Context.POWER_SERVICE ) ) ) ; pm.reboot ( "SIM is added." ) ; } } }
Source:
private void sendCancelUserConfirmationIntent ( android.bluetooth.BluetoothDevice device ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL ) ; intent.setPackage ( com.android.bluetooth.sap.SapService.ACCESS_AUTHORITY_PACKAGE ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE , BluetoothDevice.REQUEST_TYPE_SIM_ACCESS ) ; sendBroadcast ( intent , com.android.bluetooth.sap.BLUETOOTH_PERM ) ; }

Target:
private void sendCancelUserConfirmationIntent ( android.bluetooth.BluetoothDevice device ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_CONNECTION_ACCESS_CANCEL ) ; intent.setPackage ( getString ( R.string.pairing_ui_package ) ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE , BluetoothDevice.REQUEST_TYPE_SIM_ACCESS ) ; sendBroadcast ( intent , com.android.bluetooth.sap.BLUETOOTH_PERM ) ; }
Source:
public boolean waitForUninterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( lock.isHeldByCurrentThread ( ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return waitUninterruptibly ( guard , unit.toNanos ( time ) , true ) ; }

Target:
public boolean waitFor ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long timeoutNanos = unit.toNanos ( time ) ; if ( ! ( ( ( guard.monitor ) == ( this ) ) & ( lock.isHeldByCurrentThread ( ) ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return ( guard.isSatisfied ( ) ) || ( awaitNanos ( guard , timeoutNanos , true ) ) ; }
Source:
public static void atraceStop ( ) { java.lang.String cmd = "echo 0 > /d/tracing/tracing_on" ; android.util.Log.v ( com.google.android.traceur.AtraceUtils.TAG , ( "Stopping async atrace: " + cmd ) ) ; try { java.lang.Process atrace = com.google.android.traceur.AtraceUtils.exec ( cmd ) ; if ( ( atrace.waitFor ( ) ) != 0 ) { android.util.Log.e ( com.google.android.traceur.AtraceUtils.TAG , ( "atraceStop failed with: " + ( atrace.exitValue ( ) ) ) ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static void atraceStop ( ) { java.lang.String cmd = "echo 0 > /d/tracing/tracing_on" ; android.util.Log.v ( com.android.traceur.AtraceUtils.TAG , ( "Stopping async atrace: " + cmd ) ) ; try { java.lang.Process atrace = com.android.traceur.AtraceUtils.exec ( cmd ) ; if ( ( atrace.waitFor ( ) ) != 0 ) { android.util.Log.e ( com.android.traceur.AtraceUtils.TAG , ( "atraceStop failed with: " + ( atrace.exitValue ( ) ) ) ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } mDiagsConnectionStartMillis = - 1 ; }
Source:
private void initWithScanResult ( android.net.wifi.ScanResult result ) { ssid = result.SSID ; security = com.android.settingslib.wifi.AccessPoint.getSecurity ( result ) ; if ( ( security ) == ( com.android.settingslib.wifi.AccessPoint.SECURITY_PSK ) ) pskType = com.android.settingslib.wifi.AccessPoint.getPskType ( result ) ; mRssi = result.level ; mSeen = result.timestamp ; }

Target:
private void initWithScanResult ( android.net.wifi.ScanResult result ) { ssid = result.SSID ; bssid = result.BSSID ; security = com.android.settingslib.wifi.AccessPoint.getSecurity ( result ) ; if ( ( security ) == ( com.android.settingslib.wifi.AccessPoint.SECURITY_PSK ) ) pskType = com.android.settingslib.wifi.AccessPoint.getPskType ( result ) ; mRssi = result.level ; mSeen = result.timestamp ; }
Source:
public void onChange ( boolean selfChange , android.net.Uri uri ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.enterBlock ( "SystemCallLogDataSource.CallLogObserver.onChange" ) ; super . onChange ( selfChange , uri ) ; contentObserverCallbacks.markDirtyAndNotify ( appContext ) ; }

Target:
public void onChange ( boolean selfChange , android.net.Uri uri ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.i ( "SystemCallLogDataSource.CallLogObserver.onChange" , "Uri:%s, SelfChange:%b" , java.lang.String.valueOf ( uri ) , selfChange ) ; super . onChange ( selfChange , uri ) ; contentObserverCallbacks.markDirtyAndNotify ( appContext ) ; }
Source:
public void testContextMenuCustom ( ) { com.android.ide.common.layout.LinearLayoutRule rule = new com.android.ide.common.layout.LinearLayoutRule ( ) ; initialize ( rule , "android.widget.LinearLayout" ) ; com.android.ide.common.api.INode node = com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button012" ) . set ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , "42dip" ) . set ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT , "50sp" ) ; java.util.List < com.android.ide.common.api.MenuAction > contextMenu = rule.getContextMenu ( node ) ; assertEquals ( 4 , contextMenu.size ( ) ) ; assertEquals ( "Layout Width" , contextMenu.get ( 0 ) . getTitle ( ) ) ; com.android.ide.common.api.MenuAction menuAction = contextMenu.get ( 0 ) ; assertTrue ( ( menuAction instanceof com.android.ide.common.api.MenuAction.Choices ) ) ; com.android.ide.common.api.MenuAction.Choices choices = ( ( com.android.ide.common.api.MenuAction.Choices ) ( menuAction ) ) ; java.util.Map < java.lang.String , java.lang.String > items = choices.getChoices ( ) ; assertTrue ( items.containsKey ( "42dip" ) ) ; assertTrue ( items.containsValue ( "42dip" ) ) ; assertEquals ( "Other..." , items.get ( "zcustom" ) ) ; assertEquals ( "Match Parent" , items.get ( "match_parent" ) ) ; assertEquals ( "42dip" , choices.getCurrent ( ) ) ; }

Target:
public void testContextMenuCustom ( ) { com.android.ide.common.layout.LinearLayoutRule rule = new com.android.ide.common.layout.LinearLayoutRule ( ) ; initialize ( rule , "android.widget.LinearLayout" ) ; com.android.ide.common.api.INode node = com.android.ide.common.layout.TestNode.create ( "android.widget.Button" ) . id ( "@+id/Button012" ) . set ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , "42dip" ) . set ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT , "50sp" ) ; java.util.List < com.android.ide.common.api.MenuAction > contextMenu = rule.getContextMenu ( node ) ; assertEquals ( 6 , contextMenu.size ( ) ) ; assertEquals ( "Layout Width" , contextMenu.get ( 2 ) . getTitle ( ) ) ; com.android.ide.common.api.MenuAction menuAction = contextMenu.get ( 2 ) ; assertTrue ( ( menuAction instanceof com.android.ide.common.api.MenuAction.Choices ) ) ; com.android.ide.common.api.MenuAction.Choices choices = ( ( com.android.ide.common.api.MenuAction.Choices ) ( menuAction ) ) ; java.util.Map < java.lang.String , java.lang.String > items = choices.getChoices ( ) ; assertTrue ( items.containsKey ( "42dip" ) ) ; assertTrue ( items.containsValue ( "42dip" ) ) ; assertEquals ( "Other..." , items.get ( "zcustom" ) ) ; assertEquals ( "Match Parent" , items.get ( "match_parent" ) ) ; assertEquals ( "42dip" , choices.getCurrent ( ) ) ; }
Source:
protected java.util.Set < java.lang.String > provideZoneIds ( ) { return new java.util.HashSet ( java.util.Arrays.asList ( android.icu.util.TimeZone.getAvailableIDs ( ) ) ) ; }

Target:
protected java.util.Set < java.lang.String > provideZoneIds ( ) { java.util.Set < java.lang.String > zoneIds = android.icu.impl.ZoneMeta.getAvailableIDs ( TimeZone.SystemTimeZoneType.ANY , null , null ) ; zoneIds = new java.util.HashSet < > ( zoneIds ) ; zoneIds.remove ( "GMT+0" ) ; zoneIds.remove ( "GMT-0" ) ; return zoneIds ; }
Source:
public void testGerman ( ) throws java.lang.Exception { assertEquals ( ( "typos.xml:10: Warning: \"zurck gefoobaren\" is a common misspelling; did you mean \"zurckgefoobaren\" ?\n" + ( "typos.xml:6: Warning: \"befindet eine\" is a common misspelling; did you mean \"befindet sich eine\" ?\n" + "typos.xml:9: Warning: \"Authorisierungscode\" is a common misspelling; did you mean \"Autorisierungscode\" ?" ) ) , lintProject ( "res/values-de/typos.xml" ) ) ; }

Target:
public void testGerman ( ) throws java.lang.Exception { assertEquals ( ( "res/values-de/typos.xml:6: Warning: \"befindet eine\" is a common misspelling; did you mean \"befindet sich eine\" ? [Typos]\n" + ( ( ( ( ( ( ( ( ( " wo befindet eine ip\n" + " ^\n" ) + "res/values-de/typos.xml:9: Warning: \"Authorisierungscode\" is a common misspelling; did you mean \"Autorisierungscode\" ? [Typos]\n" ) + " <string name=\"s2\">(Authorisierungscode!)</string>\n" ) + " ^\n" ) + "res/values-de/typos.xml:10: Warning: \"zurck gefoobaren\" is a common misspelling; did you mean \"zurckgefoobaren\" ? [Typos]\n" ) + " <string name=\"s3\"> zurck gefoobaren!</string>\n" ) + " ^\n" ) + "0 errors, 3 warnings\n" ) + "" ) ) , lintProject ( "res/values-de/typos.xml" ) ) ; }
Source:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( java.lang.Exception e ) { riljLoge ( ( "sendAck: exception : " + e ) ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }

Target:
private void sendScreenState ( boolean on ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SCREEN_STATE , null , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( on ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ": " ) + on ) ) ; send ( rr ) ; }
Source:
public void testProcessChldTypeReleaseHeldRinging ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_RELEASEHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . rejectCall ( org.mockito.Matchers.eq ( ringingCall ) , org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.any ( java.lang.String.class ) ) ; assertEquals ( didProcess , true ) ; }

Target:
public void testProcessChldTypeReleaseHeldRinging ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_RELEASEHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . rejectCall ( org.mockito.Matchers.eq ( ringingCall ) , org.mockito.Matchers.eq ( false ) , org.mockito.ArgumentMatchers.nullable ( java.lang.String.class ) ) ; assertEquals ( didProcess , true ) ; }
Source:
public static final javax.crypto.KeyAgreement getInstance ( java.lang.String algorithm ) throws java.security.NoSuchAlgorithmException { if ( algorithm == null ) { throw new java.lang.NullPointerException ( "algorithm == null" ) ; } org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = javax.crypto.KeyAgreement.ENGINE.getInstance ( algorithm , null ) ; return new javax.crypto.KeyAgreement ( ( ( javax.crypto.KeyAgreementSpi ) ( sap.spi ) ) , sap.provider , algorithm ) ; }

Target:
private javax.crypto.KeyAgreementSpi getSpi ( java.security.Key key ) { synchronized ( initLock ) { if ( ( ( spiImpl ) != null ) && ( key == null ) ) { return spiImpl ; } final org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = javax.crypto.KeyAgreement.tryAlgorithm ( key , specifiedProvider , algorithm ) ; if ( sap == null ) { throw new java.security.ProviderException ( ( "No provider for " + ( getAlgorithm ( ) ) ) ) ; } spiImpl = ( ( javax.crypto.KeyAgreementSpi ) ( sap.spi ) ) ; provider = sap.provider ; return spiImpl ; } }
Source:
native void rsnAllocationData2D ( int con , int id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) ;

Target:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
protected void handleUpdateState ( com.android.systemui.qs.tiles.BooleanState state , java.lang.Object arg ) { final android.graphics.drawable.Drawable mEnable = mContext.getDrawable ( R.drawable.ic_qs_nfc_enabled ) ; final android.graphics.drawable.Drawable mDisable = mContext.getDrawable ( R.drawable.ic_qs_nfc_disabled ) ; state.value = ( ( mAdapter ) == null ) ? false : mAdapter.isEnabled ( ) ; state.label = mContext.getString ( R.string.quick_settings_nfc_label ) ; state.icon = new com.android.systemui.qs.tiles.DrawableIcon ( ( state.value ? mEnable : mDisable ) ) ; state.minimalAccessibilityClassName = state.expandedAccessibilityClassName = android.widget.Switch.class . getName ( ) ; state.contentDescription = state.label ; }

Target:
protected void handleUpdateState ( com.android.systemui.qs.tiles.BooleanState state , java.lang.Object arg ) { final android.graphics.drawable.Drawable mEnable = mContext.getDrawable ( R.drawable.ic_qs_nfc_enabled ) ; final android.graphics.drawable.Drawable mDisable = mContext.getDrawable ( R.drawable.ic_qs_nfc_disabled ) ; state.value = getAdapter ( ) . isEnabled ( ) ; state.label = mContext.getString ( R.string.quick_settings_nfc_label ) ; state.icon = new com.android.systemui.qs.tiles.DrawableIcon ( ( state.value ? mEnable : mDisable ) ) ; state.minimalAccessibilityClassName = state.expandedAccessibilityClassName = android.widget.Switch.class . getName ( ) ; state.contentDescription = state.label ; }
Source:
public void waitUntilCovered ( int axis ) { while ( ! ( mAxisCovered [ ( axis - 1 ) ] . isFullyCovered ( ) ) ) { try { java.lang.Thread.sleep ( 500 ) ; } catch ( java.lang.InterruptedException e ) { if ( com.android.cts.verifier.sensors.RVCVRecordActivity.LOCAL_LOGV ) { android.util.Log.v ( com.android.cts.verifier.sensors.RVCVRecordActivity.TAG , ( ( "waitUntilCovered axis = " + axis ) + " is interrupted" ) ) ; } } } }

Target:
public void waitUntilCovered ( int axis ) { while ( ! ( mAxisCovered [ ( axis - 1 ) ] . isFullyCovered ( ) ) ) { try { java.lang.Thread.sleep ( 500 ) ; } catch ( java.lang.InterruptedException e ) { if ( com.android.cts.verifier.sensors.RVCVRecordActivity.LOCAL_LOGV ) { android.util.Log.v ( com.android.cts.verifier.sensors.RVCVRecordActivity.TAG , ( ( "waitUntilCovered axis = " + axis ) + " is interrupted" ) ) ; } java.lang.Thread.currentThread ( ) . interrupt ( ) ; } } }
Source:
protected java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( engineParams ) == null ) { if ( ( paramSpec ) != null ) { try { engineParams = java.security.AlgorithmParameters.getInstance ( "PSS" , BouncyCastleProvider.PROVIDER_NAME ) ; engineParams.init ( paramSpec ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } } return engineParams ; }

Target:
protected java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( engineParams ) == null ) { if ( ( paramSpec ) != null ) { try { engineParams = helper.createAlgorithmParameters ( "PSS" ) ; engineParams.init ( paramSpec ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } } return engineParams ; }
Source:
public void test_getFileStore_NPE ( ) throws java.io.IOException { try { provider.getFileStore ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_getFileStore ( ) throws java.io.IOException { try { provider.getFileStore ( filesSetup.getDataFilePath ( ) ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.SecurityException expected ) { } try { provider.getFileStore ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.SecurityException expected ) { } }
Source:
public void testCheckReadPhoneNumber_defaultSmsApp ( ) { org.mockito.Mockito.when ( mMockAppOps.noteOp ( AppOpsManager.OP_WRITE_SMS , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE ) ) . thenReturn ( AppOpsManager.MODE_ALLOWED ) ; org.junit.Assert.assertTrue ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneNumber ( mMockContext , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }

Target:
public void testCheckReadPhoneState_hasPermissionWithoutAppOp ( ) { org.mockito.Mockito.doNothing ( ) . when ( mMockContext ) . enforcePermission ( android.Manifest.permission.READ_PHONE_STATE , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.junit.Assert.assertFalse ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState ( mMockContext , ( ) -> mMockTelephony , com.android.internal.telephony.TelephonyPermissionsTest.SUB_ID , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }
Source:
public void rejectWithMessage ( java.lang.String callId , java.lang.String message ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = message ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_REJECT_WITH_MESSAGE , args ) . sendToTarget ( ) ; }

Target:
public void rejectWithMessage ( java.lang.String callId , java.lang.String message , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_REJECT_MESSAGE ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = message ; args.arg3 = android.telecom.Log.createSubsession ( ) ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_REJECT_WITH_MESSAGE , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt ) ;

Target:
synchronized void nAllocationRead3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
public static org.jetbrains.plugins.github.api.GithubCommitDetailed getCommit ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , @ org.jetbrains.annotations.NotNull java.lang.String sha ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/commits/" ) + sha ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubCommitRaw.class ) , org.jetbrains.plugins.github.api.GithubCommitDetailed.class ) ; }

Target:
public static org.jetbrains.plugins.github.api.GithubCommitDetailed getCommit ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , @ org.jetbrains.annotations.NotNull java.lang.String sha ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/commits/" ) + sha ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubCommitRaw.class ) , org.jetbrains.plugins.github.api.GithubCommitDetailed.class ) ; }
Source:
private java.util.ArrayList < java.lang.Integer > intVersion ( java.lang.String version ) { java.lang.String [ ] versions = version.split ( "\\." ) ; }

Target:
private java.util.ArrayList < java.lang.Integer > intVersion ( java.lang.String version ) { java.lang.String [ ] versions = version.split ( "\\." ) ; java.util.ArrayList < java.lang.Integer > versionNumbers = com.google.android.collect.Lists.newArrayList ( ) ; for ( java.lang.String subVersion : versions ) { versionNumbers.add ( java.lang.Integer.parseInt ( subVersion ) ) ; } return versionNumbers ; }
Source:
public void getHardwareConfig ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_HARDWARE_CONFIG , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getHardwareConfig ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_HARDWARE_CONFIG , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getHardwareConfig ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getHardwareConfig" , e ) ; } } }
Source:
static java.lang.String getKey ( @ javax.annotation.Nonnull com.android.jack.ir.ast.HasName namedElement ) { if ( namedElement instanceof com.android.jack.ir.ast.JFieldId ) { return com.android.jack.shrob.obfuscation.Renamer.getFieldKey ( ( ( com.android.jack.ir.ast.JFieldId ) ( namedElement ) ) ) ; } else if ( namedElement instanceof com.android.jack.ir.ast.JMethodId ) { com.android.jack.ir.ast.JMethodId mid = ( ( com.android.jack.ir.ast.JMethodId ) ( namedElement ) ) ; return com.android.jack.shrob.proguard.GrammarActions.getSignatureFormatter ( ) . getNameWithoutReturnType ( mid ) ; } else { return namedElement.getName ( ) ; } }

Target:
static java.lang.String getKey ( @ javax.annotation.Nonnull com.android.jack.ir.ast.HasName namedElement ) { if ( namedElement instanceof com.android.jack.ir.ast.JFieldId ) { return com.android.jack.shrob.obfuscation.Renamer.getFieldKey ( ( ( com.android.jack.ir.ast.JFieldId ) ( namedElement ) ) ) ; } else if ( namedElement instanceof com.android.jack.ir.ast.JMethodIdWide ) { com.android.jack.ir.ast.JMethodIdWide mid = ( ( com.android.jack.ir.ast.JMethodIdWide ) ( namedElement ) ) ; return com.android.jack.shrob.proguard.GrammarActions.getSignatureFormatter ( ) . getNameWithoutReturnType ( mid ) ; } else { return namedElement.getName ( ) ; } }
Source:
private void setCallState ( android.bluetooth.BluetoothHeadsetClientCall c , int state ) { if ( state == ( c.getState ( ) ) ) { return ; } if ( state == ( android.bluetooth.BluetoothHeadsetClientCall.CALL_STATE_TERMINATED ) ) { if ( ( mAudioManager.getMode ( ) ) != ( android.media.AudioManager.MODE_NORMAL ) ) { mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "abandonAudioFocus " ) ; mAudioManager.abandonAudioFocusForCall ( ) ; } } c.setState ( state ) ; sendCallChangedIntent ( c ) ; }

Target:
private void updateCallHeldIndicator ( int callHeld ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "updateCallHeld " + callHeld ) ) ; } mIndicatorCallHeld = callHeld ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.QUERY_CURRENT_CALLS ) ; }
Source:
public com.android.sdklib.devices.Screen deepCopy ( ) { com.android.sdklib.devices.Screen s = new com.android.sdklib.devices.Screen ( ) ; s.mScreenSize = mScreenSize ; s.mDiagonalLength = mDiagonalLength ; s.mPixelDensity = mPixelDensity ; s.mScreenRatio = mScreenRatio ; s.mXDimension = mXDimension ; s.mYDimension = mYDimension ; s.mXdpi = mXdpi ; s.mYdpi = mYdpi ; s.mMultitouch = mMultitouch ; s.mMechanism = mMechanism ; s.mScreenType = mScreenType ; s.mScreenRound = mScreenRound ; return s ; }

Target:
public com.android.sdklib.devices.Screen deepCopy ( ) { com.android.sdklib.devices.Screen s = new com.android.sdklib.devices.Screen ( ) ; s.mScreenSize = mScreenSize ; s.mDiagonalLength = mDiagonalLength ; s.mPixelDensity = mPixelDensity ; s.mScreenRatio = mScreenRatio ; s.mXDimension = mXDimension ; s.mYDimension = mYDimension ; s.mXdpi = mXdpi ; s.mYdpi = mYdpi ; s.mMultitouch = mMultitouch ; s.mMechanism = mMechanism ; s.mScreenType = mScreenType ; s.mScreenRound = mScreenRound ; s.mChin = mChin ; return s ; }
Source:
private static void assertCdmaDeviceId ( java.lang.String deviceId ) { if ( ( deviceId.length ( ) ) == 14 ) { android.telephony.cts.TelephonyManagerTest.assertMeidFormat ( deviceId ) ; } else if ( ( deviceId.length ( ) ) == 8 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalEsnFormat ( deviceId ) ; } else { org.junit.Assert.fail ( "device id on CDMA must be 14-digit hex MEID or 8-digit hex ESN." ) ; } }

Target:
private static void assertMeidEsn ( java.lang.String id ) { if ( ( id.length ( ) ) == 14 ) { android.telephony.cts.TelephonyManagerTest.assertMeidFormat ( id ) ; } else if ( ( id.length ( ) ) == 8 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalEsnFormat ( id ) ; } else { org.junit.Assert.fail ( "device id on CDMA must be 14-digit hex MEID or 8-digit hex ESN." ) ; } }