auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getTarget ( ) { return Target.BLANK ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.PREVIEW , getImageUrl ( ) , getFileUrl ( projectName , revision , fileName , false ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( change.get ( ) . project ) ; }

Target:
public Change.Key getChangeKey ( ) { return changeKey ; }
Source:
protected com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { return new com.google.gerrit.pgm.CmdLineParser ( this ) ; }

Target:
protected com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { return cmdLineParserFactory.create ( this ) ; }
Source:
private com.google.gerrit.server.plugins.ServerPlugin loadExternalPlugin ( java.lang.String name , java.io.File scriptFile , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot ) { return externalPluginFactory.get ( name , scriptFile , pluginUserFactory.create ( name ) , snapshot ) ; }

Target:
private java.lang.String getPluginCanonicalWebUrl ( java.lang.String name ) { java.lang.String url = java.lang.String.format ( "%s/plugins/%s/" , com.google.common.base.CharMatcher.is ( '/' ) . trimTrailingFrom ( urlProvider.get ( ) ) , name ) ; return url ; }
Source:
public void invalidate ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { auto.remove ( p.getNameKey ( ) ) ; auto.remove ( p.getId ( ) ) ; } }

Target:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( wildProject ) . getRights ( ) ; }
Source:
public com.google.gerrit.server.account.GroupMembership groups ( com.google.gerrit.server.account.AccountState who ) ;

Target:
public com.google.gerrit.server.account.AuthRequest unlink ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account.Id to , com.google.gerrit.server.account.AuthRequest who ) throws com.google.gerrit.server.account.AccountException ;
Source:
private static boolean isCssName ( final java.lang.String name ) { return com.google.gwtexpui.safehtml.client.SafeHtmlBuilder.isElementName ( name ) ; }

Target:
private static boolean isAttributeName ( java.lang.String name ) { return com.google.gwtexpui.safehtml.client.SafeHtmlBuilder.isElementName ( name ) ; }
Source:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
public int run ( ) throws java.lang.Exception { com.google.inject.Injector sysInjector = com.google.gerrit.server.config.GerritGlobalModule.createInjector ( ) ; com.google.inject.Injector sshInjector = createSshInjector ( sysInjector ) ; com.google.gerrit.server.Lifecycle.start ( sysInjector , sshInjector ) ; return never ( ) ; }

Target:
void setDisableHttpd ( final boolean arg ) { httpd = false ; }
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.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; }
Source:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnReviewableChangeByOwnerNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; if ( ( name ) != null ) { setPageTitle ( Util.M.project ( name.get ( ) ) ) ; } }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; if ( ( name ) != null ) { setPageTitle ( AdminMessages.I.project ( name.get ( ) ) ) ; } }
Source:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws java.lang.Exception { try { gApi.groups ( ) . create ( "Administrators" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceConflictException expected ) { } }

Target:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; gApi.groups ( ) . create ( "Administrators" ) ; }
Source:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.server.util.Url.decode ( id ) , true ) ; }

Target:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.extensions.restapi.Url.decode ( id ) , true ) ; }
Source:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.client.Account.Id authorId , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;

Target:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;
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 , com.google.gerrit.server.query.change.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }

Target:
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 , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }
Source:
private void fill ( com.google.gerrit.server.change.AccountInfo info , com.google.gerrit.reviewdb.client.Account account ) { info.name = account.getFullName ( ) ; if ( detailed ) { info._account_id = account.getId ( ) . get ( ) ; info.email = account.getPreferredEmail ( ) ; } }

Target:
private void fill ( com.google.gerrit.reviewdb.client.Account account , boolean detailed ) { name = account.getFullName ( ) ; if ( detailed ) { _account_id = account.getId ( ) . get ( ) ; email = account.getPreferredEmail ( ) ; } }
Source:
protected void preDisplay ( java.lang.Void result ) { com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( db , repoManager , migration , allUsersProvider , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change.getProject ( ) , change ) ; }
Source:
public org.eclipse.jgit.lib.PersonIdent getUserPersonIdent ( ) { return createPersonIdent ( ) ; }

