auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void createCatchedVariables ( ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { com.android.jill.frontend.java.Variable declaringCatchVariable = null ; org.objectweb.asm.Type catchedType ; if ( ( tryCatchNode.type ) == null ) { catchedType = org.objectweb.asm.Type.getType ( java.lang.Object.class ) ; } else { catchedType = org.objectweb.asm.Type.getObjectType ( tryCatchNode.type ) ; } java.lang.String id = "catchedExceptionNotUsed" + ( ( unusedVarCount ) ++ ) ; declaringCatchVariable = new com.android.jill.frontend.java.Variable ( id , id , catchedType , null ) ; catchBlockToCatchedVariable.put ( tryCatchNode , declaringCatchVariable ) ; } }

Target:
private void createCatchedVariables ( ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { com.android.jill.frontend.java.Variable declaringCatchVariable = null ; org.objectweb.asm.Type catchedType ; if ( ( tryCatchNode.type ) == null ) { catchedType = org.objectweb.asm.Type.getType ( java.lang.Object.class ) ; } else { catchedType = org.objectweb.asm.Type.getType ( java.lang.Throwable.class ) ; } java.lang.String id = "catchedExceptionNotUsed" + ( ( unusedVarCount ) ++ ) ; declaringCatchVariable = new com.android.jill.frontend.java.Variable ( id , id , catchedType , null ) ; catchBlockToCatchedVariable.put ( tryCatchNode , declaringCatchVariable ) ; } }
Source:
private static void fork ( java.lang.Runnable r ) { for ( int i = 0 ; i < 10 ; i ++ ) { Main.sThreads [ i ] = new java.lang.Thread ( r ) ; Main.sThreads [ i ] . start ( ) ; } }

Target:
private static void fork ( java.lang.Runnable r ) { for ( int i = 0 ; i < 10 ; i ++ ) { Main.sThreads [ i ] = new java.lang.Thread ( r ) ; } for ( int i = 0 ; i < 10 ; i ++ ) { Main.sThreads [ i ] . start ( ) ; } }
Source:
protected void computeResult ( ) { org.eclipse.jface.viewers.TreePath treeSelection = getSelection ( ) ; if ( treeSelection != null ) { if ( ( treeSelection.getSegmentCount ( ) ) == 2 ) { com.android.resources.ResourceType resourceType = ( ( com.android.resources.ResourceType ) ( treeSelection.getFirstSegment ( ) ) ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem resourceItem = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( treeSelection.getLastSegment ( ) ) ) ; mCurrentResource = com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getXmlString ( resourceType , resourceItem , false ) ; } } }

Target:
protected void computeResult ( ) { org.eclipse.jface.viewers.TreePath treeSelection = getSelection ( ) ; if ( treeSelection != null ) { if ( ( treeSelection.getSegmentCount ( ) ) == 2 ) { com.android.resources.ResourceType resourceType = ( ( com.android.resources.ResourceType ) ( treeSelection.getFirstSegment ( ) ) ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem resourceItem = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem ) ( treeSelection.getLastSegment ( ) ) ) ; mCurrentResource = resourceItem.getXmlString ( resourceType , false ) ; } } }
Source:
private void findClasses ( java.lang.String packageName , java.util.Set < java.lang.String > classNames , java.util.Set < java.lang.String > subpackageNames ) throws java.io.IOException { java.lang.String packagePrefix = packageName + '.' ; java.lang.String pathPrefix = packagePrefix.replace ( '.' , '/' ) ; for ( java.lang.String entry : classPath ) { java.io.File entryFile = new java.io.File ( entry ) ; if ( ( entryFile.exists ( ) ) && ( ! ( entryFile.isDirectory ( ) ) ) ) { classFinder.find ( entryFile , pathPrefix , packageName , classNames , subpackageNames ) ; } } }

Target:
private void findClasses ( java.lang.String packageName , java.util.Set < java.lang.String > classNames , java.util.Set < java.lang.String > subpackageNames ) throws java.io.IOException { java.lang.String packagePrefix = packageName + '.' ; java.lang.String pathPrefix = packagePrefix.replace ( '.' , '/' ) ; for ( java.lang.String entry : classPath ) { java.io.File entryFile = new java.io.File ( entry ) ; if ( entryFile.exists ( ) ) { classFinder.find ( entryFile , pathPrefix , packageName , classNames , subpackageNames ) ; } } }
Source:
public void testParseICMPv6DADProbe ( ) { final java.lang.String packet = "3333FF6F48F3 807ABF6F48F3 86DD" + ( ( ( ( ( "600000000018 3A FF" + "00000000000000000000000000000000" ) + "FF0200000000000000000001FF6F48F3" ) + "87 00 A8E7" ) + "00000000" ) + "FE80000000000000827ABFFFFE6F48F3" ) ; final java.lang.String expected = "TX 80:7a:bf:6f:48:f3 > 33:33:ff:6f:48:f3 ipv6" + ( " :: > ff02::1:ff6f:48f3 icmp6" + " ns fe80::827a:bfff:fe6f:48f3" ) ; assertEquals ( expected , getSummary ( packet ) ) ; }

