auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void updateComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { updateDraftComment ( comment ) ; } else { deleteDraftCommentIfPresent ( comment ) ; updatePublishedComment ( comment ) ; } }

Target:
public void updateComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { updateDraftComment ( comment ) ; } else { deleteDraftCommentIfPresent ( comment ) ; updatePublishedComment ( comment ) ; } }
Source:
public void deleteKeys ( java.lang.Iterable < K > keys ) throws com.google.gwtorm.client.OrmException { delete ( com.google.gwtorm.jdbc.JdbcAccess.get ( keys ) ) ; }

Target:
public void upsert ( final java.lang.Iterable < T > instances ) throws com.google.gwtorm.server.OrmException { java.util.Collection < T > inserts = attemptUpdate ( instances ) ; if ( inserts != null ) { insert ( inserts ) ; } }
Source:
public java.util.SortedMap < java.lang.String , com.google.gerrit.extensions.common.ProjectInfo > getAsMap ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return list ( this ) ; } catch ( com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "project list unavailable" , e ) ; } }

Target:
public java.util.SortedMap < java.lang.String , com.google.gerrit.extensions.common.ProjectInfo > getAsMap ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return list ( this ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "project list unavailable" , e ) ; } }
Source:
public void upsert ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( ( "do not call upsert; either use InsertChangeOp for insertion, or" + " ChangeContext#saveChange() for update" ) ) ; }

Target:
public void update ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( "do not call update; change is updated automatically" ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , c ) . load ( ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , allUsers , c ) . load ( ) ; }
Source:
public com.dyuproject.openid.OpenIdUser getUser ( final javax.servlet.http.HttpServletRequest request ) throws java.io.IOException { if ( ( request.getParameter ( RelyingParty.DEFAULT_PARAMETER ) ) != null ) { return null ; } return super . getUser ( request ) ; }

Target:
public com.dyuproject.openid.OpenIdUser getUser ( final javax.servlet.http.HttpServletRequest request ) throws java.io.IOException { if ( ( request.getParameter ( RelyingParty.DEFAULT_IDENTIFIER_PARAMETER ) ) != null ) { return null ; } return super . getUser ( request ) ; }
Source:
public static com.google.common.collect.FluentIterable < java.lang.String > names ( java.lang.Iterable < com.google.gerrit.acceptance.TestAccount > accounts ) { return com.google.common.collect.FluentIterable.from ( accounts ) . transform ( ( a ) -> a.fullName ) ; }

