auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.eclipse.jgit.lib.Config getConfig ( ) { return new org.eclipse.jgit.lib.Config ( ) ; }

Target:
public org.eclipse.jgit.lib.Config getConfig ( ) { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; config.setStringList ( "gitiles" , null , "allowOriginRegex" , com.google.common.collect.ImmutableList.of ( "http://localhost" ) ) ; return config ; }
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( org.eclipse.jgit.lib.PersonIdent ident ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = ident.getName ( ) ; who.email = ident.getEmailAddress ( ) ; return who ; }

Target:
public com.google.gerrit.server.data.AccountAttribute asAccountAttribute ( org.eclipse.jgit.lib.PersonIdent ident ) { com.google.gerrit.server.data.AccountAttribute who = new com.google.gerrit.server.data.AccountAttribute ( ) ; who.name = ident.getName ( ) ; who.email = ident.getEmailAddress ( ) ; return who ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { deleteDraftComment ( comment ) ; } else { throw new java.lang.IllegalArgumentException ( "Cannot delete a published 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 onSuccess ( final com.google.gerrit.client.patches.CommentDetail result ) { if ( ( rpcSequence ) == rpcseq ) { comments = result ; onResult ( ) ; } }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { final int sel = ws.getSelectedIndex ( ) ; if ( 0 <= sel ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.valueOf ( ws.getValue ( sel ) ) ) ; refresh ( false ) ; } }
Source:
public com.google.gerrit.server.notedb.DraftCommentNotes create ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return new com.google.gerrit.server.notedb.DraftCommentNotes ( repoManager , migration , draftsProject , changeId , accountId ) ; }

Target:
public com.google.gerrit.server.notedb.DraftCommentNotes create ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return new com.google.gerrit.server.notedb.DraftCommentNotes ( repoManager , migration , draftsProject , commentsUtil , changeId , accountId ) ; }
Source:
public final boolean isHttpPasswordSettingsEnabled ( ) { return ( gitBasicAuthPolicy ( ) ) != ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP ) ; }

Target:
public final boolean isHttpPasswordSettingsEnabled ( ) { return ( ( gitBasicAuthPolicy ( ) ) == ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.HTTP ) ) || ( ( gitBasicAuthPolicy ( ) ) == ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.HTTP_LDAP ) ) ; }
Source:
public com.google.gerrit.server.api.projects.ListBranchesRequest branches ( ) { return new com.google.gerrit.server.api.projects.ListBranchesRequest ( ) { @ java.lang.Override public java.util.List < com.google.gerrit.extensions.api.projects.BranchInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listBranches ( this ) ; } } ; }

Target:
public com.google.gerrit.server.api.projects.ListRefsRequest < com.google.gerrit.extensions.api.projects.BranchInfo > branches ( ) { return new com.google.gerrit.server.api.projects.ListRefsRequest < com.google.gerrit.extensions.api.projects.BranchInfo > ( ) { @ java.lang.Override public java.util.List < com.google.gerrit.extensions.api.projects.BranchInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listBranches ( this ) ; } } ; }
Source:
public final native net.codemirror.lib.CodeMirror side ( com.google.gerrit.client.diff.DisplaySide side ) ;

Target:
public void handle ( net.codemirror.lib.CodeMirror instance ) ;
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return get ( com.google.gerrit.acceptance.InProcessProtocol.Context.USER_KEY , null ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return get ( com.google.gerrit.acceptance.InProcessProtocol.Context.USER_KEY , null ) ; }
Source:
public com.google.gerrit.server.project.ProjectControl validateFor ( final com.google.gerrit.client.reviewdb.Project.NameKey nameKey ) throws com.google.gerrit.server.project.NoSuchProjectException { final com.google.gerrit.server.project.ProjectControl c = controlFor ( nameKey ) ; if ( ! ( c.isVisible ( ) ) ) { throw new com.google.gerrit.server.project.NoSuchProjectException ( nameKey ) ; } return c ; }

Target:
public com.google.gerrit.server.project.ProjectControl validateFor ( final com.google.gerrit.client.reviewdb.Project.NameKey nameKey ) throws com.google.gerrit.server.project.NoSuchProjectException { return validateFor ( nameKey , com.google.gerrit.server.project.ProjectControl.VISIBLE ) ; }
Source:
com.google.gerrit.reviewdb.client.AccountGroup get ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) ;

