auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
java.lang.String get ( java.lang.String section , java.lang.String subsection , java.lang.String name ) ;

Target:
public abstract void unset ( java.lang.String section , java.lang.String subsection , java.lang.String name ) ;
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.project.ProjectResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return list ; }

Target:
public com.google.gerrit.server.project.TagResource parse ( com.google.gerrit.server.project.ProjectResource resource , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return new com.google.gerrit.server.project.TagResource ( resource.getControl ( ) , list.get ( ) . get ( resource , id ) ) ; }
Source:
void onAllNodesReplicated ( int totalPushTasksCount ) { }

Target:
void onAllRefsReplicatedToAllNodes ( int totalPushTasksCount ) { }
Source:
boolean match ( java.lang.String refName ) { return pattern ( ) . matcher ( refName ) . find ( ) ; }

Target:
boolean match ( java.lang.String refName ) { return regex ( ) . matcher ( refName ) . find ( ) ; }
Source:
public boolean isGitBasichAuth ( ) { return gitBasicAuth ; }

Target:
public boolean isGitBasicAuth ( ) { return gitBasicAuth ; }
Source:
public void commit ( ) throws com.google.gwtorm.server.OrmException { delegate.commit ( ) ; }

Target:
public void commit ( ) throws com.google.gwtorm.server.OrmException { if ( ! ( inTransaction ) ) { delegate.commit ( ) ; } }
Source:
private java.util.List < com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope > scopesForKey ( java.lang.String baseScopeKey ) { return com.google.common.base.Objects.firstNonNull ( config.scopes.get ( baseScopeKey ) , com.googlesource.gerrit.plugins.github.oauth.GitHubLogin.DEFAULT_SCOPES ) ; }

Target:
private java.util.List < com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope > scopesForKey ( java.lang.String baseScopeKey ) { return com.google.common.base.MoreObjects.firstNonNull ( config.scopes.get ( baseScopeKey ) , com.googlesource.gerrit.plugins.github.oauth.GitHubLogin.DEFAULT_SCOPES ) ; }
Source:
public boolean canSeeMember ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( ( ( user ) instanceof com.google.gerrit.server.IdentifiedUser ) && ( ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) . equals ( id ) ) ) { return true ; } return canSeeMembers ( ) ; }

Target:
public boolean canSeeMember ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( ( user.isIdentifiedUser ( ) ) && ( ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) . equals ( id ) ) ) { return true ; } return canSeeMembers ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.GeneralPreferences prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; }
Source:
public void setBranches ( java.util.List < com.google.gerrit.reviewdb.Branch > branches ) { this . branches = branches ; }

Target:
public boolean getNoRepository ( ) { return noRepository ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) . value ( ) ; } catch ( com.google.gerrit.server.git.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }
Source:
com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) ;

Target:
java.util.Optional < com.google.gerrit.server.account.AccountState > getByUsername ( java.lang.String username ) ;
Source:
private com.google.gerrit.common.data.GroupReference getMyGroup ( ) { com.google.gerrit.common.data.GroupDescription.Basic g = groupBackend.get ( AccountGroup.UUID.parse ( ( "user:" + ( username ) ) ) ) ; return config.resolve ( com.google.gerrit.common.data.GroupReference.forGroup ( g ) ) ; }

Target:
private com.google.gerrit.common.data.GroupReference getMyGroup ( ) { com.google.gerrit.common.data.GroupDescription.Basic g = groupBackend.get ( AccountGroup.UUID.parse ( ( "user:" + ( username ) ) ) ) ; return projectConfig.resolve ( com.google.gerrit.common.data.GroupReference.forGroup ( g ) ) ; }
Source:
public java.lang.String getServletPath ( ) { return ( ( javax.servlet.http.HttpServletRequest ) ( getRequest ( ) ) ) . getRequestURI ( ) ; }

Target:
public java.lang.String getServletPath ( ) { return getRequestURI ( ) . substring ( contextPath.length ( ) ) ; }
Source:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectControl projectControl , org.eclipse.jgit.lib.Repository repository , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.receive.MessageSender messageSender , com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > extraReviewers ) ;

