auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
public void setCommandLine ( final java.lang.String line ) { this . commandLine = line ; }

Target:
public void setArguments ( final java.lang.String [ ] argv ) { this . argv = argv ; }
Source:
public final native com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.ConfigInfo.ConfigParameterInfo > pluginConfigParameter ( java.lang.String p ) ;

Target:
public final native com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.projects.ConfigInfo.ConfigParameterInfo > pluginConfig ( java.lang.String p ) ;
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.Account result ) { if ( ! ( isAttached ( ) ) ) { return ; } display ( result ) ; haveAccount = true ; postLoad ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.reviewdb.client.Account result ) { if ( ! ( isAttached ( ) ) ) { return ; } display ( com.google.gerrit.client.FormatUtil.asInfo ( result ) ) ; haveAccount = true ; postLoad ( ) ; }
Source:
private void addWebLink ( java.lang.String href , java.lang.String name ) { com.google.gwt.user.client.ui.Anchor a = new com.google.gwt.user.client.ui.Anchor ( ) ; a.setHref ( href ) ; a.setText ( name ) ; com.google.gwt.dom.client.Element el = a.getElement ( ) ; webLinkCell.appendChild ( el ) ; }

Target:
private void addWebLink ( java.lang.String href , java.lang.String name ) { com.google.gwt.dom.client.AnchorElement a = com.google.gwt.user.client.DOM.createAnchor ( ) . cast ( ) ; a.setHref ( href ) ; a.setInnerText ( name ) ; webLinkCell.appendChild ( a ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return controlFor ( project ) . isVisible ( ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( shouldReplicate ( projectControl ) ) && ( ( PushOne.ALL_REFS.equals ( ref ) ) || ( projectControl.controlForRef ( ref ) . isVisible ( ) ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( ) . run ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > in = result.get ( path ) ; if ( in != null ) { addAllToCommentList ( in , toDrafts ) ; } }
Source:
public java.io.File getBasePath ( ) { return repoManager.getBasePath ( ) ; }

Target:
public java.io.File getBasePath ( ) { return repoManager.getBasePath ( ) . toFile ( ) ; }
Source:
public com.google.gerrit.extensions.common.CommitInfo commit ( boolean addLinks ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public com.google.gerrit.extensions.common.CommitInfo commit ( boolean addLinks ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public boolean isLdapAuthType ( ) { return ( ( authType ) == ( com.google.gerrit.reviewdb.client.AuthType.LDAP ) ) || ( ( authType ) == ( com.google.gerrit.reviewdb.client.AuthType.LDAP_BIND ) ) ; }

Target:
public boolean isLdapAuthType ( ) { return ( ( authType ) == ( com.google.gerrit.extensions.client.AuthType.LDAP ) ) || ( ( authType ) == ( com.google.gerrit.extensions.client.AuthType.LDAP_BIND ) ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user , java.sql.Timestamp when ) { return user.newRefLogIdent ( when , tz ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( java.sql.Timestamp timestamp ) { com.google.gerrit.server.IdentifiedUser user = currentUser.get ( ) . asIdentifiedUser ( ) ; return user.newRefLogIdent ( timestamp , tz ) ; }
Source:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( key , repository , project , branch , files ) ; }

Target:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( accountCache , accounts , key , repository , project , branch , files ) ; }
Source:
protected com.google.gwtorm.data.PhoneBookDb openAndCreate ( ) throws com.google.gwtorm.client.OrmException { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; schema.createSchema ( ) ; return schema ; }

Target:
protected com.google.gwtorm.data.PhoneBookDb openAndCreate ( ) throws com.google.gwtorm.client.OrmException { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; schema.updateSchema ( ) ; return schema ; }
Source:
protected void loadPrev ( ) { Util.LIST_SVC.byProjectOpenPrev ( projectKey , pos , pageSize , new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.data.SingleListChangeInfo > ( ) { public void onSuccess ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; } } ) ; }

Target:
protected void loadPrev ( ) { Util.LIST_SVC.byProjectOpenPrev ( projectKey , pos , pageSize , loadCallback ( ) ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHContentUpdateResponse createContent ( java.lang.String content , java.lang.String commitMessage , java.lang.String path ) throws java.io.IOException { return ghRepository.createContent ( content , commitMessage , path ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHContentUpdateResponse createContent ( java.lang.String content , java.lang.String commitMessage , java.lang.String path ) throws java.io.IOException { return ghRepository.createContent ( content , commitMessage , path ) ; }
Source:
protected com.google.gwtjsonrpc.server.SignedToken xsrfInit ( ) throws com.google.gwtjsonrpc.server.XsrfException { return new com.google.gwtjsonrpc.server.SignedToken ( ( ( 4 * 60 ) * 60 ) ) ; }

Target:
protected com.google.gwtjsonrpc.server.SignedToken createXsrfSignedToken ( ) throws com.google.gwtjsonrpc.server.XsrfException { return new com.google.gwtjsonrpc.server.SignedToken ( ( ( 4 * 60 ) * 60 ) ) ; }
Source:
private org.spearce.jgit.lib.ObjectId emptyTree ( ) throws java.io.IOException { return new org.spearce.jgit.lib.ObjectWriter ( git ) . writeCanonicalTree ( new byte [ 0 ] ) ; }

Target:
private com.google.gerrit.server.patch.PatchList listFor ( final com.google.gerrit.server.patch.PatchListKey key ) { return patchListCache.get ( key ) ; }
Source:
public com.google.gerrit.server.patch.DiffSummary call ( ) throws java.lang.Exception { com.google.gerrit.server.patch.PatchList patchList = patchListCache.get ( key , project ) ; return com.google.gerrit.server.patch.DiffSummaryLoader.toDiffSummary ( patchList ) ; }

Target:
public com.google.gerrit.server.patch.DiffSummary call ( ) throws java.lang.Exception { com.google.gerrit.server.patch.PatchList patchList = patchListCache.get ( key.toPatchListKey ( ) , project ) ; return com.google.gerrit.server.patch.DiffSummaryLoader.toDiffSummary ( patchList ) ; }
Source:
com.google.gerrit.server.index.ChangeIndexer getChangeIndexer ( com.google.gerrit.server.index.ChangeIndexer.Factory factory , com.google.gerrit.server.index.IndexCollection indexes ) { return factory.create ( indexes ) ; }

Target:
com.google.gerrit.server.index.account.AccountIndexer getAccountIndexer ( com.google.gerrit.server.index.account.AccountIndexerImpl.Factory factory , com.google.gerrit.server.index.account.AccountIndexCollection indexes ) { return factory.create ( indexes ) ; }
Source:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box ) { host.diffTable.onRemoveDraftBox ( box ) ; }

Target:
private com.google.gerrit.client.diff.CommentGroup newGroup ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return new com.google.gerrit.client.diff.CommentGroup ( this , host.getCmFromSide ( side ) , line ) ; }
Source:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestUpdate maniphestUpdate ( int taskId , java.lang.Iterable < java.lang.String > projects ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestUpdate ( taskId , null , projects ) ; }

Target:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestEdit maniphestEdit ( int taskId , java.lang.Iterable < java.lang.String > projects ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestEdit ( taskId , null , projects ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type ) ; }
Source:
public AccountExternalId.Key apply ( com.google.gerrit.server.git.gpg.Fingerprint fp ) { return toExtIdKey ( fp.get ( ) ) ; }

Target:
public AccountExternalId.Key apply ( com.google.gerrit.gpg.Fingerprint fp ) { return toExtIdKey ( fp.get ( ) ) ; }
Source:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "hello-revision" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloRevisionAction.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "hello-project" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloProjectAction.class ) ; }

Target:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "hello-revision" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloRevisionAction.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "hello-project" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloProjectAction.class ) ; get ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "greetings" ) . to ( com.googlesource.gerrit.plugins.cookbook.Greetings.class ) ; }
Source:
public < T > java.util.Enumeration < T > resources ( java.lang.Class < ? extends T > resourceClass ) { return java.util.Collections.emptyEnumeration ( ) ; }

Target:
private java.lang.String relativePathOf ( java.nio.file.Path path ) { return path.toFile ( ) . getAbsolutePath ( ) . substring ( basicPathLength ) ; }
Source:
public void restore ( com.google.gerrit.extensions.api.changes.RestoreInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { restore.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot restore change" , e ) ; } }

Target:
public void restore ( com.google.gerrit.extensions.api.changes.RestoreInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { restore.apply ( change , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot restore change" , e ) ; } }
Source:
public static java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > getPossibleStatus ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) { java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > s = com.google.gerrit.server.index.change.IndexRewriter.extractStatus ( in ) ; return s != null ? s : java.util.EnumSet.allOf ( com.google.gerrit.reviewdb.client.Change.Status.class ) ; }

Target:
public static java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > getPossibleStatus ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) { java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > s = com.google.gerrit.server.index.change.ChangeIndexRewriter.extractStatus ( in ) ; return s != null ? s : java.util.EnumSet.allOf ( com.google.gerrit.reviewdb.client.Change.Status.class ) ; }
Source:
public void printJson ( java.io.PrintWriter out ) { new com.google.gson.Gson ( ) . toJson ( this , com.googlesource.gerrit.plugins.github.git.GitJobStatus.class , new com.google.gson.stream.JsonWriter ( out ) ) ; }

Target:
public void printJson ( java.io.PrintWriter out ) throws java.io.IOException { try ( com.google.gson.stream.JsonWriter writer = new com.google.gson.stream.JsonWriter ( out ) ) { new com.google.gson.Gson ( ) . toJson ( this , com.googlesource.gerrit.plugins.github.git.GitJobStatus.class , writer ) ; } }
Source:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( pred , new com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate ( db , notesFactory , changeControlFactory , userProvider.get ( ) ) , start ) ; }

Target:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( pred , new com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate ( db , notesFactory , changeControlFactory , userProvider.get ( ) , permissionBackend ) , start ) ; }
Source:
public static com.google.gerrit.server.account.externalids.ExternalId createWithEmail ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , null ) ; }

Target:
static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId blobId ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) , blobId ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.storage.dfs.DfsRepository > ( new org.eclipse.jgit.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }
Source:
protected abstract < V > boolean isDirty ( java.util.Collection < com.google.gerrit.server.index.VersionManager.Version < V > > inUse , com.google.gerrit.server.index.VersionManager.Version < V > v ) ;

Target:
private < V > boolean isDirty ( java.util.Collection < com.google.gerrit.server.index.VersionManager.Version < V > > inUse , com.google.gerrit.server.index.VersionManager.Version < V > v ) { return ( ! ( inUse.contains ( v ) ) ) && ( v.exists ) ; }
Source:
public boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ) && ( canWrite ( ) ) ; }