Target:
public static java.util.List < java.lang.String > names ( java.util.List < com.google.gerrit.acceptance.TestAccount > accounts ) { return accounts.stream ( ) . map ( ( a ) -> a.fullName ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void validMergedChange ( ) throws java.lang.Exception { com.google.gerrit.server.project.ChangeControl ctl = mergeChange ( incrementPatchSet ( insertChange ( ) ) ) ; assertNoProblems ( ctl , null ) ; }

Target:
public void validMergedChange ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeNotes notes = mergeChange ( incrementPatchSet ( insertChange ( ) ) ) ; assertNoProblems ( notes , null ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.extensions.common.RevisionInfo info ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.common.ChangeHookApiListener.unwrap ( db.get ( ) ) . patchSets ( ) . get ( PatchSet.Id.fromRef ( info.ref ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.extensions.common.RevisionInfo info ) throws com.google.gwtorm.server.OrmException { return psUtil.get ( db.get ( ) , notes , PatchSet.Id.fromRef ( info.ref ) ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.DELETE_ENTRY , edit , file , null , null ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; return modify ( edit , new com.google.gerrit.server.edit.tree.RenameFileModification ( editCommit , file , newFile ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser 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 , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , id , caller ) ; }
Source:
protected java.lang.String getDeleteOneSql ( ) { return com.google.gwtorm.jdbc.TestJdbcAccess.DELETE ; }

Target:
protected java.lang.String getDeleteOneSql ( ) { return com.google.gwtorm.jdbc.AbstractTestJdbcAccess.DELETE ; }
Source:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { if ( ( subscribedToEvents.isEmpty ( ) ) || ( subscribedToEvents.contains ( event.getType ( ) ) ) ) { offer ( event ) ; } }

Target:
public void cancel ( ) { onExit ( 0 ) ; }
Source:
public void remove ( K key ) { if ( key != null ) { cache.remove ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) ) ; } }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAsync ( final K key ) { if ( key != null ) { return cache.removeAsync ( wrapKey ( key ) ) ; } else { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; } }
Source:
protected void preDisplay ( java.lang.String content ) { setShowTabs ( prefs.showTabs ( ) ) ; initEditor ( content ) ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; content = null ; }
Source:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }

Target:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { this . onFailure ( caught ) ; }

Target:
public void onSuccess ( T value ) { if ( failed ) { return ; } this . result = value ; remaining.remove ( this ) ; this . applyAllSuccess ( ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.server.change.ChangeEdits.DeleteContent.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { return apply ( rsrc.getChangeResource ( ) , rsrc.getPath ( ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.extensions.common.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { return apply ( rsrc.getChangeResource ( ) , rsrc.getPath ( ) ) ; }
Source:
protected abstract com.google.gerrit.server.git.CodeReviewCommit _run ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , java.util.List < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException ;

Target:
protected abstract com.google.gerrit.server.git.MergeTip _run ( com.google.gerrit.server.git.CodeReviewCommit currentTip , java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException ;
Source:
public com.google.gerrit.extensions.common.ChangeInfo info ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.noneOf ( com.google.gerrit.extensions.common.ListChangesOption.class ) ) ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo info ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.noneOf ( com.google.gerrit.extensions.client.ListChangesOption.class ) ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.reviewdb.client.Change change ) { return delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return deleteAsync ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }
Source:
protected java.util.Optional < com.google.gerrit.reviewdb.client.Account > getAccount ( ) { return user.isIdentifiedUser ( ) ? java.util.Optional.of ( user.asIdentifiedUser ( ) . getAccount ( ) ) : java.util.Optional.empty ( ) ; }

Target:
protected java.util.Optional < com.google.gerrit.server.account.AccountState > getAccount ( ) { return user.isIdentifiedUser ( ) ? java.util.Optional.of ( user.asIdentifiedUser ( ) . state ( ) ) : java.util.Optional.empty ( ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { com.google.gerrit.pgm.RebuildNotedb.execute ( bru , repo ) ; com.google.gerrit.pgm.RebuildNotedb.execute ( bruForDrafts , allUsersRepo ) ; mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { com.google.gerrit.pgm.RebuildNotedb.execute ( bru , repo ) ; com.google.gerrit.pgm.RebuildNotedb.execute ( bruAllUsers , allUsersRepo ) ; mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( newChangeJson ( ) . format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gwtorm.server.OrmException { checkEnabled ( ) ; return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( newChangeJson ( ) . format ( rsrc ) ) ; }
Source:
public final java.util.List < com.google.gerrit.client.WebLinkInfo > side_by_side_web_links ( ) { return filterWebLinks ( DiffView.SIDE_BY_SIDE ) ; }

Target:
public final java.util.List < com.google.gerrit.client.WebLinkInfo > sideBySideWebLinks ( ) { return filterWebLinks ( DiffView.SIDE_BY_SIDE ) ; }
Source:
private java.lang.String parseSubject ( org.eclipse.jgit.revwalk.RevCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { return parseOneFooter ( commit , com.google.gerrit.server.notedb.ChangeNoteUtil.FOOTER_SUBJECT ) ; }

Target:
private java.lang.String parseSubject ( com.google.gerrit.server.notedb.ChangeNotesCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { return parseOneFooter ( commit , com.google.gerrit.server.notedb.ChangeNoteUtil.FOOTER_SUBJECT ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { fileList.display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { fileList.display ( idSideA , result ) ; }
Source:
public void addIntHeader ( java.lang.String name , int value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public boolean containsHeader ( java.lang.String name ) { return ! ( headers.get ( name ) . isEmpty ( ) ) ; }
Source:
private void enableForm ( final boolean on ) { delBranch.setEnabled ( on ) ; addBranch.setEnabled ( on ) ; nameTxtBox.setEnabled ( on ) ; irevTxtBox.setEnabled ( on ) ; }

Target:
private void updateForm ( ) { branchTable.updateDeleteButton ( ) ; addBranch.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }
Source:
public void doChangeMergedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
public void doChangeMergedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.server.ReviewDb db , java.lang.String mergeResultRev ) throws com.google.gwtorm.server.OrmException ;
Source:
public void display ( com.google.gerrit.client.groups.GroupMap groups , java.lang.String toHighlight ) { display ( groups.values ( ) . asList ( ) , toHighlight ) ; }

Target:
public void display ( com.google.gerrit.client.groups.GroupMap groups , java.lang.String toHighlight ) { display ( com.google.gerrit.client.rpc.Natives.asList ( groups.values ( ) ) , toHighlight ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.AccountGroupAgreement.Key key ) { byGroupId.remove ( key.getParentKey ( ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.AccountGroupAgreement.Key key ) { return byGroupId.removeAsync ( key.getParentKey ( ) ) ; }
Source:
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 ) ; }

Target:
private void deleteRef ( java.lang.String refName ) throws java.lang.Exception { org.eclipse.jgit.lib.RefUpdate ru = serverSideTestRepo.getRepository ( ) . updateRef ( refName , true ) ; ru.setForceUpdate ( true ) ; com.google.common.truth.Truth.assertThat ( ru.delete ( ) ) . isEqualTo ( RefUpdate.Result.FORCED ) ; }
Source:
public void projectAccess ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) { projectAccessFactory.create ( projectName ) . to ( callback ) ; }

Target:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent toPersonIdent ( final com.google.gerrit.reviewdb.PatchSetApproval audit ) { if ( audit == null ) { return null ; } return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newPersonIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.PatchSetApproval audit ) { if ( audit != null ) { return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; } return myIdent ; }
Source:
public RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , byte [ ] content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , content ) ; }

Target:
public RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.DELETE_ENTRY , edit , file , null ) ; }
Source:
void replicateNewProject ( com.google.gerrit.client.reviewdb.Project.NameKey project ) ;

Target:
void replicateNewProject ( com.google.gerrit.client.reviewdb.Project.NameKey project , java.lang.String head ) ;
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( commitId , path ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( commitId , path ) ; }
Source:
public java.lang.String getName ( ) { if ( ( propertiesFile ) != null ) { return org.apache.commons.io.FilenameUtils.removeExtension ( propertiesFile.getFileName ( ) . toString ( ) ) ; } return null ; }

Target:
public java.lang.String getName ( ) { if ( ( propertiesFile ) != null ) { java.nio.file.Path path = propertiesFile.getFileName ( ) ; if ( path != null ) { return org.apache.commons.io.FilenameUtils.removeExtension ( path.toString ( ) ) ; } } return null ; }
Source:
public abstract com.google.gwtorm.client.ResultSet < java.util.Map.Entry < byte [ ] , byte [ ] > > scan ( byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;

Target:
public abstract com.google.gwtorm.client.ResultSet < java.util.Map.Entry < byte [ ] , byte [ ] > > scan ( byte [ ] fromKey , byte [ ] toKey , int limit , boolean order ) throws com.google.gwtorm.client.OrmException ;
Source:
public void setCharacterEncoding ( java.lang.String name ) { com.google.common.base.Preconditions.checkArgument ( com.google.common.base.Charsets.UTF_8.equals ( java.nio.charset.Charset.forName ( name ) ) , "unsupported charset: %s" , name ) ; }

Target:
public void setCharacterEncoding ( java.lang.String name ) { com.google.common.base.Preconditions.checkArgument ( java.nio.charset.StandardCharsets.UTF_8.equals ( java.nio.charset.Charset.forName ( name ) ) , "unsupported charset: %s" , name ) ; }
Source:
public final java.lang.String cloneCommand ( java.lang.String commandName , java.lang.String project ) { return cloneCommand ( commandName ) . replaceAll ( "\\$\\{project\\}" , project ) . replaceAll ( "\\$\\{project-base-name\\}" , projectBaseName ( project ) ) ; }

Target:
public final java.lang.String cloneCommand ( java.lang.String commandName , java.lang.String project ) { return cloneCommand ( commandName ) . replaceAll ( "\\$\\{project\\}" , project ) . replaceAll ( "\\$\\{project-base-name\\}" , com.google.gerrit.client.config.DownloadInfo.DownloadSchemeInfo.projectBaseName ( project ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.CommentInfo > getComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . setFillAccounts ( includeAuthorInfo ( ) ) . formatAsList ( listComments ( rsrc ) ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.CommentInfo > getComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . setFillAccounts ( includeAuthorInfo ( ) ) . newCommentFormatter ( ) . formatAsList ( listComments ( rsrc ) ) ; }
Source:
public com.google.gerrit.server.project.ProjectControl controlFor ( final com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.server.project.ProjectControl ( user , this ) ; }

Target:
public com.google.gerrit.server.project.ProjectControl controlFor ( final com.google.gerrit.server.CurrentUser user ) { return projectControlFactory.create ( user , this ) ; }
Source:
public void put ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.google.gerrit.common.data.GroupReference reference ) { byUUID.put ( uuid , reference ) ; }

Target:
public com.google.gerrit.common.data.GroupReference byUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return byUUID.get ( uuid ) ; }
Source:
public boolean getBooleanParameter ( java.lang.String name , boolean defaultValue ) { return config.getBoolean ( RTCItsFacade.ITS_NAME_RTC , null , getParamName ( name ) , defaultValue ) ; }

Target:
public boolean getBooleanParameter ( java.lang.String name , boolean defaultValue ) { return config.getBoolean ( pluginName , null , getParamName ( name ) , defaultValue ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent createPersonIdent ( ) { return identifiedUser.get ( ) . newCommitterIdent ( serverIdent.getWhen ( ) , serverIdent.getTimeZone ( ) ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent createPersonIdent ( com.google.gerrit.server.IdentifiedUser user ) { return user.newCommitterIdent ( serverIdent.getWhen ( ) , serverIdent.getTimeZone ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( org.eclipse.jgit.revwalk.RevWalk walk , int limit , @ javax.annotation.Nullable java.lang.String revision , @ javax.annotation.Nullable org.eclipse.jgit.lib.ObjectId start ) throws java.io.IOException { return toSoyData ( new com.google.gitiles.Paginator ( walk , limit , start ) , revision ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( org.eclipse.jgit.revwalk.RevWalk walk , int limit , @ javax.annotation.Nullable java.lang.String revision , @ javax.annotation.Nullable org.eclipse.jgit.lib.ObjectId start , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( new com.google.gitiles.Paginator ( walk , limit , start ) , revision , df ) ; }
Source:
public com.google.gerrit.server.index.Schema < T > build ( ) { return new com.google.gerrit.server.index.Schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }

Target:
public com.google.gerrit.index.Schema < T > build ( ) { return new com.google.gerrit.index.Schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }
Source:
private void group ( java.lang.String name , java.lang.String ownerGroup ) throws java.io.IOException { com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; in.ownerId = ownerGroup ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }

Target:
private java.lang.String createGroup ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; in.ownerId = "Administrators" ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }
Source:
public static com.google.gerrit.common.data.PermissionRule grant ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.Util.grant ( project , permissionName , com.google.gerrit.server.project.Util.newRule ( project , group ) , ref ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule allow ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.Util.grant ( project , permissionName , com.google.gerrit.server.project.Util.newRule ( project , group ) , ref ) ; }
Source:
static com.google.gerrit.extensions.common.GpgKeyInfo toJson ( org.bouncycastle.openpgp.PGPPublicKey key , com.google.gerrit.gpg.PublicKeyChecker checker , com.google.gerrit.gpg.PublicKeyStore store ) throws java.io.IOException { return com.google.gerrit.gpg.server.GpgKeys.toJson ( key , checker.check ( key , store ) ) ; }

Target:
static com.google.gerrit.extensions.common.GpgKeyInfo toJson ( org.bouncycastle.openpgp.PGPPublicKey key , com.google.gerrit.gpg.PublicKeyChecker checker , com.google.gerrit.gpg.PublicKeyStore store ) throws java.io.IOException { return com.google.gerrit.gpg.server.GpgKeys.toJson ( key , checker.setStore ( store ) . check ( key ) ) ; }
Source:
private java.lang.String getRevisionSideB ( ) { return ( ( getRevisionA ( ) ) + "->" ) + ( getRevisionB ( ) ) ; }

Target:
private java.lang.String getRevisionSideB ( ) { return ( ( ( getRevisionA ( ) ) != null ? getRevisionA ( ) : "" ) + "->" ) + ( getRevisionB ( ) ) ; }
Source:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo getPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return getPreferences.apply ( account ) ; }

Target:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo getPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPreferences.apply ( account ) ; } catch ( com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get preferences" , e ) ; } }
Source:
public boolean updateUserModels ( java.util.Collection < com.gitblit.models.UserModel > arg0 ) { return false ; }

Target:
public boolean supportsRoleChanges ( com.gitblit.models.TeamModel team , com.gitblit.Constants.Role role ) { return false ; }
Source:
public void addHeader ( java.lang.String name , java.lang.String value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addHeader ( java.lang.String name , java.lang.String value ) { headers.put ( name , value ) ; }
Source:
protected java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > listComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return db.get ( ) . patchComments ( ) . publishedByPatchSet ( rsrc.getPatchSet ( ) . getId ( ) ) ; }

Target:
protected java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > listComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.notedb.ChangeNotes notes = rsrc.getNotes ( ) ; return plcUtil.publishedByPatchSet ( db.get ( ) , notes , rsrc.getPatchSet ( ) . getId ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , "" , defaultNotify ( control ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { cfg = readConfig ( ProjectConfig.PROJECT_CONFIG ) ; revision = getRevision ( ) ; }

Target:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { groupList = readGroupList ( ) ; cfg = readConfig ( ProjectConfig.PROJECT_CONFIG ) ; revision = getRevision ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameBox.setText ( "" ) ; watchesTab.insertWatch ( result ) ; }
Source:
public void addBranch ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }

Target:
public void addBranch ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.AddBranchResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }
Source:
public static void getConfig ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfo > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) . view ( "config" ) . get ( cb ) ; }

Target:
public static void getConfig ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfo > cb ) { com.google.gerrit.client.projects.ProjectApi.project ( name ) . view ( "config" ) . get ( cb ) ; }
Source:
protected abstract void onOpenItem ( RowItem item ) ;

Target:
protected abstract void onOpenRow ( int row ) ;
Source:
protected abstract T updateProjectConfig ( com.google.gerrit.server.project.ProjectControl ctl , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract T updateProjectConfig ( com.google.gerrit.server.CurrentUser user , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public java.lang.String getQueryString ( ) { return null ; }

Target:
public java.lang.String getQueryString ( ) { return com.google.gitiles.GitilesView.paramsToString ( parameters ) ; }
Source:
com.google.gerrit.server.project.ProjectState create ( com.google.gerrit.reviewdb.Project project , java.util.Collection < com.google.gerrit.reviewdb.RefRight > localRights ) ;

Target:
com.google.gerrit.server.project.ProjectState create ( com.google.gerrit.server.git.ProjectConfig config ) ;
Source:
private void initProviderJce ( ) { setKeyExchangeFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.KeyExchange > > asList ( new org.apache.sshd.server.kex.DHG1.Factory ( ) ) ) ; setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( new org.apache.sshd.common.random.JceRandom.Factory ( ) ) ) ; }

Target:
private void initProviderJce ( ) { setKeyExchangeFactories ( NamedFactory.Utils.setUpTransformedFactories ( true , java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( BuiltinDHFactories.dhg1 ) ) , ServerBuilder.DH2KEX ) ) ; setKeyExchangeFactories ( org.apache.sshd.server.ServerBuilder.setUpDefaultKeyExchanges ( true ) ) ; setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( org.apache.sshd.common.random.JceRandomFactory.INSTANCE ) ) ; }
Source:
public void testContainsTrueWithTwoElements ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; ds.add ( 2 ) ; ds.add ( 4 ) ; com.google.common.truth.Truth.assertThat ( ds ) . contains ( 4 ) ; }

Target:
public void testContainsTrueWithTwoElements ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; ds.add ( 2 ) ; ds.add ( 4 ) ; com.google.common.truth.Truth.assertThat ( ds.contains ( 4 ) ) . isTrue ( ) ; }
Source:
public java.lang.String getLoggableName ( ) { return ( getUserName ( ) ) != null ? getUserName ( ) : "a/" + ( getAccountId ( ) . get ( ) ) ; }

Target:
public java.lang.String getLoggableName ( ) { return getUserName ( ) . orElseGet ( ( ) -> com.google.common.base.MoreObjects.firstNonNull ( getAccount ( ) . getPreferredEmail ( ) , ( "a/" + ( getAccountId ( ) . get ( ) ) ) ) ) ; }
Source:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }

Target:
com.google.gerrit.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = new com.google.gerrit.testutil.TestDatabase ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = new com.google.gerrit.testutil.InMemoryDatabase ( ) ; }
Source:
public static com.google.common.collect.FluentIterable < com.google.gerrit.reviewdb.client.Account.Id > ids ( java.lang.Iterable < com.google.gerrit.acceptance.TestAccount > accounts ) { return com.google.common.collect.FluentIterable.from ( accounts ) . transform ( ( a ) -> a.id ) ; }

Target:
public static java.util.List < com.google.gerrit.reviewdb.client.Account.Id > ids ( java.util.List < com.google.gerrit.acceptance.TestAccount > accounts ) { return accounts.stream ( ) . map ( ( a ) -> a.id ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
private void reindexAfterIndexUpdate ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { reindexAfterIndexUpdate ( cd.project ( ) , cd.getId ( ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new java.io.IOException ( e ) ; } }

Target:
private void autoReindexIfStale ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { autoReindexIfStale ( cd.project ( ) , cd.getId ( ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new java.io.IOException ( e ) ; } }
Source:
public void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.client.AccountExternalId > result ) { identites.display ( result ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ExternalIdInfo > results ) { identites.display ( results ) ; display ( ) ; }
Source:
com.google.gwt.resources.client.DataResource sql ( ) ;

Target:
com.google.gwt.resources.client.DataResource soy ( ) ;
Source:
public net.sf.ehcache.Element get ( final com.google.gerrit.server.patch.DiffCacheKey key ) { return self.get ( key ) ; }

Target:
protected com.google.gerrit.server.patch.DiffCacheContent createEntry ( final com.google.gerrit.server.patch.DiffCacheKey key ) throws java.lang.Exception { return f.createEntry ( key ) ; }
Source:
public long size ( ) { java.lang.String [ ] files = dir.list ( ) ; if ( files == null ) { return 0 ; } return files.length ; }

Target:
public long size ( ) { return listFiles ( ) . size ( ) ; }
Source:
public static void editWithFiles ( 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 ) . addParameterTrue ( "list" ) . get ( cb ) ; }

Target:
public static void unmarkPrivate ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( activePatchSetId ) > 1 ) { activate ( ( ( activePatchSetId ) - 1 ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { int index = ( indexOf ( activePatchSetId ) ) - 1 ; if ( 0 <= index ) { activate ( patchSets.get ( index ) . getId ( ) ) ; } }
Source:
private static java.lang.String getURLEncoded ( java.lang.String url ) { try { return java.net.URLEncoder.encode ( url , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { return null ; } }

Target:
private static java.lang.String getURLEncodedParameter ( java.lang.String prefix , java.lang.String url ) { try { return com.google.common.base.Strings.isNullOrEmpty ( url ) ? "" : prefix + ( java.net.URLEncoder.encode ( url , "UTF-8" ) ) ; } catch ( java.io.UnsupportedEncodingException e ) { return null ; } }
Source:
public final native void moveCursorDown ( int numLines ) ;

Target:
public static final native void mapVimKey ( java.lang.String alias , java.lang.String actual ) ;
Source:
public final native void setActiveLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;

Target:
public final native void activeLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;
Source:
private static com.google.gerrit.client.SignInDialog.Mode signInMode ( final javax.servlet.http.HttpServletRequest req ) { try { return SignInDialog.Mode.valueOf ( req.getParameter ( com.google.gerrit.server.rpc.OpenIdServiceImpl.P_MODE ) ) ; } catch ( java.lang.RuntimeException e ) { return com.google.gerrit.client.SignInDialog.Mode.SIGN_IN ; } }

Target:
private static com.google.gerrit.client.SignInDialog.Mode signInMode ( final javax.servlet.http.HttpServletRequest req ) { try { return SignInDialog.Mode.valueOf ( req.getParameter ( com.google.gerrit.server.openid.OpenIdServiceImpl.P_MODE ) ) ; } catch ( java.lang.RuntimeException e ) { return com.google.gerrit.client.SignInDialog.Mode.SIGN_IN ; } }
Source:
protected void createCommentEditor ( final int suggestRow , final int column , final int line , final short file ) { createCommentEditor ( suggestRow , column , line , file , null ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.PatchLineComment result ) { enable ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }
Source:
public void error ( java.lang.String message , java.lang.Exception e , int errorCode , org.apache.log4j.spi.LoggingEvent event ) { error ( ( e != null ? e.getMessage ( ) : message ) ) ; }

Target:
void audit ( com.google.gerrit.sshd.SshScope.Context ctx , java.lang.Object result , java.lang.String cmd ) { audit ( ctx , result , cmd , null ) ; }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { change.setCurrentPatchSet ( patchSetInfoFactory.get ( newCommit , ps.getId ( ) ) ) ; return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.nextPatchSetId ( ) ; return change ; }
Source:
private void testUserNotPresent ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.accounts ( ) . query ( "sandboxuser" ) . get ( ) ) . isEmpty ( ) ; }

Target:
public void testUserNotPresent1 ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.accounts ( ) . query ( "sandboxuser" ) . get ( ) ) . isEmpty ( ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; store.stop ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE IF EXISTS " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; store.stop ( ) ; }
Source:
com.google.gerrit.server.permissions.PermissionBackend.ForChange asForChange ( ) { return new com.google.gerrit.server.project.ChangeControl.ForChangeImpl ( null ) ; }

Target:
com.google.gerrit.server.permissions.PermissionBackend.ForChange asForChange ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd , @ com.google.gerrit.common.Nullable com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) { return new com.google.gerrit.server.project.ChangeControl.ForChangeImpl ( cd , db ) ; }
Source:
public com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.server.account.AccountSshKey.Id id , java.lang.String encoded ) throws com.google.gerrit.common.errors.InvalidSshKeyException { throw new com.google.gerrit.common.errors.InvalidSshKeyException ( ) ; }

Target:
public com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq , java.lang.String encoded ) throws com.google.gerrit.common.errors.InvalidSshKeyException { throw new com.google.gerrit.common.errors.InvalidSshKeyException ( ) ; }
Source:
private void post ( final java.lang.String url , final com.google.gerrit.server.events.ProjectEvent projectEvent ) { taskFactory.create ( url , projectEvent ) . schedule ( ) ; }

Target:
private void post ( final java.lang.String url , final com.google.gerrit.server.events.ProjectEvent projectEvent ) { taskFactory.create ( url , com.googlesource.gerrit.plugins.webhooks.EventHandler.GSON.toJson ( projectEvent ) ) . schedule ( ) ; }
Source:
public static com.google.gerrit.common.data.GerritConfig getConfig ( ) { return com.google.gerrit.client.Gerrit.myConfig ; }

Target:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable e ) { cb.onFailure ( e ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { this . onFailure ( caught ) ; }

Target:
public < T > com.google.gerrit.client.rpc.CallbackGroup.Callback < T > addFinal ( final com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { checkFinalAdded ( ) ; finalAdded = true ; return handleAdd ( cb ) ; }
Source:
public void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.client.AccountGroup > result ) { groups.display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType ) ; display ( result ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { setEnabledForUseContentMerge ( ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > email ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > email ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email.toLowerCase ( ) ) ; }
Source:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.GetReviewers.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.PutReviewers.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "suggest_reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.SuggestProjectReviewers.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.change.ReviewerSuggestion.class ) . annotatedWith ( com.google.gerrit.extensions.annotations.Exports.named ( "reviewer-suggest" ) ) . to ( com.googlesource.gerrit.plugins.reviewers.Reviewers.class ) ; }
Source:
protected void authorizeUser ( com.google.gerrit.server.project.ProjectControl control ) throws org.eclipse.jgit.lfs.errors.LfsUnauthorized { if ( ( com.google.gerrit.common.data.Capable.OK ) != ( control.canPushToAtLeastOneRef ( ) ) ) { throwUnauthroizedOp ( action.getName ( ) , control , com.googlesource.gerrit.plugins.lfs.locks.LfsPutLocksAction.log ) ; } }

Target:
protected void authorizeUser ( com.google.gerrit.server.project.ProjectControl control ) throws org.eclipse.jgit.lfs.errors.LfsUnauthorized { if ( ( com.google.gerrit.common.data.Capable.OK ) != ( control.canPushToAtLeastOneRef ( ) ) ) { throwUnauthorizedOp ( action.getName ( ) , control ) ; } }