Target:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectState projectState , com.google.gerrit.server.IdentifiedUser user , org.eclipse.jgit.lib.Repository repository , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.receive.MessageSender messageSender , com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > extraReviewers ) ;
Source:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.api.Git git , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content , @ com.google.inject.assistedinject.Assisted ( value = "changeId" ) java.lang.String changeId ) ;

Target:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.junit.TestRepository < ? > testRepo , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content , @ com.google.inject.assistedinject.Assisted ( value = "changeId" ) java.lang.String changeId ) ;
Source:
public void onSuccess ( com.google.gerrit.client.reviewdb.Account result ) { com.google.gwt.core.client.GWT.log ( ( "yay, i am " + ( result.getPreferredEmail ( ) ) ) , null ) ; com.google.gwt.core.client.GWT.log ( ( "created on " + ( result.getRegisteredOn ( ) ) ) , null ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( isAttached ( ) ) { display ( result ) ; } }
Source:
public static void grant ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.common.data.AccessSection section , java.lang.String permission , com.google.gerrit.common.data.GroupReference ... groupList ) { com.google.gerrit.server.schema.AclUtil.grant ( config , section , permission , false , groupList ) ; }

Target:
public static void grant ( com.google.gerrit.server.project.ProjectConfig config , com.google.gerrit.common.data.AccessSection section , java.lang.String permission , com.google.gerrit.common.data.GroupReference ... groupList ) { com.google.gerrit.server.schema.AclUtil.grant ( config , section , permission , false , groupList ) ; }
Source:
public final com.google.common.collect.ImmutableSortedMap < java.lang.Integer , com.google.gerrit.server.index.Schema < V > > getSchemas ( ) { return schemas ; }

Target:
public final com.google.common.collect.ImmutableSortedMap < java.lang.Integer , com.google.gerrit.index.Schema < V > > getSchemas ( ) { return schemas ; }
Source:
private static void addMenuLink ( com.google.gerrit.client.ui.LinkMenuBar m , com.google.gerrit.client.extensions.TopMenuItem item ) { if ( item.getUrl ( ) . contains ( com.google.gerrit.client.Gerrit.PROJECT_NAME_MENU_VAR ) ) { com.google.gerrit.client.Gerrit.addProjectLink ( m , item ) ; } else { com.google.gerrit.client.Gerrit.addExtensionLink ( m , item ) ; } }

Target:
private static void addMenuLink ( com.google.gerrit.client.ui.LinkMenuBar m , com.google.gerrit.client.info.TopMenuItem item ) { if ( item.getUrl ( ) . contains ( com.google.gerrit.client.Gerrit.PROJECT_NAME_MENU_VAR ) ) { com.google.gerrit.client.Gerrit.addProjectLink ( m , item ) ; } else { com.google.gerrit.client.Gerrit.addExtensionLink ( m , item ) ; } }
Source:
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 ) ; }

Target:
public com.google.gerrit.server.diff.DiffSummary call ( ) throws java.lang.Exception { com.google.gerrit.server.diff.PatchList patchList = patchListCache.get ( key.toPatchListKey ( ) , project ) ; return com.google.gerrit.server.patch.DiffSummaryLoader.toDiffSummary ( patchList ) ; }
Source:
com.google.gerrit.server.notedb.ChangeDraftUpdate createDraftUpdateIfNull ( ) { if ( ( draftUpdate ) == null ) { draftUpdate = draftUpdateFactory.create ( ctl , when ) ; } return draftUpdate ; }

Target:
com.google.gerrit.server.notedb.ChangeDraftUpdate createDraftUpdateIfNull ( ) { if ( ( draftUpdate ) == null ) { draftUpdate = draftUpdateFactory.create ( getNotes ( ) , accountId , authorIdent , when ) ; } return draftUpdate ; }
Source:
public final com.google.gerrit.extensions.common.SubmitType submit_type ( ) { return com.google.gerrit.extensions.common.SubmitType.valueOf ( submit_typeRaw ( ) ) ; }

