auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void selectSingle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { mAltSelection = null ; if ( ( mSelections.size ( ) ) > 0 ) { if ( ( ( mSelections.size ( ) ) == 1 ) && ( ( mSelections.getFirst ( ) . getViewInfo ( ) ) == vi ) ) { return ; } mSelections.clear ( ) ; } if ( vi != null ) { mSelections.add ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection ( vi , mRulesEngine , mNodeFactory ) ) ; } fireSelectionChanged ( ) ; redraw ( ) ; }

Target:
private void selectSingle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { mAltSelection = null ; if ( ! ( mSelections.isEmpty ( ) ) ) { if ( ( ( mSelections.size ( ) ) == 1 ) && ( ( mSelections.getFirst ( ) . getViewInfo ( ) ) == vi ) ) { return ; } mSelections.clear ( ) ; } if ( vi != null ) { mSelections.add ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection ( vi , mRulesEngine , mNodeFactory ) ) ; } fireSelectionChanged ( ) ; redraw ( ) ; }
Source:
protected void createFieldEditors ( ) { org.eclipse.jface.preference.FontFieldEditor ffe = new org.eclipse.jface.preference.FontFieldEditor ( com.android.ddmuilib.logcat.LogCatPanel.LOGCAT_VIEW_FONT_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_Display_Font , getFieldEditorParent ( ) ) ; addField ( ffe ) ; mMaxMessages = new org.eclipse.jface.preference.IntegerFieldEditor ( com.android.ddmuilib.logcat.LogCatMessageList.MAX_MESSAGES_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_MaxMessages , getFieldEditorParent ( ) ) ; addField ( mMaxMessages ) ; if ( com.android.ide.eclipse.base.InstallDetails.isAdtInstalled ( ) ) { createAdtSpecificFieldEditors ( ) ; } }

Target:
protected void createFieldEditors ( ) { org.eclipse.jface.preference.FontFieldEditor ffe = new org.eclipse.jface.preference.FontFieldEditor ( com.android.ddmuilib.logcat.LogCatPanel.LOGCAT_VIEW_FONT_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_Display_Font , getFieldEditorParent ( ) ) ; addField ( ffe ) ; mMaxMessages = new org.eclipse.jface.preference.IntegerFieldEditor ( com.android.ddmuilib.logcat.LogCatMessageList.MAX_MESSAGES_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_MaxMessages , getFieldEditorParent ( ) ) ; addField ( mMaxMessages ) ; createHorizontalSeparator ( ) ; if ( com.android.ide.eclipse.base.InstallDetails.isAdtInstalled ( ) ) { createAdtSpecificFieldEditors ( ) ; } }
Source:
public void addImsFeatureStatusCallback ( com.android.ims.internal.IImsFeatureStatusCallback c ) { if ( c == null ) { return ; } try { c.notifyImsFeatureStatus ( mState ) ; synchronized ( mStatusCallbacks ) { mStatusCallbacks.add ( c ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.ims.feature.ImsFeature.LOG_TAG , ( "Couldn't notify feature state: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void addImsFeatureStatusCallback ( @ android.annotation.NonNull com.android.ims.internal.IImsFeatureStatusCallback c ) { try { c.notifyImsFeatureStatus ( getFeatureState ( ) ) ; synchronized ( mLock ) { mStatusCallbacks.add ( c ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.ims.feature.ImsFeature.LOG_TAG , ( "Couldn't notify feature state: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public java.lang.String getDeviceIdForPhone ( int phoneId , java.lang.String callingPackage ) { if ( ! ( checkReadPhoneState ( callingPackage , "getDeviceId" ) ) ) { return null ; } if ( ! ( android.telephony.SubscriptionManager.isValidPhoneId ( phoneId ) ) ) { phoneId = 0 ; } final com.android.internal.telephony.Phone phone = mPhone [ phoneId ] ; if ( phone != null ) { return phone.getDeviceId ( ) ; } else { loge ( ( ( "getDeviceIdForPhone phone " + phoneId ) + " is null" ) ) ; return null ; } }

Target:
public java.lang.String getDeviceIdForPhone ( int phoneId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getDeviceId" ) ) ) { return null ; } if ( ! ( android.telephony.SubscriptionManager.isValidPhoneId ( phoneId ) ) ) { phoneId = 0 ; } final com.android.internal.telephony.Phone phone = mPhone [ phoneId ] ; if ( phone != null ) { return phone.getDeviceId ( ) ; } else { loge ( ( ( "getDeviceIdForPhone phone " + phoneId ) + " is null" ) ) ; return null ; } }
Source:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_YESTERDAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock , realtimeRowProcessor ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }

Target:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_YESTERDAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock , realtimeRowProcessor , popCounts ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }
Source:
public void close ( ) { mClosed = true ; mAddV1SignatureRequest = null ; mInputJarManifestEntryDataRequest = null ; mOutputJarEntryDigestRequests.clear ( ) ; mOutputJarEntryDigests.clear ( ) ; mEmittedSignatureJarEntryData.clear ( ) ; mOutputSignatureJarEntryDataRequests.clear ( ) ; mAddV2SignatureRequest = null ; }

Target:
public void close ( ) { mClosed = true ; mAddV1SignatureRequest = null ; mInputJarManifestEntryDataRequest = null ; mOutputAndroidManifestEntryDataRequest = null ; mDebuggable = null ; mOutputJarEntryDigestRequests.clear ( ) ; mOutputJarEntryDigests.clear ( ) ; mEmittedSignatureJarEntryData.clear ( ) ; mOutputSignatureJarEntryDataRequests.clear ( ) ; mAddV2SignatureRequest = null ; }
Source:
public void startDtmf ( char c ) { logi ( ( "startDtmf :: code=" + c ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) != null ) { mSession.startDtmf ( c ) ; } } }

Target:
public void removeParticipants ( java.lang.String [ ] participants ) throws com.android.ims.ImsException { logi ( ( "removeParticipants :: session=" + ( mSession ) ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "removeParticipants :: " ) ; throw new com.android.ims.ImsException ( "No call session" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED ) ; } mSession.removeParticipants ( participants ) ; } }
Source:
public java.util.List < java.lang.String > getBuildConfigLines ( ) { java.util.List < java.lang.String > fullList = com.google.common.collect.Lists.newArrayList ( ) ; java.util.List < java.lang.String > list = mDefaultConfig.getBuildConfigLines ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( "// lines from default config." ) ; fullList.addAll ( list ) ; } list = mBuildType.getBuildConfigLines ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from build type: " + ( mBuildType.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } for ( com.android.builder.ProductFlavor flavor : mFlavorConfigs ) { list = flavor.getBuildConfigLines ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from product flavor: " + ( flavor.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } } return fullList ; }