Target:
public boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
protected void run ( ) { stdout.print ( "Hello, example administrator\n" ) ; }

Target:
protected void run ( ) { while ( ( ( count ) -- ) > 0 ) { stdout.print ( "Hello, example administrator\n" ) ; } }
Source:
public static boolean isSignedIn ( ) { return ( com.google.gerrit.client.Gerrit.getUserAccount ( ) ) != null ; }

Target:
public static boolean isSignedIn ( ) { return ( com.google.gerrit.client.Gerrit.xGerritAuth ) != null ; }
Source:
private static java.lang.String tempNameFor ( java.lang.String name ) { java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat ( "yyMMdd_HHmm" ) ; return ( ( ( "plugin_" + name ) + "_" ) + ( fmt.format ( new java.util.Date ( ) ) ) ) + "_" ; }

Target:
private static java.lang.String tempNameFor ( java.lang.String name ) { java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat ( "yyMMdd_HHmm" ) ; return ( ( ( ( com.google.gerrit.server.plugins.PluginLoader.PLUGIN_TMP_PREFIX ) + name ) + "_" ) + ( fmt.format ( new java.util.Date ( ) ) ) ) + "_" ; }
Source:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ) ; }
Source:
public void addReviewerToReviewableChangeInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerToReviewableChangeInReviewDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
public java.lang.String myUrl ( ) { throw new java.lang.UnsupportedOperationException ( "peerInfo.jgroups.myUrl not supported" ) ; }

