auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void includedIn ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "in" ) . get ( cb ) ; }

Target:
public static void editWithFiles ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . addParameterTrue ( "list" ) . get ( cb ) ; }
Source:
public void addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postReviewers.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot add change reviewer" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return postReviewers.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot add change reviewer" , e ) ; } }
Source:
public static com.google.gerrit.server.account.AuthRequest forExternalUser ( java.lang.String username ) { com.google.gerrit.server.account.AuthRequest r = new com.google.gerrit.server.account.AuthRequest ( ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_EXTERNAL , username ) ) ; r.setUserName ( username ) ; return r ; }

Target:
public static com.google.gerrit.server.account.AuthRequest forExternalUser ( java.lang.String username ) { com.google.gerrit.server.account.AuthRequest r = new com.google.gerrit.server.account.AuthRequest ( ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_EXTERNAL , username ) ) ; r.setUserName ( username ) ; return r ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { setFocus ( false ) ; }

Target:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { blurHint ( ) ; isFocused = false ; }
Source:
public static void getSshKeys ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.SshKeyInfo > > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "sshkeys" ) . get ( cb ) ; }

Target:
public static void getSshKeys ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.SshKeyInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "sshkeys" ) . get ( cb ) ; }
Source:
public void rollback ( ) throws com.google.gwtorm.server.OrmException { delegate.rollback ( ) ; }

Target:
public boolean inTransaction ( ) { return inTransaction ; }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( action ) ; }

Target:
public static void rebaseEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:rebase" ) . post ( in , cb ) ; }
Source:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.changes.ChangeInfo c = getRowItem ( row ) ; final com.google.gerrit.reviewdb.client.Change.Id id = c.legacyId ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.info.ChangeInfo c = getRowItem ( row ) ; final com.google.gerrit.reviewdb.client.Change.Id id = c.legacyId ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.index.ChangeField.getCommitterParts ( object ) . contains ( getValue ( ) . toLowerCase ( ) ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.index.change.ChangeField.getCommitterParts ( object ) . contains ( getValue ( ) . toLowerCase ( ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doSetUserName ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doSetUserName ( ) ; } }
Source:
public void setLimit ( int l ) { this . limit = ( l <= 0 ) ? com.google.gerrit.server.change.SuggestReviewers.MAX : java.lang.Math.min ( l , com.google.gerrit.server.change.SuggestReviewers.MAX ) ; }

Target:
public void setLimit ( int l ) { this . limit = ( l <= 0 ) ? maxSuggestedReviewers : java.lang.Math.min ( l , maxSuggestedReviewers ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "psId" , psId ) . add ( "who" , who ) . add ( "when" , when ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . add ( "psId" , psId ) . add ( "who" , who ) . add ( "when" , when ) . toString ( ) ; }
Source:
private com.google.gerrit.server.api.accounts.AccountInfoComparator setNullsLast ( ) { this . nullsLast = true ; return this ; }

Target:
private com.google.gerrit.server.account.AccountInfoComparator setNullsLast ( ) { this . nullsLast = true ; return this ; }
Source:
public com.atlassian.jira.rest.client.api.domain.Issue getIssue ( java.lang.String issueKey ) throws com.atlassian.jira.rest.client.api.RestClientException { com.atlassian.jira.rest.client.api.IssueRestClient issueClient = this . client.getIssueClient ( ) ; return issueClient.getIssue ( issueKey ) . claim ( ) ; }

Target:
private JiraTransition.Item getTransitionByName ( java.lang.String issueKey , java.lang.String transition ) throws java.io.IOException { for ( com.googlesource.gerrit.plugins.its.jira.restapi.JiraTransition.Item t : getTransitions ( issueKey ) ) { if ( transition.equals ( t.getName ( ) ) ) { return t ; } } return null ; }
Source:
private void cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n , com.google.gerrit.server.git.MergeTip mergeTip ) { mergeTip.moveTipTo ( n , n ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) { mergeTip.moveTipTo ( toMerge , toMerge ) ; toMerge.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; }
Source:
private java.lang.String urlPublish ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/publish_edit" ; }

Target:
private java.lang.String urlRebase ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit:rebase" ; }
Source:
private void initPlugins ( ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.InitStep initStep : pluginLoader.getInitSteps ( ) ) { initStep.run ( ) ; } }

Target:
private void initPlugins ( ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.api.InitStep initStep : pluginLoader.getInitSteps ( ) ) { initStep.run ( ) ; } }
Source:
protected void assertQuery ( java.lang.Object query , com.google.gerrit.reviewdb.client.Change ... changes ) throws java.lang.Exception { assertQuery ( newQuery ( query ) , changes ) ; }