Target:
public void testParseICMPv6DADProbe ( ) { final java.lang.String packet = "3333FF6F48F3 807ABF6F48F3 86DD" + ( ( ( ( ( "600000000018 3A FF" + "00000000000000000000000000000000" ) + "FF0200000000000000000001FF6F48F3" ) + "87 00 A8E7" ) + "00000000" ) + "FE80000000000000827ABFFFFE6F48F3" ) ; final java.lang.String expected = "TX 80:7a:bf:6f:48:f3 > 33:33:ff:6f:48:f3 ipv6" + ( " :: > ff02::1:ff6f:48f3 icmp6" + " ns fe80::827a:bfff:fe6f:48f3" ) ; org.junit.Assert.assertEquals ( expected , getSummary ( packet ) ) ; }
Source:
public com.android.dialer.voicemail.listui.NewVoicemailViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , int viewType ) { com.android.dialer.common.LogUtil.enterBlock ( "NewVoicemailAdapter.onCreateViewHolder" ) ; android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) ; android.view.View view = inflater.inflate ( R.layout.new_voicemail_entry , viewGroup , false ) ; com.android.dialer.voicemail.listui.NewVoicemailViewHolder newVoicemailViewHolder = new com.android.dialer.voicemail.listui.NewVoicemailViewHolder ( view , clock , this ) ; newVoicemailViewHolderSet.add ( newVoicemailViewHolder ) ; return newVoicemailViewHolder ; }

Target:
public com.android.dialer.voicemail.listui.NewVoicemailViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , int viewType ) { android.view.LayoutInflater inflater = android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) ; android.view.View view = inflater.inflate ( R.layout.new_voicemail_entry , viewGroup , false ) ; com.android.dialer.voicemail.listui.NewVoicemailViewHolder newVoicemailViewHolder = new com.android.dialer.voicemail.listui.NewVoicemailViewHolder ( view , clock , this ) ; newVoicemailViewHolderSet.add ( newVoicemailViewHolder ) ; return newVoicemailViewHolder ; }
Source:
static void native_rCubicTo ( int nPath , float x1 , float y1 , float x2 , float y2 , float x3 , float y3 ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.rCubicTo ( x1 , y1 , x2 , y2 , x3 , y3 ) ; }

Target:
static void native_rCubicTo ( long nPath , float x1 , float y1 , float x2 , float y2 , float x3 , float y3 ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.rCubicTo ( x1 , y1 , x2 , y2 , x3 , y3 ) ; }
Source:
public int createPbapPseRecord ( java.lang.String serviceName , int rfcommChannel , int l2capPsm , int version , int repositories , int features ) { if ( ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) == false ) { throw new java.lang.RuntimeException ( ( ( com.android.bluetooth.sdp.SdpManager.TAG ) + " sNativeAvailable == false - native not initialized" ) ) ; } return sdpCreatePbapPseRecordNative ( serviceName , rfcommChannel , l2capPsm , version , repositories , features ) ; }

Target:
public int createPbapPseRecord ( java.lang.String serviceName , int rfcommChannel , int l2capPsm , int version , int repositories , int features ) { if ( ! ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) ) { throw new java.lang.RuntimeException ( ( ( com.android.bluetooth.sdp.SdpManager.TAG ) + " sNativeAvailable == false - native not initialized" ) ) ; } return sdpCreatePbapPseRecordNative ( serviceName , rfcommChannel , l2capPsm , version , repositories , features ) ; }
Source:
private static void add ( java.lang.String mimeType , java.lang.String extension ) { if ( ! ( libcore.net.MimeUtils.mimeTypeToExtensionMap.containsKey ( mimeType ) ) ) { libcore.net.MimeUtils.mimeTypeToExtensionMap.put ( mimeType , extension ) ; } libcore.net.MimeUtils.extensionToMimeTypeMap.put ( extension , mimeType ) ; }

