auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }

Target:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }
Source:
final void internalReset ( long initialValue ) { com.google.common.cache.Striped64.Cell [ ] as = cells ; base = initialValue ; if ( as != null ) { int n = as.length ; for ( int i = 0 ; i < n ; ++ i ) { com.google.common.cache.Striped64.Cell a = as [ i ] ; if ( a != null ) a.value = initialValue ; } } }

Target:
final void internalReset ( long initialValue ) { com.google.common.cache.Striped64.Cell [ ] as = cells ; base = initialValue ; if ( as != null ) { for ( com.google.common.cache.Striped64.Cell a : as ) { if ( a != null ) a.value = initialValue ; } } }
Source:
public com.google.common.collect.ImmutableList.Builder < E > addAll ( java.lang.Iterable < ? extends E > elements ) { if ( elements instanceof java.util.Collection ) { java.util.Collection < ? > collection = ( ( java.util.Collection < ? > ) ( elements ) ) ; expandFor ( collection.size ( ) ) ; } super . addAll ( elements ) ; return this ; }

Target:
public com.google.common.collect.ImmutableList.Builder < E > addAll ( java.lang.Iterable < ? extends E > elements ) { super . addAll ( elements ) ; return this ; }
Source:
public void connectOtherProfile ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mHandler.hasMessages ( com.android.bluetooth.btservice.PhonePolicy.MESSAGE_CONNECT_OTHER_PROFILES ) ) == false ) && ( ( mAdapterService.isQuietModeEnabled ( ) ) == false ) ) { android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.PhonePolicy.MESSAGE_CONNECT_OTHER_PROFILES ) ; m.obj = device ; mHandler.sendMessageDelayed ( m , com.android.bluetooth.btservice.PhonePolicy.CONNECT_OTHER_PROFILES_TIMEOUT ) ; } }

Target:
private void connectOtherProfile ( android.bluetooth.BluetoothDevice device ) { if ( ( ! ( mHandler.hasMessages ( com.android.bluetooth.btservice.PhonePolicy.MESSAGE_CONNECT_OTHER_PROFILES ) ) ) && ( ! ( mAdapterService.isQuietModeEnabled ( ) ) ) ) { android.os.Message m = mHandler.obtainMessage ( com.android.bluetooth.btservice.PhonePolicy.MESSAGE_CONNECT_OTHER_PROFILES ) ; m.obj = device ; mHandler.sendMessageDelayed ( m , com.android.bluetooth.btservice.PhonePolicy.CONNECT_OTHER_PROFILES_TIMEOUT ) ; } }
Source:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } if ( mReceiverRegistered ) { mService.unregisterReceiver ( mReceiver ) ; mReceiverRegistered = false ; } mService = null ; mBondedDevices.clear ( ) ; }

Target:
public void cleanup ( ) { mRemoteDevices = null ; mProfileConnectionState.clear ( ) ; if ( mReceiverRegistered ) { mService.unregisterReceiver ( mReceiver ) ; mReceiverRegistered = false ; } mService = null ; mBondedDevices.clear ( ) ; }
Source:
private static void triggerBlockingRegisterNativeAllocation ( ) throws java.lang.Exception { long maxMem = java.lang.Runtime.getRuntime ( ) . maxMemory ( ) ; int size = ( ( int ) ( maxMem / 32 ) ) ; int allocationCount = 256 ; long total = 0 ; for ( int i = 0 ; i < allocationCount ; ++ i ) { Main.runtime.registerNativeAllocation ( size ) ; total += size ; } while ( total > 0 ) { Main.runtime.registerNativeFree ( size ) ; total -= size ; } }