Target:
protected java.util.List < com.google.gerrit.extensions.common.ChangeInfo > assertQuery ( java.lang.Object query , com.google.gerrit.reviewdb.client.Change ... changes ) throws java.lang.Exception { return assertQuery ( newQuery ( query ) , changes ) ; }
Source:
public void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException { indexer.get ( ) . index ( group.getGroupUUID ( ) ) ; }

Target:
public void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) throws java.io.IOException { indexer.get ( ) . index ( groupUuid ) ; }
Source:
public final native void manualReview ( boolean r ) ;

Target:
public final native void hideTopMenu ( java.lang.Boolean s ) ;
Source:
private java.lang.String newChange ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = HEAD ( 0 ) ; com.google.gerrit.acceptance.edit.Merge changes ; }

Target:
private java.lang.String newChange ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , testRepo , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD , java.nio.charset.StandardCharsets.UTF_8 ) ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
void logout ( ) { tokenCache.remove ( user ) ; user = null ; redirectToken = null ; serviceProvider = null ; }

Target:
void logout ( ) { if ( ( accountId ) != null ) { tokenCache.remove ( accountId ) ; accountId = null ; } user = null ; redirectToken = null ; serviceProvider = null ; }
Source:
public void doFilter ( javax.servlet.ServletRequest req , javax.servlet.ServletResponse response ) throws java.io.IOException , javax.servlet.ServletException { javax.servlet.http.HttpServletResponse res = ( ( javax.servlet.http.HttpServletResponse ) ( response ) ) ; com.google.gerrit.httpd.plugins.HttpPluginServlet.noCache ( res ) ; res.sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }

Target:
public void doFilter ( javax.servlet.ServletRequest req , javax.servlet.ServletResponse res ) throws java.io.IOException { onDefault ( holder , ( ( javax.servlet.http.HttpServletRequest ) ( req ) ) , ( ( javax.servlet.http.HttpServletResponse ) ( res ) ) ) ; }
Source:
public void setPatchSet ( final com.google.gerrit.reviewdb.PatchSet ps , final com.google.gerrit.reviewdb.PatchSetInfo psi ) { patchSet = ps ; patchSetInfo = psi ; }

Target:
public void setChangeMessage ( final com.google.gerrit.reviewdb.client.ChangeMessage cm ) { changeMessage = cm ; }
Source:
private void setChangeSubjectHeader ( ) throws com.google.gerrit.common.errors.EmailException { setHeader ( "Subject" , velocifyFile ( "ChangeSubject.vm" ) ) ; }