Target:
public final com.google.gerrit.extensions.client.SubmitType submit_type ( ) { return com.google.gerrit.extensions.client.SubmitType.valueOf ( submit_typeRaw ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byExactTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public void setIntHeader ( java.lang.String name , int value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addHeader ( java.lang.String name , java.lang.String value ) { headers.put ( name , value ) ; }
Source:
java.lang.String globalRulesFileName ( ) { return java.lang.String.format ( com.googlesource.gerrit.plugins.its.base.ItsHookModule.CONFIG_FILE_NAME , "" ) ; }

Target:
java.nio.file.Path itsPath ( com.google.gerrit.server.config.SitePaths sitePaths ) { return sitePaths.etc_dir.normalize ( ) . resolve ( com.googlesource.gerrit.plugins.its.base.ItsHookModule.ITS_FOLDER ) ; }
Source:
public void testParse_Email2 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "a@b" ) ; org.junit.Assert.assertNull ( a.name ) ; org.junit.Assert.assertEquals ( "a@b" , 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" ) ; com.google.common.truth.Truth.assertThat ( a.name ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( a.email ) . isEqualTo ( "author@example.com" ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.config.ConfigResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.config.ConfigResource > list ( ) { return list.get ( ) ; }
Source:
public void setUpMocks ( ) { id = Change.Id.parse ( java.lang.Integer.toString ( com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID ) ) ; indexEventHandler = new com.ericsson.gerrit.plugins.syncindex.IndexEventHandler ( com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) , com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.PLUGIN_NAME , restSessionMock ) ; }

Target:
public void setUpMocks ( ) { id = Change.Id.parse ( java.lang.Integer.toString ( com.ericsson.gerrit.plugins.highavailability.IndexEventHandlerTest.CHANGE_ID ) ) ; indexEventHandler = new com.ericsson.gerrit.plugins.highavailability.IndexEventHandler ( com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) , com.ericsson.gerrit.plugins.highavailability.IndexEventHandlerTest.PLUGIN_NAME , restSessionMock ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewRight ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { onOpenRow ( table.getCellForEvent ( event ) . getRowIndex ( ) ) ; }
Source:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String dashboardId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { new com.google.gerrit.client.rpc.RestApi ( ( ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) + ( com.google.gerrit.client.dashboards.DashboardList.encodeDashboardId ( dashboardId ) ) ) ) . get ( callback ) ; }

Target:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { com.google.gerrit.client.dashboards.DashboardList.base ( project ) . idRaw ( com.google.gerrit.client.dashboards.DashboardList.encodeDashboardId ( id ) ) . get ( callback ) ; }
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > release ( com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > ... fields ) { return com.google.gerrit.server.index.ChangeSchemas.release ( java.util.Arrays.asList ( fields ) ) ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > ... fields ) { return com.google.gerrit.server.index.ChangeSchemas.schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }
Source:
public AccountGroup.Id getAdminGroupId ( ) { return sConfig.adminGroupId ; }

Target:
public com.google.gerrit.server.GroupCache getGroupCache ( ) { return groupCache ; }
Source:
public net.sf.ehcache.statistics.LiveCacheStatistics getLiveCacheStatistics ( ) throws java.lang.IllegalStateException { return self ( ) . getLiveCacheStatistics ( ) ; }

Target:
public void removeCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self.removeCacheUsageListener ( cacheUsageListener ) ; }
Source:
private void postLoad ( ) { if ( ( haveAccount ) && ( haveEmails ) ) { updateEmailList ( ) ; registerNewEmail.setEnabled ( true ) ; } display ( ) ; }

Target:
private void postLoad ( ) { if ( ( haveAccount ) && ( haveEmails ) ) { updateEmailList ( ) ; registerNewEmail.setEnabled ( true ) ; save.setEnabled ( false ) ; new com.google.gerrit.client.ui.OnEditEnabler ( save , nameTxt ) ; } display ( ) ; }
Source:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; }