Target:
private static void triggerBlockingRegisterNativeAllocation ( ) throws java.lang.Exception { long maxMem = java.lang.Runtime.getRuntime ( ) . maxMemory ( ) ; int size = ( ( int ) ( maxMem / 5 ) ) ; int allocationCount = 10 ; long total = 0 ; for ( int i = 0 ; i < allocationCount ; ++ i ) { Main.runtime.registerNativeAllocation ( size ) ; total += size ; } while ( total > 0 ) { Main.runtime.registerNativeFree ( size ) ; total -= size ; } }
Source:
public com.android.tools.perflib.heap.Heap getHeap ( int id ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { if ( ( mHeap.getId ( ) ) == id ) { return mHeap ; } } return null ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( name.equals ( mHeaps.get ( i ) . getName ( ) ) ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
public final void onSmsStatusReportReceived ( int token , int messageRef , java.lang.String format , byte [ ] pdu ) { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Feature not ready." ) ; } try { mListener.onSmsStatusReportReceived ( token , messageRef , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not process sms status report: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSmsReport ( token , messageRef , android.telephony.ims.internal.stub.SmsImplBase.STATUS_REPORT_STATUS_ERROR ) ; } } }

Target:
public final void onSmsStatusReportReceived ( int token , int messageRef , java.lang.String format , byte [ ] pdu ) throws java.lang.RuntimeException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.RuntimeException ( "Feature not ready." ) ; } try { mListener.onSmsStatusReportReceived ( token , messageRef , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not process sms status report: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSmsReport ( token , messageRef , android.telephony.ims.internal.stub.SmsImplBase.STATUS_REPORT_STATUS_ERROR ) ; } } }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.CallFeaturesSetting.EVENT_CLIR_EXECUTED : handleSetCLIRMessage ( ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_CW_EXECUTED : handleSetCWMessage ( ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_CF_EXECUTED : handleSetCFMessage ( msg.arg1 , ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_VOICEMAIL_CHANGED : handleSetVMMessage ( ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_ENHANCED_VP_EXECUTED : if ( com.android.phone.CallFeaturesSetting.DBG ) android.util.Log.d ( com.android.phone.CallFeaturesSetting.LOG_TAG , "setOptionComplete: Received event EVENT_ENHANCED_VP_EXECUTED" ) ; handleSetVPMessage ( ) ; break ; default : } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.CallFeaturesSetting.EVENT_ENHANCED_VP_EXECUTED : handleSetVPMessage ( ) ; break ; default : } }
Source:
private void handleRequestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest focusRequest ) { android.telecom.Log.d ( this , "handleRequestFocus req = %s" , focusRequest ) ; if ( ( ( mCurrentFocus ) == null ) || ( mCurrentFocus.equals ( focusRequest.call.getConnectionServiceWrapper ( ) ) ) ) { updateConnectionServiceFocus ( focusRequest.call.getConnectionServiceWrapper ( ) ) ; updateCurrentFocusCall ( ) ; onRequestFocusDone ( focusRequest ) ; } else { mCurrentFocus.connectionServiceFocusLost ( ) ; mCurrentFocusRequest = focusRequest ; android.os.Message msg = mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT ) ; msg.obj = focusRequest ; mEventHandler.sendMessageDelayed ( msg , com.android.server.telecom.ConnectionServiceFocusManager.RELEASE_FOCUS_TIMEOUT_MS ) ; } }

Target:
private void handleRequestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest focusRequest ) { if ( ( ( mCurrentFocus ) == null ) || ( mCurrentFocus.equals ( focusRequest.call.getConnectionServiceWrapper ( ) ) ) ) { updateConnectionServiceFocus ( focusRequest.call.getConnectionServiceWrapper ( ) ) ; updateCurrentFocusCall ( ) ; onRequestFocusDone ( focusRequest ) ; } else { mCurrentFocus.connectionServiceFocusLost ( ) ; mCurrentFocusRequest = focusRequest ; android.os.Message msg = mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT ) ; msg.obj = focusRequest ; mEventHandler.sendMessageDelayed ( msg , com.android.server.telecom.ConnectionServiceFocusManager.RELEASE_FOCUS_TIMEOUT_MS ) ; } }
Source:
protected void computeFields ( ) { java.util.TimeZone timeZone = getTimeZone ( ) ; int dstOffset = ( timeZone.inDaylightTime ( new java.util.Date ( time ) ) ) ? timeZone.getDSTSavings ( ) : 0 ; int zoneOffset = timeZone.getRawOffset ( ) ; fields [ java.util.Calendar.DST_OFFSET ] = dstOffset ; fields [ java.util.Calendar.ZONE_OFFSET ] = zoneOffset ; fullFieldsCalc ( time , zoneOffset ) ; for ( int i = 0 ; i < ( java.util.Calendar.FIELD_COUNT ) ; i ++ ) { isSet [ i ] = true ; } }

Target:
protected void computeFields ( ) { java.util.TimeZone timeZone = getTimeZone ( ) ; int dstOffset = ( timeZone.inDaylightTime ( new java.util.Date ( time ) ) ) ? timeZone.getDSTSavings ( ) : 0 ; int zoneOffset = timeZone.getRawOffset ( ) ; fields [ java.util.Calendar.DST_OFFSET ] = dstOffset ; fields [ java.util.Calendar.ZONE_OFFSET ] = zoneOffset ; fullFieldsCalc ( zoneOffset ) ; for ( int i = 0 ; i < ( java.util.Calendar.FIELD_COUNT ) ; i ++ ) { isSet [ i ] = true ; } }
Source:
public com.intellij.lang.annotation.Annotation createAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.lang.annotation.HighlightSeverity severity , @ org.jetbrains.annotations.NotNull com.intellij.openapi.util.TextRange range , @ org.jetbrains.annotations.Nullable java.lang.String message ) { @ org.jetbrains.annotations.NonNls java.lang.String tooltip = ( message == null ) ? null : com.intellij.xml.util.XmlStringUtil.wrapInHtml ( com.intellij.xml.util.XmlStringUtil.escapeString ( message ) ) ; com.intellij.lang.annotation.Annotation annotation = new com.intellij.lang.annotation.Annotation ( range.getStartOffset ( ) , range.getEndOffset ( ) , severity , message , tooltip ) ; add ( annotation ) ; return annotation ; }

