auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
java.lang.String name ( ) default "" ;

Target:
java.lang.String description ( ) default "" ;
Source:
private java.lang.String link ( final com.google.gerrit.client.dashboards.DashboardInfo item ) { return "/dashboard/?" + ( item.parameters ( ) ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.dashboards.DashboardInfo item ) { return item.id ( ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return indexAsync ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( new com.google.gerrit.server.query.change.ChangeData ( change ) , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void check ( com.google.gerrit.server.permissions.ChangePermissionOrLabel perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " denied" ) ) ; } }

Target:
public void check ( com.google.gerrit.server.permissions.ChangePermissionOrLabel perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " not permitted" ) ) ; } }
Source:
public void createOtherAndGrantPermissions ( ) throws java.lang.Exception { other = accounts.create ( "other" , "other@example.com" , "other" ) ; grant ( project , "refs/*" , Permission.FORGE_COMMITTER , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
public void createOtherAndGrantPermissions ( ) throws java.lang.Exception { other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; grant ( project , "refs/*" , Permission.FORGE_COMMITTER , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
private void log ( final int rc ) { synchronized ( this ) { if ( ! ( logged ) ) { log.onExecute ( rc ) ; logged = true ; } } }

Target:
private void log ( final int rc ) { if ( logged.compareAndSet ( false , true ) ) { log.onExecute ( rc ) ; } }
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 , 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 ;
Source:
public void stop ( ) { if ( ( acceptor ) != null ) { try { acceptor.dispose ( ) ; } finally { acceptor = null ; } } }

Target:
public synchronized void stop ( ) { if ( ( acceptor ) != null ) { try { acceptor.dispose ( ) ; com.google.gerrit.server.ssh.GerritSshDaemon.log.info ( "Stopped Gerrit SSHD" ) ; } finally { acceptor = null ; } } }
Source:
public void evictMembersOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;

Target:
public void evictSubgroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;
Source:
protected void configure ( ) { listener ( ) . to ( LocalDiskRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( LocalDiskRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }
Source:
public static java.lang.String toPatchSideBySide2 ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "cm" , diffBase , revision , fileName ) ; }

Target:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName ) ; }
Source:
void onSubmit ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.SubmitAction.call ( changeId , revision ) ; }

Target:
void onSubmit ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.SubmitAction.call ( changeInfo , changeInfo.revision ( revision ) ) ; }
Source:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; content = null ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content , editFileInfo , patchSetDiffInfo ) ; content = null ; editFileInfo = null ; patchSetDiffInfo = null ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( box.getText ( ) ) ) { box.setText ( Util.C.defaultProjectName ( ) ) ; box.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( nameBox.getText ( ) ) ) { nameBox.setText ( Util.C.defaultProjectName ( ) ) ; nameBox.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
public static void edit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi drafts ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "drafts" ) ; }
Source:
private java.io.File gitDirOf ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new java.io.File ( getBasePath ( ) , name.get ( ) ) ; }

Target:
public org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException { return openRepository ( basePath , name ) ; }
Source:
public void getNonExistingChildProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/children/non-existing" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void getNonExistingChildProject_NotFound ( ) throws java.lang.Exception { assertChildNotFound ( allProjects , "non-existing" ) ; }
Source:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , false , expectedStatus ) ; }

Target:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , expectedStatus ) ; }
Source:
public void deleteTags ( com.google.gerrit.extensions.api.projects.DeleteTagsInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteTags.apply ( checkExists ( ) , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete tags" , e ) ; } }

Target:
public void deleteTags ( com.google.gerrit.extensions.api.projects.DeleteTagsInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteTags.apply ( checkExists ( ) , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete tags" , e ) ; } }
Source:
public java.lang.String getRefPattern ( ) { return key.refPattern.get ( ) ; }

Target:
public java.lang.String getRefPatternForDisplay ( ) { return key.refPattern.get ( ) ; }
Source:
private void initPatchSet ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSet ) == null ) { patchSet = cd.currentPatchSet ( ) ; } }

Target:
private void initPatchSet ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSet ) == null ) { patchSet = cd.currentPatchSet ( ) ; if ( ( patchSet ) == null ) { throw new com.google.gwtorm.server.OrmException ( "No patch set found" ) ; } } }
Source:
protected int getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.query.change.ChangeData.ChangedLines changedLines = changeData.changedLines ( ) ; return ( changedLines.insertions ) + ( changedLines.deletions ) ; }