Target:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; downloadUrl = null ; downloadCommand = null ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.changes.ChangeList.next ( query , start , pageSize , loadCallback ( ) ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.changes.ChangeList.next ( query , start , pageSize , ChangeTable.OPTIONS , loadCallback ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.acceptance.AccountCreator.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.acceptance.AccountCreator.class ) ; factory ( PushOneCommit.Factory.class ) ; }
Source:
public com.google.common.collect.ImmutableCollection < com.google.gerrit.server.query.change.ChangeData > changes ( ) { return changeData ; }

Target:
public com.google.common.collect.ImmutableMap < com.google.gerrit.reviewdb.client.Change.Id , com.google.gerrit.server.query.change.ChangeData > changesById ( ) { return changeData ; }
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 insertComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { insertDraftComment ( comment ) ; } else { insertPublishedComment ( comment ) ; } }
Source:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.server.notedb.rebuild.OnlineNoteDbMigrator.class ) ; }

Target:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.server.notedb.rebuild.OnlineNoteDbMigrator.class ) ; bindConstant ( ) . annotatedWith ( com.google.inject.name.Names.named ( com.google.gerrit.server.notedb.rebuild.OnlineNoteDbMigrator.TRIAL ) ) . to ( trial ) ; }
Source:
private void doAllPushTasksCompleted ( ) { pushResultProcessing.onAllNodesReplicated ( totalPushTasksCount ) ; allPushTasksFinished.countDown ( ) ; }

Target:
private void doAllPushTasksCompleted ( ) { fireRemainingOnRefReplicatedToAllNodes ( ) ; pushResultProcessing.onAllRefsReplicatedToAllNodes ( totalPushTasksCount ) ; allPushTasksFinished.countDown ( ) ; }
Source:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } }

Target:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } maybeFlush ( ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.server.project.ProjectState > parents ( ) { return com.google.common.collect.Iterables.skip ( tree ( ) , 1 ) ; }

Target:
public com.google.common.collect.FluentIterable < com.google.gerrit.server.project.ProjectState > parents ( ) { return com.google.common.collect.FluentIterable.from ( tree ( ) ) . skip ( 1 ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "download-commands" , true ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi comments ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "comments" ) ; }
Source:
private static java.lang.String addDeletedKey ( java.util.List < com.google.common.base.Optional < com.google.gerrit.reviewdb.client.AccountSshKey > > keys ) { keys.add ( com.google.common.base.Optional.< com.google.gerrit.reviewdb.client.AccountSshKey > absent ( ) ) ; return ( AuthorizedKeys.DELETED_KEY_COMMENT ) + "\n" ; }

Target:
private static java.lang.String addDeletedKey ( java.util.List < java.util.Optional < com.google.gerrit.reviewdb.client.AccountSshKey > > keys ) { keys.add ( java.util.Optional.empty ( ) ) ; return ( AuthorizedKeys.DELETED_KEY_COMMENT ) + "\n" ; }
Source:
private static void setChangeTable ( org.eclipse.jgit.lib.Config cfg , java.util.List < java.lang.String > changeTable ) { if ( changeTable != null ) { com.google.gerrit.server.account.PreferencesConfig.unsetSection ( cfg , UserConfigSections.CHANGE_TABLE ) ; cfg.setStringList ( UserConfigSections.CHANGE_TABLE , null , com.google.gerrit.server.git.UserConfigSections.CHANGE_TABLE_COLUMN , changeTable ) ; } }

Target:
private static void setChangeTable ( org.eclipse.jgit.lib.Config cfg , java.util.List < java.lang.String > changeTable ) { if ( changeTable != null ) { com.google.gerrit.server.account.Preferences.unsetSection ( cfg , UserConfigSections.CHANGE_TABLE ) ; cfg.setStringList ( UserConfigSections.CHANGE_TABLE , null , com.google.gerrit.server.git.UserConfigSections.CHANGE_TABLE_COLUMN , changeTable ) ; } }
Source:
public void onSuccess ( com.google.gerrit.common.data.ListBranchesResult result ) { display ( result.getBranches ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.BranchInfo branch ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; refreshBranches ( ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.SubmittedTogetherInfo info = apply ( resource , options ) ; if ( options.isEmpty ( ) ) { return info.changes ; } return info ; }

Target:
public com.google.gerrit.server.change.SubmittedTogether addSubmittedTogetherOption ( java.util.EnumSet < com.google.gerrit.extensions.api.changes.SubmittedTogetherOption > o ) { options.addAll ( o ) ; return this ; }
Source:
private void assertMigratedCleanly ( com.google.gerrit.server.group.db.GroupBundle noteDbBundle , com.google.gerrit.server.group.db.GroupBundle expectedReviewDbBundle ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.group.db.GroupBundle.compare ( expectedReviewDbBundle , noteDbBundle ) ) . isEmpty ( ) ; }

Target:
private void assertMigratedCleanly ( com.google.gerrit.server.group.db.GroupBundle noteDbBundle , com.google.gerrit.server.group.db.GroupBundle expectedReviewDbBundle ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.group.db.GroupBundle.compareWithAudits ( expectedReviewDbBundle , noteDbBundle ) ) . isEmpty ( ) ; }
Source:
public void indexerThrowsIOExceptionTryingToIndexChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_IO_EXCEPTION ) ; verifyPost ( ) ; }