Target:
public java.util.List < java.lang.String > getBuildConfigLines ( ) { java.util.List < java.lang.String > fullList = com.google.common.collect.Lists.newArrayList ( ) ; java.util.List < java.lang.String > list = mDefaultConfig.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( "// lines from default config." ) ; fullList.addAll ( list ) ; } list = mBuildType.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from build type: " + ( mBuildType.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } for ( com.android.builder.ProductFlavor flavor : mFlavorConfigs ) { list = flavor.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from product flavor: " + ( flavor.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } } return fullList ; }
Source:
private boolean isDirtyInternal ( com.google.common.collect.ImmutableSet < com.android.dialer.DialerPhoneNumber > phoneNumbers ) { long lastModified = sharedPreferences.getLong ( com.android.dialer.phonelookup.cp2.Cp2PhoneLookup.PREF_LAST_TIMESTAMP_PROCESSED , 0L ) ; return ( contactsUpdated ( queryPhoneTableForContactIds ( phoneNumbers ) , lastModified ) ) || ( contactsDeleted ( lastModified ) ) ; }

Target:
private boolean isDirtyInternal ( com.google.common.collect.ImmutableSet < com.android.dialer.DialerPhoneNumber > phoneNumbers ) { long lastModified = sharedPreferences.getLong ( com.android.dialer.phonelookup.cp2.Cp2PhoneLookup.PREF_LAST_TIMESTAMP_PROCESSED , 0L ) ; if ( anyContactsDeletedSince ( lastModified ) ) { return true ; } if ( noContactsModifiedSince ( lastModified ) ) { return false ; } if ( contactsUpdated ( queryPhoneTableForContactIds ( phoneNumbers ) , lastModified ) ) { return true ; } if ( contactsUpdated ( queryPhoneLookupHistoryForContactIds ( ) , lastModified ) ) { return true ; } return false ; }
Source:
public void accept ( java.lang.Integer t ) { if ( t == 3 ) { list.add ( t ) ; } }

Target:
public void test_forEach_CME_onLastElement ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Integer > list = new java.util.ArrayList < > ( ) ; list.add ( 1 ) ; list.add ( 2 ) ; list.add ( 3 ) ; try { list.forEach ( ( t ) -> { if ( t == 3 ) list.add ( t ) ; } ) ; fail ( ) ; } catch ( java.util.ConcurrentModificationException expected ) { } }
Source:
private static void consumePattern ( com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState state , com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult result ) { com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumeSubpattern ( state , result.positive ) ; if ( ( state.peek ( ) ) == ';' ) { state.next ( ) ; result.negative = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.SubpatternParseResult ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumeSubpattern ( state , result.negative ) ; } if ( ( state.peek ( ) ) != ( - 1 ) ) { throw state.toParseException ( "pattern" ) ; } }