Target:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.io.IOException ;
Source:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { com.google.gerrit.reviewdb.Account.Id id = byName.get ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; return id != null ? byId.get ( id ) : null ; }

Target:
public java.util.Map < com.google.gerrit.reviewdb.Account.Id , com.google.gerrit.server.account.AccountState > getAll ( java.lang.Iterable < com.google.gerrit.reviewdb.Account.Id > accountIds ) { return byId.getAll ( accountIds ) ; }
Source:
public void run ( ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "<C-u>" ) ; }

Target:
public void run ( ) { cm.vim ( ) . handleKey ( "<C-u>" ) ; }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return isSignedIn ( ) ? identified.create ( val.accountId ) : anonymous ; }

Target:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( isSignedIn ( ) ) { return identified.create ( AccessPath.WEB , val.accountId ) ; } return anonymous ; }
Source:
protected void configureServlets ( ) { }

Target:
protected void configureServlets ( ) { serve ( "/show" ) . with ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscriptionServlet.class ) ; serve ( "/branch" ) . with ( com.amd.gerrit.plugins.manifestsubscription.BranchManifestServlet.class ) ; serve ( "/tag" ) . with ( com.amd.gerrit.plugins.manifestsubscription.TagManifestServlet.class ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.lang.String to = com.google.gwt.user.client.History.getToken ( ) ; new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.LINK_IDENTIY , to , null ) . center ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.Location.assign ( ( ( com.google.gerrit.client.Gerrit.loginRedirect ( com.google.gwt.user.client.History.getToken ( ) ) ) + "?link" ) ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setGroups ( java.lang.Iterable < java.lang.String > groups ) { com.google.common.base.Preconditions.checkState ( ( ( patchSet ) == null ) , "setGroups(Iterable<String>) only valid before creating change" ) ; this . groups = groups ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setGroups ( java.util.List < java.lang.String > groups ) { com.google.common.base.Preconditions.checkNotNull ( groups , "groups may not be empty" ) ; com.google.common.base.Preconditions.checkState ( ( ( patchSet ) == null ) , "setGroups(Iterable<String>) only valid before creating change" ) ; this . groups = groups ; return this ; }
Source:
public static native net.codemirror.lib.CodeMirror create ( com.google.gerrit.client.diff.DisplaySide side , com.google.gwt.dom.client.Element parent , net.codemirror.lib.Configuration cfg ) ;

Target:
public final native net.codemirror.lib.CodeMirror side ( com.google.gerrit.client.diff.DisplaySide side ) ;
Source:
public void delete ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { deleteAsync ( change ) . checkedGet ( ) ; }

Target:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { deleteTask ( cd ) . call ( ) ; } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.index.ChangeIndexer.MAPPER.apply ( e ) ; } }
Source:
public java.lang.String toString ( ) { return query.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return predicate.toString ( ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( projectControl.isVisible ( ) ) && ( ( PushOne.ALL_REFS.equals ( ref ) ) || ( projectControl.controlForRef ( ref ) . isVisible ( ) ) ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( shouldReplicate ( projectControl ) ) && ( ( PushOne.ALL_REFS.equals ( ref ) ) || ( projectControl.controlForRef ( ref ) . isVisible ( ) ) ) ; }
Source:
private void newChangeFooter ( ) { if ( ( changeUrl ( ) ) != null ) { openFooter ( ) ; body.append ( "View this change at " ) ; body.append ( changeUrl ( ) ) ; body.append ( "\n" ) ; } }

Target:
private void appendChangeRequestAndFooter ( ) { if ( ( changeUrl ( ) ) != null ) { body.append ( "To perform this review, please visit\n\n " ) ; body.append ( changeUrl ( ) ) ; body.append ( "\n\n" ) ; openFooter ( ) ; } }
Source:
protected boolean canPerform ( final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return canPerform ( cachedProj , actionId , val ) ; }

Target:
protected boolean canPerform ( final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return currentUser.canPerform ( cachedProj , actionId , val ) ; }
Source:
public abstract long getMinValue ( ) ;

Target:
public abstract long getMaxValue ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) ;
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.projectNameKey ( ) , result.legacyId ( ) ) ) ; }
Source:
public final native net.codemirror.lib.CodeMirror side ( com.google.gerrit.client.diff.DisplaySide side ) ;