Target:
public void indexerThrowsIOExceptionTryingToIndexChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_IO_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_CONFLICT , "io-error" ) ; }
Source:
public void deleteGroups ( java.lang.String ... groups ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteGroups.apply ( rsrc , AddIncludedGroups.Input.fromGroups ( java.util.Arrays.asList ( groups ) ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete group members" , e ) ; } }

Target:
public void removeGroups ( java.lang.String ... groups ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteGroups.apply ( rsrc , AddIncludedGroups.Input.fromGroups ( java.util.Arrays.asList ( groups ) ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot remove group members" , e ) ; } }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }
Source:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectControl projectControl , org.eclipse.jgit.lib.Repository repository ) ;

Target:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectControl projectControl , org.eclipse.jgit.lib.Repository repository , com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > extraReviewers ) ;
Source:
private void createEditCommand ( ) { cmd = new org.eclipse.jgit.transport.ReceiveCommand ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) , newCommit , com.google.gerrit.server.edit.ChangeEditUtil.editRefName ( currentUser.getAccountId ( ) , change.getId ( ) , newPatchSet.getId ( ) ) ) ; }

Target:
private void createEditCommand ( ) { cmd = new org.eclipse.jgit.transport.ReceiveCommand ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) , newCommit , com.google.gerrit.reviewdb.client.RefNames.refsEdit ( currentUser.getAccountId ( ) , change.getId ( ) , newPatchSet.getId ( ) ) ) ; }
Source:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; install ( getIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }

Target:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }
Source:
private static void save ( java.lang.StringBuilder b , javax.servlet.http.HttpServletRequest r , java.lang.String n ) { final java.lang.String v = r.getParameter ( n ) ; if ( v != null ) { com.google.gerrit.server.OpenIdLoginServlet.append ( b , n , v ) ; } }

Target:
private static void save ( com.dyuproject.openid.UrlEncodedParameterMap b , javax.servlet.http.HttpServletRequest r , java.lang.String n ) { final java.lang.String v = r.getParameter ( n ) ; if ( v != null ) { b.put ( n , v ) ; } }
Source:
long startsWith ( ) default 0 ;