Target:
private void setChangeSubjectHeader ( ) throws com.google.gerrit.common.errors.EmailException { setHeader ( "Subject" , textTemplate ( "ChangeSubject" ) ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.extensions.common.ChangeInfo input ) { return input.changeId ; }

Target:
public java.lang.String apply ( com.google.gerrit.extensions.common.ChangeInfo input ) { return ( input.changeId ) != null ? input.changeId : input.subject ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( isAttached ( ) ) { setStarred ( r.isStarred ( ) ) ; display ( r ) ; } }

Target:
protected void preDisplay ( final com.google.gerrit.client.data.ChangeDetail r ) { setStarred ( r.isStarred ( ) ) ; display ( r ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.google.gerrit.server.auth.AuthUser.UUID ) { return get ( ) . equals ( ( ( com.google.gerrit.server.auth.AuthUser.UUID ) ( obj ) ) . get ( ) ) ; } return false ; }

Target:
public static com.google.gerrit.server.auth.AuthUser.UUID create ( java.lang.String uuid ) { return new com.google.gerrit.server.auth.AutoValue_AuthUser_UUID ( uuid ) ; }
Source:
public void doRefUpdatedHook ( final com.google.gerrit.reviewdb.Branch.NameKey refName , final org.eclipse.jgit.lib.RefUpdate refUpdate , final com.google.gerrit.reviewdb.Account account ) { doRefUpdatedHook ( refName , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , account ) ; }

Target:
public void doRefUpdatedHook ( final com.google.gerrit.reviewdb.client.Branch.NameKey refName , final org.eclipse.jgit.lib.RefUpdate refUpdate , final com.google.gerrit.reviewdb.client.Account account ) { doRefUpdatedHook ( refName , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , account ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.BatchUpdate.RepoContext ctx ) throws java.lang.Exception { com.google.gerrit.server.edit.ChangeEditUtil.deleteRef ( ctx.getRepository ( ) , edit ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { com.google.gerrit.server.edit.ChangeEditUtil.deleteRef ( ctx.getRepository ( ) , edit ) ; }
Source:
protected com.google.gerrit.extensions.common.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.extensions.common.ListChangesOption ... options ) throws java.io.IOException { return getChange ( adminSession , changeId , options ) ; }

Target:
protected void grant ( java.lang.String permission , com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException , org.eclipse.jgit.errors.RepositoryNotFoundException { grant ( permission , project , ref , false ) ; }
Source:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > getApprovals ( ) { return state.approvals ( ) ; }

Target:
public com.google.common.collect.ImmutableSet < com.google.gerrit.reviewdb.client.Account.Id > getPastAssignees ( ) { return state.pastAssignees ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
protected void onOpenRow ( final int row ) { super . onOpenRow ( row ) ; nameBox.setText ( getRowItem ( row ) . getName ( ) ) ; doAddNew ( ) ; }
Source:
public static net.codemirror.lib.TextMarker.FromTo create ( net.codemirror.lib.LineCharacter from , net.codemirror.lib.LineCharacter to ) { net.codemirror.lib.TextMarker.FromTo fromTo = createObject ( ) . cast ( ) ; fromTo.setFrom ( from ) ; fromTo.setTo ( to ) ; return fromTo ; }

Target:
public static final native net.codemirror.lib.TextMarker.FromTo create ( net.codemirror.lib.Pos f , net.codemirror.lib.Pos t ) ;
Source:
public java.lang.Object getScreenCacheToken ( ) { return anchor ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; }
Source:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; renderLinks ( editFileInfo , diffLinks ) ; editFileInfo = null ; diffLinks = null ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( ) ; renderLinks ( editFileInfo , diffLinks ) ; editFileInfo = null ; diffLinks = null ; showBase.setValue ( prefs.showBase ( ) , true ) ; cmBase.refresh ( ) ; }
Source:
public int getCost ( ) { return that.getCost ( ) ; }

Target:
public int getCost ( ) { return that.estimateCost ( ) ; }
Source:
public void start ( ) { for ( com.googlesource.gerrit.plugins.replication.Destination cfg : config.getDestinations ( ) ) { cfg.start ( workQueue ) ; } running = true ; }

Target:
public void start ( ) { config.startup ( workQueue ) ; running = true ; }
Source:
private boolean hasChanges ( com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.changes.ChangeList > result ) { for ( com.google.gerrit.client.changes.ChangeList list : result.asList ( ) ) { if ( ! ( list.isEmpty ( ) ) ) { return true ; } } return false ; }

Target:
private boolean hasChanges ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeList > result ) { for ( com.google.gerrit.client.changes.ChangeList list : com.google.gerrit.client.rpc.Natives.asList ( result ) ) { if ( ( list.length ( ) ) != 0 ) { return true ; } } return false ; }
Source:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( changeId , revision , publish , deleteRevision ) ; } }

Target:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.ChangeActions.publish ( getProject ( ) , changeId , revision , publish , deleteRevision ) ; }
Source:
public java.lang.String getAccessToken ( ) { return isSignedIn ( ) ? key.getToken ( ) : null ; }

Target:
public java.lang.String getAuthorization ( ) { return isSignedIn ( ) ? "Bearer " + ( key.getToken ( ) ) : null ; }
Source:
HEAD ( com.google.gerrit.extensions.api.changes.b3f1de dev ) { }

Target:
public com.google.gerrit.extensions.common.EditInfo getEdit ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
void restoreChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String message , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void publish ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.ScreenLoadCallback.isNoSuchEntity ( caught ) ) { com.google.gerrit.client.Gerrit.display ( new com.google.gerrit.client.NotFoundScreen ( ) ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.ScreenLoadCallback.isNoSuchEntity ( caught ) ) { com.google.gerrit.client.Gerrit.display ( screen.getToken ( ) , new com.google.gerrit.client.NotFoundScreen ( ) ) ; } else { super . onFailure ( caught ) ; } }
Source:
public final native boolean isScrollSetByOther ( ) ;