Target:
private static void consumePattern ( com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.ParserState state , com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.PatternParseResult result ) { com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumeSubpattern ( state , result.positive ) ; if ( ( state.peek ( ) ) == ';' ) { state.next ( ) ; result.negative = new com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.SubpatternParseResult ( ) ; com.ibm.icu.impl.number.PatternString.LdmlDecimalPatternParser.consumeSubpattern ( state , result.negative ) ; } if ( ( state.peek ( ) ) != ( - 1 ) ) { throw state.toParseException ( "Found unquoted special character" ) ; } }
Source:
protected java.lang.String getLogRecString ( android.os.Message msg ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( com.android.server.wifi.nan.WifiNanStateManager.messageToString ( msg ) ) ; if ( ( ( msg.what ) == ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ) && ( ( mCurrentTransactionId ) != ( com.android.server.wifi.nan.WifiNanStateManager.WifiNanStateMachine.TRANSACTION_ID_IGNORE ) ) ) { sb.append ( " (Transaction ID=" ) . append ( mCurrentTransactionId ) . append ( ")" ) ; } return sb.toString ( ) ; }

Target:
protected java.lang.String getLogRecString ( android.os.Message msg ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( com.android.server.wifi.aware.WifiAwareStateManager.messageToString ( msg ) ) ; if ( ( ( msg.what ) == ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_COMMAND ) ) && ( ( mCurrentTransactionId ) != ( com.android.server.wifi.aware.WifiAwareStateManager.WifiAwareStateMachine.TRANSACTION_ID_IGNORE ) ) ) { sb.append ( " (Transaction ID=" ) . append ( mCurrentTransactionId ) . append ( ")" ) ; } return sb.toString ( ) ; }
Source:
static boolean triggerArrayOOM ( ) { Main.ArrayMemEater.blowup ( new char [ 128 * 1024 ] [ ] ) ; return Main.ArrayMemEater.sawOome ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( Main.triggerArrayOOM ( Main.holder ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }
Source:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; }

Target:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; mTries = 1 ; sendMessageDelayed ( obtainMessage ( android.net.wifi.WifiStateMachine.CMD_DRIVER_START_TIMED_OUT , ( ++ ( mDriverStartToken ) ) , 0 ) , android.net.wifi.WifiStateMachine.DRIVER_START_TIME_OUT_MSECS ) ; }
Source:
public com.android.sdklib.devices.Device build ( ) { if ( ( mMeta ) == null ) { mMeta = new com.android.sdklib.devices.Meta ( ) ; } for ( com.android.sdklib.devices.State s : mState ) { if ( s.mDefaultState ) { mDefaultState = s ; break ; } } return new com.android.sdklib.devices.Device ( this ) ; }

Target:
public com.android.sdklib.devices.Device build ( ) { if ( ( mSoftware.size ( ) ) <= 0 ) { throw generateBuildException ( "Device software not configured" ) ; } else if ( ( mState.size ( ) ) <= 0 ) { throw generateBuildException ( "Device states not configured" ) ; } if ( ( mMeta ) == null ) { mMeta = new com.android.sdklib.devices.Meta ( ) ; } for ( com.android.sdklib.devices.State s : mState ) { if ( s.mDefaultState ) { mDefaultState = s ; break ; } } return new com.android.sdklib.devices.Device ( this ) ; }
Source:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground , com.android.ide.common.rendering.api.LayoutLog logger , com.android.ide.common.rendering.api.RenderParams.RenderingMode renderingMode ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground , logger , null , renderingMode ) ; }

Target:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground , com.android.ide.common.rendering.api.LayoutLog logger , com.android.ide.common.rendering.api.SessionParams.RenderingMode renderingMode ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground , logger , null , renderingMode ) ; }
Source:
public android.content.Intent intentForPosition ( int position ) { if ( ( mList ) == null ) { return null ; } com.android.internal.app.ResolverActivity.DisplayResolveInfo dri = mList.get ( position ) ; android.content.Intent intent = new android.content.Intent ( ( ( dri.origIntent ) != null ? dri.origIntent : mIntent ) ) ; intent.addFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_FORWARD_RESULT ) | ( android.content.Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP ) ) ) ; android.content.pm.ActivityInfo ai = dri.ri.activityInfo ; intent.setComponent ( new android.content.ComponentName ( ai.applicationInfo.packageName , ai.name ) ) ; return intent ; }