Target:
public org.eclipse.jgit.lib.PersonIdent getUserPersonIdent ( ) { return createPersonIdent ( identifiedUser.get ( ) ) ; }
Source:
protected void populateWatches ( ) { Util.ACCOUNT_SVC.myProjectWatch ( new com.google.gerrit.client.rpc.ScreenLoadCallback < java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > > ( this ) { @ java.lang.Override public void preDisplay ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watchesTab.display ( result ) ; } } ) ; }

Target:
protected void populateWatches ( ) { com.google.gerrit.client.account.AccountApi.getWatchedProjects ( "self" , new com.google.gerrit.client.rpc.GerritCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > > ( ) { @ java.lang.Override public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { display ( ) ; watchesTab.display ( watchedProjects ) ; } } ) ; }
Source:
public void pushForMasterWithHashtagsNoteDbDisabled ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }

Target:
public void testPushForMasterWithHashtagsNoteDbDisabled ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }
Source:
public java.lang.String getReplacementString ( ) { final com.google.gerrit.common.data.AccountInfo accountInfo = reviewerInfo.getAccountInfo ( ) ; if ( accountInfo != null ) { return com.google.gerrit.client.FormatUtil.nameEmail ( accountInfo ) ; } return reviewerInfo.getGroup ( ) . getName ( ) ; }

Target:
public java.lang.String getReplacementString ( ) { final com.google.gerrit.common.data.AccountInfo accountInfo = reviewerInfo.getAccountInfo ( ) ; if ( accountInfo != null ) { return com.google.gerrit.client.FormatUtil.nameEmail ( com.google.gerrit.client.FormatUtil.asInfo ( accountInfo ) ) ; } return reviewerInfo.getGroup ( ) . getName ( ) ; }
Source:
public void linkifyMessageUrlAndChangeId ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS , config ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) ; }

Target:
public void linkifyMessageUrlAndChangeId ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS , config ) ; com.google.common.truth.Truth.assertThat ( l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) . containsExactly ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) . inOrder ( ) ; }
Source:
private java.lang.String createGroup ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.extensions.api.groups.GroupInput in = new com.google.gerrit.extensions.api.groups.GroupInput ( ) ; in.ownerId = "Administrators" ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }

Target:
private java.lang.String createGroup ( java.lang.String name ) throws java.lang.Exception { name = name ( name ) ; com.google.gerrit.extensions.api.groups.GroupInput in = new com.google.gerrit.extensions.api.groups.GroupInput ( ) ; in.name = name ; in.ownerId = "Administrators" ; gApi.groups ( ) . create ( in ) ; return name ; }
Source:
public static void getDefault ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { new com.google.gerrit.client.rpc.RestApi ( ( ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) + "default" ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }

Target:
public static void getDefault ( com.google.gerrit.reviewdb.client.Project.NameKey project , 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 ) ) + "default" ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }
Source:
boolean canAddPatchSet ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ) && ( canWrite ( ) ) ; }

Target:
boolean canAddPatchSet ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( com.google.gerrit.client.admin.ProjectAccessScreen.uiBinder.createAndBindUi ( this ) ) ; driver = com.google.gwt.core.client.GWT.create ( com.google.gerrit.client.admin.ProjectAccessScreen.Driver.class ) ; driver.initialize ( accessEditor ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( com.google.gerrit.client.admin.ProjectAccessScreen.uiBinder.createAndBindUi ( this ) ) ; driver = com.google.gwt.core.client.GWT.create ( com.google.gerrit.client.admin.ProjectAccessScreen.Driver.class ) ; accessEditor.setEditing ( false ) ; driver.initialize ( accessEditor ) ; }
Source:
protected com.google.gerrit.server.query.Predicate < T > postRewrite ( com.google.gerrit.server.query.Predicate < T > pred ) { return pred ; }