Target:
public java.lang.String myUrl ( ) { return myUrl ; }
Source:
public java.lang.String getStory ( final java.lang.String issueId ) throws java.io.IOException { return getData ( ( ( ( ( this . baseUrl ) + ( com.googlesource.gerrit.plugins.its.storyboard.StoryboardClient.STORIES_ENDPOINT ) ) + "/" ) + issueId ) ) ; }

Target:
public int getStoryId ( final java.lang.String issueId ) throws java.io.IOException { java.lang.String taskJson = getTask ( issueId ) ; com.google.gson.JsonObject jobj = new com.google.gson.Gson ( ) . fromJson ( taskJson , com.google.gson.JsonObject.class ) ; return jobj.get ( "story_id" ) . getAsInt ( ) ; }
Source:
static void deleteAllIndexes ( com.google.gerrit.elasticsearch.ElasticTestUtils.ElasticNodeInfo nodeInfo ) { nodeInfo.node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( "_all" ) . execute ( ) ; }

Target:
static void deleteAllIndexes ( com.google.gerrit.elasticsearch.ElasticTestUtils.ElasticNodeInfo nodeInfo ) { nodeInfo.node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( "_all" ) . execute ( ) . actionGet ( ) ; }
Source:
public com.google.common.collect.ImmutableList < com.google.gerrit.server.notedb.InsertedObject > getInsertedObjects ( ) { return com.google.common.collect.ImmutableList.copyOf ( inserted.values ( ) ) ; }