Target:
public java.lang.Object getItem ( int position ) { return mList.get ( position ) ; }
Source:
public static void askPassword ( @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull com.intellij.ide.passwordSafe.impl.providers.masterKey.MasterKeyPasswordSafe safe , @ org.jetbrains.annotations.NotNull java.lang.Class < ? > requestor ) throws com.intellij.ide.passwordSafe.PasswordSafeException { if ( safe.setMasterPassword ( "" ) ) { return ; } if ( ! ( com.intellij.ide.passwordSafe.impl.providers.masterKey.MasterPasswordDialog.enterMasterPasswordDialog ( project , safe , requestor ) . showAndGet ( ) ) ) { throw new com.intellij.ide.passwordSafe.MasterPasswordUnavailableException ( "Cancelled by user" ) ; } }

Target:
public static void askPassword ( @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull com.intellij.ide.passwordSafe.impl.providers.masterKey.MasterKeyPasswordSafe safe , @ org.jetbrains.annotations.NotNull java.lang.Class < ? > requestor ) throws com.intellij.ide.passwordSafe.PasswordSafeException { if ( safe.setMasterPassword ( "" ) ) { return ; } if ( ! ( com.intellij.ide.passwordSafe.impl.providers.masterKey.MasterPasswordDialog.enterMasterPasswordDialog ( project , safe , requestor ) . showAndGet ( ) ) ) { throw new com.intellij.ide.passwordSafe.MasterPasswordUnavailableException ( ( ( com.intellij.ide.passwordSafe.impl.providers.masterKey.PasswordComponentBase.getRequestorTitle ( requestor ) ) + ": Cancelled by user" ) ) ; } }
Source:
private static android.telephony.data.DataCallResponse createDataCallResponse ( ) throws java.lang.Exception { return new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , java.util.Arrays.asList ( new android.telephony.data.InterfaceAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS , 0 ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; }

Target:
private static android.telephony.data.DataCallResponse createDataCallResponse ( ) throws java.lang.Exception { return new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , java.util.Arrays.asList ( new android.net.LinkAddress ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS ) , 0 ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; }
Source:
public void writeOnImsCommand ( int phoneId , com.android.ims.internal.ImsCallSession session , int command ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_COMMAND ) . setCallIndex ( getCallId ( session ) ) . setImsCommand ( command ) ) ; } }

Target:
public void writeOnImsCallReceive ( int phoneId , android.telephony.ims.ImsCallSession session ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = startNewCallSessionIfNeeded ( phoneId ) ; callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_RECEIVE ) . setCallIndex ( getCallId ( session ) ) ) ; }
Source:
protected final void notifyIncomingCall ( com.android.ims.internal.ImsCallSession c , android.os.Bundle extras ) throws android.os.RemoteException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Session is not available." ) ; } mListener.onIncomingCall ( c.getSession ( ) , extras ) ; } }

Target:
public final void notifyIncomingCall ( android.telephony.ims.stub.ImsCallSessionImplBase c , android.os.Bundle extras ) { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.IllegalStateException ( "Session is not available." ) ; } try { mListener.onIncomingCall ( c.getServiceImpl ( ) , extras ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } } }
Source:
public < T > org.jetbrains.plugins.gradle.service.project.ModelBuilder < T > getModelBuilder ( @ org.jetbrains.annotations.NotNull java.lang.Class < T > modelType , @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener ) { org.jetbrains.plugins.gradle.service.project.ModelBuilder < T > result = connection.model ( modelType ) ; org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.prepare ( result , id , settings , listener ) ; return result ; }