Target:
protected abstract com.google.gerrit.server.query.Predicate < T > enforceVisibility ( com.google.gerrit.server.query.Predicate < T > pred ) ;
Source:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private" ) . delete ( cb ) ; }

Target:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public com.google.common.collect.ImmutableList < com.google.gerrit.testutil.FakeEmailSender.Message > getMessages ( ) { waitForEmails ( ) ; synchronized ( messages ) { return com.google.common.collect.ImmutableList.copyOf ( messages ) ; } }

Target:
public com.google.common.collect.ImmutableList < com.google.gerrit.testing.FakeEmailSender.Message > getMessages ( ) { waitForEmails ( ) ; synchronized ( messages ) { return com.google.common.collect.ImmutableList.copyOf ( messages ) ; } }
Source:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }

Target:
private void display ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result , subname ) ; groups.finishDisplay ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; com.google.gerrit.reviewdb.client.Project.NameKey project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project.get ( ) ) ; git = com.google.gerrit.acceptance.git.GitUtil.cloneProject ( ( ( ( sshSession.getUrl ( ) ) + "/" ) + ( project.get ( ) ) ) ) ; sshSession.close ( ) ; db = reviewDbProvider.open ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.GitUtil.initSsh ( admin ) ; com.google.gerrit.reviewdb.client.Project.NameKey project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project.get ( ) ) ; git = com.google.gerrit.acceptance.GitUtil.cloneProject ( ( ( ( sshSession.getUrl ( ) ) + "/" ) + ( project.get ( ) ) ) ) ; sshSession.close ( ) ; db = reviewDbProvider.open ( ) ; }
Source:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { widget.setVisible ( true ) ; copyLabel.setText ( ( ( "git fetch " + ( link.urlData ) ) + " && git cherry-pick FETCH_HEAD" ) ) ; }

Target:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { widget.setVisible ( true ) ; copyLabel.setText ( ( ( "git fetch " + ( link.getUrlData ( ) ) ) + " && git cherry-pick FETCH_HEAD" ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( ) ; } }
Source:
public java.lang.Thread newThread ( final java.lang.Runnable task ) { final java.lang.Thread t = parent.newThread ( task ) ; t.setName ( ( ( prefix + "-thread-" ) + ( tid.getAndIncrement ( ) ) ) ) ; return t ; }

Target:
public java.lang.Thread newThread ( final java.lang.Runnable task ) { final java.lang.Thread t = parent.newThread ( task ) ; t.setName ( ( ( prefix + "-" ) + ( tid.getAndIncrement ( ) ) ) ) ; return t ; }
Source:
void set ( com.google.gerrit.server.index.account.AccountIndexCollection indexCollection ) { this . indexCollection = indexCollection ; }

Target:
void set ( com.google.gerrit.server.index.account.AccountIndexCollection accountIndexCollection ) { this . accountIndexCollection = accountIndexCollection ; }
Source:
public com.google.gerrit.server.project.ChangeControl getChangeControl ( ) { return ctl ; }

Target:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { com.google.common.base.Preconditions.checkNotNull ( ctl ) ; return ctl ; }
Source:
public void listNonEmptyGroupMembers ( ) throws java.lang.Exception { assertMembers ( GET ( "/groups/Administrators/members/" ) , admin.fullName ) ; accounts.create ( "admin2" , "Administrators" ) ; assertMembers ( GET ( "/groups/Administrators/members/" ) , admin.fullName , "admin2" ) ; }

Target:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { java.lang.String group = createGroup ( "empty" ) ; com.google.common.truth.Truth.assertThat ( GET ( ( ( "/groups/" + group ) + "/members/" ) ) ) . isEmpty ( ) ; }
Source:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = false ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , false ) ) { success &= createProject ( uri , head ) ; } return success ; }