Target:
long startWith ( ) default 0 ;
Source:
public void blockRule_ParentBlocksChild ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.Util.DEVS , "refs/tags/*" ) ; com.google.gerrit.server.project.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/tags/*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.Util.DEVS ) ; assertCannotUpdate ( "refs/tags/V10" , u ) ; }

Target:
public void blockRule_ParentBlocksChild ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.testing.Util.DEVS , "refs/tags/*" ) ; com.google.gerrit.server.project.testing.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/tags/*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.testing.Util.DEVS ) ; assertCannotUpdate ( "refs/tags/V10" , u ) ; }
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 ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project = "p" ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project , null , true ) ; }

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 ) ; com.google.gerrit.acceptance.GitUtil.initSsh ( admin ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project = "p" ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project , null , true ) ; }
Source:
public void testRightEventAndNotForwarded ( ) throws java.lang.Exception { setUpMocks ( true ) ; eventHandler.onEvent ( event ) ; org.mockito.Mockito.verify ( restSession ) . send ( event ) ; }

Target:
public void testRightEventAndNotForwarded ( ) throws java.lang.Exception { setUpMocks ( true ) ; eventHandler.onEvent ( event ) ; org.mockito.Mockito.verify ( eventForwarder ) . send ( event ) ; }
Source:
public com.google.gerrit.httpd.raw.Label polygerritComponents ( ) { return new com.google.gerrit.httpd.raw.Label ( "polygerrit-ui" , "polygerrit_components.bower_components.zip" ) ; }

Target:
public com.google.gerrit.httpd.raw.BazelBuild.Label polygerritComponents ( ) { return new com.google.gerrit.httpd.raw.BazelBuild.Label ( "polygerrit-ui" , "polygerrit_components.bower_components.zip" ) ; }
Source:
T get ( javax.servlet.http.HttpServletRequest req ) ;

Target:
T get ( javax.servlet.http.HttpServletRequest request ) ;
Source:
public void setAccount ( com.google.gerrit.reviewdb.client.Account account ) { checkLoaded ( ) ; this . account = com.google.common.base.Preconditions.checkNotNull ( account ) ; this . registeredOn = account.getRegisteredOn ( ) ; }

Target:
public void setAccount ( com.google.gerrit.reviewdb.client.Account account ) { checkLoaded ( ) ; this . loadedAccount = java.util.Optional.of ( account ) ; this . registeredOn = account.getRegisteredOn ( ) ; }
Source:
public static void loadJARs ( java.nio.file.Path ... jars ) { com.google.gerrit.common.IoUtil.loadJARs ( java.util.Arrays.asList ( jars ) ) ; }

Target:
public static void loadJARs ( java.nio.file.Path jar ) { com.google.gerrit.common.IoUtil.loadJARs ( java.util.Collections.singleton ( jar ) ) ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { if ( ( event.getNativeKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) ) { suggestBox.setText ( "" ) ; com.google.gwt.event.logical.shared.CloseEvent.fire ( this , this ) ; } }

Target:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gerrit.client.ui.RemoteSuggestBox > event ) { suggestBox.setText ( "" ) ; com.google.gwt.event.logical.shared.CloseEvent.fire ( this , this ) ; }
Source:
public static void add ( com.google.gerrit.client.changes.ChangeInfo info ) { com.google.gerrit.client.projects.ConfigInfoCache.instance.changeToProject.put ( info.legacy_id ( ) . get ( ) , info.project ( ) ) ; }

Target:
public static void add ( com.google.gerrit.client.changes.ChangeInfo info ) { com.google.gerrit.client.projects.ConfigInfoCache.instance.changeToProject.put ( info.legacyId ( ) . get ( ) , info.project ( ) ) ; }
Source:
private void addFilter ( final com.google.gerrit.httpd.AllRequestFilter filter ) { filters.add ( filter ) ; }

Target:
private com.google.gerrit.extensions.registration.ReloadableRegistrationHandle < com.google.gerrit.httpd.AllRequestFilter > addFilter ( final com.google.gerrit.httpd.AllRequestFilter filter ) { com.google.inject.Key < com.google.gerrit.httpd.AllRequestFilter > key = com.google.inject.Key.get ( com.google.gerrit.httpd.AllRequestFilter.class ) ; return filters.add ( key , com.google.inject.util.Providers.of ( filter ) ) ; }
Source:
com.google.gwtexpui.globalkey.client.KeyCommandSet getKeysComment ( ) { return keysComment ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { parents = 0 ; }
Source:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.ChangeField.LEGACY_ID2.getName ( ) , id.get ( ) ) ; }

Target:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.ChangeField.LEGACY_ID.getName ( ) , id.get ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , remotePeerProvider , dbProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Branch > result ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; branches.display ( result ) ; }

Target:
private void display ( final java.util.List < com.google.gerrit.reviewdb.Branch > listBranches ) { branches.display ( listBranches ) ; delBranch.setVisible ( branches.hasBranchCanDelete ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }
Source:
public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; }

Target:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; updateRenderEntireFile ( ) ; }
Source:
void onExpandAllComments ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.expandAllComments ( e.getValue ( ) ) ; view.setExpandAllComments ( prefs.expandAllComments ( ) ) ; }

Target:
void onExpandAllComments ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.expandAllComments ( e.getValue ( ) ) ; view.getCommentManager ( ) . setExpandAllComments ( prefs.expandAllComments ( ) ) ; }
Source:
public java.io.InputStream getInputStream ( com.google.gerrit.server.plugins.PluginEntry entry ) throws java.io.IOException { return new java.io.FileInputStream ( getResourceFile ( entry.getName ( ) ) ) ; }

Target:
public java.io.InputStream getInputStream ( com.google.gerrit.server.plugins.PluginEntry entry ) throws java.io.IOException { return webScanner.getInputStream ( entry ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; keys.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; keys.finishDisplay ( true ) ; if ( result.isEmpty ( ) ) { showAddKeyBlock ( true ) ; } }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getKnownGroups ( ) { java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > g = com.google.common.collect.Sets.newHashSet ( groups ) ; g.retainAll ( projectCache.guessRelevantGroupUUIDs ( ) ) ; return g ; }

Target:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String id = com.google.gerrit.server.auth.ldap.LdapGroupBackend.findId ( user.state ( ) . getExternalIds ( ) ) ; if ( id == null ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } return new com.google.gerrit.server.auth.ldap.LdapGroupMembership ( membershipCache , projectCache , id ) ; }
Source:
public boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( ApprovalCategory.PUSH_HEAD , ApprovalCategory.PUSH_HEAD_CREATE ) ) || ( isOwnerAnyRef ( ) ) ; }

Target:
public boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( Permission.CREATE ) ) || ( isOwnerAnyRef ( ) ) ; }
Source:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.CurrentUser user , com.google.gerrit.server.query.change.ChangeData cd ) ;
Source:
public static java.lang.Iterable < java.lang.Object [ ] > configs ( ) { org.eclipse.jgit.lib.Config defaultConfig = new com.google.gerrit.acceptance.AbstractDaemonTest.NamedConfig ( "default" ) ; return java.util.Arrays.asList ( new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { defaultConfig } } ) ; }

Target:
protected com.google.gerrit.extensions.common.ChangeInfo info ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.changes ( ) . id ( id ) . info ( ) ; }
Source:
private void setAuthorNameText ( com.google.gerrit.client.account.AccountInfo author , java.lang.String nameText ) { avatar = new com.google.gerrit.client.AvatarImage ( author , 26 ) ; name.setInnerText ( nameText ) ; }

Target:
private void setAuthorNameText ( com.google.gerrit.client.account.AccountInfo author ) { avatar = new com.google.gerrit.client.AvatarImage ( author , 26 ) ; name.setInnerText ( com.google.gerrit.client.FormatUtil.name ( author ) ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.NativeMap < com.googlesource.gerrit.plugins.serviceuser.client.ServiceUserInfo > info ) { display ( info ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.googlesource.gerrit.plugins.serviceuser.client.ServiceUserInfo > info ) { display ( info ) ; }
Source:
java.lang.String patchSkipRegion ( @ com.google.gerrit.client.patches.PluralCount int lineCnt ) ;

Target:
java.lang.String expandBefore ( int cnt ) ;
Source:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { offer ( event ) ; }

Target:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { if ( ( subscribedToEvents.isEmpty ( ) ) || ( subscribedToEvents.contains ( event.getType ( ) ) ) ) { offer ( event ) ; } }
Source:
void onAddAccountsToGroup ( com.google.gerrit.reviewdb.client.Account.Id actor , java.util.Collection < com.google.gerrit.reviewdb.client.AccountGroupMember > added ) ;

Target:
void onAddAccountsToGroup ( com.google.gerrit.reviewdb.client.Account.Id actor , java.util.Collection < com.google.gerrit.reviewdb.client.AccountGroupMember > added , java.sql.Timestamp addedOn ) ;
Source:
protected void run ( ) throws com.google.gerrit.server.ssh.Failure { throw new com.google.gerrit.server.ssh.UnloggedFailure ( 127 , ( ( "gerrit: " + ( getName ( ) ) ) + ": not found" ) ) ; }

Target:
public void start ( ) throws java.io.IOException { final java.lang.String msg = ( "gerrit: " + cmd ) + ": not found\n" ; err.write ( msg.getBytes ( "UTF-8" ) ) ; err.flush ( ) ; exit.onExit ( 127 ) ; }
Source:
public static com.google.gerrit.server.mail.MailUtil.MailRecipients getRecipientsFromReviewers ( com.google.common.collect.Multimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ) { com.google.gerrit.server.mail.MailUtil.MailRecipients recipients = new com.google.gerrit.server.mail.MailUtil.MailRecipients ( ) ; recipients.reviewers.addAll ( reviewers.get ( ReviewerState.REVIEWER ) ) ; recipients.cc.addAll ( reviewers.get ( ReviewerState.CC ) ) ; return recipients ; }

Target:
public static com.google.gerrit.server.mail.MailUtil.MailRecipients getRecipientsFromReviewers ( com.google.common.collect.Multimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > reviewers ) { com.google.gerrit.server.mail.MailUtil.MailRecipients recipients = new com.google.gerrit.server.mail.MailUtil.MailRecipients ( ) ; recipients.reviewers.addAll ( reviewers.get ( com.google.gerrit.server.notedb.ReviewerStateInternal.REVIEWER ) ) ; recipients.cc.addAll ( reviewers.get ( com.google.gerrit.server.notedb.ReviewerStateInternal.CC ) ) ; return recipients ; }
Source:
public static void display ( final java.lang.String historyToken , final boolean go ) { com.google.gwt.user.client.History.newItem ( historyToken , go ) ; if ( ( ! go ) && ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( historyToken ) ; } }

Target:
public static void display ( final java.lang.String token ) { if ( ( ( com.google.gerrit.client.Gerrit.body.getView ( ) ) == null ) || ( ! ( com.google.gerrit.client.Gerrit.body.getView ( ) . displayToken ( token ) ) ) ) { com.google.gerrit.client.Gerrit.dispatcher.display ( token ) ; } }
Source:
private com.google.gerrit.server.config.GetServerInfo.SuggestInfo getSuggestInfo ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.server.config.GetServerInfo.SuggestInfo info = new com.google.gerrit.server.config.GetServerInfo.SuggestInfo ( ) ; info.from = cfg.getInt ( "suggest" , "from" , 0 ) ; return info ; }

Target:
private com.google.gerrit.extensions.common.SuggestInfo getSuggestInfo ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.extensions.common.SuggestInfo info = new com.google.gerrit.extensions.common.SuggestInfo ( ) ; info.from = cfg.getInt ( "suggest" , "from" , 0 ) ; return info ; }
Source:
public com.google.gerrit.server.group.MembersCollection.MemberInfo apply ( com.google.gerrit.server.group.MemberResource resource ) { return com.google.gerrit.server.group.MembersCollection.parse ( resource.getMember ( ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.group.MemberResource resource ) { return com.google.gerrit.server.account.AccountInfo.parse ( resource.getMember ( ) . getAccount ( ) , true ) ; }
Source:
protected com.google.gerrit.acceptance.GerritServer startServer ( org.eclipse.jgit.lib.Config cfg , boolean memory ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( cfg , memory ) ; }

Target:
protected com.google.gerrit.acceptance.GerritServer startServer ( org.eclipse.jgit.lib.Config cfg , boolean memory , boolean enableHttpd ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( cfg , memory , enableHttpd ) ; }
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 onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , 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 ;