Target:
public com.intellij.lang.annotation.Annotation createAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.lang.annotation.HighlightSeverity severity , @ org.jetbrains.annotations.NotNull com.intellij.openapi.util.TextRange range , @ org.jetbrains.annotations.Nullable java.lang.String message ) { @ org.jetbrains.annotations.NonNls java.lang.String tooltip = ( message == null ) ? null : com.intellij.xml.util.XmlStringUtil.wrapInHtml ( com.intellij.xml.util.XmlStringUtil.escapeString ( message ) ) ; return createAnnotation ( severity , range , message , tooltip ) ; }
Source:
public static android.renderscript.Font createFromFile ( android.renderscript.RenderScript rs , android.content.res.Resources res , java.lang.String path , float pointSize ) { rs.validate ( ) ; int dpi = res.getDisplayMetrics ( ) . densityDpi ; int fontId = rs.nFontCreateFromFile ( path , pointSize , dpi ) ; if ( fontId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create font from file " + path ) ) ; } android.renderscript.Font rsFont = new android.renderscript.Font ( fontId , rs ) ; return rsFont ; }

Target:
public static android.renderscript.Font createFromFile ( android.renderscript.RenderScript rs , android.content.res.Resources res , java.lang.String path , float pointSize ) { rs.validate ( ) ; int dpi = res.getDisplayMetrics ( ) . densityDpi ; long fontId = rs.nFontCreateFromFile ( path , pointSize , dpi ) ; if ( fontId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create font from file " + path ) ) ; } android.renderscript.Font rsFont = new android.renderscript.Font ( fontId , rs ) ; return rsFont ; }
Source:
public void tearDown ( ) throws java.lang.Exception { libcore.io.IoUtils.deleteContents ( mStatsDir ) ; mServiceContext = null ; mStatsDir = null ; mNetManager = null ; mTime = null ; mSettings = null ; mConnManager = null ; mSession.close ( ) ; mService = null ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { libcore.io.IoUtils.deleteContents ( mStatsDir ) ; mServiceContext = null ; mStatsDir = null ; mNetManager = null ; mTime = null ; mSettings = null ; mConnManager = null ; mSession.close ( ) ; mService = null ; }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( ( document ) != null ) && ( mDriver.isSuppressed ( issue , document ) ) ) { return ; } super . report ( issue , location , message , data ) ; }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( ( document ) != null ) && ( mDriver.isSuppressed ( this , issue , document ) ) ) { return ; } super . report ( issue , location , message , data ) ; }
Source:
public void checkCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodInsnNode call ) { java.lang.String owner = call.owner ; if ( ( owner.equals ( "android/util/FloatMath" ) ) && ( ( context.getProject ( ) . getMinSdk ( ) ) >= 8 ) ) { java.lang.String message = java.lang.String.format ( ( "Use `java.lang.Math#%1$s` instead of `android.util.FloatMath#%1$s()` " + "since it is faster as of API 8" ) , call.name ) ; context.report ( com.android.tools.lint.checks.MathDetector.ISSUE , method , call , context.getLocation ( call ) , message , null ) ; } }

Target:
public void checkCall ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.ClassContext context , @ com.android.annotations.NonNull org.objectweb.asm.tree.ClassNode classNode , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.NonNull org.objectweb.asm.tree.MethodInsnNode call ) { java.lang.String owner = call.owner ; if ( ( owner.equals ( "android/util/FloatMath" ) ) && ( ( context.getProject ( ) . getMinSdk ( ) ) >= 8 ) ) { java.lang.String message = java.lang.String.format ( ( "Use `java.lang.Math#%1$s` instead of `android.util.FloatMath#%1$s()` " + "since it is faster as of API 8" ) , call.name ) ; context.report ( com.android.tools.lint.checks.MathDetector.ISSUE , method , call , context.getLocation ( call ) , message ) ; } }
Source:
public boolean onPrepareOptionsMenu ( android.view.Menu menu ) { menu.clear ( ) ; if ( ( ( null != ( mCursor ) ) && ( ( mCursor.getCount ( ) ) > 0 ) ) && ( ( mState ) == ( com.android.mms.ui.ManageSimMessages.SHOW_LIST ) ) ) { menu.add ( 0 , com.android.mms.ui.ManageSimMessages.OPTION_MENU_DELETE_ALL , 0 , R.string.menu_delete_messages ) . setIcon ( android.R.drawable.ic_menu_delete ) ; } return true ; }

Target:
public boolean onPrepareOptionsMenu ( android.view.Menu menu ) { menu.clear ( ) ; if ( ( ( ( mState ) == ( com.android.mms.ui.ManageSimMessages.SHOW_LIST ) ) && ( null != ( mCursor ) ) ) && ( ( mCursor.getCount ( ) ) > 0 ) ) { menu.add ( 0 , com.android.mms.ui.ManageSimMessages.OPTION_MENU_DELETE_ALL , 0 , R.string.menu_delete_messages ) . setIcon ( android.R.drawable.ic_menu_delete ) ; } return true ; }
Source:
private void setConfirmClose ( final org.eclipse.swt.widgets.Shell shell ) { if ( true ) return ; shell.addListener ( SWT.Close , new org.eclipse.swt.widgets.Listener ( ) { public void handleEvent ( org.eclipse.swt.widgets.Event event ) { int style = ( ( org.eclipse.swt.SWT.APPLICATION_MODAL ) | ( org.eclipse.swt.SWT.YES ) ) | ( org.eclipse.swt.SWT.NO ) ; org.eclipse.swt.widgets.MessageBox msgBox = new org.eclipse.swt.widgets.MessageBox ( shell , style ) ; msgBox.setText ( "Confirm..." ) ; msgBox.setMessage ( "Close DDM?" ) ; event.doit = ( msgBox.open ( ) ) == ( org.eclipse.swt.SWT.YES ) ; } } ) ; }