Target:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = false ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , FilterType.PROJECT_CREATION ) ) { success &= createProject ( uri , head ) ; } return success ; }
Source:
public com.google.gerrit.reviewdb.server.ChangeAccess changes ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public com.google.gerrit.reviewdb.server.ChangeAccess changes ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getExternalIds.apply ( account ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get external IDs" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getExternalIds.apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get external IDs" , e ) ; } }
Source:
private boolean isValidEntry ( java.util.jar.JarEntry entry ) { return ( entry != null ) && ( ( entry.getSize ( ) ) > 0 ) ; }

Target:
private static boolean exists ( java.util.jar.JarEntry entry ) { return ( entry != null ) && ( ( entry.getSize ( ) ) > 0 ) ; }
Source:
public boolean isNested ( ) { return ( getPrimitiveType ( ) ) == null ; }

Target:
public boolean isNested ( ) { return ( ! ( isCollection ( ) ) ) && ( ( getPrimitiveType ( ) ) == null ) ; }
Source:
protected void preExecute ( ) { super . preExecute ( ) ; progress = v ( R.id.progress ) ; initialProgress = v ( R.id.initialProgress ) ; reloadButton = v ( R.id.reloadButton ) ; statusText = tv ( R.id.statusText ) ; changeList = vg ( R.id.changeList ) ; }

Target:
protected void onPreExecute ( ) { super . onPreExecute ( ) ; progress = v ( R.id.progress ) ; initialProgress = v ( R.id.initialProgress ) ; reloadButton = v ( R.id.reloadButton ) ; statusText = tv ( R.id.statusText ) ; changeList = vg ( R.id.changeList ) ; }
Source:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; message.setFocus ( true ) ; }

Target:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; if ( ( focusOn ) != null ) { focusOn.setFocus ( true ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.googlesource.gerrit.plugins.verifystatus.client.VerificationInfo > map ) { map.copyKeysIntoChildren ( "category" ) ; panel.setWidget ( new com.googlesource.gerrit.plugins.verifystatus.client.BuildsDropDownPanel ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.googlesource.gerrit.plugins.verifystatus.client.VerificationInfo > map ) { map.copyKeysIntoChildren ( "job" ) ; panel.setWidget ( new com.googlesource.gerrit.plugins.verifystatus.client.BuildsDropDownPanel ( ) ) ; }
Source:
public boolean rebuildProject ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.common.collect.ImmutableMultimap < com.google.gerrit.reviewdb.client.Project.NameKey , com.google.gerrit.reviewdb.client.Change.Id > allChanges , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.Repository allUsersRepo ) { return false ; }

Target:
public void buildUpdates ( com.google.gerrit.server.notedb.NoteDbUpdateManager manager , com.google.gerrit.server.notedb.ChangeBundle bundle ) { }
Source:
public java.lang.String getBaseProject ( boolean isPrivateProject ) { return com.google.common.base.Objects.firstNonNull ( ( isPrivateProject ? privateBaseProject : publicBaseProject ) , allProjectsName ) ; }

Target:
public java.lang.String getBaseProject ( boolean isPrivateProject ) { return com.google.common.base.MoreObjects.firstNonNull ( ( isPrivateProject ? privateBaseProject : publicBaseProject ) , allProjectsName ) ; }
Source:
public void testCreateProjectWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/someName" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; }

Target:
public void testCreateProjectHttpWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/someName" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.rules.PredicateProvider.class ) . to ( com.vmware.gerrit.owners.OwnerPredicateProvider.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.rules.PredicateProvider.class ) . to ( com.vmware.gerrit.owners.OwnerPredicateProvider.class ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , null , id ) ; }
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 , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
public void onScreenLoad ( com.google.gerrit.client.ui.ScreenLoadEvent event ) { if ( ( event.getScreen ( ) ) instanceof com.google.gerrit.client.admin.ProjectScreen ) { com.google.gerrit.client.Gerrit.menuLeft.selectTab ( com.google.gerrit.client.Gerrit.menuLeft.getWidgetIndex ( this ) ) ; } }

Target:
protected boolean match ( java.lang.String token ) { return ( super . match ( token ) ) || ( ( ! ( getTargetHistoryToken ( ) . isEmpty ( ) ) ) && ( ( "/admin" + token ) . startsWith ( getTargetHistoryToken ( ) ) ) ) ; }
Source:
public void getGeneralPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.GeneralPreferencesInfo result = gApi.config ( ) . server ( ) . getDefaultPreferences ( ) ; com.google.gerrit.acceptance.AssertUtil.assertPrefs ( result , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) , "my" ) ; }