Target:
public com.google.common.collect.ImmutableList < com.google.gerrit.server.git.InsertedObject > getInsertedObjects ( ) { return com.google.common.collect.ImmutableList.copyOf ( inserted.values ( ) ) ; }
Source:
public void check ( ) throws com.google.gerrit.server.StartupException { for ( com.google.gerrit.server.StartupCheck startupCheck : startupChecks ) { startupCheck.check ( ) ; } }

Target:
public void start ( ) throws com.google.gerrit.server.StartupException { for ( com.google.gerrit.server.StartupCheck startupCheck : startupChecks ) { startupCheck.check ( ) ; } }
Source:
static void deleteIndexes ( org.elasticsearch.node.Node node , java.lang.String index ) { node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( index ) . execute ( ) ; }

Target:
static void deleteAllIndexes ( com.google.gerrit.elasticsearch.ElasticTestUtils.ElasticNodeInfo nodeInfo ) { nodeInfo.node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( "_all" ) . execute ( ) ; }
Source:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertChange ( newChangeInfo ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInfo ( ChangeStatus.DRAFT ) ) ; }
Source:
public boolean canForgeCommitter ( ) { if ( ( canForgeCommitter ) == null ) { canForgeCommitter = canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_COMMITTER ) ; } return canForgeCommitter ; }