Target:
public final native void scrollToY ( double y ) ;
Source:
private void postDeletion ( com.google.gerrit.server.project.ProjectResource project , org.eclipse.jgit.transport.ReceiveCommand cmd ) { referenceUpdated.fire ( project.getNameKey ( ) , cmd , identifiedUser.get ( ) . getAccount ( ) ) ; }

Target:
private void postDeletion ( com.google.gerrit.server.project.ProjectResource project , org.eclipse.jgit.transport.ReceiveCommand cmd ) { referenceUpdated.fire ( project.getNameKey ( ) , cmd , identifiedUser.get ( ) . state ( ) ) ; }
Source:
private static void assertOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { org.junit.Assert.assertTrue ( ( "OWN " + ref ) , u.controlForRef ( ref ) . isOwner ( ) ) ; }

Target:
private void assertOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isOwner ( ) ) . named ( ( "OWN " + ref ) ) . isTrue ( ) ; }
Source:
protected void onExit ( final int rc ) { com.google.gerrit.sshd.commands.ead StreamEvents ; com.google.gerrit.sshd.commands.Fix NPE ; com.google.gerrit.sshd.commands.invoking the ; with ( ( -- ( help ) ) ) ; removeEventListenerRegistration ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
public java.lang.String toString ( ) { return ( "Stream Events (" + ( currentUser.getAccount ( ) . getUserName ( ) ) ) + ")" ; }
Source:
public void suggestReviewersNoResult3 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public void unregisterWorkQueue ( ) { queues.remove ( this ) ; }

Target:
protected void terminated ( ) { super . terminated ( ) ; queues.remove ( this ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNew ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }
Source:
private static void ensureInited ( ) { if ( ( com.google.gerrit.client.FormatUtil.dtfmt ) == null ) { com.google.gerrit.client.FormatUtil.setPreferences ( null ) ; } }

Target:
private static void ensureInited ( ) { if ( ( com.google.gerrit.client.FormatUtil.dtfmt ) == null ) { com.google.gerrit.client.FormatUtil.setPreferences ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) ) ; } }
Source:
void insertMember ( final com.google.gerrit.client.reviewdb.AccountGroupMember k ) { final int row = table.getRowCount ( ) ; table.insertRow ( row ) ; populate ( row , k ) ; }

Target:
void insertMember ( final com.google.gerrit.client.reviewdb.AccountGroupMember k ) { final int row = table.getRowCount ( ) ; table.insertRow ( row ) ; applyDataRowStyle ( row ) ; populate ( row , k ) ; }
Source:
public void test ( ) throws java.lang.Exception { java.lang.String [ ] invalidFilenamePattern = new java.lang.String [ ] { "[@:]" , "[#%*]" } ; org.eclipse.jgit.revwalk.RevCommit c = makeCommit ( ) ; java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > m = com.googlesource.gerrit.plugins.uploadvalidator.InvalidFilenameValidator.performValidation ( repo , c , invalidFilenamePattern ) ; java.util.List < com.googlesource.gerrit.plugins.uploadvalidator.ComparableCommitValidationMessage > expected = new java.util.ArrayList < > ( ) ; for ( java.lang.String filenames : getInvalidFilenames ( ) ) { expected.add ( new com.googlesource.gerrit.plugins.uploadvalidator.ComparableCommitValidationMessage ( ( "invalid characters found in filename: " + filenames ) , true ) ) ; } com.google.common.truth.Truth.assertThat ( m ) . hasSize ( 5 ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.transformMessages ( m ) ) . containsAllIn ( expected ) ; }

