auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount admin = accounts.admin ( ) ; adminSession = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; userSession = new com.google.gerrit.acceptance.RestSession ( server , user ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; branch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( project , "test" ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; try { com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project.get ( ) , null , true ) ; } finally { sshSession.close ( ) ; } adminSession.put ( ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches/" ) + ( branch.getShortName ( ) ) ) ) . consume ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount admin = accounts.admin ( ) ; adminSession = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; userSession = new com.google.gerrit.acceptance.RestSession ( server , user ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; branch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( project , "test" ) ; com.google.gerrit.acceptance.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; try { com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project.get ( ) , null , true ) ; } finally { sshSession.close ( ) ; } adminSession.put ( ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches/" ) + ( branch.getShortName ( ) ) ) ) . consume ( ) ; }
Source:
public static java.lang.String op ( java.lang.String name , java.lang.String value ) { if ( ( value.indexOf ( ' ' ) ) >= 0 ) { return ( ( name + ":\"" ) + value ) + "\"" ; } return ( name + ":" ) + value ; }

Target:
public static java.lang.String op ( java.lang.String op , java.lang.String value ) { if ( com.google.gerrit.common.PageLinks.isSingleWord ( value ) ) { return ( op + ":" ) + value ; } return ( ( op + ":\"" ) + value ) + "\"" ; }
Source:
public void validateLocalDomain ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( validator.isValid ( "foo@bar.local" ) ) . isTrue ( ) ; }