Target:
private static void add ( java.lang.String mimeType , java.lang.String extension ) { if ( ! ( libcore.net.MimeUtils.mimeTypeToExtensionMap.containsKey ( mimeType ) ) ) { libcore.net.MimeUtils.mimeTypeToExtensionMap.put ( mimeType , extension ) ; } if ( ! ( libcore.net.MimeUtils.extensionToMimeTypeMap.containsKey ( extension ) ) ) { libcore.net.MimeUtils.extensionToMimeTypeMap.put ( extension , mimeType ) ; } }
Source:
public void TestJB3879 ( ) { try { android.icu.util.UResourceBundle bundle = ( ( android.icu.util.UResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( "android/icu/dev/data/testdata" , android.icu.util.ULocale.getDefault ( ) , android.icu.dev.test.util.ICUResourceBundleTest.testLoader ) ) ) ; if ( bundle == null ) { errln ( "could not create the resource bundle" ) ; } } catch ( java.util.MissingResourceException ex ) { warnln ( ( "could not load test data: " + ( ex.getMessage ( ) ) ) ) ; } }

Target:
public void TestJB3879 ( ) { try { android.icu.util.UResourceBundle bundle = android.icu.util.UResourceBundle.getBundleInstance ( "android/icu/dev/data/testdata" , android.icu.util.ULocale.getDefault ( ) , android.icu.dev.test.util.ICUResourceBundleTest.testLoader ) ; if ( bundle == null ) { errln ( "could not create the resource bundle" ) ; } } catch ( java.util.MissingResourceException ex ) { warnln ( ( "could not load test data: " + ( ex.getMessage ( ) ) ) ) ; } }
Source:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = null ; android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service != null ) { characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } } return characteristic ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service == null ) return null ; android.bluetooth.BluetoothGattCharacteristic characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; return null ; } return characteristic ; }
Source:
private void updateConfigurationCountLabel ( ) { int numberOfConfigurations = configuration.getDeviceConfigurationCount ( ) ; double coverage = ( computeCoverage ( configuration.countCombinationsCollapsingOrientation ( ) ) ) * 100.0 ; myConfigurationCountLabel.setText ( ( ( "<html>Tests will run on <b>" + numberOfConfigurations ) + " configurations</b>.</html>" ) ) ; if ( numberOfConfigurations < 1 ) { myConfigurationCountLabel.setForeground ( JBColor.RED ) ; } else { myConfigurationCountLabel.setForeground ( com.intellij.util.ui.UIUtil.getActiveTextColor ( ) ) ; } }

Target:
private void updateConfigurationCountLabel ( ) { int numberOfConfigurations = configuration.getDeviceConfigurationCount ( ) ; myConfigurationCountLabel.setText ( ( ( "<html>Tests will run on <b>" + numberOfConfigurations ) + " configurations</b>.</html>" ) ) ; if ( numberOfConfigurations < 1 ) { myConfigurationCountLabel.setForeground ( JBColor.RED ) ; } else { myConfigurationCountLabel.setForeground ( com.intellij.util.ui.UIUtil.getActiveTextColor ( ) ) ; } }
Source:
public boolean contentEquals ( java.lang.StringBuffer strbuf ) { synchronized ( strbuf ) { int size = strbuf.length ( ) ; if ( ( count ) != size ) { return false ; } return regionMatches ( 0 , new java.lang.String ( 0 , size , strbuf.getValue ( ) ) , 0 , size ) ; } }

Target:
public boolean contentEquals ( java.lang.StringBuffer sb ) { synchronized ( sb ) { int size = sb.length ( ) ; if ( ( count ) != size ) { return false ; } return regionMatches ( 0 , new java.lang.String ( 0 , size , sb.getValue ( ) ) , 0 , size ) ; } }
Source:
private void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry , boolean isPrimary ) { updateContactEntry ( entry , isPrimary , false ) ; if ( ( entry.name ) != null ) { com.android.incallui.Log.d ( com.android.incallui.CallCardPresenter.TAG , ( "Contact found: " + entry ) ) ; } if ( ( entry.contactUri ) != null ) { com.android.incallui.CallerInfoUtils.sendViewNotification ( mContext , entry.contactUri ) ; } }

Target:
private void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry , boolean isPrimary ) { updateContactEntry ( entry , isPrimary ) ; if ( ( entry.name ) != null ) { com.android.incallui.Log.d ( com.android.incallui.CallCardPresenter.TAG , ( "Contact found: " + entry ) ) ; } if ( ( entry.contactUri ) != null ) { com.android.incallui.CallerInfoUtils.sendViewNotification ( mContext , entry.contactUri ) ; } }
Source:
private android.net.wifi.p2p.WifiP2pConfig createDummyP2pConfig ( java.lang.String peerAddress , int wpsProvMethod , java.lang.String pin ) { android.net.wifi.p2p.WifiP2pConfig config = new android.net.wifi.p2p.WifiP2pConfig ( ) ; config.wps = new android.net.wifi.WpsInfo ( ) ; config.deviceAddress = peerAddress ; config.wps.setup = wpsProvMethod ; if ( wpsProvMethod == ( android.net.wifi.WpsInfo.DISPLAY ) ) { config.wps.pin = pin ; } return config ; }