Target:
protected java.lang.Integer getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return ChangeField.DELTA.get ( changeData , null ) ; }
Source:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return com.google.gerrit.server.git.MergeUtil.canMerge ( args.mergeSorter , args.repo , args.useContentMerge , mergeTip , toMerge ) ; }

Target:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ; }
Source:
public void addOtherUsersGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; }

Target:
public void addGpgKey ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; info.id = id ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , info ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ) ; org.bouncycastle.openpgp.PGPPublicKey stored = getOnlyKeyFromStore ( key ) ; com.google.common.truth.Truth.assertThat ( stored.getFingerprint ( ) ) . isEqualTo ( key.getPublicKey ( ) . getFingerprint ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }
Source:
private void initSshd ( ) { sshInjector = createSshInjector ( ) ; manager.add ( sshInjector ) ; }

Target:
private void initSshd ( ) { sshInjector = createSshInjector ( ) ; sysInjector.getInstance ( com.google.gerrit.server.plugins.PluginGuiceEnvironment.class ) . setSshInjector ( sshInjector ) ; manager.add ( sshInjector ) ; }
Source:
public final native void retainHeader ( boolean r ) ;

Target:
public final native void expandAllComments ( java.lang.Boolean e ) ;
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { hide ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }
Source:
public int compare ( final com.google.gerrit.client.data.ChangeInfo o1 , final com.google.gerrit.client.data.ChangeInfo o2 ) { return ( o1.getId ( ) . get ( ) ) - ( o2.getId ( ) . get ( ) ) ; }

Target:
public void setCurrentPatchSetDetail ( com.google.gerrit.client.data.PatchSetDetail d ) { currentDetail = d ; }
Source:
private void deleteRef ( java.lang.String refName ) throws java.lang.Exception { org.eclipse.jgit.lib.RefUpdate ru = repo.getRepository ( ) . updateRef ( refName , true ) ; ru.setForceUpdate ( true ) ; com.google.common.truth.Truth.assertThat ( ru.delete ( ) ) . isEqualTo ( RefUpdate.Result.FORCED ) ; }