Target:
public void testCustomTopLevelDomain ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( validator.isValid ( "foo@bar.local" ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( validator.isValid ( "foo@bar.example" ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( validator.isValid ( "foo@example" ) ) . isTrue ( ) ; }
Source:
public void addOption ( com.google.gerrit.common.changes.ListChangesOption o ) { options.add ( o ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson addOption ( com.google.gerrit.common.changes.ListChangesOption o ) { options.add ( o ) ; return this ; }
Source:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.lib.ModeInjector ( ) . add ( getContentType ( info.meta_a ( ) ) ) . add ( getContentType ( info.meta_b ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }

Target:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , false ) . run ( ) ; } }
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.io.IOException { index ( changeDataFactory.create ( db , project , changeId ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , project , changeId ) ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
void onEditSetting ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { editPrefsAction.show ( ) ; }
Source:
public void deleteBranchByAdmin ( ) throws java.lang.Exception { assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertDeleteForbidden ( testBranch ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , dbProvider , id ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return change ; }

Target:
static com.google.gerrit.server.query.change.ChangeData createForTest ( com.google.gerrit.reviewdb.client.Change.Id id ) { return new com.google.gerrit.server.query.change.ChangeData ( null , null , null , null , null , null , id ) ; }
Source:
public void start ( ) { com.google.gerrit.server.index.GerritIndexStatus cfg = createIndexStatus ( ) ; for ( com.google.gerrit.server.index.IndexDefinition < ? , ? , ? > def : defs.values ( ) ) { initIndex ( def , cfg ) ; } }

Target:
public void start ( ) { com.google.gerrit.server.index.GerritIndexStatus cfg = createIndexStatus ( ) ; for ( com.google.gerrit.index.IndexDefinition < ? , ? , ? > def : defs.values ( ) ) { initIndex ( def , cfg ) ; } }
Source:
public void onFailure ( java.lang.Throwable caught ) { if ( ! ( failed ) ) { failed = true ; failedThrowable = caught ; } remaining.remove ( this ) ; this . applyAllFailed ( ) ; }

Target:
public void onSuccess ( T value ) { this . result = value ; success ( this ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { refreshObjectIds ( ) ; return newId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { if ( ( newId ) == null ) { newId = org.eclipse.jgit.lib.ObjectId.fromString ( newIdName ) ; } return newId ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 3 ) ; org.junit.Assert.assertEquals ( 2 , reviewers.size ( ) ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 3 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { group ( "users1" ) ; group ( "users2" ) ; group ( "users3" ) ; accounts.create ( "user1" , "user1@example.com" , "User1" , "users1" ) ; accounts.create ( "user2" , "user2@example.com" , "User2" , "users2" ) ; accounts.create ( "user3" , "user3@example.com" , "User3" , "users1" , "users2" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { group1 = group ( "users1" ) ; group ( "users2" ) ; group ( "users3" ) ; user1 = accounts.create ( "user1" , "user1@example.com" , "User1" , "users1" ) ; user2 = accounts.create ( "user2" , "user2@example.com" , "User2" , "users2" ) ; user3 = accounts.create ( "user3" , "user3@example.com" , "User3" , "users1" , "users2" ) ; }
Source:
public java.lang.Object getScreenCacheToken ( ) { return this ; }

Target:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.account.AccountSettings s = ( ( com.google.gerrit.client.account.AccountSettings ) ( newScreen ) ) ; initialTabToken = s.initialTabToken ; return this ; }
Source:
protected final com.google.gerrit.util.cli.CmdLineParser newCmdLineParser ( ) { final com.google.gerrit.util.cli.CmdLineParser parser = super . newCmdLineParser ( ) ; for ( com.google.gerrit.sshd.commands.ApproveOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }

Target:
protected final com.google.gerrit.util.cli.CmdLineParser newCmdLineParser ( java.lang.Object options ) { final com.google.gerrit.util.cli.CmdLineParser parser = super . newCmdLineParser ( options ) ; for ( com.google.gerrit.sshd.commands.ApproveOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }
Source:
void changeProjectSubmitType ( com.google.gerrit.client.reviewdb.Project.Id projectId , com.google.gerrit.client.reviewdb.Project.SubmitType newSubmitType , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void changeProjectSettings ( com.google.gerrit.client.reviewdb.Project update , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;
Source:
void setCanDelete ( boolean canDelete ) { this . canDelete = ( canDelete ) ? true : null ; }

Target:
public void setMatchRegex ( java.lang.String matchRegex ) { this . matchRegex = matchRegex ; }
Source:
void cacheVisibleTo ( com.google.gerrit.server.project.ChangeControl ctl ) { visibleTo = ctl.getCurrentUser ( ) ; changeControl = ctl ; }

Target:
void cacheVisibleTo ( com.google.gerrit.server.project.ChangeControl ctl ) { visibleTo = ctl.getUser ( ) ; changeControl = ctl ; }
Source:
void projectAccess ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;

Target:
void changeProjectSettings ( com.google.gerrit.reviewdb.client.Project update , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;
Source:
public com.google.gerrit.extensions.api.projects.BranchInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return resource ( ) . getBranchInfo ( ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot read branch" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.projects.BranchInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return resource ( ) . getBranchInfo ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot read branch" , e ) ; } }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHMilestone createMilestone ( java.lang.String title , java.lang.String description ) throws java.io.IOException { return ghRepository.createMilestone ( title , description ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHMilestone createMilestone ( java.lang.String title , java.lang.String description ) throws java.io.IOException { return ghRepository.createMilestone ( title , description ) ; }
Source:
public final void insert ( final java.lang.Iterable < E > instances , final com.google.gwtorm.client.Transaction txn ) throws com.google.gwtorm.client.OrmException { if ( txn != null ) { cast ( txn ) . queueInsert ( this , instances ) ; } else { insert ( instances ) ; } }

Target:
public final void update ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doUpdate ( instances ) ; }
Source:
private void attachComments ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { in.drafts ( ReviewInput.DraftHandling.KEEP ) ; in.comments ( result ) ; }

Target:
boolean hasMessage ( ) { return ! ( message.getText ( ) . trim ( ) . isEmpty ( ) ) ; }
Source:
public void usernamePatternCanUploadToAnyRef ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/users/${username}/*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , "a-registered-user" ) ; assertCanUpload ( u ) ; }

Target:
public void usernamePatternCanUploadToAnyRef ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/users/${username}/*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , "a-registered-user" ) ; assertCanUpload ( u ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { }

Target:
public void onFailure ( java.lang.Throwable caught ) { loaded.remove ( revisionNumber ) ; loaded.removeAll ( toLoad ) ; toLoad.clear ( ) ; ( active ) -- ; }
Source:
public void onPreMerge ( com.google.gerrit.server.git.CodeReviewCommit commit , com.google.gerrit.server.project.ProjectState destProject , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch ) throws com.google.gerrit.server.git.validators.MergeValidationException { for ( com.google.gerrit.server.git.validators.MergeValidationListener validator : mergeValidationListeners ) { validator.onPreMerge ( commit , destProject , destBranch ) ; } }

Target:
public void onPreMerge ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.git.CodeReviewCommit commit , com.google.gerrit.server.project.ProjectState destProject , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId ) throws com.google.gerrit.server.git.validators.MergeValidationException { for ( com.google.gerrit.server.git.validators.MergeValidationListener validator : mergeValidationListeners ) { validator.onPreMerge ( repo , commit , destProject , destBranch , patchSetId ) ; } }
Source:
public static void confirmEmail ( java.lang.String token , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.config.ConfigServerApi.EmailConfirmationInput input = com.google.gerrit.client.config.ConfigServerApi.EmailConfirmationInput.create ( ) ; input.setToken ( token ) ; new com.google.gerrit.client.rpc.RestApi ( "config/server/email.confirm" ) . put ( input , cb ) ; }

Target:
public static void confirmEmail ( java.lang.String token , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.config.ConfigServerApi.EmailConfirmationInput input = com.google.gerrit.client.config.ConfigServerApi.EmailConfirmationInput.create ( ) ; input.setToken ( token ) ; new com.google.gerrit.client.rpc.RestApi ( "/config/server/email.confirm" ) . put ( input , cb ) ; }
Source:
public void error ( java.lang.String message ) { throw new com.google.gerrit.pgm.util.Die ( ( "Cannot open log file: " + message ) ) ; }

Target:
public void error ( java.lang.String message ) { throw new com.google.gerrit.common.Die ( ( "Cannot open log file: " + message ) ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { if ( com.google.gerrit.client.changes.SubmitFailureDialog.isConflict ( err ) ) { new com.google.gerrit.client.changes.SubmitFailureDialog ( err.getMessage ( ) ) . center ( ) ; } else { super . onFailure ( err ) ; } goChange ( ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { super . onFailure ( caught ) ; enableForm ( true ) ; }
Source:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( com.google.gerrit.server.schema.SchemaCreator schemaCreator ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaCreator ) ; }

Target:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( com.google.gerrit.server.schema.SchemaCreator schemaCreator , com.google.gerrit.server.index.SingleVersionModule.SingleVersionListener singleVersionListener ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaCreator , singleVersionListener ) ; }
Source:
public void start ( ) { }

Target:
public void start ( ) { indexes.setSearchIndex ( this ) ; indexes.addWriteIndex ( this ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi base ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( project.get ( ) ) . view ( "dashboards" ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi base ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.client.rpc.RestApi ( "projects" ) . id ( project.get ( ) ) . view ( "dashboards" ) ; }
Source:
public java.lang.Integer apply ( java.lang.String stringVal ) { return java.lang.Integer.parseInt ( stringVal ) ; }

Target:
public java.lang.String [ ] getStringList ( java.lang.String name ) { return cfg.getStringList ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name ) ; }
Source:
private com.google.gerrit.extensions.common.ProblemInfo problem ( java.lang.String msg ) { com.google.gerrit.extensions.common.ProblemInfo p = new com.google.gerrit.extensions.common.ProblemInfo ( ) ; p.message = msg ; problems.add ( p ) ; return p ; }

Target:
private com.google.gerrit.extensions.common.ProblemInfo problem ( java.lang.String msg ) { com.google.gerrit.extensions.common.ProblemInfo p = new com.google.gerrit.extensions.common.ProblemInfo ( ) ; p.message = com.google.common.base.Preconditions.checkNotNull ( msg ) ; problems.add ( p ) ; return p ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteBranch.apply ( resource ( ) , new com.google.gerrit.server.project.DeleteBranch.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete branch" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteBranch.apply ( resource ( ) , new com.google.gerrit.server.project.DeleteBranch.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete branch" , e ) ; } }
Source:
public void insertComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { insertDraftComment ( comment ) ; } else { insertPublishedComment ( comment ) ; } }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { deleteDraftComment ( comment ) ; } else { throw new java.lang.IllegalArgumentException ( "Cannot delete a published comment." ) ; } }
Source:
void onReviewMode ( com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.REVIEW ; refreshFileTable ( ) ; editMode.setVisible ( true ) ; reviewMode.setVisible ( false ) ; }

Target:
void onReviewMode ( com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.REVIEW ; refreshFileTable ( ) ; editMode.setVisible ( true ) ; addFile.setVisible ( false ) ; reviewMode.setVisible ( false ) ; }
Source:
protected java.lang.String getName ( ) { return com.google.common.base.MoreObjects.firstNonNull ( name , com.google.gerrit.testutil.ConfigSuite.DEFAULT ) ; }

Target:
protected java.lang.String getName ( ) { return com.google.common.base.MoreObjects.firstNonNull ( name , com.google.gerrit.testing.ConfigSuite.DEFAULT ) ; }
Source:
boolean canForceEditTopicName ( ) { return canForcePerform ( Permission.EDIT_TOPIC_NAME ) ; }

Target:
boolean canForceEditTopicName ( ) { return canPerform ( Permission.EDIT_TOPIC_NAME , false , true ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user ) { return user.newRefLogIdent ( com.google.gerrit.common.TimeUtil.nowTs ( ) , tz ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user , java.sql.Timestamp when ) { return user.newRefLogIdent ( when , tz ) ; }
Source:
public long longValue ( ) { return ( ( long ) ( val ) ) ; }

Target:
public int intValue ( ) { return ( ( int ) ( val ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.nextPatchSetId ( ) ; return change ; }

Target:
private void preMerge ( final com.google.gerrit.server.git.SubmitStrategy strategy ) throws com.google.gerrit.server.git.MergeException { openBranch ( ) ; validateChangeList ( ) ; mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }
Source:
public void destroy ( ) { com.google.gerrit.git.MergeQueue.terminate ( ) ; super . destroy ( ) ; }

Target:
public void destroy ( ) { com.google.gerrit.git.WorkQueue.terminate ( ) ; super . destroy ( ) ; }
Source:
public void branchAlreadyExists_Conflict ( ) throws java.lang.Exception { assertCreateSucceeds ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; }

Target:
public void createBranchByAdmin ( ) throws java.lang.Exception { assertCreateSucceeds ( testBranch ) ; }
Source:
private void wrapChildren ( java.lang.String tag , org.pegdown.ast.SuperNode node ) { html.open ( tag ) ; visitChildren ( node ) ; html.close ( tag ) ; }

Target:
private void wrapChildren ( java.lang.String tag , org.commonmark.node.Node node ) { html.open ( tag ) ; visitChildren ( node ) ; html.close ( tag ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.lib.ModeInjector ( ) . add ( getContentType ( info.meta_a ( ) ) ) . add ( getContentType ( info.meta_b ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.mode.ModeInjector ( ) . add ( getContentType ( info.meta_a ( ) ) ) . add ( getContentType ( info.meta_b ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }

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 void testEvictCacheFailed ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , false , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isFalse ( ) ; }

Target:
public void testEvictCacheThrowsException ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.FAIL_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isFalse ( ) ; }
Source:
public void run ( ) { rc.processCommands ( commands ) ; }

Target:
public void run ( ) { rc.processCommands ( commands , progress ) ; }
Source:
protected int getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return changeData.changedLines ( ) . insertions ; }

Target:
protected java.lang.Integer getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return ChangeField.ADDED.get ( changeData , null ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountSecurityImpl ( ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountSecurityImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.audit.AuditListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.audit.GroupMemberAuditListener.class ) ; bind ( com.google.gerrit.server.audit.AuditService.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.audit.AuditListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.audit.group.GroupAuditListener.class ) ; bind ( com.google.gerrit.server.audit.AuditService.class ) ; }
Source:
public boolean match ( final T object ) throws com.google.gwtorm.server.OrmException { return ! ( that.match ( object ) ) ; }

Target:
public boolean isMatchable ( ) { return that.isMatchable ( ) ; }
Source:
private static org.eclipse.jgit.util.TemporaryBuffer.Heap heap ( int max ) { return new org.eclipse.jgit.util.TemporaryBuffer.Heap ( max ) ; }

Target:
private static org.eclipse.jgit.util.TemporaryBuffer.Heap heap ( int est , int max ) { return new org.eclipse.jgit.util.TemporaryBuffer.Heap ( est , max ) ; }
Source:
public org.apache.sshd.server.Command get ( ) { return new com.google.gerrit.sshd.AliasCommand ( root , currentUser , command ) ; }

Target:
public org.apache.sshd.server.Command get ( ) { return new com.google.gerrit.sshd.AliasCommand ( root , permissionBackend , currentUser , command ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { k.setGroupOwner ( newValue ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveOwner.setEnabled ( false ) ; }
Source:
public static java.lang.String getAuthorization ( ) { return com.google.gerrit.client.Gerrit.authorization ; }

Target:
public static java.lang.String getXGerritAuth ( ) { return com.google.gerrit.client.Gerrit.xGerritAuth ; }
Source:
private void initNoMembersInfo ( ) { noMembersInfo = new com.google.gwt.user.client.ui.FlowPanel ( ) ; noMembersInfo.setVisible ( false ) ; noMembersInfo.add ( new com.google.gerrit.client.ui.SmallHeading ( Util.C.noMembersInfo ( ) ) ) ; add ( noMembersInfo ) ; }

Target:
private void initNoMembersInfo ( ) { noMembersInfo = new com.google.gwt.user.client.ui.FlowPanel ( ) ; noMembersInfo.setVisible ( false ) ; noMembersInfo.add ( new com.google.gerrit.client.ui.SmallHeading ( AdminConstants.I.noMembersInfo ( ) ) ) ; add ( noMembersInfo ) ; }
Source:
public boolean isDone ( ) { if ( super . isDone ( ) ) { return true ; } else if ( isSearcherCurrent ( ) ) { set ( null ) ; return true ; } return false ; }

Target:
public boolean isDone ( ) { if ( super . isDone ( ) ) { return true ; } else if ( isGenAvailableNowForCurrentSearcher ( ) ) { set ( null ) ; return true ; } return false ; }
Source:
public java.lang.Long apply ( java.lang.String stringVal ) { return java.lang.Long.parseLong ( stringVal ) ; }

Target:
public long getLong ( java.lang.String name , long defaultValue ) { return cfg.getLong ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name , defaultValue ) ; }
Source:
public static void main ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { com.google.gerrit.server.GerritServer.getInstance ( ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; }

Target:
private static void mainImpl ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { com.google.gerrit.server.GerritServer.getInstance ( ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; }
Source:
private static boolean match ( java.lang.String value , java.lang.String pattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( pattern ) . match ( value , null ) ; }

Target:
private static boolean match ( java.lang.String value , java.lang.String pattern , boolean refMatcher ) { if ( refMatcher ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( pattern ) . match ( value , null ) ; } else { return java.util.regex.Pattern.matches ( pattern , value ) ; } }
Source:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.change.GetChange.cache ( json.format ( rsrc ) ) ; }
Source:
public boolean isOwner ( ) { return ( controlForRef ( RefRight.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( controlForRef ( AccessSection.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
public synchronized void stop ( ) { for ( com.google.gerrit.server.plugins.Plugin p : running.values ( ) ) { p.stop ( ) ; } running.clear ( ) ; }

Target:
public void stop ( ) { scanner.end ( ) ; synchronized ( this ) { for ( com.google.gerrit.server.plugins.Plugin p : running.values ( ) ) { p.stop ( ) ; } running.clear ( ) ; broken.clear ( ) ; } }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? executor.submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( change.getId ( ) , changeMessages.keySet ( ) , patchSets.keySet ( ) , patchSetApprovals.keySet ( ) , patchLineComments.keySet ( ) ) ; }

Target:
private com.google.common.collect.Multiset < com.google.gerrit.server.notedb.ChangeBundle.NormalizedChangeMessage > normalizeChangeMessages ( ) { com.google.common.collect.Multiset < com.google.gerrit.server.notedb.ChangeBundle.NormalizedChangeMessage > normalized = com.google.common.collect.TreeMultiset.create ( ) ; for ( com.google.gerrit.reviewdb.client.ChangeMessage msg : changeMessages.values ( ) ) { normalized.add ( com.google.gerrit.server.notedb.ChangeBundle.NormalizedChangeMessage.create ( msg ) ) ; } return normalized ; }
Source:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.CommentInfo > > comments ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.d47190 Revert ; }

Target:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.CommentInfo > > comments ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { setFocus ( true ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { focusHint ( ) ; prevText = getText ( ) ; isFocused = true ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.RefRight > getLocalRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id action ) { return com.google.gerrit.server.project.ProjectState.filter ( getLocalRights ( ) , action ) ; }

Target:
public com.google.gerrit.reviewdb.Project getProject ( ) { return getConfig ( ) . getProject ( ) ; }
Source:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS account_patch_reviews (" + ( ( ( ( ( ( "account_id INTEGER DEFAULT 0 NOT NULL, " + "change_id INTEGER DEFAULT 0 NOT NULL, " ) + "patch_set_id INTEGER DEFAULT 0 NOT NULL, " ) + "file_name VARCHAR(4096) DEFAULT '' NOT NULL, " ) + "CONSTRAINT primary_key_account_patch_reviews " ) + "PRIMARY KEY (account_id, change_id, patch_set_id, file_name)" ) + ")" ) ) ) ; }

Target:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS account_patch_reviews (" + ( ( ( ( ( ( "account_id INTEGER DEFAULT 0 NOT NULL, " + "change_id INTEGER DEFAULT 0 NOT NULL, " ) + "patch_set_id INTEGER DEFAULT 0 NOT NULL, " ) + "file_name VARCHAR(4096) DEFAULT '' NOT NULL, " ) + "CONSTRAINT primary_key_account_patch_reviews " ) + "PRIMARY KEY (change_id, patch_set_id, account_id, file_name)" ) + ")" ) ) ) ; }
Source:
public void testBadEventAndNotForwarded ( ) throws java.lang.Exception { setUpMocks ( false , false ) ; eventHandler.onEvent ( event ) ; verifyAll ( ) ; }

Target:
public void testBadEventAndItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }
Source:
public void execute ( ) { if ( ( cmA ) != null ) { cmA.setOption ( "viewportMargin" , 10 ) ; } if ( ( cmB ) != null ) { cmB.setOption ( "viewportMargin" , 10 ) ; } resizeCodeMirror ( ) ; }

Target:
public void run ( ) { fixScroll ( cmA ) ; }
Source:
public java.nio.file.FileSystem createFileSystem ( org.apache.sshd.common.Session session ) throws java.io.IOException { return java.nio.file.FileSystems.getDefault ( ) ; }

Target:
public org.apache.sshd.common.file.SshFile getFile ( org.apache.sshd.common.file.SshFile baseDir , java.lang.String file ) { return null ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( java.lang.String changeId ) throws com.google.gwtorm.server.OrmException { return db.patchSets ( ) . get ( getCurrentPatchSetId ( changeId ) ) ; }

Target:
private static void assertModified ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; org.junit.Assert.assertEquals ( ChangeType.MODIFIED , e.getChangeType ( ) ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( getChange ( ) . getId ( ) ) ; }

Target:
protected Project.NameKey getProjectName ( ) { return com.google.gerrit.server.notedb.ChangeUpdate.getProjectName ( ctl ) ; }
Source:
static java.lang.String trimLeadingSlash ( java.lang.String str ) { com.google.common.base.Preconditions.checkArgument ( str.startsWith ( "/" ) , "expected string starting with a slash: %s" , str ) ; return str.substring ( 1 ) ; }

Target:
private static java.lang.String checkLeadingSlash ( java.lang.String str ) { com.google.common.base.Preconditions.checkArgument ( str.startsWith ( "/" ) , "expected string starting with a slash: %s" , str ) ; return str ; }
Source:
protected void ccExistingReviewers ( ) { ccApprovals ( false ) ; }

Target:
private com.google.common.collect.SetMultimap < com.google.gerrit.server.ApprovalsUtil.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > getReviewers ( ) throws com.google.gwtorm.server.OrmException { if ( ( reviewers ) == null ) { reviewers = args.approvalsUtil.getReviewers ( args.db.get ( ) , change.getId ( ) ) ; } return reviewers ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . screenRegex ( ".*" , new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . screenRegex ( "p/(.*)" , new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen.Factory ( ) ) ; }
Source:
public synchronized void sendRedirect ( java.lang.String msg ) { status = SC_FOUND ; committed = true ; }

Target:
public synchronized void sendRedirect ( java.lang.String loc ) { status = SC_FOUND ; setHeader ( com.google.common.net.HttpHeaders.LOCATION , loc ) ; committed = true ; }
Source:
public void remove ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
private java.io.File gitDirOf ( com.google.gerrit.reviewdb.Project.NameKey name ) { return new java.io.File ( getBasePath ( ) , name.get ( ) ) ; }
Source:
public FirstWebLoginListener ( com.google.gerrit.server.plugins.PluginLoader pluginLoader , @ com.google.gerrit.extensions.annotations.PluginData java.nio.file.Path pluginData ) { }

Target:
public void onLogout ( com.google.gerrit.server.IdentifiedUser user , javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) { }
Source:
public void setNew_MethodNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.UsernameInput in = new com.google.gerrit.extensions.common.UsernameInput ( ) ; in.username = "newUsername" ; adminRestSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) , in ) . assertMethodNotAllowed ( ) ; }

Target:
public void setNew_MethodNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.accounts.UsernameInput in = new com.google.gerrit.extensions.api.accounts.UsernameInput ( ) ; in.username = "newUsername" ; adminRestSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) , in ) . assertMethodNotAllowed ( ) ; }
Source:
public abstract java.lang.String getProjectDescription ( final java.lang.String name ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;

Target:
public abstract java.util.SortedSet < com.google.gerrit.reviewdb.Project.NameKey > list ( ) ;
Source:
public com.google.gerrit.client.workflow.CategoryFunction getFunction ( ) { return com.google.gerrit.client.workflow.CategoryFunction.forName ( functionName ) ; }

Target:
public com.google.gerrit.client.workflow.CategoryFunction getFunction ( ) { final com.google.gerrit.client.workflow.CategoryFunction r = com.google.gerrit.client.workflow.CategoryFunction.forName ( functionName ) ; return r != null ? r : new com.google.gerrit.client.workflow.NoOpFunction ( ) ; }
Source:
private org.eclipse.jgit.lib.Repository getRepository ( ) { try { return args.server.openRepository ( projectName ) ; } catch ( org.eclipse.jgit.errors.RepositoryNotFoundException e ) { return null ; } }

Target:
private org.eclipse.jgit.lib.Repository getRepository ( ) { try { return args.server.openRepository ( projectState.getProject ( ) . getNameKey ( ) ) ; } catch ( org.eclipse.jgit.errors.RepositoryNotFoundException e ) { return null ; } }
Source:
public void execute ( ) { final java.lang.String base = com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ; Window.Location.assign ( ( base + "__BecomeAnyAccount" ) ) ; }

Target:
public void execute ( ) { final java.lang.String base = com.google.gwt.core.client.GWT.getHostPageBaseURL ( ) ; Window.Location.assign ( ( base + "__BecomeAnyAccount" ) ) ; }
Source:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource resource ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Topic" ) . setVisible ( resource.getControl ( ) . canEditTopicName ( ) ) ; }

Target:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Topic" ) . setVisible ( rsrc.permissions ( ) . testOrFalse ( ChangePermission.EDIT_TOPIC_NAME ) ) ; }
Source:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style ) { this . style = style ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }

Target:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacy_id ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }
Source:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > byEmail ( java.lang.String email ) throws java.io.IOException ;

Target:
default com.google.common.collect.ImmutableSet < com.google.gerrit.server.account.externalids.ExternalId > byEmail ( java.lang.String email ) throws java.io.IOException { return byEmails ( email ) . get ( email ) ; }
Source:
public void testEvictCacheOK ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isTrue ( ) ; }

Target:
public void testEvictCacheOK ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isTrue ( ) ; }
Source:
public void bumpLastUpdatedOn ( boolean bump ) { bumpLastUpdatedOn = bump ; }

Target:
public void dontBumpLastUpdatedOn ( ) { bumpLastUpdatedOn = false ; }
Source:
public void registerCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self.registerCacheUsageListener ( cacheUsageListener ) ; }

Target:
public java.lang.Object getInternalContext ( ) { return self ( ) . getInternalContext ( ) ; }
Source:
public void registerKeys ( ) { super . registerKeys ( ) ; contentTable.setRegisterKeys ( contentTable.isVisible ( ) ) ; }

Target:
public void registerKeys ( ) { super . registerKeys ( ) ; contentTable.setRegisterKeys ( contentTable.isVisible ( ) ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysAction ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { com.google.common.base.Preconditions.checkState ( ( ( change ) != null ) , "getChange() only valid after creating change" ) ; return change ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { display ( result ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.ProjectDetail > event ) { display ( event.getValue ( ) ) ; }
Source:
public com.google.gerrit.server.change.RevisionResource getRevisionResource ( java.lang.String project , int changeNumber ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { HEAD ( d6ab94 ) ; }

Target:
public void mergeReview ( java.lang.String project , int number ) throws java.lang.Exception { submitter.apply ( getRevisionResource ( project , number ) , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ) ; }
Source:
public void GetDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = get ( ) ; assertPrefsEqual ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }

Target:
public void getDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = get ( ) ; assertPrefsEqual ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi revision ( int id , java.lang.String revision ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( revision ) ; }

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:
private void display ( final com.google.gerrit.client.data.SideBySidePatchDetail detail ) { sbsTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; sbsTable.display ( detail ) ; sbsTable.finishDisplay ( true ) ; }

Target:
private void showSideBySide ( final com.google.gerrit.client.data.SideBySidePatchDetail r ) { sbsTable.setAccountInfoCache ( r.getAccounts ( ) ) ; sbsTable.display ( r ) ; sbsTable.finishDisplay ( true ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { java.lang.String url = getBranchUrl ( projectName , branchName ) ; return url == null ? null : new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , url , Target.SELF ) ; }
Source:
public static java.lang.String permalink ( final com.google.gerrit.client.reviewdb.Change.Id c ) { return ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) + ( c.get ( ) ) ; }

Target:
public static java.lang.String permalink ( final com.google.gerrit.client.reviewdb.Change.Id c ) { return ( com.google.gwt.core.client.GWT.getHostPageBaseURL ( ) ) + ( c.get ( ) ) ; }