Target:
public < T > org.jetbrains.plugins.gradle.service.project.ModelBuilder < T > getModelBuilder ( @ org.jetbrains.annotations.NotNull java.lang.Class < T > modelType , @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener , @ org.jetbrains.annotations.NotNull java.util.List < java.lang.String > extraJvmArgs ) { org.jetbrains.plugins.gradle.service.project.ModelBuilder < T > result = connection.model ( modelType ) ; org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.prepare ( result , id , settings , listener , extraJvmArgs ) ; return result ; }
Source:
private boolean checkGradlePluginDependency ( com.android.tools.lint.detector.api.Context context , com.android.ide.common.repository.GradleCoordinate dependency , java.lang.Object cookie ) { com.android.ide.common.repository.GradleCoordinate latestPlugin = com.android.ide.common.repository.GradleCoordinate.parseCoordinateString ( ( ( com.android.SdkConstants.GRADLE_PLUGIN_NAME ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) ) ; if ( ( GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , latestPlugin ) ) < 0 ) { java.lang.String message = ( ( ( "You must use a newer version of the Android Gradle plugin. The " + "minimum supported version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) + " and the recommended version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_LATEST_VERSION ) ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY , message ) ; return true ; } return false ; }

Target:
private boolean checkGradlePluginDependency ( com.android.tools.lint.detector.api.Context context , com.android.ide.common.repository.GradleCoordinate dependency , java.lang.Object cookie ) { com.android.ide.common.repository.GradleCoordinate latestPlugin = com.android.ide.common.repository.GradleCoordinate.parseCoordinateString ( ( ( com.android.SdkConstants.GRADLE_PLUGIN_NAME ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) ) ; if ( ( GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , latestPlugin ) ) < 0 ) { java.lang.String message = ( ( ( "You must use a newer version of the Android Gradle plugin. The " + "minimum supported version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) + " and the recommended version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION ) ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY , message ) ; return true ; } return false ; }
Source:
static < T > T getLocalizedResource ( java.lang.String key , java.util.Locale locale ) { sun.util.locale.provider.LocaleResources lr = sun.util.locale.provider.LocaleProviderAdapter.getResourceBundleBased ( ) . getLocaleResources ( locale ) ; java.util.ResourceBundle rb = lr.getJavaTimeFormatData ( ) ; return rb.containsKey ( key ) ? ( ( T ) ( rb.getObject ( key ) ) ) : null ; }

Target:
private static java.util.Map < java.lang.Long , java.lang.String > extractQuarters ( android.icu.impl.ICUResourceBundle rb , java.lang.String key ) { java.lang.String [ ] names = rb.getWithFallback ( key ) . getStringArray ( ) ; java.util.Map < java.lang.Long , java.lang.String > map = new java.util.HashMap < > ( ) ; for ( int q = 0 ; q < ( names.length ) ; q ++ ) { map.put ( ( ( long ) ( q + 1 ) ) , names [ q ] ) ; } return map ; }
Source:
private void doFollowReferencesTestNonRoot ( java.util.ArrayList < java.lang.Object > tmpStorage ) { Main.Verifier v = new Main.Verifier ( ) ; Main.TestConfig.tagClasses ( v ) ; Main.A a = Main.TestConfig.createTree ( v ) ; tmpStorage.add ( a ) ; v.add ( "0@0" , "1@1000" ) ; doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , null , v , null ) ; doFollowReferencesTestImpl ( a.foo2 , java.lang.Integer.MAX_VALUE , ( - 1 ) , null , v , "3@1001" ) ; tmpStorage.clear ( ) ; }

Target:
private void doFollowReferencesTestRoot ( ) { Main.Verifier v = new Main.Verifier ( ) ; Main.TestConfig.tagClasses ( v ) ; Main.A a = Main.TestConfig.createTree ( v ) ; doFollowReferencesTestImpl ( null , stopAfter , followSet , a , v , null ) ; doFollowReferencesTestImpl ( a.foo2 , stopAfter , followSet , a , v , "3@1001" ) ; }
Source:
public < T > void setExtension ( com.google.protobuf.nano.Extension < T > extension , T value ) { if ( ( unknownFieldData ) == null ) { unknownFieldData = new java.util.ArrayList < com.google.protobuf.nano.UnknownFieldData > ( ) ; } com.google.protobuf.nano.WireFormatNano.setExtension ( extension , value , unknownFieldData ) ; }

Target:
public void writeTo ( com.google.protobuf.nano.CodedOutputByteBufferNano output ) throws java.io.IOException { int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; output.writeRawVarint32 ( unknownField.tag ) ; output.writeRawBytes ( unknownField.bytes ) ; } }
Source:
public static java.lang.String $noinline$intToDoubleToIntPrint ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { java.io.File projectFolder = buildProject ( projectName , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File apkFolder = new java.io.File ( projectFolder , ( ( "build/" + ( com.android.build.gradle.BasePlugin.FD_OUTPUTS ) ) + "/apk" ) ) ; java.io.File apk = new java.io.File ( apkFolder , ( ( projectName ) + "-debug-unaligned.apk" ) ) ; int found = com.android.build.gradle.PackagingBuildTest.findFilesInZip ( apk , java.util.Arrays.asList ( packagedFiles ) ) ; assertEquals ( packagedFiles.length , found ) ; }

Target:
protected void runTest ( ) throws java.lang.Throwable { java.io.File projectFolder = buildProject ( projectName , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File apkFolder = new java.io.File ( projectFolder , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/apk" ) ) ; java.io.File apk = new java.io.File ( apkFolder , ( ( projectName ) + "-debug-unaligned.apk" ) ) ; int found = com.android.build.gradle.PackagingBuildTest.findFilesInZip ( apk , java.util.Arrays.asList ( packagedFiles ) ) ; assertEquals ( packagedFiles.length , found ) ; }
Source:
public void shutdown ( ) { if ( com.android.bluetooth.map.BluetoothMapMasInstance.D ) android.util.Log.d ( TAG , "MAP Service shutdown" ) ; if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } if ( ( mObserver ) != null ) { mObserver.deinit ( ) ; mObserver = null ; } closeConnectionSocket ( ) ; closeServerSockets ( true ) ; }

Target:
public void shutdown ( ) { if ( com.android.bluetooth.map.BluetoothMapMasInstance.D ) android.util.Log.d ( TAG , "MAP Service shutdown" ) ; if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } if ( ( mObserver ) != null ) { mObserver.deinit ( ) ; mObserver = null ; } removeSdpRecord ( ) ; closeConnectionSocket ( ) ; closeServerSockets ( true ) ; }
Source:
public void testLogger2 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger l = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger ( "foo" ) ; assertFalse ( l.hasProblems ( ) ) ; l.fidelityWarning ( null , "No perspective Transforms" , null ) ; l.fidelityWarning ( null , "No GPS" , null ) ; assertTrue ( l.hasProblems ( ) ) ; assertEquals ( ( "The graphics preview may not be accurate:\n" + ( "* No perspective Transforms\n" + "* No GPS\n" ) ) , l.getProblems ( ) ) ; }

Target:
public void testLogger2 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger l = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger ( "foo" ) ; assertFalse ( l.hasProblems ( ) ) ; l.fidelityWarning ( null , "No perspective Transforms" , null ) ; l.fidelityWarning ( null , "No GPS" , null ) ; assertTrue ( l.hasProblems ( ) ) ; assertEquals ( ( "The graphics preview may not be accurate:\n" + ( "* No perspective Transforms\n" + "* No GPS\n" ) ) , l.getProblems ( ) ) ; assertFalse ( l.seenTag ( "foo" ) ) ; assertFalse ( l.seenTag ( null ) ) ; }
Source:
public com.android.build.gradle.integration.common.truth.VariantSubject variant ( @ com.android.annotations.NonNull java.lang.String variantName ) { com.android.builder.model.Variant variant = com.android.build.gradle.integration.common.utils.ModelHelper.getVariant ( getSubject ( ) . getVariants ( ) , variantName ) ; if ( variant == null ) { fail ( ( "Could not find variant with name " + variantName ) ) ; assert false ; } return com.android.build.gradle.integration.common.truth.TruthHelper.assertThat ( variant ) ; }