Target:
public boolean canDelete ( ) { switch ( getCurrentUser ( ) . getAccessPath ( ) ) { case WEB_UI : return ( isOwner ( ) ) || ( canPushWithForce ( ) ) ; case GIT : return canPushWithForce ( ) ; default : return false ; } }
Source:
public static java.lang.String toChange ( final com.google.gerrit.client.data.ChangeInfo c ) { return "change," + ( c.getId ( ) . get ( ) ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.client.data.ChangeInfo c ) { return com.google.gerrit.client.Link.toChange ( c.getId ( ) ) ; }
Source:
private void assertProblems ( org.eclipse.jgit.transport.PushCertificate cert , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = checker.check ( cert ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }

Target:
private void assertProblems ( org.eclipse.jgit.transport.PushCertificate cert , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = checker.check ( cert ) . getCheckResult ( ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }
Source:
public void onSend ( ) { java.lang.String topic = newTopic.getText ( ) ; Util.DETAIL_SVC.alterTopic ( change.getId ( ) , topic , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSuccess ( java.lang.String result ) { sent = true ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( change.getId ( ) ) ) ; hide ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; }

Target:
protected void loadNext ( ) { Util.LIST_SVC.byProjectOpenNext ( projectKey , pos , pageSize , loadCallback ( ) ) ; }
Source:
public boolean include ( final com.google.gwtexpui.globalkey.client.KeyCommand key ) { return ! ( key instanceof com.google.gerrit.client.ui.NeedsSignInKeyCommand ) ; }

Target:
private static com.google.gwt.user.client.ui.Anchor anchor ( final java.lang.String text , final java.lang.String to ) { final com.google.gwt.user.client.ui.Anchor a = new com.google.gwt.user.client.ui.Anchor ( text , to ) ; a.setStyleName ( "gerrit-MenuItem" ) ; com.google.gwt.user.client.ui.Accessibility.setRole ( a.getElement ( ) , Accessibility.ROLE_MENUITEM ) ; return a ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enableOnFailure.setEnabled ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; } } ) ; }

Target:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; updateRenderEntireFile ( ) ; } } ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.Project project , java.lang.String hash , java.lang.String name , com.google.gerrit.server.git.GitRepositoryManager gitRepoManager ) { project.setRevision ( hash ) ; project.setUpstream ( name ) ; return true ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.Project project , java.lang.String hash , java.lang.String name , com.google.gerrit.server.git.GitRepositoryManager gitRepoManager ) { project.setRevision ( hash ) ; if ( ! ( org.eclipse.jgit.lib.ObjectId.isId ( name ) ) ) { project.setUpstream ( name ) ; } return true ; }
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return ctl ; }

Target:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { com.google.common.base.Preconditions.checkNotNull ( ctl ) ; return ctl ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.common.util.concurrent.Futures.immediateCheckedFuture ( null ) ; }
Source:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( false ) ; }

Target:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( false ) ; cm.focus ( ) ; }
Source:
private static org.eclipse.jgit.errors.ConfigInvalidException invalidConfig ( java.lang.String noteId , java.lang.String message ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( java.lang.String.format ( "Invalid external id config for note %s: %s" , noteId , message ) ) ; }

Target:
private static org.eclipse.jgit.errors.ConfigInvalidException invalidConfig ( java.lang.String noteId , java.lang.String message ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( java.lang.String.format ( "Invalid external ID config for note '%s': %s" , noteId , message ) ) ; }
Source:
public boolean hasChange ( ) { return false ; }

Target:
public int getCost ( ) { return 1 ; }
Source:
public boolean isEnabled ( com.google.gerrit.server.change.ChangeResource resource ) { return resource.getControl ( ) . canEditTopicName ( ) ; }

Target:
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 ( ) ) ; }
Source:
protected PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , git ) ; return push.to ( "refs/for/master" ) ; }

Target:
protected PushOneCommit.Result createChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; return push.to ( "refs/for/master" ) ; }
Source:
public void addReviewers ( final com.google.gerrit.reviewdb.client.Change.Id id , final java.util.List < java.lang.String > reviewers , final boolean confirmed , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) { addReviewerHandlerFactory.create ( id , reviewers , confirmed ) . to ( callback ) ; }

Target:
public void addReviewers ( final com.google.gerrit.reviewdb.client.Change.Id id , final java.util.List < java.lang.String > reviewers , final boolean confirmed , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) { addReviewerHandlerFactory.create ( id , reviewers , confirmed ) . to ( callback ) ; }
Source:
protected void migrateData ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { db.approvalCategoryValues ( ) . insert ( java.util.Collections.singleton ( new com.google.gerrit.reviewdb.ApprovalCategoryValue ( new com.google.gerrit.reviewdb.ApprovalCategoryValue.Id ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_SERVER ) , "Forge Gerrit Code Review Server Identity" ) ) ) ; }

Target:
protected void migrateData ( com.google.gerrit.reviewdb.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws com.google.gwtorm.client.OrmException { db.approvalCategoryValues ( ) . insert ( java.util.Collections.singleton ( new com.google.gerrit.reviewdb.ApprovalCategoryValue ( new com.google.gerrit.reviewdb.ApprovalCategoryValue.Id ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_SERVER ) , "Forge Gerrit Code Review Server Identity" ) ) ) ; }
Source:
public void contextDestroyed ( final javax.servlet.ServletContextEvent event ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; } super . contextDestroyed ( event ) ; }