Target:
public void test ( ) throws java.lang.Exception { java.lang.String [ ] invalidFilenamePattern = new java.lang.String [ ] { "[@:]" , "[#%*]" } ; org.eclipse.jgit.revwalk.RevCommit c = makeCommit ( ) ; java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > m = com.googlesource.gerrit.plugins.uploadvalidator.InvalidFilenameValidator.performValidation ( repo , c , invalidFilenamePattern ) ; java.util.Set < java.lang.String > expected = new java.util.HashSet < > ( ) ; for ( java.lang.String filenames : getInvalidFilenames ( ) ) { expected.add ( ( "ERROR: invalid characters found in filename: " + filenames ) ) ; } com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.transformMessages ( m ) ) . containsExactlyElementsIn ( expected ) ; }
Source:
public void onChangeEvent ( com.google.gerrit.server.events.ChangeEvent event ) { if ( event instanceof com.google.gerrit.server.events.ChangeMergedEvent ) { com.google.gerrit.server.events.ChangeMergedEvent cMEvent = ( ( com.google.gerrit.server.events.ChangeMergedEvent ) ( event ) ) ; mergeResults.put ( cMEvent.change.number , cMEvent.newRev ) ; } }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ChangeMergedEvent ) { com.google.gerrit.server.events.ChangeMergedEvent changeMergedEvent = ( ( com.google.gerrit.server.events.ChangeMergedEvent ) ( event ) ) ; mergeResults.put ( changeMergedEvent.change.number , changeMergedEvent.newRev ) ; } }
Source:
public abstract com.google.gerrit.server.group.db.InternalGroupUpdate.Builder setOwnerGroupUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID ownerGroupUUID ) ;

Target:
public abstract com.google.gerrit.server.group.db.InternalGroupUpdate.Builder setOwnerGroupReference ( com.google.gerrit.common.data.GroupReference ownerGroupReference ) ;
Source:
public void inalidPathSeparator ( ) { for ( char c : com.google.gerrit.server.config.GitwebConfigTest.SOME_INVALID_CHARACTERS.toCharArray ( ) ) { org.junit.Assert.assertFalse ( ( "invalid character accepted: " + c ) , com.google.gerrit.server.config.GitwebConfig.isValidPathSeparator ( c ) ) ; } }

Target:
public void inalidPathSeparator ( ) { for ( char c : com.google.gerrit.server.config.GitwebConfigTest.SOME_INVALID_CHARACTERS.toCharArray ( ) ) { com.google.common.truth.Truth.assertWithMessage ( ( "invalid character accepted: " + c ) ) . that ( com.google.gerrit.server.config.GitwebConfig.isValidPathSeparator ( c ) ) . isFalse ( ) ; } }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultAccountGroupName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( "gerrit-InputFieldTypeHint" ) ; } }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultAccountGroupName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
public boolean canForwardX11 ( org.apache.sshd.common.session.Session session ) { return false ; }

Target:
public boolean canForwardX11 ( org.apache.sshd.common.session.Session session , java.lang.String requestType ) { return false ; }
Source:
com.google.gerrit.server.git.WorkQueue.Executor getExecutor ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config config , final com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "receive" , null , "threadPoolSize" , java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; return queues.createQueue ( poolSize , "ReceiveCommits" ) ; }

Target:
public void write ( int b ) { messageSender.sendBytes ( new byte [ ] { ( ( byte ) ( b ) ) } ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.reviewdb.client.Change change ) { return delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { indexAsync ( change ) . checkedGet ( ) ; }
Source:
public boolean canDelete ( final com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return ( ( ( change.getStatus ( ) ) == ( Change.Status.DRAFT ) ) && ( isOwner ( ) ) ) && ( isVisible ( db ) ) ; }

Target:
public boolean canDeleteDraft ( final com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return ( isOwner ( ) ) && ( isVisible ( db ) ) ; }
Source:
private static java.lang.String startTime ( final java.util.Date when ) { return com.google.gerrit.sshd.commands.ShowQueue.format ( when , ( ( java.lang.System.currentTimeMillis ( ) ) - ( when.getTime ( ) ) ) ) ; }

Target:
private static java.lang.String startTime ( final java.util.Date when ) { return com.google.gerrit.sshd.commands.ShowQueue.format ( when , ( ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) - ( when.getTime ( ) ) ) ) ; }
Source:
public void addHeader ( java.lang.String name , java.lang.String value ) { headers.put ( name , value ) ; }

Target:
public void addHeader ( java.lang.String name , java.lang.String value ) { headers.put ( name.toLowerCase ( ) , value ) ; }
Source:
public com.google.gerrit.server.plugins.Plugin.ApiType getApiType ( ) { try { return com.google.gerrit.server.plugins.Plugin.getApiType ( manifest ) ; } catch ( com.google.gerrit.server.plugins.InvalidPluginException e ) { return null ; } }

Target:
public java.lang.String toString ( ) { int id = java.lang.System.identityHashCode ( this ) ; return java.lang.String.format ( "Plugin[%s@%x]" , name , id ) ; }
Source:
private void updateForm ( ) { addTag.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }

Target:
private void updateForm ( ) { tagTable.updateDeleteButton ( ) ; addTag.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }
Source:
public boolean match ( com.google.gerrit.reviewdb.PatchSetApproval p , short value ) { return ( p.getValue ( ) ) <= value ; }

Target:
public boolean match ( short psValue , short expValue ) { return psValue <= expValue ; }
Source:
public void put ( com.google.gerrit.server.account.AccountInfo info ) { provided.add ( info ) ; }

Target:
public void put ( com.google.gerrit.server.account.AccountInfo info ) { if ( detailed ) { info._account_id = info._id.get ( ) ; } provided.add ( info ) ; }
Source:
public static void setForwardedEvent ( java.lang.Boolean b ) { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.FORWARDED_EVENT.set ( b ) ; }

Target:
public static void setForwardedEvent ( java.lang.Boolean b ) { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.forwardedEvent.set ( b ) ; }
Source:
public void setChangeScreen ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ChangeScreen ui ) { this . changeScreen = ui ; }