Target:
public final net.codemirror.lib.Extras extras ( ) { return net.codemirror.lib.Extras.get ( this ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getCommitId ( ) { return commit ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit getCommit ( ) { return commit ; }
Source:
public int weigh ( K key , V value ) { return 1 ; }

Target:
public void onRemoval ( K key , V value , com.github.benmanes.caffeine.cache.RemovalCause cause ) { guavalistener.onRemoval ( com.google.common.cache.RemovalNotification.create ( key , value , com.google.common.cache.RemovalCause.valueOf ( cause.name ( ) ) ) ) ; }
Source:
public com.google.gerrit.extensions.events.UsageDataPublishedListener.MetaData getMetaData ( ) { return com.googlesource.gerrit.plugins.quota.Publisher.KIND ; }

Target:
public com.google.gerrit.extensions.events.UsageDataPublishedListener.MetaData getMetaData ( ) { return metaData ; }
Source:
protected static com.google.gerrit.pgm.util.Die die ( java.lang.String why ) { return new com.google.gerrit.pgm.util.Die ( why ) ; }

Target:
protected static com.google.gerrit.common.Die die ( java.lang.String why ) { return new com.google.gerrit.common.Die ( why ) ; }
Source:
public boolean isOAuthLogout ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( OAuthConfig.OAUTH_LOGOUT ) ) >= 0 ; }

Target:
public boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( GitHubOAuthConfig.OAUTH_LOGIN ) ) >= 0 ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForBranch ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String branch ) throws java.lang.Exception { return newChange ( repo , null , null , branch , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithStatus ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Change.Status status ) throws java.lang.Exception { return newChange ( repo , null , null , status , null ) ; }
Source:
private com.google.gwtexpui.safehtml.client.SafeHtml showTrailingWhitespace ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { final java.lang.String r = "<span class=\"wse\">$1</span>$2" ; src = src.replaceAll ( "([ \t][ \t]*)(\r?\n)" , r ) ; src = src.replaceFirst ( "([ \t][ \t]*)(\r?\n?)$" , r ) ; return src ; }

Target:
private com.google.gwtexpui.safehtml.client.SafeHtml showTrailingWhitespace ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { final java.lang.String r = "<span class=\"wse\">$1</span>$2" ; src = src.replaceAll ( "([ \t][ \t]*)(\r?(</span>)?\n)" , r ) ; src = src.replaceFirst ( "([ \t][ \t]*)(\r?(</span>)?\n?)$" , r ) ; return src ; }
Source:
public java.lang.String getLinkName ( ) { return name ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProject , projectName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public boolean isVisible ( ) { return isOwner ( ) ; }

Target:
public boolean isVisible ( ) { return ( group.isVisibleToAll ( ) ) || ( isOwner ( ) ) ; }
Source:
void createFileCommentEitorOnSideA ( ) { }

Target:
protected void insertRow ( final int row ) { super . insertRow ( row ) ; final com.google.gwt.user.client.ui.HTMLTable.CellFormatter fmt = table.getCellFormatter ( ) ; defaultStyle ( row , fmt ) ; }
Source:
public void start ( ) { com.google.gerrit.sshd.commands.ShowCaches.serverStarted = com.google.gerrit.server.util.TimeUtil.nowMs ( ) ; }

Target:
public void start ( ) { com.google.gerrit.sshd.commands.ShowCaches.serverStarted = com.google.gerrit.common.TimeUtil.nowMs ( ) ; }
Source:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < com.google.gwt.user.client.ui.SuggestOracle.Suggestion > event ) { if ( submitOnSelection ) { submitOnSelection = false ; doAddNew ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }
Source:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.UPLOAD , id , expirationSeconds ) ) ; return action ; }

Target:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo authInfo = authorizer.generateAuthInfo ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.UPLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.ExpiringAction ( action.href , authInfo ) ; }
Source:
public boolean canRemove ( final com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }

Target:
public boolean canAddMember ( final com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }
Source:
public java.lang.String [ ] apply ( java.util.Collection < java.lang.String > values ) { return values.toArray ( new java.lang.String [ 0 ] ) ; }

Target:
private static final java.lang.String [ ] stringCollectionToArray ( java.util.Collection < java.lang.String > values ) { return values.toArray ( new java.lang.String [ 0 ] ) ; }
Source:
protected void configure ( ) { factory ( PrologEnvironment.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.rules.RulesCache.class ) ; factory ( PrologEnvironment.Factory.class ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }
Source:
public static com.google.gerrit.server.workflow.CategoryFunction forName ( final java.lang.String functionName ) { return com.google.gerrit.server.workflow.CategoryFunction.all.get ( functionName ) ; }

Target:
public static com.google.gerrit.server.workflow.CategoryFunction forCategory ( final com.google.gerrit.reviewdb.ApprovalCategory category ) { final com.google.gerrit.server.workflow.CategoryFunction r = com.google.gerrit.server.workflow.CategoryFunction.all.get ( category.getFunctionName ( ) ) ; return r != null ? r : new com.google.gerrit.server.workflow.NoOpFunction ( ) ; }
Source:
private com.google.gerrit.server.patch.PatchList listFor ( final com.google.gerrit.server.patch.PatchListKey key ) { return patchListCache.get ( key ) ; }

Target:
private com.google.gerrit.server.patch.PatchList listFor ( final com.google.gerrit.server.patch.PatchListKey key ) { return com.google.gerrit.server.util.FutureUtil.get ( patchListCache.get ( key ) ) ; }
Source:
java.lang.Object apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }

Target:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.change.ChangeJson.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }
Source:
public void testCreateProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { adminSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( name ( "invalid/../name" ) ) ) ) ) . assertBadRequest ( ) ; }

Target:
public void testCreateProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { adminRestSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( name ( "invalid/../name" ) ) ) ) ) . assertBadRequest ( ) ; }
Source:
public static void detail ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.detail ( id ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi detail ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "detail" ) ; }
Source:
com.google.gerrit.lucene.LuceneChangeIndex getIndex ( com.google.gerrit.lucene.LuceneChangeIndex.Factory factory ) { com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema = ( ( singleVersion ) != null ) ? com.google.gerrit.server.index.ChangeSchemas.get ( singleVersion ) : com.google.gerrit.server.index.ChangeSchemas.getLatest ( ) ; return factory.create ( schema , base ) ; }

Target:
com.google.gerrit.lucene.LuceneChangeIndex getIndex ( com.google.gerrit.lucene.LuceneChangeIndex.Factory factory ) { com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema = ( ( singleVersion ) != null ) ? com.google.gerrit.server.index.change.ChangeSchemas.get ( singleVersion ) : com.google.gerrit.server.index.change.ChangeSchemas.getLatest ( ) ; return factory.create ( schema , base ) ; }
Source:
public void message ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }

Target:
protected java.util.List < java.lang.String > getInstallPlugins ( ) { return installPlugins ; }
Source:
public void postEvent ( final com.google.gerrit.reviewdb.client.Branch.NameKey branchName , final com.google.gerrit.server.events.ChangeEvent event ) { fireEvent ( branchName , event ) ; }

Target:
public void postEvent ( final com.google.gerrit.reviewdb.client.Branch.NameKey branchName , final com.google.gerrit.server.events.Event event ) { fireEvent ( branchName , event ) ; }
Source:
protected abstract T decode ( com.google.protobuf.CodedInputStream in ) ;