Target:
private android.net.wifi.p2p.WifiP2pConfig createDummyP2pConfig ( java.lang.String peerAddress , int wpsProvMethod , java.lang.String pin ) { android.net.wifi.p2p.WifiP2pConfig config = new android.net.wifi.p2p.WifiP2pConfig ( ) ; config.wps = new android.net.wifi.WpsInfo ( ) ; config.deviceAddress = peerAddress ; config.wps.setup = wpsProvMethod ; config.wps.pin = pin ; return config ; }
Source:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; if ( ! ( checkDevice ( device ) ) ) { return false ; } return sendReportNative ( id , data ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return sendReportNative ( id , data ) ; }
Source:
public com.android.jack.ir.ast.JStatement createNullCheck ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr , @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { com.android.jack.ir.sourceinfo.SourceInfo srcInfo = expr.getSourceInfo ( ) ; return new com.android.jack.ir.ast.JIfStatement ( srcInfo , new com.android.jack.ir.ast.JEqOperation ( srcInfo , expr , new com.android.jack.ir.ast.JNullLiteral ( srcInfo ) ) , createThenBlock ( srcInfo , request ) , null ) ; }

Target:
private com.android.jack.ir.ast.JStatement createNullCheck ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr , @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { com.android.jack.ir.sourceinfo.SourceInfo srcInfo = expr.getSourceInfo ( ) ; return new com.android.jack.ir.ast.JIfStatement ( srcInfo , new com.android.jack.ir.ast.JEqOperation ( srcInfo , expr , new com.android.jack.ir.ast.JNullLiteral ( srcInfo ) ) , createThenBlock ( srcInfo , request ) , null ) ; }
Source:
protected void bind ( java.net.InetAddress address , int port ) throws java.io.IOException { libcore.io.IoBridge.bind ( fd , address , port ) ; this . address = address ; if ( port != 0 ) { this . localport = port ; } else { this . localport = libcore.io.IoBridge.getSocketLocalPort ( fd ) ; } }

Target:
protected void bind ( java.net.InetAddress address , int port ) throws java.io.IOException { libcore.io.IoBridge.bind ( fd , address , port ) ; if ( port != 0 ) { this . localport = port ; } else { this . localport = libcore.io.IoBridge.getSocketLocalPort ( fd ) ; } }
Source:
public void onSpeakEasyCall ( ) { com.android.dialer.common.LogUtil.enterBlock ( "AnswerScreenPresenter.onSpeakEasyCall" ) ; com.android.incallui.call.DialerCall incomingCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( incomingCall == null ) { com.android.dialer.common.LogUtil.i ( "AnswerScreenPresenter.onSpeakEasyCall" , "incomingCall == null" ) ; return ; } incomingCall.setIsSpeakEasyCall ( true ) ; com.android.incallui.InCallActivity inCallActivity = ( ( com.android.incallui.InCallActivity ) ( answerScreen.getAnswerScreenFragment ( ) . getActivity ( ) ) ) ; inCallActivity.onPrimaryCallStateChanged ( ) ; }

Target:
public void onSpeakEasyCall ( ) { com.android.dialer.common.LogUtil.enterBlock ( "AnswerScreenPresenter.onSpeakEasyCall" ) ; com.android.incallui.call.DialerCall incomingCall = com.android.incallui.call.CallList.getInstance ( ) . getIncomingCall ( ) ; if ( incomingCall == null ) { com.android.dialer.common.LogUtil.i ( "AnswerScreenPresenter.onSpeakEasyCall" , "incomingCall == null" ) ; return ; } incomingCall.setIsSpeakEasyCall ( true ) ; }
Source:
public int read ( ) throws java.io.IOException { java.lang.Object traceContext = sun.misc.IoTrace.fileReadBegin ( path ) ; byte [ ] b = new byte [ 1 ] ; int res = - 1 ; try { res = read ( b , 0 , 1 ) ; } finally { sun.misc.IoTrace.fileReadEnd ( traceContext , res ) ; } return res != ( - 1 ) ? ( b [ 0 ] ) & 255 : - 1 ; }