Target:
public com.android.builder.model.SyncIssue hasIssue ( int severity , int type ) { java.util.Collection < com.android.builder.model.SyncIssue > subject = getSubject ( ) . getSyncIssues ( ) ; for ( com.android.builder.model.SyncIssue issue : subject ) { if ( ( severity == ( issue.getSeverity ( ) ) ) && ( type == ( issue.getType ( ) ) ) ) { return issue ; } } failWithRawMessage ( "'%s' does not contain <%s / %s>" , getDisplaySubject ( ) , severity , type ) ; return null ; }
Source:
public static void checkClientTrusted ( javax.net.ssl.X509TrustManager tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , org.conscrypt.OpenSSLEngineImpl engine ) throws java.security.cert.CertificateException { if ( ( ! ( org.conscrypt.Platform.checkTrusted ( "checkClientTrusted" , tm , chain , authType , javax.net.ssl.SSLEngine.class , engine ) ) ) && ( ! ( org.conscrypt.Platform.checkTrusted ( "checkClientTrusted" , tm , chain , authType , java.lang.String.class , engine.getHandshakeSession ( ) . getPeerHost ( ) ) ) ) ) { tm.checkClientTrusted ( chain , authType ) ; } }

Target:
public static void checkServerTrusted ( javax.net.ssl.X509TrustManager tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , org.conscrypt.AbstractConscryptSocket socket ) throws java.security.cert.CertificateException { if ( ( ! ( org.conscrypt.Platform.checkTrusted ( "checkServerTrusted" , tm , chain , authType , java.net.Socket.class , socket ) ) ) && ( ! ( org.conscrypt.Platform.checkTrusted ( "checkServerTrusted" , tm , chain , authType , java.lang.String.class , socket.getHandshakeSession ( ) . getPeerHost ( ) ) ) ) ) { tm.checkServerTrusted ( chain , authType ) ; } }
Source:
public void forNonStreaming_works ( ) throws java.lang.Exception { java.io.File packageFile = createMockZipFile ( ) ; com.example.android.systemupdatersample.PayloadSpec spec = com.example.android.systemupdatersample.util.PayloadSpecs.forNonStreaming ( packageFile ) ; org.junit.Assert.assertEquals ( "correct url" , ( "file://" + ( packageFile.getAbsolutePath ( ) ) ) , spec.getUrl ( ) ) ; org.junit.Assert.assertEquals ( "correct payload offset" , ( 30 + ( com.example.android.systemupdatersample.util.PackageFiles.PAYLOAD_BINARY_FILE_NAME.length ( ) ) ) , spec.getOffset ( ) ) ; org.junit.Assert.assertEquals ( "correct payload size" , com.example.android.systemupdatersample.util.PayloadSpecsTest.PAYLOAD_SIZE , spec.getSize ( ) ) ; org.junit.Assert.assertArrayEquals ( "correct properties" , new java.lang.String [ ] { "k1=val1" , "key2=val2" } , spec.getProperties ( ) . toArray ( new java.lang.String [ 0 ] ) ) ; }