Target:
public void destroy ( ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; } }
Source:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , expectedStatus ) ; }

Target:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , false , expectedStatus ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi comments ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "comments" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi edit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit" ) ; }
Source:
private org.antlr.runtime.tree.Tree onlyChildOf ( org.antlr.runtime.tree.Tree r ) throws com.google.gerrit.index.query.QueryParseException { if ( ( r.getChildCount ( ) ) != 1 ) { throw com.google.gerrit.server.query.QueryBuilder.error ( ( "Expected exactly one child: " + r ) ) ; } return r.getChild ( 0 ) ; }

Target:
private org.antlr.runtime.tree.Tree onlyChildOf ( org.antlr.runtime.tree.Tree r ) throws com.google.gerrit.index.query.QueryParseException { if ( ( r.getChildCount ( ) ) != 1 ) { throw com.google.gerrit.index.query.QueryBuilder.error ( ( "Expected exactly one child: " + r ) ) ; } return r.getChild ( 0 ) ; }
Source:
final native void restore_path ( java.lang.String p ) ;

Target:
final native void restorePath ( java.lang.String p ) ;
Source:
public java.util.List < com.google.gerrit.server.query.Predicate < T > > getChildren ( ) { return com.google.common.collect.ImmutableList.of ( pred ) ; }

Target:
public java.util.List < com.google.gerrit.index.query.Predicate < T > > getChildren ( ) { return com.google.common.collect.ImmutableList.of ( pred ) ; }
Source:
public abstract java.util.jar.JarFile getJarFile ( ) ;

Target:
public abstract com.google.gerrit.server.plugins.PluginContentScanner getContentScanner ( ) ;
Source:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }
Source:
public void setPatchKey ( final com.google.gerrit.client.reviewdb.Patch.Key id ) { patchKey = id ; }

Target:
public abstract void display ( com.google.gerrit.client.patches.CommentDetail comments ) ;
Source:
public boolean hasChange ( ) { return index.getSchema ( ) . getFields ( ) . containsKey ( ChangeField.CHANGE.getName ( ) ) ; }

Target:
public boolean hasChange ( ) { return index.getSchema ( ) . hasField ( ChangeField.CHANGE ) ; }
Source:
void setChanges ( java.lang.String project , java.lang.String revision , com.google.gwt.core.client.JsArray < com.google.gerrit.client.change.RelatedChanges.ChangeAndCommit > changes ) { this . project = project ; render ( revision , changes ) ; }