Target:
private void deleteRef ( java.lang.String refName ) throws java.lang.Exception { org.eclipse.jgit.lib.RefUpdate ru = testRepo.getRepository ( ) . updateRef ( refName , true ) ; ru.setForceUpdate ( true ) ; com.google.common.truth.Truth.assertThat ( ru.delete ( ) ) . isEqualTo ( RefUpdate.Result.FORCED ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpDelete delete = new org.apache.http.client.methods.HttpDelete ( ( "http://localhost:8080/a" + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( delete ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpDelete delete = new org.apache.http.client.methods.HttpDelete ( ( ( ( url ) + "/a" ) + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( delete ) ) ; }
Source:
static com.google.gerrit.client.rpc.NativeString wrap ( java.lang.String value ) { com.google.gerrit.client.rpc.NativeString ns = ( ( com.google.gerrit.client.rpc.NativeString ) ( createObject ( ) ) ) ; ns.set ( value ) ; return ns ; }

Target:
static final com.google.gerrit.client.rpc.NativeString wrap ( java.lang.String s ) { return com.google.gerrit.client.rpc.NativeString.wrap0 ( com.google.gerrit.client.rpc.NativeString.TYPE , s ) ; }
Source:
void onAddGroupByClick ( com.google.gwt.event.dom.client.ClickEvent event ) { addGroup ( ) ; }

Target:
void onAddGroupByClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.common.data.GroupReference ref = groupToAdd.getValue ( ) ; if ( ref != null ) { addGroup ( ref ) ; } else { groupToAdd.setFocus ( true ) ; } }
Source:
public java.io.Reader getReader ( ) throws java.io.IOException , java.lang.IllegalStateException { java.io.Reader reader = new java.io.InputStreamReader ( response.getEntity ( ) . getContent ( ) ) ; reader.skip ( JSON_MAGIC.length ) ; return reader ; }

Target:
public void consume ( ) throws java.io.IOException , java.lang.IllegalStateException { java.io.Reader reader = getReader ( ) ; if ( reader != null ) { while ( ( reader.read ( ) ) != ( - 1 ) ) ; } }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "project" , project ) . add ( "branch" , branch ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . add ( "project" , project ) . add ( "branch" , branch ) . toString ( ) ; }
Source:
public com.google.gerrit.server.account.CapabilityControl create ( com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.server.account.CapabilityControl ( projectCache , user ) ; }

Target:
public com.google.gerrit.server.account.AccountLimits create ( com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.server.account.AccountLimits ( projectCache , user ) ; }
Source:
public void setParent ( final com.google.gerrit.reviewdb.Project.NameKey parentProjectName ) { parent = parentProjectName ; }

Target:
public void setParentName ( java.lang.String n ) { parent = ( n != null ) ? new com.google.gerrit.reviewdb.Project.NameKey ( n ) : null ; }
Source:
private void setRefLogIdent ( final com.google.gerrit.reviewdb.PatchSetApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . newPersonIdent ( ) ) ; } }

Target:
private void setRefLogIdent ( final com.google.gerrit.reviewdb.PatchSetApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . newRefLogIdent ( ) ) ; } }
Source:
private void checkSequenceValue ( int s ) { if ( s < 1 ) { throw new java.lang.IllegalArgumentException ( ( "invalid sequence number " + s ) ) ; } }

Target:
public boolean isValid ( ) { return ( seq ) > 0 ; }
Source:
public static com.google.gerrit.client.changes.QueryScreen forQuery ( java.lang.String query , java.lang.String position ) { return new com.google.gerrit.client.changes.QueryScreen ( com.google.gwtorm.client.KeyUtil.encode ( query ) , position ) ; }