Target:
public void getGeneralPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.GeneralPreferencesInfo result = gApi.config ( ) . server ( ) . getDefaultPreferences ( ) ; com.google.gerrit.acceptance.AssertUtil.assertPrefs ( result , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) , "changeTable" , "my" ) ; }
Source:
public void add ( final com.google.gerrit.server.plugins.RegistrationHandle handle ) { add ( new com.google.gerrit.lifecycle.LifecycleListener ( ) { @ java.lang.Override public void start ( ) { } @ java.lang.Override public void stop ( ) { handle.remove ( ) ; } } ) ; }

Target:
public void add ( final com.google.gerrit.extensions.registration.RegistrationHandle handle ) { add ( new com.google.gerrit.lifecycle.LifecycleListener ( ) { @ java.lang.Override public void start ( ) { } @ java.lang.Override public void stop ( ) { handle.remove ( ) ; } } ) ; }
Source:
public void self ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo info = gApi.accounts ( ) . self ( ) . get ( ) ; org.junit.Assert.assertEquals ( "Administrator" , info.name ) ; org.junit.Assert.assertEquals ( "admin@example.com" , info.email ) ; org.junit.Assert.assertEquals ( "admin" , info.username ) ; }

Target:
public void self ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo info = gApi.accounts ( ) . self ( ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.name ) . isEqualTo ( "Administrator" ) ; com.google.common.truth.Truth.assertThat ( info.email ) . isEqualTo ( "admin@example.com" ) ; com.google.common.truth.Truth.assertThat ( info.username ) . isEqualTo ( "admin" ) ; }
Source:
private static com.google.gerrit.server.git.PerThreadRequestScope getContext ( ) { final com.google.gerrit.server.git.PerThreadRequestScope ctx = com.google.gerrit.server.git.PerThreadRequestScope.current.get ( ) ; if ( ctx == null ) { throw new com.google.inject.OutOfScopeException ( "Not in command/request" ) ; } return ctx ; }

Target:
private static com.google.gerrit.server.git.PerThreadRequestScope requireContext ( ) { final com.google.gerrit.server.git.PerThreadRequestScope ctx = com.google.gerrit.server.git.PerThreadRequestScope.current.get ( ) ; if ( ctx == null ) { throw new com.google.inject.OutOfScopeException ( "Not in command/request" ) ; } return ctx ; }
Source:
public boolean canListen ( java.net.InetSocketAddress address , org.apache.sshd.server.session.ServerSession session ) { return false ; }

Target:
public boolean canListen ( org.apache.sshd.common.SshdSocketAddress address , org.apache.sshd.common.Session session ) { return false ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
protected boolean shouldClose ( org.eclipse.jgit.lib.Repository repo ) { return true ; }

Target:
private static boolean onlyMagicBranches ( java.lang.Iterable < org.eclipse.jgit.transport.ReceiveCommand > commands ) { for ( org.eclipse.jgit.transport.ReceiveCommand c : commands ) { if ( ! ( com.google.gerrit.server.util.MagicBranch.isMagicBranch ( c.getRefName ( ) ) ) ) { return false ; } } return true ; }
Source:
public void start ( org.apache.sshd.server.Environment env ) throws java.io.IOException { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; impl.display ( out ) ; } } ) ; }