Target:
public void forNonStreaming_works ( ) throws java.lang.Exception { java.io.File packageFile = java.nio.file.Paths.get ( mTargetContext.getCacheDir ( ) . getAbsolutePath ( ) , "ota.zip" ) . toFile ( ) ; java.nio.file.Files.deleteIfExists ( packageFile.toPath ( ) ) ; java.nio.file.Files.copy ( mTestContext.getResources ( ) . openRawResource ( R.raw.ota_002_package ) , packageFile.toPath ( ) ) ; com.example.android.systemupdatersample.PayloadSpec spec = com.example.android.systemupdatersample.util.PayloadSpecs.forNonStreaming ( packageFile ) ; org.junit.Assert.assertEquals ( "correct url" , ( "file://" + ( packageFile.getAbsolutePath ( ) ) ) , spec.getUrl ( ) ) ; org.junit.Assert.assertEquals ( "correct payload offset" , ( 30 + ( com.example.android.systemupdatersample.util.PackageFiles.PAYLOAD_BINARY_FILE_NAME.length ( ) ) ) , spec.getOffset ( ) ) ; org.junit.Assert.assertEquals ( "correct payload size" , 1392 , spec.getSize ( ) ) ; org.junit.Assert.assertEquals ( 4 , spec.getProperties ( ) . size ( ) ) ; org.junit.Assert.assertEquals ( "FILE_HASH=sEAK/NMbU7GGe01xt55FsPafIPk8IYyBOAd6SiDpiMs=" , spec.getProperties ( ) . get ( 0 ) ) ; }
Source:
public static java.lang.String toUnicode ( java.lang.String input ) { return libcore.icu.NativeIDN.toUnicode ( input , 0 ) ; }

Target:
public static java.lang.String toUnicode ( java.lang.String input , int flags ) { com.ibm.icu.text.IDNA converter = com.ibm.icu.text.IDNA.getUTS46Instance ( flags ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; com.ibm.icu.text.IDNA.Info info = new com.ibm.icu.text.IDNA.Info ( ) ; converter.nameToUnicode ( input , result , info ) ; if ( info.hasErrors ( ) ) { return input ; } return result.toString ( ) ; }
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 ; 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 ( ) ; break ; default : android.util.Log.e ( com.android.bluetooth.gatt.ScanManager.TAG , ( "received an unkown message : " + ( msg.what ) ) ) ; } }
Source:
public com.android.tools.perflib.heap.Heap getHeap ( int id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( ( mHeaps.get ( i ) . getId ( ) ) == id ) { return mHeaps.get ( i ) ; } } return null ; }

Target:
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 ; }
Source:
private static void waitForIdleHandler ( android.os.HandlerThread handlerThread , int timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { fail ( ( ( ( ( "HandlerThread " + ( handlerThread.getName ( ) ) ) + " did not become idle after " ) + timeoutMs ) + " ms" ) ) ; } }