Target:
public int read ( ) throws java.io.IOException { byte [ ] b = new byte [ 1 ] ; return ( read ( b , 0 , 1 ) ) != ( - 1 ) ? ( b [ 0 ] ) & 255 : - 1 ; }
Source:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_DISABLE_P2P_RSP : transitionTo ( mTransitionToState ) ; break ; case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT : case com.android.server.wifi.WifiStateMachine.CMD_START_SUPPLICANT : case com.android.server.wifi.WifiStateMachine.CMD_STOP_SUPPLICANT : case com.android.server.wifi.WifiStateMachine.CMD_START_AP : case com.android.server.wifi.WifiStateMachine.CMD_STOP_AP : case com.android.server.wifi.WifiStateMachine.CMD_START_DRIVER : case com.android.server.wifi.WifiStateMachine.CMD_STOP_DRIVER : case com.android.server.wifi.WifiStateMachine.CMD_SET_OPERATIONAL_MODE : case com.android.server.wifi.WifiStateMachine.CMD_SET_COUNTRY_CODE : case com.android.server.wifi.WifiStateMachine.CMD_SET_FREQUENCY_BAND : case com.android.server.wifi.WifiStateMachine.CMD_START_PACKET_FILTERING : case com.android.server.wifi.WifiStateMachine.CMD_STOP_PACKET_FILTERING : case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : case com.android.server.wifi.WifiStateMachine.CMD_DISCONNECT : case com.android.server.wifi.WifiStateMachine.CMD_REASSOCIATE : case com.android.server.wifi.WifiStateMachine.CMD_RECONNECT : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }

Target:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_DISABLE_P2P_RSP : transitionTo ( mTransitionToState ) ; break ; case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT : case com.android.server.wifi.WifiStateMachine.CMD_START_SUPPLICANT : case com.android.server.wifi.WifiStateMachine.CMD_STOP_SUPPLICANT : case com.android.server.wifi.WifiStateMachine.CMD_START_AP : case com.android.server.wifi.WifiStateMachine.CMD_STOP_AP : case com.android.server.wifi.WifiStateMachine.CMD_SET_OPERATIONAL_MODE : case com.android.server.wifi.WifiStateMachine.CMD_SET_FREQUENCY_BAND : case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : case com.android.server.wifi.WifiStateMachine.CMD_DISCONNECT : case com.android.server.wifi.WifiStateMachine.CMD_REASSOCIATE : case com.android.server.wifi.WifiStateMachine.CMD_RECONNECT : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }
Source:
public static void main ( java.lang.String [ ] args ) { com.android.uiautomator.DebugBridge.init ( ) ; try { com.android.uiautomator.UiAutomatorViewer window = new com.android.uiautomator.UiAutomatorViewer ( ) ; window.setBlockOnOpen ( true ) ; window.open ( ) ; com.android.uiautomator.UiAutomatorModel.getModel ( ) . cleanUp ( ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } finally { com.android.uiautomator.DebugBridge.terminate ( ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { com.android.uiautomator.DebugBridge.init ( ) ; try { com.android.uiautomator.UiAutomatorViewer window = new com.android.uiautomator.UiAutomatorViewer ( ) ; window.setBlockOnOpen ( true ) ; window.open ( ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } finally { com.android.uiautomator.DebugBridge.terminate ( ) ; } }
Source:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key , int initialSize ) { if ( key.contentEquals ( "past" ) ) { pastFutureIndex = 0 ; } else if ( key.contentEquals ( "future" ) ) { pastFutureIndex = 1 ; } else { return null ; } if ( ( unit.relUnit ) == null ) { return null ; } return relativeTimeDetailSink ; }

Target:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key ) { if ( key.contentEquals ( "past" ) ) { pastFutureIndex = 0 ; } else if ( key.contentEquals ( "future" ) ) { pastFutureIndex = 1 ; } else { return null ; } if ( ( unit.relUnit ) == null ) { return null ; } return relativeTimeDetailSink ; }
Source:
public void testReportFullscreenMode ( ) { android.view.inputmethod.InputMethodManager imManager = ( ( android.view.inputmethod.InputMethodManager ) ( mInstrumentation.getTargetContext ( ) . getSystemService ( Context.INPUT_METHOD_SERVICE ) ) ) ; assertFalse ( imManager.isFullscreenMode ( ) ) ; mConnection.reportFullscreenMode ( true ) ; assertTrue ( imManager.isFullscreenMode ( ) ) ; }

Target:
public void testReportFullscreenMode ( ) { android.view.inputmethod.InputMethodManager imManager = ( ( android.view.inputmethod.InputMethodManager ) ( mInstrumentation.getTargetContext ( ) . getSystemService ( Context.INPUT_METHOD_SERVICE ) ) ) ; mConnection.reportFullscreenMode ( false ) ; assertFalse ( imManager.isFullscreenMode ( ) ) ; mConnection.reportFullscreenMode ( true ) ; assertTrue ( imManager.isFullscreenMode ( ) ) ; }
Source:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertNoErrors ( ) ; }

Target:
public void test_SSL_free ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { org.w3c.dom.Element element = attribute.getOwnerElement ( ) ; if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_HINT ) ) { context.report ( com.android.tools.lint.checks.AccessibilityDetector.ISSUE , element , context.getLocation ( attribute ) , ( "Do not set both `contentDescription` and `hint`: the `contentDescription` " + "will mask the `hint`" ) , null ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { org.w3c.dom.Element element = attribute.getOwnerElement ( ) ; if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_HINT ) ) { context.report ( com.android.tools.lint.checks.AccessibilityDetector.ISSUE , element , context.getLocation ( attribute ) , ( "Do not set both `contentDescription` and `hint`: the `contentDescription` " + "will mask the `hint`" ) ) ; } }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileOutputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.WRITE ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }

Target:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file , boolean append ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileOutputStream ( path , append ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.WRITE ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
public void handleMessage ( android.os.Message msg ) { com.android.bluetooth.gatt.ScanClient client = ( ( com.android.bluetooth.gatt.ScanClient ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.bluetooth.gatt.ScanManager.MSG_START_BLE_SCAN : handleStartScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_STOP_BLE_SCAN : handleStopScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_FLUSH_BATCH_RESULTS : handleFlushBatchResults ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_SCAN_TIMEOUT : mScanNative.regularScanTimeout ( ) ; break ; default : android.util.Log.e ( com.android.bluetooth.gatt.ScanManager.TAG , ( "received an unkown message : " + ( msg.what ) ) ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { com.android.bluetooth.gatt.ScanClient client = ( ( com.android.bluetooth.gatt.ScanClient ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.bluetooth.gatt.ScanManager.MSG_START_BLE_SCAN : handleStartScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_STOP_BLE_SCAN : handleStopScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_FLUSH_BATCH_RESULTS : handleFlushBatchResults ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_SCAN_TIMEOUT : mScanNative.regularScanTimeout ( client ) ; break ; default : android.util.Log.e ( com.android.bluetooth.gatt.ScanManager.TAG , ( "received an unkown message : " + ( msg.what ) ) ) ; } }
Source:
public void testIntersectionType002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( INTERSECTION_TYPE_002 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.LAMBDA_TO_ANONYMOUS_CONVERTER.getName ( ) , java.lang.Boolean.TRUE.toString ( ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
public void testIntersectionType002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( INTERSECTION_TYPE_002 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.LAMBDA_TO_ANONYMOUS_CONVERTER.getName ( ) , java.lang.Boolean.TRUE.toString ( ) ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
private static void testMethod ( java.lang.String className , java.lang.String methodName , java.lang.Class < ? > ... types ) throws java.lang.Exception { java.lang.Class < ? > base = java.lang.Class.forName ( className ) ; java.lang.reflect.Method m = base.getDeclaredMethod ( methodName , types ) ; java.lang.String [ ] result = Main.getMethodName ( m ) ; java.lang.System.out.println ( java.util.Arrays.toString ( result ) ) ; }

Target:
private static void testMethod ( java.lang.String className , java.lang.String methodName , java.lang.Class < ? > ... types ) throws java.lang.Exception { java.lang.Class < ? > base = java.lang.Class.forName ( className ) ; Main.testMethod ( base , methodName , types ) ; }
Source:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration ) { com.android.server.wifi.WifiConfigStoreData storeData = captureWriteStoreData ( ) ; if ( storeData == null ) { return false ; } boolean foundNetworkInStoreData = false ; for ( android.net.wifi.WifiConfiguration retrievedConfig : storeData.getConfigurations ( ) ) { if ( retrievedConfig.configKey ( ) . equals ( configuration.configKey ( ) ) ) { foundNetworkInStoreData = true ; } } return foundNetworkInStoreData ; }

Target:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration ) { com.android.server.wifi.WifiConfigStoreData storeData = captureWriteStoreData ( ) ; if ( storeData == null ) { return false ; } return isNetworkInConfigStoreData ( configuration , storeData ) ; }
Source:
synchronized boolean terminateScoUsingVirtualVoiceCall ( ) { log ( "terminateScoUsingVirtualVoiceCall: Received" ) ; if ( ! ( isVirtualCallInProgress ( ) ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "terminateScoUsingVirtualVoiceCall: No present call to terminate" ) ; return false ; } processCallState ( new com.android.bluetooth.hfp.HeadsetCallState ( 0 , 0 , HeadsetHalConstants.CALL_STATE_IDLE , "" , 0 ) , true ) ; setVirtualCallInProgress ( false ) ; log ( "terminateScoUsingVirtualVoiceCall: Done" ) ; return true ; }

Target:
private synchronized boolean terminateScoUsingVirtualVoiceCall ( ) { log ( "terminateScoUsingVirtualVoiceCall: Received" ) ; if ( ! ( isVirtualCallInProgress ( ) ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "terminateScoUsingVirtualVoiceCall: No present call to terminate" ) ; return false ; } processCallState ( new com.android.bluetooth.hfp.HeadsetCallState ( 0 , 0 , HeadsetHalConstants.CALL_STATE_IDLE , "" , 0 ) , true ) ; setVirtualCallInProgress ( false ) ; log ( "terminateScoUsingVirtualVoiceCall: Done" ) ; return true ; }
Source:
public void test_getKeepAlive ( ) throws java.lang.Exception { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) , null , 0 ) ; client.setKeepAlive ( true ) ; assertTrue ( "getKeepAlive false when it should be true" , client.getKeepAlive ( ) ) ; client.setKeepAlive ( false ) ; assertFalse ( "getKeepAlive true when it should be False" , client.getKeepAlive ( ) ) ; }

Target:
public void test_getKeepAlive ( ) throws java.lang.Exception { try ( java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) , null , 0 ) ) { client.setKeepAlive ( true ) ; assertTrue ( "getKeepAlive false when it should be true" , client.getKeepAlive ( ) ) ; client.setKeepAlive ( false ) ; assertFalse ( "getKeepAlive true when it should be False" , client.getKeepAlive ( ) ) ; } }
Source:
static void setByte ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , byte value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setByte ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , byte value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
public com.android.sdklib.internal.repository.SdkSourceCategory getCategory ( com.android.sdklib.internal.repository.SdkSource source ) { if ( source != null ) { for ( java.util.Map.Entry < com.android.sdklib.internal.repository.SdkSourceCategory , java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > > entry : mSources.entrySet ( ) ) { if ( entry.getValue ( ) . contains ( source ) ) { return entry.getKey ( ) ; } } } return null ; }

Target:
public com.android.sdklib.internal.repository.SdkSourceCategory getCategory ( com.android.sdklib.internal.repository.SdkSource source ) { if ( source != null ) { synchronized ( mSources ) { for ( java.util.Map.Entry < com.android.sdklib.internal.repository.SdkSourceCategory , java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > > entry : mSources.entrySet ( ) ) { if ( entry.getValue ( ) . contains ( source ) ) { return entry.getKey ( ) ; } } } } return null ; }
Source:
public static int Min2Print3 ( int a , int b , int c ) { int [ ] values = new int [ ] { a , b , c } ; java.lang.System.err.println ( ( ( "Running Main.Min2Print3(" + ( java.util.Arrays.toString ( values ) ) ) + ")" ) ) ; return a > b ? a : b ; }

Target:
public static int Min2Print3 ( int a , int b , int c ) { int [ ] values = new int [ ] { a , b , c } ; java.lang.System.out.println ( ( ( "Running Main.Min2Print3(" + ( java.util.Arrays.toString ( values ) ) ) + ")" ) ) ; return a > b ? a : b ; }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
public static void set ( java.lang.String key , java.lang.String val ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( ( val != null ) && ( ( val.length ( ) ) > ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( "val.length > " + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; android.os.SystemProperties.native_set ( key , val ) ; }

Target:
public static void set ( java.lang.String key , java.lang.String val ) { if ( ( val != null ) && ( ( val.length ( ) ) > ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( "val.length > " + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; android.os.SystemProperties.native_set ( key , val ) ; }
Source:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }

Target:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final long ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.IAdvertisingSetCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , callback ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.IAdvertisingSetCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , callback ) ; }
Source:
private void removeInvalidServices ( java.util.Map < java.security.Provider.ServiceKey , java.security.Provider.Service > map ) { for ( java.util.Iterator t = map.entrySet ( ) . iterator ( ) ; t.hasNext ( ) ; ) { java.util.Map.Entry entry = ( ( java.util.Map.Entry ) ( t.next ( ) ) ) ; java.security.Provider.Service s = ( ( java.security.Provider.Service ) ( entry.getValue ( ) ) ) ; if ( ( s.isValid ( ) ) == false ) { t.remove ( ) ; } } }

Target:
private void removeInvalidServices ( java.util.Map < java.security.Provider.ServiceKey , java.security.Provider.Service > map ) { for ( java.util.Iterator < java.util.Map.Entry < java.security.Provider.ServiceKey , java.security.Provider.Service > > t = map.entrySet ( ) . iterator ( ) ; t.hasNext ( ) ; ) { java.security.Provider.Service s = t.next ( ) . getValue ( ) ; if ( ( s.isValid ( ) ) == false ) { t.remove ( ) ; } } }
Source:
void dumpWindowsLocked ( ) { for ( int i = ( mWindows.size ( ) ) - 1 ; i >= 0 ; i -- ) { android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( ( ( " #" + i ) + ": " ) + ( mWindows.get ( i ) ) ) ) ; } }

Target:
void dumpWindowsLocked ( ) { for ( int i = ( mWindows.size ( ) ) - 1 ; i >= 0 ; i -- ) { android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( ( ( " #" + i ) + ": " ) + ( mWindows.get ( i ) ) ) ) ; } }
Source:
public void test_parse_h_z_4DigitOffsetNoGMT ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "EST" ) ) ; cal.set ( 1970 , java.util.Calendar.JANUARY , 1 , 4 , 30 ) ; assertParse ( "h z" , "14 +0001 " , new java.util.Date ( 46800000 ) , 0 , 8 ) ; assertParse ( "h z" , "14 -0001 " , new java.util.Date ( 54000000 ) , 0 , 8 ) ; }

Target:
public void test_parse_h_z_4DigitOffsetNoGMT ( ) throws java.lang.Exception { assertParse ( "h z" , "14 +0001 " , new java.util.Date ( 46800000 ) , 0 , 8 ) ; assertParse ( "h z" , "14 -0001 " , new java.util.Date ( 54000000 ) , 0 , 8 ) ; }
Source:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = ft.buildPropertyName ( null ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.LibraryFormatException e ) { throw new java.lang.AssertionError ( ) ; } } }