Target:
protected void parseCommandLine ( ) throws com.google.gerrit.sshd.commands.UnloggedFailure { parseCommandLine ( impl ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setCurrentPatchSet ( patchSetInfoFactory.get ( newCommit , ps.getId ( ) ) ) ; return change ; }

Target:
private void preMerge ( final com.google.gerrit.server.git.SubmitStrategy strategy ) throws com.google.gerrit.server.git.MergeException { openBranch ( ) ; validateChangeList ( ) ; mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }
Source:
public void setLocalUser ( java.lang.String localUser ) { if ( externalId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { externalId = ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT , localUser ) ; } }

Target:
public void setLocalUser ( java.lang.String localUser ) { if ( externalId.isScheme ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT ) ) { externalId = ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT , localUser ) ; } }
Source:
public void setChanges ( java.util.List < com.google.gerrit.client.data.ChangeInfo > c ) { changes = c ; }

Target:
public void setChanges ( java.util.List < com.google.gerrit.client.data.ChangeInfo > c , boolean end ) { changes = c ; atEnd = end ; }
Source:
protected void configure ( ) { delete ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteProject.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "delete" ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteProject.class ) ; }

Target:
protected void configure ( ) { delete ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteProject.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "delete" ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteAction.class ) ; }
Source:
public void testEntityNbsp ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; assertSame ( b , b.nbsp ( ) ) ; assertEquals ( "&nbsp;" , b.asString ( ) ) ; }

Target:
public void testTagBr ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.br ( ) ) ; org.junit.Assert.assertEquals ( "<br />" , b.asString ( ) ) ; }
Source:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexer ) ; id = Account.Id.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }

Target:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexer ) ; id = Account.Id.tryParse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) . get ( ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }
Source:
void replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { writer.updateDocument ( term , doc ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < java.lang.Void > delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.deleteDocuments ( term ) ) ; }
Source:
public boolean containsHeader ( java.lang.String name ) { return false ; }