Target:
public abstract T newInstance ( ) ;
Source:
public static com.google.gerrit.server.index.IndexConfig create ( int maxLimit ) { com.google.common.base.Preconditions.checkArgument ( ( maxLimit > 0 ) , "maxLimit must be positive: %s" , maxLimit ) ; return new com.google.gerrit.server.index.AutoValue_IndexConfig ( maxLimit ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig create ( int maxLimit ) { if ( maxLimit == 0 ) { maxLimit = java.lang.Integer.MAX_VALUE ; } else { com.google.common.base.Preconditions.checkArgument ( ( maxLimit > 0 ) , "maxLimit must be positive: %s" , maxLimit ) ; } return new com.google.gerrit.server.index.AutoValue_IndexConfig ( maxLimit ) ; }
Source:
public java.lang.String getProjectUrl ( java.lang.String project ) { return java.lang.String.format ( placeHolderUrlProject , project ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProject , projectName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public void evict ( final com.google.gerrit.reviewdb.Project p ) { if ( p != null ) { byName.remove ( p.getNameKey ( ) ) ; } }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( final com.google.gerrit.reviewdb.Project p ) { if ( p != null ) { return byName.removeAsync ( p.getNameKey ( ) ) ; } return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public com.google.gerrit.client.patches.PatchScriptSettings.Whitespace getWhitespace ( ) { return whitespace ; }

Target:
public com.google.gerrit.client.data.PatchScriptSettings.Whitespace getWhitespace ( ) { return whitespace ; }
Source:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision ) ; }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision ) ; } }
Source:
public com.google.gerrit.server.account.GroupMembership getEffectiveGroups ( ) { return new com.google.gerrit.server.account.ListGroupMembership ( java.util.Collections.singleton ( AccountGroup.ANONYMOUS_USERS ) ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership getEffectiveGroups ( ) { return new com.google.gerrit.server.account.ListGroupMembership ( java.util.Collections.singleton ( SystemGroupBackend.ANONYMOUS_USERS ) ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; } }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( ( lifecycle ) != null ) { lifecycle.stop ( ) ; } com.google.gerrit.testutil.InMemoryDatabase.drop ( db ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( lifecycle ) != null ) { lifecycle.stop ( ) ; } com.google.gerrit.testing.InMemoryDatabase.drop ( db ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( revision.getParentKey ( ) , java.lang.String.valueOf ( revision.get ( ) ) ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( revision.getParentKey ( ) , java.lang.String.valueOf ( revision.get ( ) ) ) ) ; }
Source:
public void close ( ) { for ( com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > rs : results ) { rs.close ( ) ; } }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { return source.read ( ) ; }
Source:
public int nextAccountId ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public int nextAccountId ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
com.googlesource.gerrit.plugins.replication.Destination create ( com.googlesource.gerrit.plugins.replication.DestinationConfiguration config ) { return new com.googlesource.gerrit.plugins.replication.Destination ( injector , config , replicationUserFactory , pluginUser , gitRepositoryManager , permissionBackend , groupBackend , stateLog , groupIncludeCache , eventDispatcher ) ; }

Target:
com.googlesource.gerrit.plugins.replication.Destination create ( com.googlesource.gerrit.plugins.replication.DestinationConfiguration config ) { return new com.googlesource.gerrit.plugins.replication.Destination ( injector , config , replicationUserFactory , pluginUser , gitRepositoryManager , permissionBackend , userProvider , projectCache , groupBackend , stateLog , groupIncludeCache , eventDispatcher ) ; }
Source:
HEAD ( com.google.gerrit.sshd.commands.c65126 PolyGerrit ) { }

Target:
public void run ( ) { writeEvents ( ) ; }
Source:
public void execute ( ) { if ( ( cmA ) != null ) { cmA.setOption ( "viewportMargin" , 10 ) ; } if ( ( cmB ) != null ) { cmB.setOption ( "viewportMargin" , 10 ) ; } }

Target:
public void execute ( ) { if ( ( cmA ) != null ) { cmA.setOption ( "viewportMargin" , 10 ) ; } if ( ( cmB ) != null ) { cmB.setOption ( "viewportMargin" , 10 ) ; } resizeCodeMirror ( ) ; }
Source:
public void backupRefNameForTag ( ) throws java.lang.Exception { java.lang.String name = com.googlesource.gerrit.plugins.refprotection.BackupRef.get ( "refs/tags/v1.0" ) ; java.lang.String expected_prefix = ( BackupRef.R_BACKUPS ) + "tags/v1.0-" ; com.google.common.truth.Truth.assertThat ( name ) . startsWith ( expected_prefix ) ; }

Target:
public void backupTimestampRefNameForTag ( ) throws java.lang.Exception { java.lang.String name = com.googlesource.gerrit.plugins.refprotection.BackupRef.get ( null , "refs/tags/v1.0" ) ; java.lang.String expected_prefix = ( BackupRef.R_BACKUPS ) + "tags/v1.0-" ; com.google.common.truth.Truth.assertThat ( name ) . startsWith ( expected_prefix ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo apply ( com.google.gerrit.extensions.webui.WebLink webLink ) { return ( ( com.google.gerrit.extensions.webui.PatchSetWebLink ) ( webLink ) ) . getPathSetWebLink ( project.get ( ) , commit ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo apply ( com.google.gerrit.extensions.webui.WebLink webLink ) { return ( ( com.google.gerrit.extensions.webui.PatchSetWebLink ) ( webLink ) ) . getPatchSetWebLink ( project.get ( ) , commit ) ; }
Source:
public void remove ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteReviewer.apply ( reviewer , null ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot remove reviewer" , e ) ; } }

Target:
public void remove ( com.google.gerrit.extensions.api.changes.DeleteReviewerInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteReviewer.apply ( reviewer , input ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot remove reviewer" , e ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.client.changes.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.changes.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; display ( result ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete change" , e ) ; } }
Source:
public void checkChanges ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change.Id > changeIds ) throws java.lang.Exception { checkActual ( readExpected ( changeIds ) , new java.util.ArrayList < java.lang.String > ( ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeBundle readBundleUnchecked ( com.google.gerrit.reviewdb.client.Change.Id id ) { try { return bundleReader.fromReviewDb ( getUnwrappedDb ( ) , id ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gwtorm.server.OrmRuntimeException ( e ) ; } }
Source:
public void onSuccess ( com.google.gerrit.common.data.ProjectAccess access ) { commitMessage.setText ( "" ) ; edit ( access ) ; enable ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ProjectAccess access ) { enable ( true ) ; commitMessage.setText ( "" ) ; displayReadOnly ( access ) ; }
Source:
public com.google.gerrit.server.ssh.AbstractCommand create ( ) { return new com.google.gerrit.server.ssh.AdminReplicate ( ) ; }

Target:
private void bind ( final java.lang.String cmd , final java.lang.Class < ? extends com.google.gerrit.server.ssh.AbstractCommand > imp ) { commands.put ( cmd , injector.getProvider ( imp ) ) ; }
Source:
public java.lang.String getBranchUrl ( java.lang.String projectName , java.lang.String branchName ) { return java.lang.String.format ( placeHolderUrlProjectBranch , projectName , branchName ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectBranch , projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.groups.GroupList result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }
Source:
abstract com.google.gerrit.client.diff.SkipManager getSkipManager ( ) ;

Target:
abstract boolean isSideBySide ( ) ;
Source:
public void noNotificationForWipChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "wip change" , "a" , "a1" ) . to ( "refs/for/master%wip" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForWipChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.project.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "wip change" , "a" , "a1" ) . to ( "refs/for/master%wip" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
java.lang.String removeHashtag ( java.lang.String name ) ;

Target:
java.lang.String blockedOn ( java.lang.String labelName ) ;
Source:
static com.google.gerrit.client.reviewdb.Account getInstance ( int rawId ) { com.google.gerrit.client.reviewdb.Account a = new com.google.gerrit.client.reviewdb.Account ( ) ; a.accountId = new com.google.gerrit.client.reviewdb.Account.Id ( rawId ) ; return a ; }

Target:
static com.google.gerrit.client.reviewdb.Account newInstance ( int rawId ) { com.google.gerrit.client.reviewdb.Account a = new com.google.gerrit.client.reviewdb.Account ( ) ; a.oldAccountId = new com.google.gerrit.client.reviewdb.Account.Id ( rawId ) ; return a ; }
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , msgTxt , 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 , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , msgTxt , defaultNotify ( control ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public void execute ( ) { d.callback.onSuccess ( null ) ; }

Target:
public void execute ( ) { ac.onSuccess ( null ) ; }
Source:
public void run ( ) throws java.lang.Exception { try { preRun ( ) ; parseArguments ( ) ; this . run ( ) ; } finally { postRun ( ) ; } }

Target:
public void run ( ) throws java.lang.Exception { try { preRun ( ) ; parseCommandLine ( ) ; this . run ( ) ; } finally { postRun ( ) ; } }
Source:
public com.google.gerrit.server.cache.NamedCacheBinding timeToLive ( int duration , java.util.concurrent.TimeUnit durationUnits ) ;

Target:
public com.google.gerrit.server.cache.NamedCacheBinding timeToIdle ( long duration , java.util.concurrent.TimeUnit durationUnits ) ;
Source:
public static void filter ( final com.google.gwtexpui.globalkey.client.KeyCommandFilter filter ) { com.google.gwtexpui.globalkey.client.GlobalKey.keys.filter ( filter ) ; }

Target:
public static void filter ( final com.google.gwtexpui.globalkey.client.KeyCommandFilter filter ) { com.google.gwtexpui.globalkey.client.GlobalKey.active.filter ( filter ) ; if ( ( com.google.gwtexpui.globalkey.client.GlobalKey.active ) != ( com.google.gwtexpui.globalkey.client.GlobalKey.global ) ) { com.google.gwtexpui.globalkey.client.GlobalKey.global.filter ( filter ) ; } }
Source:
java.lang.String diff ( ) ;

Target:
java.lang.String diffHeader ( ) ;
Source:
private void assertParseWithEqualsFails ( java.lang.String value ) { try { com.google.gerrit.server.util.LabelVote.parseWithEquals ( value ) ; org.junit.Assert.fail ( ( ( "expected IllegalArgumentException when parsing \"" + value ) + "\"" ) ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
private void assertParseWithEqualsFails ( java.lang.String value ) { try { com.google.gerrit.server.util.LabelVote.parseWithEquals ( value ) ; com.google.common.truth.Truth.assert_ ( ) . fail ( "expected IllegalArgumentException when parsing \"%s\"" , value ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
Source:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( accountCache , emails , key , repository , changeData , project , branch , files ) ; }

Target:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( projectState , accountCache , emails , key , repository , changeData , branch , files ) ; }
Source:
public void remove ( ) { for ( java.lang.String name : names ) { registry.remove ( name ) ; } }

Target:
public void remove ( ) { for ( java.lang.String name : names ) { descriptions.remove ( name ) ; registry.remove ( name ) ; } }
Source:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { adminSession.delete ( urlEdit ( ) ) . assertNotFound ( ) ; }

Target:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { adminRestSession.delete ( urlEdit ( ) ) . assertNotFound ( ) ; }
Source:
public void setTitleText ( final java.lang.String text ) { titleText = text ; if ( ( titleRow ) >= 0 ) { parent.table.setText ( titleRow , 0 , titleText ) ; } }

Target:
public void setTitleText ( final java.lang.String text ) { titleText = text ; titleWidget = null ; if ( ( titleRow ) >= 0 ) { parent.table.setText ( titleRow , 0 , titleText ) ; } }
Source:
public java.lang.Boolean call ( ) throws java.io.IOException { return isVisible ( repo , walk , id ) ; }

Target:
public java.lang.Boolean call ( ) throws java.io.IOException { return isVisible ( repo , walk , id , java.util.Arrays.asList ( knownReachable ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { publishedBase = sort ( result.get ( path ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { publishedBaseAll = result ; publishedBase = sort ( result.get ( path ) ) ; }
Source:
public void removeEventListener ( com.google.gerrit.common.EventListener listener ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.RefEvent event ) { }
Source:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { toGerrit ( target , req , rsp ) ; }

Target:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { com.google.gerrit.httpd.UrlModule.toGerrit ( target , req , rsp ) ; }
Source:
boolean isModified ( java.nio.file.Path jar ) { return ( snapshot.lastModified ( ) ) != ( com.google.gerrit.common.FileUtil.lastModified ( jar ) ) ; }

Target:
boolean isModified ( java.nio.file.Path jar ) { return snapshot.isModified ( jar.toFile ( ) ) ; }
Source:
default com.google.gerrit.reviewdb.client.Change getChange ( ) { return com.google.common.base.Preconditions.checkNotNull ( getControl ( ) . getChange ( ) ) ; }

Target:
com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) ;
Source:
public com.google.gerrit.extensions.api.projects.BranchApi branch ( java.lang.String ref ) { return branchApi.create ( project , ref ) ; }

Target:
public com.google.gerrit.extensions.api.projects.BranchApi branch ( java.lang.String ref ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return branchApi.create ( checkExists ( ) , ref ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.SchemaVersion.class ) . annotatedWith ( com.google.gerrit.server.schema.Current.class ) . to ( com.google.gerrit.server.schema.SchemaVersion.C ) ; }

Target:
public static int getBinaryVersion ( ) { return com.google.gerrit.server.schema.SchemaVersion.guessVersion ( com.google.gerrit.server.schema.SchemaVersion.C ) ; }
Source:
public void run ( ) { cm.vim ( ) . handleKey ( "/" ) ; }

Target:
public void run ( ) { cm.setCursor ( cm.getCursor ( ) ) ; cm.execCommand ( "clearSearch" ) ; cm.vim ( ) . handleEx ( "nohlsearch" ) ; }
Source:
private java.lang.String link ( final com.google.gerrit.client.projects.ProjectInfo item ) { return com.google.gerrit.client.Dispatcher.toProjectAdmin ( item.name_key ( ) , ProjectScreen.INFO ) ; }

Target:
private java.lang.String link ( final com.google.gerrit.client.projects.ProjectInfo item ) { return com.google.gerrit.client.Dispatcher.toProject ( item.name_key ( ) ) ; }
Source:
private void commit ( org.eclipse.jgit.lib.PersonIdent ident , java.lang.String subject ) throws java.lang.Exception { commitBuilder ( ) . ident ( ident ) . message ( subject ) . create ( ) ; }

Target:
private void commit ( org.eclipse.jgit.lib.PersonIdent ident , java.lang.String subject ) throws java.lang.Exception { commitBuilder ( ) . ident ( ident ) . message ( ( ( ( subject + " (" ) + ( java.lang.System.nanoTime ( ) ) ) + ")" ) ) . create ( ) ; }
Source:
private static java.lang.reflect.Method getDefaultConfig ( java.lang.Class < ? > clazz ) { return com.google.gerrit.testutil.ConfigSuite.getAnnotatedMethod ( clazz , com.google.gerrit.testutil.ConfigSuite.Default.class ) ; }

Target:
private static java.lang.reflect.Method getDefaultConfig ( java.lang.Class < ? > clazz ) { return com.google.gerrit.testing.ConfigSuite.getAnnotatedMethod ( clazz , com.google.gerrit.testing.ConfigSuite.Default.class ) ; }
Source:
private static java.lang.String queryOutgoing ( java.lang.String who ) { return "is:open owner:" + who ; }

Target:
private static java.lang.String queryWorkInProgress ( java.lang.String who ) { return "is:open is:wip owner:" + who ; }
Source:
public void inheritRead_OverrideWithDeny ( ) { com.google.gerrit.server.project.Util.allow ( parent , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; com.google.gerrit.server.project.Util.deny ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; assertAccessDenied ( user ( local ) ) ; }

Target:
public void inheritRead_OverrideWithDeny ( ) { com.google.gerrit.server.project.testing.Util.allow ( parent , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; com.google.gerrit.server.project.testing.Util.deny ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; assertAccessDenied ( user ( local ) ) ; }
Source:
public org.apache.sshd.common.file.FileSystemView createFileSystemView ( org.apache.sshd.common.Session session ) throws java.io.IOException { return new org.apache.sshd.common.file.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( org.apache.sshd.common.file.SshFile baseDir , java.lang.String file ) { return null ; } @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( java.lang.String file ) { return null ; } } ; }

Target:
public org.apache.sshd.common.file.FileSystemView getNormalizedView ( ) { return this ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.googlesource.gerrit.plugins.events.StreamEventListener.class ) ; bind ( com.googlesource.gerrit.plugins.events.EventStore.class ) . to ( com.googlesource.gerrit.plugins.events.MemStore.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.ChangeListener.class ) . to ( com.googlesource.gerrit.plugins.events.CoreListener.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.googlesource.gerrit.plugins.events.StreamEventListener.class ) ; bind ( com.googlesource.gerrit.plugins.events.EventStore.class ) . to ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.ChangeListener.class ) . to ( com.googlesource.gerrit.plugins.events.CoreListener.class ) ; }