Target:
private void setConfirmClose ( final org.eclipse.swt.widgets.Shell shell ) { }
Source:
void launchDemo ( int id ) { com.android.rs.image2.IPTestList [ ] t = IPTestList.TestName.values ( ) ; int [ ] testList = new int [ 1 ] ; testList [ 0 ] = id ; android.content.Intent intent = makeBasicLaunchIntent ( ) ; intent.putExtra ( "tests" , testList ) ; intent.putExtra ( "demo" , true ) ; startActivityForResult ( intent , 0 ) ; }

Target:
void launchDemo ( int id ) { int [ ] testList = new int [ 1 ] ; testList [ 0 ] = id ; android.content.Intent intent = makeBasicLaunchIntent ( ) ; intent.putExtra ( "tests" , testList ) ; intent.putExtra ( "demo" , true ) ; startActivityForResult ( intent , 0 ) ; }
Source:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT ) ; removeMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT_TIMEOUT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; broadcastAudioState ( BluetoothA2dp.STATE_NOT_PLAYING , BluetoothA2dp.STATE_PLAYING ) ; }

Target:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; broadcastAudioState ( BluetoothA2dp.STATE_NOT_PLAYING , BluetoothA2dp.STATE_PLAYING ) ; }
Source:
public int openConvertSession ( java.lang.String mimeType ) { if ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimeType should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _openConvertSession ( mUniqueId , mimeType ) ; }

Target:
public int openConvertSession ( java.lang.String mimeType ) { if ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimeType should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _openConvertSession ( mUniqueId , mimeType ) ; }
Source:
public int write ( java.nio.ByteBuffer src ) throws java.io.IOException { checkNotNull ( src ) ; checkOpenConnected ( ) ; if ( ! ( src.hasRemaining ( ) ) ) { return 0 ; } int writeCount = writeImpl ( src ) ; if ( writeCount > 0 ) { src.position ( ( ( src.position ( ) ) + writeCount ) ) ; } return writeCount ; }

Target:
public int write ( java.nio.ByteBuffer src ) throws java.io.IOException { checkNotNull ( src ) ; checkOpenConnected ( ) ; if ( ! ( src.hasRemaining ( ) ) ) { return 0 ; } return writeImpl ( src ) ; }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( com.google.caliper.SimpleBenchmark.class . isAssignableFrom ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( com.google.caliper.SimpleBenchmark.class . isAssignableFrom ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass , args ) ; } else { return null ; } }
Source:
public void testSendConnectionEventNull ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mConnectionServiceFixtureA.sendConnectionEvent ( ids.mConnectionId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; org.mockito.Mockito.verify ( mInCallServiceFixtureX.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . onConnectionEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; }

Target:
public void testSendConnectionEventNull ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mConnectionServiceFixtureA.sendConnectionEvent ( ids.mConnectionId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; org.mockito.Mockito.verify ( mInCallServiceFixtureX.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . onConnectionEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; }
Source:
public java.util.ArrayList < android.telephony.SmsMessage > getAllMessagesFromIcc ( ) { java.util.List < com.android.internal.telephony.SmsRawData > records = null ; try { com.android.internal.telephony.ISms iccISms = android.telephony.SmsManager.getISmsService ( ) ; if ( iccISms != null ) { records = iccISms.getAllMessagesFromIccEfForSubscriber ( getSubscriptionId ( ) , android.app.ActivityThread.currentPackageName ( ) ) ; } } catch ( android.os.RemoteException ex ) { } return createMessageListFromRawRecords ( records ) ; }

Target:
public java.util.ArrayList < android.telephony.SmsMessage > getAllMessagesFromIcc ( ) { java.util.List < com.android.internal.telephony.SmsRawData > records = null ; try { com.android.internal.telephony.ISms iccISms = android.telephony.SmsManager.getISmsService ( ) ; if ( iccISms != null ) { records = iccISms.getAllMessagesFromIccEfForSubscriber ( getSubscriptionId ( ) , android.app.ActivityThread.currentPackageName ( ) ) ; } } catch ( android.os.RemoteException ex ) { } return android.telephony.SmsManager.createMessageListFromRawRecords ( records ) ; }
Source:
public void onFrameAvailable ( android.graphics.SurfaceTexture surface ) { if ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.DBG ) { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , ( "onFrameAvailable " + surface ) ) ; } android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.GlWindow w = mTopWindow ; if ( w != null ) { w.markTextureUpdated ( ) ; requestUpdate ( ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "top window gone" ) ; } }