Target:
public java.lang.String asString ( ) { if ( ( html ) == null ) { com.google.gwtexpui.safehtml.client.SafeHtmlBuilder sb = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; renderRow ( sb ) ; html = sb.asString ( ) ; info = null ; } return html ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.index.query.QueryParseException { return rewrite.rewrite ( in , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }

Target:
private com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.index.query.QueryParseException { return rewrite.rewrite ( in , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }
Source:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { declaredOwner = state.isOwner ( user.getEffectiveGroups ( ) ) ; } return declaredOwner ; }

Target:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { com.google.gerrit.server.account.GroupMembership effectiveGroups = user.getEffectiveGroups ( ) ; declaredOwner = effectiveGroups.containsAnyOf ( state.getAllOwners ( ) ) ; } return declaredOwner ; }
Source:
static Project.NameKey getProjectName ( com.google.gerrit.reviewdb.client.Change change ) { return change.getProject ( ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( ) { return currentPatchSet ; }
Source:
private final native void downloadSchemeRaw ( java.lang.String d ) ;

Target:
public final native void downloadScheme ( java.lang.String d ) ;
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { addPanel.setVisible ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { addPanel.setVisible ( result.canAddRefs ( ) ) ; }
Source:
private void visitChildren ( org.pegdown.ast.Node node ) { for ( org.pegdown.ast.Node child : node.getChildren ( ) ) { child.accept ( this ) ; } }

Target:
private void visitChildren ( org.commonmark.node.Node node ) { for ( org.commonmark.node.Node c = node.getFirstChild ( ) ; c != null ; c = c.getNext ( ) ) { c.accept ( this ) ; } }
Source:
public void display ( final com.google.gerrit.client.groups.GroupMap groups ) { display ( groups , null ) ; }

Target:
public void display ( com.google.gerrit.client.groups.GroupList groups ) { display ( groups.asList ( ) , null ) ; }
Source:
public final native com.google.gwt.core.client.JsArray < com.google.gerrit.client.DiffWebLinkInfo > web_links ( ) ;

Target:
public final native com.google.gwt.core.client.JsArray < com.google.gerrit.client.DiffWebLinkInfo > webLinks ( ) ;
Source:
public static java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > getPossibleStatus ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) { java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > s = com.google.gerrit.server.index.change.ChangeIndexRewriter.extractStatus ( in ) ; return s != null ? s : java.util.EnumSet.allOf ( com.google.gerrit.reviewdb.client.Change.Status.class ) ; }

Target:
public static java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > getPossibleStatus ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) { java.util.EnumSet < com.google.gerrit.reviewdb.client.Change.Status > s = com.google.gerrit.server.index.change.ChangeIndexRewriter.extractStatus ( in ) ; return s != null ? s : java.util.EnumSet.allOf ( com.google.gerrit.reviewdb.client.Change.Status.class ) ; }
Source:
public void start ( ) { submit.create ( ) . start ( 15 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void start ( ) { if ( replicateOnStartup ) { pushAll.create ( null ) . start ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ; } submit.create ( ) . start ( 15 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public boolean canAdministrateServer ( ) { if ( ( canAdministrateServer ) == null ) { canAdministrateServer = ( ( user ) instanceof com.google.gerrit.server.PeerDaemonUser ) || ( canPerform ( GlobalCapability.ADMINISTRATE_SERVER ) ) ; } return canAdministrateServer ; }

Target:
public boolean canAdministrateServer ( ) { if ( ( canAdministrateServer ) == null ) { canAdministrateServer = ( ( user ) instanceof com.google.gerrit.server.PeerDaemonUser ) || ( matchAny ( capabilities.administrateServer ) ) ; } return canAdministrateServer ; }
Source:
public void testParse_Email1 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "author@example.com" ) ; assertNull ( a.name ) ; assertEquals ( "author@example.com" , a.email ) ; }

Target:
public void testParse_Email1 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "author@example.com" ) ; org.junit.Assert.assertNull ( a.name ) ; org.junit.Assert.assertEquals ( "author@example.com" , a.email ) ; }
Source:
public void createEmptyChange_InvalidStatus ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo ci = newChangeInfo ( ChangeStatus.SUBMITTED ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }

Target:
public void createEmptyChange_InvalidStatus ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo ci = newChangeInfo ( ChangeStatus.MERGED ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }
Source:
private void blockReviewDbUpdates ( boolean block ) { cfg.setBoolean ( "user" , null , "readGroupsFromNoteDb" , block ) ; }

Target:
private void blockReviewDbUpdates ( boolean block ) { cfg.setBoolean ( "user" , null , "blockReviewDbGroupUpdates" , block ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { onSubmitResult ( result ) ; }
Source:
private static com.google.gitiles.FormatType set ( javax.servlet.http.HttpServletRequest req , com.google.gitiles.FormatType format ) { req.setAttribute ( com.google.gitiles.FormatType.FORMAT_TYPE_ATTRIBUTE , format ) ; return format ; }

Target:
private static com.google.common.base.Optional < com.google.gitiles.FormatType > set ( javax.servlet.http.HttpServletRequest req , com.google.common.base.Optional < com.google.gitiles.FormatType > format ) { req.setAttribute ( com.google.gitiles.FormatType.FORMAT_TYPE_ATTRIBUTE , format ) ; return format ; }
Source:
protected boolean isAllProjects ( com.google.gerrit.server.project.ProjectResource rsrc ) { return rsrc.getControl ( ) . getProject ( ) . getNameKey ( ) . equals ( allProjectsName ) ; }

Target:
public java.util.Collection < java.lang.String > getWarnings ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gwtorm.server.OrmException { return dbHandler.getWarnings ( rsrc.getControl ( ) . getProject ( ) ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { actionsPanel.remove ( b ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { actionsPanel.remove ( b ) ; fireOnSuggestRefresh ( ) ; }
Source:
private static boolean canCoalesce ( com.google.gerrit.server.diff.CharText a , int b , int e ) { while ( b < e ) { if ( ( a.charAt ( ( b ++ ) ) ) == '\n' ) { return false ; } } return true ; }

Target:
private static boolean canCoalesce ( com.google.gerrit.server.patch.CharText a , int b , int e ) { while ( b < e ) { if ( ( a.charAt ( ( b ++ ) ) ) == '\n' ) { return false ; } } return true ; }
Source:
public static void registerClass ( com.google.gerrit.server.events.Event event ) { java.lang.String type = event.getType ( ) ; com.google.gerrit.server.events.EventTypes.typesByString.put ( type , event.getClass ( ) ) ; }

Target:
public static void register ( java.lang.String eventType , java.lang.Class < ? extends com.google.gerrit.server.events.Event > eventClass ) { com.google.gerrit.server.events.EventTypes.typesByString.put ( eventType , eventClass ) ; }
Source:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.peers.PeerInfo.class ) . toProvider ( com.ericsson.gerrit.plugins.highavailability.peers.PluginConfigPeerInfoProvider.class ) ; }

Target:
protected void configure ( ) { bind ( new com.google.inject.TypeLiteral < com.google.common.base.Optional < com.ericsson.gerrit.plugins.highavailability.peers.PeerInfo > > ( ) { } ) . toProvider ( com.ericsson.gerrit.plugins.highavailability.peers.PluginConfigPeerInfoProvider.class ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; loadConfigInfo ( info , base ) ; }
Source:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newContinuingContext ( com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ctx ) { return new com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ( ctx , ctx.getSession ( ) , ctx.getCurrentUser ( ) ) ; }

Target:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newContinuingContext ( com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ctx ) { return new com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ( ctx , ctx.getSession ( ) , ctx.getUser ( ) ) ; }
Source:
private void assertApproveFails ( com.google.gerrit.acceptance.TestAccount a , java.lang.String changeId ) throws java.lang.Exception { try { approve ( a , changeId ) ; } catch ( com.google.gerrit.extensions.restapi.AuthException expected ) { } }

Target:
private void assertApproveFails ( com.google.gerrit.acceptance.TestAccount a , java.lang.String changeId ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; approve ( a , changeId ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { if ( ( send ) == sender ) { onSend ( ) ; } else if ( ( cancel ) == sender ) { com.google.gerrit.client.Gerrit.uncache ( this ) ; goChange ( ) ; } }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; if ( saveStateOnUnload ) { com.google.gerrit.client.changes.PublishCommentScreen.lastState = new com.google.gerrit.client.changes.PublishCommentScreen.SavedState ( this ) ; } }
Source:
public java.lang.String getText ( ) { return nameTxtBox.getText ( ) ; }

Target:
public java.lang.String getText ( ) { java.lang.String s = nameTxtBox.getText ( ) ; if ( ( s == null ) || ( s.equals ( Util.C.defaultAccountName ( ) ) ) ) { s = "" ; } return s ; }
Source:
public void setSubmitType ( com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) { this . submitType = submitType ; }

Target:
public void setSubmitTypeRecord ( com.google.gerrit.common.data.SubmitTypeRecord submitTypeRecord ) { this . submitTypeRecord = submitTypeRecord ; }
Source:
public static com.google.gerrit.client.rpc.RestApi drafts ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "drafts" ) ; }

Target:
public static void markPrivate ( @ 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.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "private" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public static com.google.common.cache.CacheBuilder < java.lang.Object , java.lang.Object > newBuilder ( ) { return com.google.common.cache.CacheBuilder.newBuilder ( ) . maximumSize ( ( 10 << 10 ) ) ; }

Target:
public static com.google.common.cache.CacheBuilder < java.lang.Object , java.lang.Object > defaultBuilder ( ) { return com.google.common.cache.CacheBuilder.newBuilder ( ) . maximumSize ( ( 10 << 10 ) ) ; }