Target:
public void setLargeChangeSize ( int largeChangeSize ) { this . largeChangeSize = largeChangeSize ; }
Source:
public int hashCode ( ) { return uuid.hashCode ( ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "AuditEvent UUID:%s, SID:%s, TS:%d, who:%s, what:%s" , uuid.uuid ( ) , sessionId , when , who , what ) ; }
Source:
public void testEndsOnNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 ) , iter.advance ( 4 ) ) ; }

Target:
public void testEndsOnNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 1 ) , iter.advance ( 4 ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( ( user ) == null ) { throw new java.lang.IllegalStateException ( "user == null, forgot to set it?" ) ; } return user ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { if ( ( user ) == null ) { throw new java.lang.IllegalStateException ( "user == null, forgot to set it?" ) ; } return user ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { in.label ( id , v ) ; } }

Target:
void select ( ) { group.select ( this ) ; in.label ( group.label , value ) ; }
Source:
private static com.google.gerrit.extensions.auth.oauth.OAuthToken getAsOAuthToken ( com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken ) { return new com.google.gerrit.extensions.auth.oauth.OAuthToken ( accessToken.getValue ( ) , null , null ) ; }

Target:
private com.google.gerrit.extensions.auth.oauth.OAuthToken getAsOAuthToken ( com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken ) { return new com.google.gerrit.extensions.auth.oauth.OAuthToken ( accessToken.getValue ( ) , null , null , ( ( accessToken.getExpiresAt ( ) ) * 1000 ) , providerId ) ; }
Source:
public static int toIndexTime ( java.sql.Timestamp ts ) { return ( ( int ) ( ( ts.getTime ( ) ) / 60000 ) ) ; }

Target:
public int toIndexTimeInMinutes ( java.util.Date ts ) { return ( ( int ) ( ( ts.getTime ( ) ) / 60000 ) ) ; }
Source:
public void setExisting_Conflict ( ) throws java.lang.Exception { com.google.gerrit.server.account.PutUsername.Input in = new com.google.gerrit.server.account.PutUsername.Input ( ) ; in.username = admin.username ; adminSession.put ( ( ( "/accounts/" + ( createUser ( ) . get ( ) ) ) + "/username" ) , in ) . assertConflict ( ) ; }

Target:
public void setExisting_Conflict ( ) throws java.lang.Exception { com.google.gerrit.server.account.PutUsername.Input in = new com.google.gerrit.server.account.PutUsername.Input ( ) ; in.username = admin.username ; adminRestSession.put ( ( ( "/accounts/" + ( createUser ( ) . get ( ) ) ) + "/username" ) , in ) . assertConflict ( ) ; }
Source:
public void listTagsOfNonVisibleProjectWithApi ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tags ( ) . get ( ) ; }

Target:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tags ( ) . get ( ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , allUsersProvider , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change ) ; }
Source:
public java.lang.String buildCommand ( com.google.gerrit.httpd.raw.Label l ) { return "bazel build " + ( l.toString ( ) ) ; }