Target:
public void onFrameAvailable ( android.graphics.SurfaceTexture surface ) { if ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.DBG ) { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , ( "onFrameAvailable " + surface ) ) ; } android.media.cts.EncodeVirtualDisplayWithCompositionTest.GlCompositor.GlWindow w = mTopWindow ; if ( w != null ) { w.markTextureUpdated ( ) ; requestUpdate ( w ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "top window gone" ) ; } }
Source:
private static void install ( java.security.cert.X509Certificate x , java.lang.String alias ) { try { java.io.File file = org.conscrypt.TrustedCertificateStoreTest.file ( alias ) ; file.getParentFile ( ) . mkdirs ( ) ; java.io.OutputStream out = new java.io.FileOutputStream ( file ) ; out.write ( x.getEncoded ( ) ) ; out.close ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private void install ( java.security.cert.X509Certificate x , java.lang.String alias ) { try { java.io.File file = file ( alias ) ; file.getParentFile ( ) . mkdirs ( ) ; java.io.OutputStream out = new java.io.FileOutputStream ( file ) ; out.write ( x.getEncoded ( ) ) ; out.close ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void test_getReceiveBufferSize ( ) throws java.lang.Exception { java.net.ServerSocket theSocket = new java.net.ServerSocket ( ) ; assertFalse ( "get Buffer size returns 0:" , ( 0 == ( theSocket.getReceiveBufferSize ( ) ) ) ) ; assertFalse ( "get Buffer size returns a negative value:" , ( 0 > ( theSocket.getReceiveBufferSize ( ) ) ) ) ; }

Target:
public void test_getReceiveBufferSize ( ) throws java.lang.Exception { try ( java.net.ServerSocket theSocket = new java.net.ServerSocket ( ) ) { assertFalse ( "get Buffer size returns 0:" , ( 0 == ( theSocket.getReceiveBufferSize ( ) ) ) ) ; assertFalse ( "get Buffer size returns a negative value:" , ( 0 > ( theSocket.getReceiveBufferSize ( ) ) ) ) ; } }
Source:
public void set ( com.android.ide.common.resources.configuration.FolderConfiguration config , boolean nonFakeValuesOnly ) { if ( config != null ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.common.resources.configuration.ResourceQualifier q = config.mQualifiers [ i ] ; if ( ( ( nonFakeValuesOnly == false ) || ( q == null ) ) || ( ( q.hasFakeValue ( ) ) == false ) ) { mQualifiers [ i ] = q ; } } } }

Target:
public void set ( com.android.ide.common.resources.configuration.FolderConfiguration config , boolean nonFakeValuesOnly ) { if ( config != null ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.common.resources.configuration.ResourceQualifier q = config.mQualifiers [ i ] ; if ( ( ( ! nonFakeValuesOnly ) || ( q == null ) ) || ( ! ( q.hasFakeValue ( ) ) ) ) { mQualifiers [ i ] = q ; } } } }
Source:
public void setThreadUpdateEnabled ( boolean enabled ) { mThreadUpdateEnabled = enabled ; if ( enabled == false ) { mClientData.clearThreads ( ) ; } try { com.android.ddmlib.HandleThread.sendTHEN ( this , enabled ) ; } catch ( java.io.IOException ioe ) { ioe.printStackTrace ( ) ; } update ( com.android.ddmlib.Client.CHANGE_THREAD_MODE ) ; }

Target:
public void setThreadUpdateEnabled ( boolean enabled ) { mThreadUpdateEnabled = enabled ; if ( ! enabled ) { mClientData.clearThreads ( ) ; } try { com.android.ddmlib.HandleThread.sendTHEN ( this , enabled ) ; } catch ( java.io.IOException ioe ) { ioe.printStackTrace ( ) ; } update ( com.android.ddmlib.Client.CHANGE_THREAD_MODE ) ; }
Source:
public final java.nio.ByteBuffer putLong ( long x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putLong ( ix ( nextPutIndex ( SizeOf.LONG ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putLong ( long x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putLong ( ix ( nextPutIndex ( SizeOf.LONG ) ) , x ) ; return this ; }
Source:
private void add ( com.android.sdklib.BuildToolInfo.PathId id , java.lang.String ... leaves ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 256 ) ; for ( java.lang.String leaf : leaves ) { if ( leaf != null ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( java.io.File.separatorChar ) ; } sb.append ( leaf ) ; } } add ( id , new java.io.File ( mPath , sb.toString ( ) ) ) ; }

Target:
private void add ( com.android.sdklib.BuildToolInfo.PathId id , java.lang.String leaf ) { add ( id , new java.io.File ( mPath , leaf ) ) ; }
Source:
public void deleteBugReportFiles ( ) throws java.lang.Exception { android.util.Log.v ( TAG , "Deleting any existing bug report files" ) ; android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = android.support.test.uiautomator.UiDevice.getInstance ( instrumentation ) ; java.lang.String lsResult = device.executeShellCommand ( ( "ls " + ( BUG_REPORT_DIR ) ) ) ; java.lang.String [ ] files = lsResult.split ( "\\s+" ) ; for ( java.lang.String file : files ) { if ( file.matches ( "bugreport[-0-9]+\\.(png|zip)" ) ) { device.executeShellCommand ( java.lang.String.format ( "rm %s/%s" , BUG_REPORT_DIR , file ) ) ; } } }

Target:
public void deleteBugReportFiles ( ) throws java.lang.Exception { android.util.Log.i ( TAG , "Deleting any existing bug report files" ) ; android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = android.support.test.uiautomator.UiDevice.getInstance ( instrumentation ) ; java.lang.String lsResult = device.executeShellCommand ( ( "ls " + ( BUG_REPORT_DIR ) ) ) ; java.lang.String [ ] files = lsResult.split ( "\\s+" ) ; for ( java.lang.String file : files ) { if ( file.matches ( "bugreport[-0-9]+\\.(png|zip)" ) ) { device.executeShellCommand ( java.lang.String.format ( "rm %s/%s" , BUG_REPORT_DIR , file ) ) ; } } }
Source:
private void showCurrentSlide ( ) { mPresenter.setLocation ( mPosition ) ; mPresenter.present ( ) ; updateTitle ( ) ; if ( mSlideshowModel.get ( mPosition ) . hasImage ( ) ) { setReplaceButtonText ( R.string.replace_image ) ; } else { setReplaceButtonText ( R.string.add_picture ) ; } }

Target:
private void showCurrentSlide ( ) { mPresenter.setLocation ( mPosition ) ; mPresenter.present ( null ) ; updateTitle ( ) ; if ( mSlideshowModel.get ( mPosition ) . hasImage ( ) ) { setReplaceButtonText ( R.string.replace_image ) ; } else { setReplaceButtonText ( R.string.add_picture ) ; } }
Source:
private void runInBatchMode ( final java.lang.String javaPkgName , android.annotation.cts.Profile profile ) throws com.android.cts.DeviceDisconnectedException { mTimeOutTimer = new com.android.cts.HostTimer ( new com.android.cts.TestPackage.TimeOutTask ( this ) , HostConfig.Ints.batchStartTimeoutMs.value ( ) ) ; mTimeOutTimer.start ( ) ; mProgressObserver = new com.android.cts.ProgressObserver ( ) ; if ( ( javaPkgName != null ) && ( ( javaPkgName.length ( ) ) > 0 ) ) { runInBatchModeImpl ( javaPkgName , profile ) ; } else { for ( java.lang.String pkgName : getPackageNames ( ) ) { runInBatchModeImpl ( pkgName , profile ) ; } } }

Target:
private void runInBatchMode ( final java.lang.String javaPkgName ) throws com.android.cts.DeviceDisconnectedException { mTimeOutTimer = new com.android.cts.HostTimer ( new com.android.cts.TestPackage.TimeOutTask ( this ) , HostConfig.Ints.batchStartTimeoutMs.value ( ) ) ; mTimeOutTimer.start ( ) ; mProgressObserver = new com.android.cts.ProgressObserver ( ) ; if ( ( javaPkgName != null ) && ( ( javaPkgName.length ( ) ) > 0 ) ) { runInBatchModeImpl ( javaPkgName ) ; } else { for ( java.lang.String pkgName : getPackageNames ( ) ) { runInBatchModeImpl ( pkgName ) ; } } }
Source:
static boolean nativeSetRegion ( int native_dst , int native_src ) { android.graphics.Region_Delegate dstRegion = android.graphics.Region_Delegate.sManager.getDelegate ( native_dst ) ; if ( dstRegion == null ) { return true ; } android.graphics.Region_Delegate srcRegion = android.graphics.Region_Delegate.sManager.getDelegate ( native_src ) ; if ( srcRegion == null ) { return true ; } dstRegion.mArea.reset ( ) ; dstRegion.mArea.add ( srcRegion.mArea ) ; return true ; }

Target:
static boolean nativeSetRegion ( long native_dst , long native_src ) { android.graphics.Region_Delegate dstRegion = android.graphics.Region_Delegate.sManager.getDelegate ( native_dst ) ; if ( dstRegion == null ) { return true ; } android.graphics.Region_Delegate srcRegion = android.graphics.Region_Delegate.sManager.getDelegate ( native_src ) ; if ( srcRegion == null ) { return true ; } dstRegion.mArea.reset ( ) ; dstRegion.mArea.add ( srcRegion.mArea ) ; return true ; }
Source:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult setupDataCallResult ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.dataconnection.DataCallResponse ret = com.android.internal.telephony.RIL.convertDataCallResult ( setupDataCallResult ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult setupDataCallResult ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , setupDataCallResult ) ; } mRil.processResponseDone ( rr , responseInfo , setupDataCallResult ) ; } }
Source:
static void addTestToCategory ( java.util.Map < java.lang.String , java.util.List < com.android.cts.verifier.TestListAdapter.TestListItem > > testsByCategory , java.lang.String testCategory , java.lang.String title , java.lang.String className , android.content.Intent intent ) { java.util.List < com.android.cts.verifier.TestListAdapter.TestListItem > tests ; if ( testsByCategory.containsKey ( testCategory ) ) { tests = testsByCategory.get ( testCategory ) ; } else { tests = new java.util.ArrayList < com.android.cts.verifier.TestListAdapter.TestListItem > ( ) ; } testsByCategory.put ( testCategory , tests ) ; tests.add ( com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( title , className , intent ) ) ; }

Target:
static void addTestToCategory ( java.util.Map < java.lang.String , java.util.List < com.android.cts.verifier.TestListAdapter.TestListItem > > testsByCategory , java.lang.String testCategory , com.android.cts.verifier.TestListAdapter.TestListItem item ) { java.util.List < com.android.cts.verifier.TestListAdapter.TestListItem > tests ; if ( testsByCategory.containsKey ( testCategory ) ) { tests = testsByCategory.get ( testCategory ) ; } else { tests = new java.util.ArrayList < com.android.cts.verifier.TestListAdapter.TestListItem > ( ) ; } testsByCategory.put ( testCategory , tests ) ; tests.add ( item ) ; }
Source:
public void onError ( int errorCode , java.lang.String message ) { java.lang.String toastMessage = ( ( "Error: " + errorCode ) + ": " ) + message ; mActivity.runOnUiThread ( ( ) -> android.widget.Toast.makeText ( com.android.phone.testapps.embmsfrontend.mActivity , toastMessage , Toast.LENGTH_SHORT ) . show ( ) ) ; }

Target:
public void error ( int errorCode , java.lang.String message ) { java.lang.String toastMessage = ( ( "Error: " + errorCode ) + ": " ) + message ; mActivity.runOnUiThread ( ( ) -> android.widget.Toast.makeText ( com.android.phone.testapps.embmsfrontend.mActivity , toastMessage , Toast.LENGTH_SHORT ) . show ( ) ) ; }
Source:
static com.android.dialer.calldetails.CallDetailsEntries toCallDetailsEntries ( android.content.Context context , android.database.Cursor cursor ) { com.android.dialer.common.Assert.isNotNull ( cursor ) ; com.android.dialer.common.Assert.checkArgument ( cursor.moveToFirst ( ) ) ; com.android.dialer.calldetails.CallDetailsEntries.Builder entries = com.android.dialer.calldetails.CallDetailsEntries.newBuilder ( ) ; do { entries.addEntries ( com.android.dialer.calldetails.CallDetailsCursorLoader.toCallDetailsEntry ( context , cursor ) ) ; } while ( cursor.moveToNext ( ) ) ; return entries.build ( ) ; }

Target:
static com.android.dialer.calldetails.CallDetailsEntries toCallDetailsEntries ( android.database.Cursor cursor ) { com.android.dialer.common.Assert.isNotNull ( cursor ) ; com.android.dialer.common.Assert.checkArgument ( cursor.moveToFirst ( ) ) ; com.android.dialer.calldetails.CallDetailsEntries.Builder entries = com.android.dialer.calldetails.CallDetailsEntries.newBuilder ( ) ; do { entries.addEntries ( com.android.dialer.calldetails.CallDetailsCursorLoader.toCallDetailsEntry ( cursor ) ) ; } while ( cursor.moveToNext ( ) ) ; return entries.build ( ) ; }
Source:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.rop.type.Type type = ( ( com.android.jack.dx.rop.cst.CstType ) ( cst ) ) . getClassType ( ) ; com.android.jack.dx.dex.file.IndexedItem result = typeIds.get ( type ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + cst ) ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { assert cst != null ; throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.IndexedItem result = typeIds.get ( cst ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( ( "not found: " + cst ) ) ; } return result ; }
Source:
protected void visitChildren ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.needLoading ( ) ) { loader.ensureBody ( this ) ; loader.ensureAnnotations ( this ) ; } if ( ( jThis ) != null ) { visitor.accept ( jThis ) ; } visitor.accept ( params ) ; if ( ( body ) != null ) { visitor.accept ( body ) ; } annotations.traverse ( visitor ) ; }