Target:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = buildPropertyName ( ft , null ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.LibraryFormatException e ) { throw new java.lang.AssertionError ( ) ; } } }
Source:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; com.google.gct.login.GoogleLogin.addLoginListenersFromExtensionPoints ( state ) ; return state ; }

Target:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; return state ; }
Source:
public void timeReadNetworkStatsDetailNative ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { final android.net.NetworkStats stats = new android.net.NetworkStats ( android.os.SystemClock.elapsedRealtime ( ) , 0 ) ; com.android.internal.net.NetworkStatsFactory.nativeReadNetworkStatsDetail ( stats , mStats.getAbsolutePath ( ) , NetworkStats.UID_ALL , new java.lang.String [ 0 ] , 999 ) ; } }

Target:
public void timeReadNetworkStatsDetailNative ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { final android.net.NetworkStats stats = new android.net.NetworkStats ( android.os.SystemClock.elapsedRealtime ( ) , 0 ) ; com.android.internal.net.NetworkStatsFactory.nativeReadNetworkStatsDetail ( stats , mStats.getAbsolutePath ( ) , NetworkStats.UID_ALL , new java.lang.String [ 0 ] , 999 , false ) ; } }
Source:
private static java.lang.ClassLoader createClassLoader ( com.google.devtools.build.android.desugar.CoreLibraryRewriter rewriter , java.util.List < java.nio.file.Path > bootclasspath , java.nio.file.Path inputJar , java.util.List < java.nio.file.Path > classpath , java.lang.ClassLoader parent ) throws java.io.IOException { classpath = com.google.common.collect.ImmutableList.< java.nio.file.Path > builder ( ) . add ( inputJar ) . addAll ( classpath ) . build ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( bootclasspath , rewriter , parent ) ; } return com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( classpath , rewriter , parent ) ; }

Target:
private static java.lang.ClassLoader createClassLoader ( java.util.List < java.nio.file.Path > bootclasspath , java.nio.file.Path inputJar , java.util.List < java.nio.file.Path > classpath , java.lang.ClassLoader parent ) throws java.io.IOException { classpath = com.google.common.collect.ImmutableList.< java.nio.file.Path > builder ( ) . add ( inputJar ) . addAll ( classpath ) . build ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( bootclasspath , parent ) ; } return com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( classpath , parent ) ; }
Source:
private void assertContentEquals ( java.nio.ByteBuffer buf , byte [ ] array , int offset , int length ) { for ( int i = 0 ; i < length ; i ++ ) { assertEquals ( buf.get ( i ) , array [ ( offset + i ) ] ) ; } }

Target:
private static void assertContentEquals ( java.nio.ByteBuffer buf , byte [ ] array , int offset , int length ) { for ( int i = 0 ; i < length ; i ++ ) { assertEquals ( buf.get ( i ) , array [ ( offset + i ) ] ) ; } }