Target:
public boolean containsHeader ( java.lang.String name ) { return ! ( headers.get ( name ) . isEmpty ( ) ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.UserConfigInfo getUserInfo ( java.lang.String anonymousCowardName ) { com.google.gerrit.server.config.GetServerInfo.UserConfigInfo info = new com.google.gerrit.server.config.GetServerInfo.UserConfigInfo ( ) ; info.anonymousCowardName = anonymousCowardName ; return info ; }

Target:
private com.google.gerrit.extensions.common.UserConfigInfo getUserInfo ( java.lang.String anonymousCowardName ) { com.google.gerrit.extensions.common.UserConfigInfo info = new com.google.gerrit.extensions.common.UserConfigInfo ( ) ; info.anonymousCowardName = anonymousCowardName ; return info ; }
Source:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws com.google.gwtorm.server.OrmException { try ( com.google.gwtorm.server.StatementExecutor e = newExecutor ( db ) ) { e.execute ( "UPDATE changes SET status = 'n' WHERE status = 's'" ) ; } }

Target:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws com.google.gwtorm.server.OrmException { try ( com.google.gwtorm.server.StatementExecutor e = newExecutor ( db ) ) { e.execute ( "UPDATE changes SET status = 'n' created_on = created_on WHERE status = 's'" ) ; } }
Source:
public java.lang.String format ( java.lang.String projectName , java.lang.String revision , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException ;

Target:
public java.lang.String format ( java.lang.String projectName , java.lang.String path , java.lang.String revision , java.lang.String abbrRev , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException ;
Source:
void addError ( java.lang.String error ) { messages.add ( new com.google.gerrit.server.git.ReceiveCommits.Message ( error , true ) ) ; }

Target:
void addError ( java.lang.String error ) { messages.add ( new com.google.gerrit.server.git.validators.CommitValidationMessage ( error , true ) ) ; }
Source:
public void cancel ( ) { for ( com.googlesrouce.gerrit.plugins.github.git.GitJob job : jobs.values ( ) ) { job.cancel ( ) ; } }

Target:
public void cancel ( ) { for ( com.googlesource.gerrit.plugins.github.git.GitJob job : jobs.values ( ) ) { job.cancel ( ) ; } }
Source:
public com.google.gerrit.extensions.api.projects.BranchApi branch ( java.lang.String ref ) { return branchApi.create ( project , ref ) ; }

Target:
private com.google.gerrit.server.project.ProjectResource checkExists ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return project ; }
Source:
public java.util.List < com.google.gerrit.client.data.ApprovalType > getApprovalTypes ( ) { initApprovalTypes ( ) ; return approvalTypes ; }

Target:
public com.google.gerrit.client.data.ApprovalTypes getApprovalTypes ( ) { return approvalTypes ; }
Source:
public void go ( ) { for ( com.google.gerrit.reviewdb.client.Patch p : detail.getPatches ( ) ) { openWindow ( com.google.gerrit.client.Dispatcher.toPatchUnified ( base , p.getKey ( ) ) ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { for ( com.google.gerrit.reviewdb.client.Patch p : detail.getPatches ( ) ) { openWindow ( com.google.gerrit.client.Dispatcher.toPatchUnified ( base , p.getKey ( ) ) ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , null , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , remotePeerProvider , null , id ) ; }
Source:
public static boolean useSsh ( ) { return ( com.google.gerrit.testutil.SshMode.get ( ) ) == ( com.google.gerrit.testutil.SshMode.YES ) ; }

Target:
public static boolean useSsh ( ) { return ( com.google.gerrit.testing.SshMode.get ( ) ) == ( com.google.gerrit.testing.SshMode.YES ) ; }
Source:
protected abstract void onCellSingleClick ( int row , int column ) ;

Target:
abstract void createFileCommentEditorOnSideA ( ) ;
Source:
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 ( ) ) ; }

Target:
public static void add ( com.google.gerrit.client.info.ChangeInfo info ) { com.google.gerrit.client.projects.ConfigInfoCache.instance.changeToProject.put ( info.legacyId ( ) . get ( ) , info.project ( ) ) ; }
Source:
com.google.gerrit.httpd.raw.FontsServlet getFontsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.FontsServlet ( cache , getPaths ( ) . buckOut ) ; }

Target:
com.google.gerrit.httpd.raw.FontsDevServlet getFontsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return getPaths ( ) . isDev ( ) ? new com.google.gerrit.httpd.raw.FontsDevServlet ( cache , getPaths ( ) . builder ) : null ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . addValue ( fields.keySet ( ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . addValue ( fields.keySet ( ) ) . toString ( ) ; }
Source:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return get ( r.getChangeId ( ) , ListChangesOption.LABELS , ListChangesOption.DETAILED_LABELS ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return get ( r.getChangeId ( ) , com.google.gerrit.extensions.client.ListChangesOption.LABELS , com.google.gerrit.extensions.client.ListChangesOption.DETAILED_LABELS , com.google.gerrit.extensions.client.ListChangesOption.SUBMITTABLE ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl incrementPatchSet ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return incrementPatchSet ( ctl , patchSetCommit ( nextPatchSetId ( ctl ) ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes incrementPatchSet ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return incrementPatchSet ( notes , patchSetCommit ( nextPatchSetId ( notes ) ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.config.GerritOptions.class ) . toInstance ( new com.google.gerrit.server.config.GerritOptions ( config , false , false , false ) ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.httpd.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > copyVetosToLatestPatchSet ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return copyVetosToLatestPatchSet ( db , change ) ; }

Target:
public void addReviewers ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet ps , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > wantReviewers ) throws com.google.gwtorm.server.OrmException { java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > existing = com.google.common.collect.Sets.< com.google.gerrit.reviewdb.client.Account.Id > newHashSet ( ) ; addReviewers ( change , ps , info , wantReviewers , existing ) ; }