Target:
protected void visitChildren ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.needLoading ( ) ) { loader.ensureBody ( this ) ; loader.ensureAnnotations ( this ) ; } if ( ( jThis ) != null ) { visitor.accept ( jThis ) ; } visitor.accept ( params ) ; if ( ( body ) != null ) { visitor.accept ( body ) ; } visitor.accept ( annotations ) ; }
Source:
public void writeZeroes ( int count ) { if ( count < 0 ) { throw new java.lang.IllegalArgumentException ( "count < 0" ) ; } int end = ( cursor ) + count ; if ( stretchy ) { ensureCapacity ( end ) ; } else if ( end > ( data.length ) ) { com.android.dx.util.ByteArrayAnnotatedOutput.throwBounds ( ) ; return ; } java.util.Arrays.fill ( data , cursor , end , ( ( byte ) ( 0 ) ) ) ; cursor = end ; }

Target:
public void writeZeroes ( int count ) { if ( count < 0 ) { throw new java.lang.IllegalArgumentException ( "count < 0" ) ; } int end = ( cursor ) + count ; if ( stretchy ) { ensureCapacity ( end ) ; } else if ( end > ( data.length ) ) { com.android.dx.util.ByteArrayAnnotatedOutput.throwBounds ( ) ; return ; } cursor = end ; }
Source:
public java.lang.Object clone ( ) { try { java.text.DigitList other = ( ( java.text.DigitList ) ( super . clone ( ) ) ) ; char [ ] newDigits = new char [ digits.length ] ; java.lang.System.arraycopy ( digits , 0 , newDigits , 0 , digits.length ) ; other.digits = newDigits ; other.tempBuffer = null ; return other ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.text.DigitList other = ( ( java.text.DigitList ) ( super . clone ( ) ) ) ; char [ ] newDigits = new char [ digits.length ] ; java.lang.System.arraycopy ( digits , 0 , newDigits , 0 , digits.length ) ; other.digits = newDigits ; other.tempBuffer = null ; return other ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( ( bases ) == null ? 0 : bases.hashCode ( ) ) ; for ( org.bouncycastle.pqc.crypto.ntru.NTRUSigningPrivateKeyParameters.Basis basis : bases ) { result += basis.hashCode ( ) ; } return result ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = prime * result ; if ( ( bases ) == null ) return result ; result += bases.hashCode ( ) ; for ( org.bouncycastle.pqc.crypto.ntru.NTRUSigningPrivateKeyParameters.Basis basis : bases ) { result += basis.hashCode ( ) ; } return result ; }
Source:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { java.lang.String lookupKey = cursor.getString ( Projections.LOOKUP_KEY ) ; android.net.Uri baseUri ; if ( com.android.dialer.common.cp2.DirectoryCompat.isOnlyEnterpriseDirectoryId ( cursor.getDirectoryId ( ) ) ) { baseUri = android.net.Uri.withAppendedPath ( Contacts.CONTENT_LOOKUP_URI , lookupKey ) ; } else { long contactId = cursor.getLong ( Projections.ID ) ; baseUri = android.provider.ContactsContract.Contacts.getLookupUri ( contactId , lookupKey ) ; } return baseUri.buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }

Target:
private static android.net.Uri getContactUri ( com.android.dialer.searchfragment.common.SearchCursor cursor ) { java.lang.String lookupKey = cursor.getString ( Projections.LOOKUP_KEY ) ; return android.net.Uri.withAppendedPath ( Contacts.CONTENT_LOOKUP_URI , lookupKey ) . buildUpon ( ) . appendQueryParameter ( ContactsContract.DIRECTORY_PARAM_KEY , java.lang.String.valueOf ( cursor.getDirectoryId ( ) ) ) . build ( ) ; }
Source:
public java.util.List < java.lang.String > getAbis ( ) { java.util.List < java.lang.String > abis = com.google.common.collect.Lists.newArrayListWithExpectedSize ( 2 ) ; java.lang.String abi = iDevice.getProperty ( IDevice.PROP_DEVICE_CPU_ABI ) ; if ( abi != null ) { abis.add ( abi ) ; } abi = iDevice.getProperty ( IDevice.PROP_DEVICE_CPU_ABI2 ) ; if ( abi != null ) { abis.add ( abi ) ; } return abis ; }

Target:
public java.util.List < java.lang.String > getAbis ( ) { return iDevice.getAbis ( ) ; }
Source:
private void addActiveLog ( int reason , java.lang.String packageName , boolean enable ) { synchronized ( mActiveLogs ) { if ( ( mActiveLogs.size ( ) ) > ( com.android.server.BluetoothManagerService.ACTIVE_LOG_MAX_SIZE ) ) { mActiveLogs.remove ( ) ; } mActiveLogs.add ( new com.android.server.BluetoothManagerService.ActiveLog ( reason , packageName , enable , java.lang.System.currentTimeMillis ( ) ) ) ; } int state = ( enable ) ? android.util.StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED__STATE__ENABLED : android.util.StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED__STATE__DISABLED ; android.util.StatsLog.write_non_chained ( StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED , android.os.Binder.getCallingUid ( ) , null , state , reason , packageName ) ; }

Target:
private void addActiveLog ( int reason , java.lang.String packageName , boolean enable ) { synchronized ( mActiveLogs ) { if ( ( mActiveLogs.size ( ) ) > ( com.android.server.BluetoothManagerService.ACTIVE_LOG_MAX_SIZE ) ) { mActiveLogs.remove ( ) ; } mActiveLogs.add ( new com.android.server.BluetoothManagerService.ActiveLog ( reason , packageName , enable , java.lang.System.currentTimeMillis ( ) ) ) ; } }
Source:
private void executeAndValidateConnectSequence ( final int newFrameworkNetworkId , final boolean haveExistingNetwork , boolean shouldDisconnect ) throws java.lang.Exception { setupMocksForConnectSequence ( haveExistingNetwork ) ; android.net.wifi.WifiConfiguration config = new android.net.wifi.WifiConfiguration ( ) ; config.networkId = newFrameworkNetworkId ; assertTrue ( mDut.connectToNetwork ( config , shouldDisconnect ) ) ; validateConnectSequence ( haveExistingNetwork , shouldDisconnect , 1 ) ; }

Target:
private void executeAndValidateConnectSequence ( final int newFrameworkNetworkId , final boolean haveExistingNetwork ) throws java.lang.Exception { setupMocksForConnectSequence ( haveExistingNetwork ) ; android.net.wifi.WifiConfiguration config = new android.net.wifi.WifiConfiguration ( ) ; config.networkId = newFrameworkNetworkId ; assertTrue ( mDut.connectToNetwork ( config ) ) ; validateConnectSequence ( haveExistingNetwork , 1 ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor getRootDescriptor ( ) { if ( ( mRootDescriptor ) == null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = mEditor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.IDescriptorProvider descriptorProvider = data.getDescriptorProvider ( getRootDescriptorId ( ) ) ; if ( descriptorProvider != null ) { mRootDescriptor = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "" , descriptorProvider.getRootElementDescriptors ( ) ) ; } } } return mRootDescriptor ; }

Target:
protected com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor getRootDescriptor ( ) { if ( ( mRootDescriptor ) == null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = mEditor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.IDescriptorProvider descriptorProvider = data.getDescriptorProvider ( getRootDescriptorId ( ) ) ; if ( descriptorProvider != null ) { mRootDescriptor = new com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor ( "" , descriptorProvider.getRootElementDescriptors ( ) ) ; } } } return mRootDescriptor ; }