Target:
public java.lang.String buildCommand ( com.google.gerrit.httpd.raw.BazelBuild.Label l ) { return "bazel build " + ( l.toString ( ) ) ; }
Source:
com.google.gerrit.server.git.MetaDataUpdate create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.Repository db , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.BatchRefUpdate batch ) ;

Target:
com.google.gerrit.server.git.MetaDataUpdate create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.Repository repository , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.BatchRefUpdate batch ) ;
Source:
public void rebuildEmptySiteStartingWithNoteDbEnabled ( ) throws java.lang.Exception { setNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "RebuildNoteDb" , "-d" , sitePath , "--show-stack-trace" ) ; assertNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; }

Target:
public void rebuildEmptySiteStartingWithNoteDbEnabled ( ) throws java.lang.Exception { setNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; com.google.gerrit.acceptance.pgm.MigrateToNoteDbIT.runGerrit ( "MigrateToNoteDb" , "-d" , sitePath , "--show-stack-trace" ) ; assertNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; }
Source:
com.google.gerrit.server.patch.AddReviewer create ( com.google.gerrit.reviewdb.Change.Id changeId , java.util.Collection < java.lang.String > nameOrEmails ) ;

Target:
com.google.gerrit.server.patch.AddReviewer create ( com.google.gerrit.reviewdb.Change.Id changeId , java.util.Collection < java.lang.String > userNameOrEmailOrGroupNames , boolean confirmed ) ;
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.Account.Id owner ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.notedb.ChangeUpdate ( repo , LABEL_TYPES , c , owner , null ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.Account account ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.notedb.ChangeUpdate ( repoManager , accountCache , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , c , account , com.google.gerrit.server.util.TimeUtil.nowTs ( ) , com.google.gerrit.server.notedb.ChangeNotesTest.TZ ) ; }
Source:
public void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) throws com.google.gerrit.server.git.IntegrationException , java.io.IOException { args.mergeTip.moveTipTo ( toMerge , toMerge ) ; }

Target:
protected void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) throws com.google.gerrit.server.git.IntegrationException { args.mergeTip.moveTipTo ( amendGitlink ( toMerge ) , toMerge ) ; }
Source:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.util.Set < com.google.gerrit.reviewdb.Account.Id > > byEmail ( java.lang.String email ) ;
Source:
void addBranch ( com.google.gerrit.reviewdb.Project.NameKey projectName , java.lang.String branchName , java.lang.String startingRevision , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) ;

Target:
void addBranch ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String branchName , java.lang.String startingRevision , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.AddBranchResult > callback ) ;
Source:
public void createChangeWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo info = gApi.changes ( ) . create ( new com.google.gerrit.extensions.common.ChangeInput ( project.get ( ) , "master" , "empty change" ) ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.isPrivate ) . isNull ( ) ; }

Target:
public void createChangeWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo info = gApi.changes ( ) . create ( new com.google.gerrit.extensions.common.ChangeInput ( project2.get ( ) , "master" , "empty change" ) ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.isPrivate ) . isNull ( ) ; }
Source:
public com.google.gerrit.server.query.DataSource < com.google.gerrit.reviewdb.client.AccountGroup > getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticGroupIndex.QuerySource ( p , opts ) ; }

Target:
public com.google.gerrit.index.query.DataSource < com.google.gerrit.reviewdb.client.AccountGroup > getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticGroupIndex.QuerySource ( p , opts ) ; }
Source:
public net.sf.ehcache.statistics.sampled.SampledCacheStatistics getSampledCacheStatistics ( ) { return self.getSampledCacheStatistics ( ) ; }

Target:
public void removeCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self ( ) . removeCacheUsageListener ( cacheUsageListener ) ; }
Source:
public com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData ( classData.className , classData.annotationValue ) ; }

Target:
public com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData ( classData.className , classData.annotationValue , classData.interfaces ) ; }
Source:
private void display ( final com.google.gerrit.client.admin.ProjectDetail result ) { final com.google.gerrit.client.reviewdb.Project project = result.project ; setTitleText ( Util.M.project ( project.getName ( ) ) ) ; }