Target:
public static com.google.gerrit.client.changes.QueryScreen forQuery ( java.lang.String query , int start ) { return new com.google.gerrit.client.changes.QueryScreen ( com.google.gwtorm.client.KeyUtil.encode ( query ) , start ) ; }
Source:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( author.getFullName ( ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.newIdent ( author , when , serverIdent , anonymousCowardName ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }

Target:
public void rebase ( com.google.gerrit.extensions.api.changes.RebaseInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { rebase.apply ( change , in ) ; } catch ( com.google.gerrit.common.errors.EmailException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot rebase change" , e ) ; } }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > name ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return new com.google.gerrit.server.query.project.ProjectPredicates.ProjectPredicate ( com.google.gerrit.server.index.project.ProjectField.NAME , nameKey.get ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > name ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return new com.google.gerrit.index.project.ProjectPredicate ( com.google.gerrit.index.project.ProjectField.NAME , nameKey.get ( ) ) ; }
Source:
com.google.gerrit.prettify.common.PrettyFormatter.Tag pop ( java.lang.StringBuilder buf , java.lang.String html ) { return this ; }

Target:
com.google.gerrit.prettify.client.PrettyFormatter.Tag pop ( java.lang.StringBuilder buf , java.lang.String html ) { return this ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > isVisibleToAll ( ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.IS_VISIBLE_TO_ALL , "1" ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > isVisibleToAll ( ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.IS_VISIBLE_TO_ALL , "1" ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setTitleText ( Util.M.changesOpenInProject ( projectKey.get ( ) ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.M.changesOpenInProject ( projectKey.get ( ) ) ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( this , change ) ; }

Target:
public com.google.gerrit.server.project.RefControl controlForRef ( java.lang.String refName ) { return new com.google.gerrit.server.project.RefControl ( this , refName ) ; }
Source:
public final native void setHeight ( java.lang.String h ) ;

Target:
public final void adjustHeight ( int localHeader ) { int rest = ( ( com.google.gerrit.client.Gerrit.getHeaderFooterHeight ( ) ) + localHeader ) + 5 ; setHeight ( ( ( com.google.gwt.user.client.Window.getClientHeight ( ) ) - rest ) ) ; }
Source:
protected void onClick ( final com.google.gwt.user.client.Event event ) { com.google.gerrit.client.Gerrit.display ( getTargetHistoryToken ( ) , createScreen ( ) ) ; com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Gerrit.display ( getTargetHistoryToken ( ) , createScreen ( ) ) ; }
Source:
private boolean canImport ( ) { com.google.gerrit.server.account.CapabilityControl ctl = userProvider.get ( ) . getCapabilities ( ) ; return ( ctl.canAdministrateServer ( ) ) || ( ctl.canPerform ( ( ( ( pluginName ) + "-" ) + ( ImportCapability.ID ) ) ) ) ; }

Target:
private boolean canImport ( ) { return ( permissionBackend.user ( userProvider ) . testOrFalse ( new com.google.gerrit.extensions.api.access.PluginPermission ( pluginName , ImportCapability.ID ) ) ) || ( permissionBackend.user ( userProvider ) . testOrFalse ( com.google.gerrit.server.permissions.GlobalPermission.ADMINISTRATE_SERVER ) ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( author.getFullName ( ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }
Source:
public java.util.List < org.pegdown.ast.Node > parse ( org.parboiled.support.StringBuilderVar body ) { if ( ( parser ) == null ) { parser = com.google.gitiles.doc.GitilesMarkdown.newParser ( ) ; } return parser.parseMarkdown ( body.getChars ( ) ) . getChildren ( ) ; }

Target:
public java.util.List < org.pegdown.ast.Node > parse ( org.parboiled.support.StringBuilderVar body ) { if ( ( parser ) == null ) { parser = com.google.gitiles.doc.GitilesMarkdown.newParser ( parseTimeout ) ; } return parser.parseMarkdown ( body.getChars ( ) ) . getChildren ( ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setRunHooks ( boolean runHooks ) { this . runHooks = runHooks ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setFireRevisionCreated ( boolean fireRevisionCreated ) { this . fireRevisionCreated = fireRevisionCreated ; return this ; }
Source:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.fullName ( change.get ( ) . branch ) ; }

Target:
public java.lang.String getRefName ( ) { return refName ; }
Source:
public void newPatchSetByOwnerOnReviewableChangeToWip ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.NEW_PATCHSETS ) ; pushTo ( sc , "refs/for/master%wip" , sc.owner ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetByOtherOnReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; pushTo ( sc , "refs/for/master%notify=NONE" , other ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public static void restore ( int id , java.lang.String path , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.Input in = com.google.gerrit.client.changes.ChangeEditApi.Input.create ( ) ; in.restore_path ( path ) ; com.google.gerrit.client.changes.ChangeApi.edit ( id ) . post ( in , cb ) ; }

Target:
public static void restore ( int id , java.lang.String path , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.Input in = com.google.gerrit.client.changes.ChangeEditApi.Input.create ( ) ; in.restorePath ( path ) ; com.google.gerrit.client.changes.ChangeApi.edit ( id ) . post ( in , cb ) ; }
Source:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( wildProject ) . getRights ( ) ; }

Target:
java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( wildProject ) . getLocalRights ( ) ; }
Source:
public static com.google.gwtexpui.safehtml.client.SafeHtml get ( final com.google.gwt.user.client.Element e ) { return new com.google.gwtexpui.safehtml.client.SafeHtmlString ( com.google.gwt.user.client.DOM.getInnerHTML ( e ) ) ; }

Target:
public static com.google.gwtexpui.safehtml.client.SafeHtml get ( com.google.gwt.dom.client.Element e ) { return new com.google.gwtexpui.safehtml.client.SafeHtmlString ( e.getInnerHTML ( ) ) ; }
Source:
public com.google.gerrit.httpd.raw.ResourceServlet.Resource call ( ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.ResourceServlet.Resource ( getLastModifiedTime ( p ) , com.google.gerrit.httpd.raw.ResourceServlet.contentType ( p.toString ( ) ) , java.nio.file.Files.readAllBytes ( p ) ) ; }

Target:
public com.google.gerrit.httpd.raw.ResourceServlet.Resource call ( ) throws java.io.IOException { try { return new com.google.gerrit.httpd.raw.ResourceServlet.Resource ( getLastModifiedTime ( p ) , com.google.gerrit.httpd.raw.ResourceServlet.contentType ( p.toString ( ) ) , java.nio.file.Files.readAllBytes ( p ) ) ; } catch ( java.nio.file.NoSuchFileException e ) { return com.google.gerrit.httpd.raw.ResourceServlet.Resource.NOT_FOUND ; } }
Source:
protected com.google.gerrit.client.ui.Screen createScreen ( ) { return new com.google.gerrit.client.changes.AccountDashboardScreen ( accountId ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Gerrit.display ( getTargetHistoryToken ( ) , new com.google.gerrit.client.changes.AccountDashboardScreen ( accountId ) ) ; }
Source:
private void display ( ) { display ( false ) ; }

Target:
private void loadAndDisplay ( ) { loadAndDisplay ( false ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountInfo result ) { onCloseForm ( ) ; assigneeLink.setText ( "" ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.AccountInfo result ) { onCloseForm ( ) ; setAssignee ( null ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.change.IndexRewriter.class ) ; bind ( com.google.gerrit.server.index.IndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.IndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.change.IndexRewriter.class ) ; listener ( ) . to ( com.google.gerrit.server.index.change.ChangeIndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }
Source:
public void expiredKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.key3 ( ) , "Key is expired" ) ; }

Target:
public void expiredKeyIsExpired ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.expiredKey ( ) , "Key is expired" ) ; }
Source:
public java.lang.Boolean run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAbandonChange ( message , change , patchSetId , cmsg , db , txn ) ; }

Target:
public com.google.gerrit.server.patch.PatchDetailServiceImpl.PublishResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doPublishComments ( psid , message , approvals , db , txn ) ; }
Source:
private void padLineNumber ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m ) { m.openTd ( ) ; m.setStyleName ( "LineNumber" ) ; m.closeTd ( ) ; }

Target:
private void padLineNumber ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m ) { m.openTd ( ) ; m.setStyleName ( Gerrit.RESOURCES.css ( ) . lineNumber ( ) ) ; m.closeTd ( ) ; }
Source:
private com.google.gerrit.common.data.PatchScriptSettings.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.common.data.PatchScriptSettings.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return value.getWhitespace ( ) ; }

Target:
private com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return value.getWhitespace ( ) ; }
Source:
java.lang.String getAttribute ( com.google.gson.JsonObject json , java.lang.String name ) { com.google.gson.JsonPrimitive prim = getAsJsonPrimitive ( json , name ) ; return ( prim != null ) && ( prim.isString ( ) ) ? prim.getAsString ( ) : null ; }

Target:
private java.lang.String getAccessTokenAttribute ( java.lang.String tokenResponse ) throws com.googlesource.gerrit.plugins.cfoauth.UAAClientException { com.google.gson.JsonObject json = getAsJsonObject ( tokenResponse ) ; java.lang.String accessToken = getAttribute ( json , com.googlesource.gerrit.plugins.cfoauth.UAAClient.ACCESS_TOKEN_ATTRIBUTE ) ; if ( accessToken == null ) { throw new com.googlesource.gerrit.plugins.cfoauth.UAAClientException ( "Can't extract a token: missing or invalid 'access_token' attribute" ) ; } return accessToken ; }
Source:
private void writeFile ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { res.setStatus ( HttpServletResponse.SC_NO_CONTENT ) ; streamRequestToFile ( req , resolveFile ( req ) ) ; }

Target:
private void writeFile ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { res.setStatus ( HttpServletResponse.SC_NO_CONTENT ) ; streamRequestToFile ( req , resolvePath ( req ) . toFile ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doRemove ( ad ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doRemove ( ad , remove ) ; }
Source:
public boolean handles ( java.io.File srcFile ) { return srcFile.getName ( ) . endsWith ( com.googlesource.gerrit.plugins.cookbook.pluginprovider.HelloSshPluginProvider.SSH_EXT ) ; }

Target:
public boolean handles ( java.nio.file.Path srcPath ) { return srcPath.getFileName ( ) . toString ( ) . endsWith ( com.googlesource.gerrit.plugins.cookbook.pluginprovider.HelloSshPluginProvider.SSH_EXT ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > equalsNameIcludingSecondaryEmails ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name.toLowerCase ( ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { try { return list.get ( com.google.gerrit.server.project.ProjectCacheImpl.ListKey.ALL ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.project.ProjectCacheImpl.log.warn ( "Cannot list available projects" , e ) ; return java.util.Collections.emptyList ( ) ; } }

Target:
public java.util.SortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { try { return list.get ( com.google.gerrit.server.project.ProjectCacheImpl.ListKey.ALL ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.project.ProjectCacheImpl.log.warn ( "Cannot list available projects" , e ) ; return java.util.Collections.emptySortedSet ( ) ; } }
Source:
public void onChangeEvent ( com.google.gerrit.server.events.ChangeEvent event ) { queue.add ( event ) ; executor.submit ( new ChangeRunner ( ) ) ; }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { queue.add ( event ) ; executor.submit ( new ChangeRunner ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser get ( ) { return createNew ( ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser get ( ) { return createNew ( com.googlesource.gerrit.plugins.uploadvalidator.FakeUserProvider.FAKE_EMAIL ) ; }
Source:
public synchronized java.util.List < com.googlesource.gerrit.plugins.replication.Destination > getDestinations ( ) { reloadIfNeeded ( ) ; return currentConfig.getDestinations ( ) ; }

Target:
public synchronized java.util.List < com.googlesource.gerrit.plugins.replication.Destination > getDestinations ( com.googlesource.gerrit.plugins.replication.FilterType filterType ) { reloadIfNeeded ( ) ; return currentConfig.getDestinations ( filterType ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.AccountCapabilities ac ) { display ( serviceUserInfo , ( ( configInfo.getAllowEmail ( ) ) || ( ac.canPerform ( "administrateServer" ) ) ) ) ; }

Target:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.AccountCapabilities ac ) { boolean isAdmin = ac.canPerform ( "administrateServer" ) ; display ( serviceUserInfo , ( ( configInfo.getAllowEmail ( ) ) || isAdmin ) , ( ( configInfo.getAllowOwner ( ) ) || isAdmin ) ) ; }
Source:
public com.google.gerrit.server.WebLinks get ( ) { com.google.gerrit.server.WebLinks webLinks = new com.google.gerrit.server.WebLinks ( patchSetLinks , projectLinks , branchLinks ) ; return webLinks ; }

Target:
public com.google.gerrit.server.WebLinks get ( ) { return new com.google.gerrit.server.WebLinks ( patchSetLinks , fileLinks , projectLinks , branchLinks ) ; }
Source:
public static com.google.gerrit.server.index.FieldDef.Builder < java.lang.Integer > integer ( java.lang.String name ) { return new com.google.gerrit.server.index.FieldDef.Builder ( FieldType.INTEGER , name ) ; }

Target:
public static com.google.gerrit.index.FieldDef.Builder < java.lang.Integer > integer ( java.lang.String name ) { return new com.google.gerrit.index.FieldDef.Builder ( FieldType.INTEGER , name ) ; }
Source:
protected abstract java.lang.Object createServiceHandle ( ) throws java.lang.Exception ;

Target:
protected java.lang.Object createServiceHandle ( ) { return service ; }
Source:
public com.google.gerrit.reviewdb.server.PatchSetAccess patchSets ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public com.google.gerrit.reviewdb.server.PatchSetAccess patchSets ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( side == ( DisplaySide.A ) ) && ( ( ( base ) == null ) || ( ( base.get ( ) ) < 0 ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }

Target:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( ( side == ( DisplaySide.A ) ) && ( base.isBaseOrAutoMerge ( ) ) ) || ( base.isParent ( ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ChangeDetail result ) { if ( result != null ) { detailCache.set ( result ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } }
Source:
protected java.lang.String getRefName ( ) { return GitRepositoryManager.REF_CONFIG ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.extensions.restapi.TopLevelResource > list ( ) { return list.get ( ) . setFormat ( OutputFormat.JSON ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.extensions.restapi.TopLevelResource > list ( ) { if ( hasQuery ) { return queryProjects.get ( ) ; } return list.get ( ) . setFormat ( OutputFormat.JSON ) ; }
Source:
public void start ( ) { queue.getDefaultQueue ( ) . scheduleWithFixedDelay ( compresser , 1 , 24 , java.util.concurrent.TimeUnit.HOURS ) ; }

Target:
public void start ( ) { queue.getDefaultQueue ( ) . scheduleAtFixedRate ( compresser , 1 , 24 , java.util.concurrent.TimeUnit.HOURS ) ; }
Source:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return editableAccountFields.contains ( field ) ; }

Target:
public boolean allowsEdit ( com.google.gerrit.extensions.client.AccountFieldName field ) { return editableAccountFields.contains ( field ) ; }
Source:
private PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ? base : revision ; }

Target:
com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo lineOnOther ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return mapper.lineOnOther ( side , line ) ; }
Source:
private boolean isNewRef ( com.googlesource.gerrit.plugins.refprotection.Event event ) { return event.getOldObjectId ( ) . equals ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) . getName ( ) ) ; }

Target:
private boolean isNewRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return event.refUpdate.oldRev.equals ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) . getName ( ) ) ; }
Source:
public static void defaultDashboard ( 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" ) ) . get ( callback ) ; }

Target:
public static void defaultDashboard ( 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 ) ; }
Source:
private boolean isHttpEnabled ( ) { return ( downloadConfig.getDownloadSchemes ( ) . contains ( DownloadScheme.ANON_HTTP ) ) || ( downloadConfig.getDownloadSchemes ( ) . contains ( DownloadScheme.HTTP ) ) ; }

Target:
private boolean isHttpEnabled ( ) { return ( downloadConfig.getDownloadSchemes ( ) . contains ( CoreDownloadSchemes.ANON_HTTP ) ) || ( downloadConfig.getDownloadSchemes ( ) . contains ( CoreDownloadSchemes.HTTP ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }

Target:
public void run ( ) { fixScroll ( cmA ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , msgTxt , NotifyHandling.ALL ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public final com.google.gerrit.server.index.Schema.Builder < T > add ( com.google.gerrit.server.index.FieldDef < T , ? > ... fields ) { this . fields.addAll ( java.util.Arrays.asList ( fields ) ) ; return this ; }

Target:
public final com.google.gerrit.index.Schema.Builder < T > add ( com.google.gerrit.index.FieldDef < T , ? > ... fields ) { this . fields.addAll ( java.util.Arrays.asList ( fields ) ) ; return this ; }
Source:
protected void format ( ) { formatSalutation ( ) ; formatChangeDetail ( ) ; appendText ( "\n" ) ; appendText ( ( ( " " + ( getPullUrl ( ) ) ) + "\n" ) ) ; }

Target:
protected void formatChange ( ) { formatSalutation ( ) ; formatChangeDetail ( ) ; appendText ( "\n" ) ; appendText ( ( ( " " + ( getPullUrl ( ) ) ) + "\n" ) ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( java.lang.String changeId ) throws java.lang.Exception { return db.patchSets ( ) . get ( getChange ( changeId ) . currentPatchSetId ( ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( java.lang.String changeId ) throws java.lang.Exception { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( changeId ) ) . currentPatchSet ( ) ; }
Source:
public void onSubmit ( com.google.gwt.user.client.ui.FormSubmitEvent event ) { event.setCancelled ( true ) ; }

Target:
public void onSubmit ( final com.google.gwt.user.client.ui.FormPanel.SubmitEvent event ) { event.cancel ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSign ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showCLA ( cla ) ; }
Source:
private static com.google.gerrit.server.notedb.ChangeDraftUpdate.Key key ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { return new com.google.gerrit.server.notedb.AutoValue_ChangeDraftUpdate_Key ( c.getRevId ( ) , c.getKey ( ) ) ; }

Target:
private static com.google.gerrit.server.notedb.ChangeDraftUpdate.Key key ( com.google.gerrit.reviewdb.client.Comment c ) { return new com.google.gerrit.server.notedb.AutoValue_ChangeDraftUpdate_Key ( c.revId , c.key ) ; }
Source:
public abstract void display ( com.google.gerrit.common.data.CommentDetail comments ) ;

Target:
public abstract void display ( com.google.gerrit.common.data.CommentDetail comments , boolean expandComments ) ;
Source:
synchronized com.google.gerrit.sshd.SshScope.Context subContext ( com.google.gerrit.sshd.SshSession newSession , java.lang.String newCommandLine ) { return new com.google.gerrit.sshd.SshScope.Context ( this , newSession , newCommandLine ) ; }

Target:
synchronized com.google.gerrit.sshd.SshScope.Context subContext ( com.google.gerrit.sshd.SshSession newSession , java.lang.String newCommandLine ) { com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( this , newSession , newCommandLine ) ; cleanup.add ( ctx.cleanup ) ; return ctx ; }
Source:
public void setTimeForTesting ( ) { systemTimeZone = java.lang.System.setProperty ( "user.timezone" , "US/Eastern" ) ; com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
private void resetTimeWithClockStep ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { systemTimeZone = java.lang.System.setProperty ( "user.timezone" , "US/Eastern" ) ; com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( clockStep , clockStepUnit ) ; org.eclipse.jgit.util.SystemReader.setInstance ( null ) ; }
Source:
static void savePublic ( final org.eclipse.jgit.storage.file.FileBasedConfig sec ) throws java.io.IOException { if ( com.google.gerrit.pgm.init.InitUtil.modified ( sec ) ) { sec.save ( ) ; } }

Target:
static void savePublic ( final org.eclipse.jgit.storage.file.FileBasedConfig sec ) throws java.io.IOException { if ( com.google.gerrit.common.FileUtil.modified ( sec ) ) { sec.save ( ) ; } }
Source:
public com.google.gerrit.server.CurrentUser runAs ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id , @ com.google.gerrit.common.Nullable com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , com.google.inject.util.Providers.of ( remotePeer ) , null , id , caller ) ; }

Target:
public com.google.gerrit.server.CurrentUser runAs ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id , @ com.google.gerrit.common.Nullable com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , caller ) ; }
Source:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , java.lang.String panel ) { return ( ( "/admin/groups/uuid-" + ( uuid.toString ( ) ) ) + "," ) + panel ; }

Target:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , java.lang.String panel ) { return ( ( com.google.gerrit.client.Dispatcher.toGroup ( uuid ) ) + "," ) + panel ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( com.google.gerrit.client.Gerrit.getUserAccount ( ) ) ; display ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; add ( new com.google.gerrit.client.api.ExtensionPanel ( com.google.gerrit.client.GerritUiExtensionPoint.PROFILE_SCREEN_BOTTOM ) ) ; display ( com.google.gerrit.client.Gerrit.getUserAccount ( ) ) ; display ( ) ; }