Target:
private static < T > void assertLength ( int expected , T [ ] got ) { int length = got.length ; assertEquals ( java.lang.String.format ( "expected array of length %s, but length was %s for %s" , expected , length , java.util.Arrays.toString ( got ) ) , expected , length ) ; }
Source:
public void releasePersistableUriPermission ( android.net.Uri uri , int modeFlags ) { try { android.app.ActivityManagerNative.getDefault ( ) . releasePersistableUriPermission ( uri , modeFlags ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void takePersistableUriPermission ( @ android.annotation.NonNull android.net.Uri uri , @ android.content.Intent.AccessUriMode int modeFlags ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; try { android.app.ActivityManagerNative.getDefault ( ) . takePersistableUriPermission ( android.content.ContentProvider.getUriWithoutUserId ( uri ) , modeFlags , resolveUserId ( uri ) ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public static void copy ( java.io.File from , java.io.File to ) throws java.io.IOException { com.google.common.base.Preconditions.checkArgument ( ( ! ( from.equals ( to ) ) ) , "Source %s and destination %s must be different" , from , to ) ; com.google.common.io.Files.copy ( com.google.common.io.Files.newInputStreamSupplier ( from ) , to ) ; }

Target:
private static void write ( java.lang.CharSequence from , java.io.File to , java.nio.charset.Charset charset , boolean append ) throws java.io.IOException { com.google.common.io.Files.asCharSink ( to , charset , com.google.common.io.Files.modes ( append ) ) . write ( from ) ; }
Source:
public void setDefaultSmdpAddress ( java.lang.String cardId , java.lang.String defaultSmdpAddress , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { callback.onComplete ( resultCode , null ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void requestSmdsAddress ( java.lang.String cardId , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.String > callback ) { try { getIEuiccCardController ( ) . getSmdsAddress ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetSmdsAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , java.lang.String address ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , address ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getSmdsAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotId ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }

Target:
public java.util.List < android.service.carrier.CarrierIdentifier > getAllowedCarriers ( int slotIndex ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getAllowedCarriers ( slotIndex ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return new java.util.ArrayList < android.service.carrier.CarrierIdentifier > ( 0 ) ; }
Source:
public void onDestroy ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onDestroy" ) ; if ( ( adapter ) != null ) { adapter.changeCursor ( null ) ; } getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( callLogObserver ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( contactsObserver ) ; super . onDestroy ( ) ; }

Target:
public void onPause ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onPause" ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( callLogObserver ) ; getActivity ( ) . getContentResolver ( ) . unregisterContentObserver ( contactsObserver ) ; if ( getUserVisibleHint ( ) ) { onNotVisible ( ) ; } cancelDisplayUpdate ( ) ; adapter.onPause ( ) ; super . onPause ( ) ; }
Source:
public void conferenceStateUpdated ( com.android.ims.ImsConferenceState state ) { com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { notifyConferenceStateUpdated ( state ) ; listener = mListener ; } if ( listener != null ) { try { listener.onCallConferenceStateUpdated ( this , state ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionConferenceStateUpdated :: " , t ) ; } } }

Target:
public void conferenceStateUpdated ( android.telephony.ims.ImsConferenceState state ) { com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { notifyConferenceStateUpdated ( state ) ; listener = mListener ; } if ( listener != null ) { try { listener.onCallConferenceStateUpdated ( this , state ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionConferenceStateUpdated :: " , t ) ; } } }
Source:
void foo2 ( int [ ] array , int start , int end ) { for ( int i = start ; i <= end ; i ++ ) { array [ i ] = 1 ; sum += array [ i ] ; } }

Target:
void foo1 ( int [ ] array , int start , int end , boolean expectInterpreter ) { for ( int i = start ; i < end ; i ++ ) { if ( expectInterpreter ) { Main.assertIsInterpreted ( ) ; } else { Main.assertIsManaged ( ) ; } array [ i ] = 1 ; sum += array [ i ] ; } }
Source:
private void checkResourceContent ( @ javax.annotation.Nonnull java.util.zip.ZipFile zipFile , @ javax.annotation.Nonnull java.lang.String entryName , @ javax.annotation.Nonnull java.lang.String expectedContent ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryName ) ; junit.framework.Assert.assertNotNull ( entry ) ; java.io.BufferedReader reader = null ; try { java.io.InputStream in = zipFile.getInputStream ( entry ) ; reader = new java.io.BufferedReader ( new java.io.InputStreamReader ( in ) ) ; java.lang.String line = reader.readLine ( ) ; junit.framework.Assert.assertEquals ( expectedContent , line ) ; } finally { if ( reader != null ) { reader.close ( ) ; } } }

Target:
private void checkResourceContent ( @ javax.annotation.Nonnull com.android.jack.library.InputJackLibrary lib , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path , @ javax.annotation.Nonnull java.lang.String expectedContent ) throws com.android.jack.library.FileTypeDoesNotExistException , java.io.IOException { java.io.BufferedReader reader = null ; try { reader = new java.io.BufferedReader ( new java.io.InputStreamReader ( lib.getFile ( FileType.RSC , path ) . getInputStream ( ) ) ) ; java.lang.String line = reader.readLine ( ) ; junit.framework.Assert.assertEquals ( expectedContent , line ) ; } finally { if ( reader != null ) { reader.close ( ) ; } } }