Target:
private void display ( final com.google.gerrit.client.admin.ProjectDetail result ) { final com.google.gerrit.client.reviewdb.Project project = result.project ; setPageTitle ( Util.M.project ( project.getName ( ) ) ) ; }
Source:
public com.google.gitiles.doc.html.HtmlBuilder space ( ) { finishActiveTag ( ) ; htmlBuf.append ( ' ' ) ; return this ; }

Target:
public com.google.gitiles.doc.html.HtmlBuilder space ( ) { finishActiveTag ( ) ; try { htmlBuf.append ( ' ' ) ; } catch ( java.io.IOException e ) { throw new com.google.gitiles.doc.RuntimeIOException ( e ) ; } return this ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableOnFailure.setEnabled ( true ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( id ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.client.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( id ) , db.get ( ) ) ; }
Source:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , pluginName , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public java.lang.String getCommentLinkName ( ) { java.lang.String ret ; ret = gerritConfig.getString ( pluginName , null , "commentlink" ) ; if ( ret == null ) { ret = pluginName ; } return ret ; }
Source:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) ;

Target:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.account.AuthMethod method ) ;
Source:
public boolean yesno ( java.lang.String fmt , java.lang.Object ... args ) { return true ; }

Target:
public java.lang.String readString ( java.lang.String def , java.lang.String fmt , java.lang.Object ... args ) { return def ; }
Source:
private void checkEnabled ( ) throws com.google.gerrit.extensions.restapi.NotImplementedException { if ( notesMigration.readChanges ( ) ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( "check not implemented for notedb" ) ; } }

Target:
private void checkEnabled ( ) throws com.google.gerrit.extensions.restapi.NotImplementedException { if ( notesMigration.readChanges ( ) ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( "check not implemented for NoteDb" ) ; } }
Source:
PatchSet.Id getRevision ( ) { return revision ; }

Target:
void resizeCodeMirror ( ) { int height = ( header.getOffsetHeight ( ) ) + ( getDiffTable ( ) . getHeaderHeight ( ) ) ; for ( net.codemirror.lib.CodeMirror cm : getCms ( ) ) { cm.adjustHeight ( height ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; loadRevisionInfo ( ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , side , line ) ; }

Target:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , revision , fileName , side , line ) ; }
Source:
public boolean isUseSignedOffBy ( ) { return useSignedOffBy ; }

Target:
public com.google.gerrit.reviewdb.client.Project.InheritedBoolean getUseSignedOffBy ( ) { return useSignedOffBy ; }
Source:
public final com.google.gerrit.server.git.MergeTip run ( final com.google.gerrit.server.git.CodeReviewCommit currentTip , final java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; return _run ( currentTip , toMerge ) ; }

Target:
public final com.google.gerrit.server.git.MergeTip run ( final com.google.gerrit.server.git.CodeReviewCommit currentTip , final java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; com.google.common.base.Preconditions.checkState ( ( ( args.caller ) != null ) ) ; return _run ( currentTip , toMerge ) ; }
Source:
private static void addLink ( final com.google.gwt.user.client.ui.MenuBar m , final java.lang.String text , final java.lang.String historyToken ) { m.addItem ( new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) ) ; }

Target:
private static void addLink ( final com.google.gerrit.client.ui.LinkMenuBar m , final java.lang.String text , final java.lang.String historyToken ) { m.addItem ( new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) ) ; }
Source:
public boolean failChangeWrites ( ) { return ( ! ( writeChanges ( ) ) ) && ( readChanges ( ) ) ; }

Target:
public boolean failChangeWrites ( ) { return ( ! ( rawWriteChangesSetting ( ) ) ) && ( readChanges ( ) ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.AllSingleListScreen o = ( ( com.google.gerrit.client.changes.AllSingleListScreen ) ( newScreen ) ) ; useLoadPrev = o.useLoadPrev ; pos = o.pos ; return this ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; }
Source:
void addOption ( com.google.gerrit.extensions.client.ListChangesOption o ) { json.addOption ( o ) ; }

Target:
void addOption ( com.google.gerrit.extensions.client.ListChangesOption o ) { options.add ( o ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , select ( ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.patches.UnifiedPatchScreen.TopView top = com.google.gerrit.client.Gerrit.getPatchScreenTopView ( ) ; com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.patches.UnifiedPatchScreen ( id , top , baseId ) ) ; }