auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.google.gerrit.server.git.receive.ReplaceOp create ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Branch.NameKey dest , boolean checkMergedInto , @ com.google.inject.assistedinject.Assisted ( value = "priorPatchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id priorPatchSetId , @ com.google.inject.assistedinject.Assisted ( value = "priorCommitId" ) org.eclipse.jgit.lib.ObjectId priorCommit , @ com.google.inject.assistedinject.Assisted ( value = "patchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , @ com.google.inject.assistedinject.Assisted ( value = "commitId" ) org.eclipse.jgit.lib.ObjectId commitId , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.List < java.lang.String > groups , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.receive.ReceiveCommits.MagicBranchInput magicBranch , @ com.google.gerrit.common.Nullable org.eclipse.jgit.transport.PushCertificate pushCertificate ) ;

Target:
com.google.gerrit.server.git.receive.ReplaceOp create ( com.google.gerrit.server.project.ProjectState projectState , com.google.gerrit.reviewdb.client.Branch.NameKey dest , boolean checkMergedInto , @ com.google.inject.assistedinject.Assisted ( value = "priorPatchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id priorPatchSetId , @ com.google.inject.assistedinject.Assisted ( value = "priorCommitId" ) org.eclipse.jgit.lib.ObjectId priorCommit , @ com.google.inject.assistedinject.Assisted ( value = "patchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , @ com.google.inject.assistedinject.Assisted ( value = "commitId" ) org.eclipse.jgit.lib.ObjectId commitId , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.List < java.lang.String > groups , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.receive.ReceiveCommits.MagicBranchInput magicBranch , @ com.google.gerrit.common.Nullable org.eclipse.jgit.transport.PushCertificate pushCertificate ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; com.google.gerrit.client.Gerrit.doSignIn ( com.google.gwt.user.client.History.getToken ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { buttonClicked = true ; hide ( ) ; com.google.gerrit.client.Gerrit.doSignIn ( com.google.gwt.user.client.History.getToken ( ) ) ; }
Source:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.ApprovalsUtil.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.ApprovalsUtil.getReviewers ( allApprovals ( db ) ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > allApprovals ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.ImmutableList.copyOf ( allApprovalsMap ( ) . values ( ) ) ; }
Source:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { com.google.gerrit.common.changes.Side side = getSideFromCm ( cm ) ; com.google.gerrit.client.changes.CommentInfo info = com.google.gerrit.client.changes.CommentInfo.create ( path , side , ( line + 1 ) , null , null ) ; return addDraftBox ( info , false ) ; }

Target:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box , com.google.gerrit.common.changes.Side side ) { diffTable.addFileCommentBox ( box , side ) ; }
Source:
public com.google.gerrit.common.data.GitwebType getGitwebType ( ) { return type ; }

Target:
private static com.google.gerrit.common.data.ParameterizedString parse ( java.lang.String pattern ) { if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( pattern ) ) ) { return new com.google.gerrit.common.data.ParameterizedString ( pattern ) ; } return null ; }
Source:
public void run ( ) { closedIndex.close ( ) ; }

Target:
public void close ( ) { try { openIndex.close ( ) ; } finally { closedIndex.close ( ) ; } }
Source:
private static boolean isJsonBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , JsonConstants.JSON_TYPE ) ; }

Target:
private static boolean isJsonBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , com.google.gerrit.client.rpc.RestApi.JSON_TYPE ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }

Target:
boolean isAdmin ( ) { try { perm.check ( GlobalPermission.ADMINISTRATE_SERVER ) ; return true ; } catch ( com.google.gerrit.extensions.restapi.AuthException | com.google.gerrit.server.permissions.PermissionBackendException e ) { return false ; } }
Source:
public void run ( ) { cmB.operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { apply.run ( ) ; } } ) ; }

Target:
void operation ( java.lang.Runnable apply ) { cmA.operation ( ( ) -> { cmB.operation ( apply :: run ) ; } ) ; }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }

Target:
public static void draft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . get ( cb ) ; }
Source:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionAllLatest ( int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( com.google.common.collect.ImmutableMap.< java.lang.String , java.lang.Integer > of ( ) , threads , false ) ; }

Target:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionAllLatest ( int threads , boolean slave ) { return new com.google.gerrit.lucene.LuceneIndexModule ( com.google.common.collect.ImmutableMap.of ( ) , threads , false , slave ) ; }
Source:
public void go ( ) { if ( ( com.google.gerrit.client.Gerrit.patchScreen ) != null ) { com.google.gerrit.client.Gerrit.patchScreen.setTopView ( tv ) ; } com.google.gwt.dom.client.AnchorElement.as ( getElement ( ) ) . blur ( ) ; }

Target:
public static boolean hasDocSearch ( ) { return com.google.gerrit.client.Gerrit.docSearch ; }
Source:
public void cancel ( ) { onExit ( 0 ) ; }

Target:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { if ( ( subscribedToEvents.isEmpty ( ) ) || ( subscribedToEvents.contains ( event.getType ( ) ) ) ) { offer ( event ) ; } }
Source:
public static java.lang.String format ( java.lang.String hostname , int port ) { if ( 0 <= ( hostname.indexOf ( ':' ) ) ) { hostname = ( "[" + hostname ) + "]" ; } return ( hostname + ":" ) + port ; }

Target:
private static java.lang.String safeHostname ( java.lang.String hostname ) { if ( 0 <= ( hostname.indexOf ( ':' ) ) ) { hostname = ( "[" + hostname ) + "]" ; } return hostname ; }
Source:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { com.google.gerrit.client.projects.ProjectMap.projects ( ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
void appendUser ( java.lang.String key , com.google.gerrit.server.account.AccountInfo user ) { sb.append ( key ) ; sb.append ( ": " ) ; appendUserData ( user ) ; sb.append ( "\n" ) ; }

Target:
void appendUser ( java.lang.String key , com.google.gerrit.extensions.common.AccountInfo user ) { sb.append ( key ) ; sb.append ( ": " ) ; appendUserData ( user ) ; sb.append ( "\n" ) ; }
Source:
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.update.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 ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot remove reviewer" , e ) ; } }
Source:
private static boolean acceptsJson ( javax.servlet.http.HttpServletRequest req ) { return ( req != null ) && ( com.google.gerrit.httpd.restapi.RestApiServlet.isType ( com.google.gerrit.httpd.restapi.RestApiServlet.JSON_TYPE , req.getHeader ( "Accept" ) ) ) ; }

Target:
private static boolean acceptsJson ( javax.servlet.http.HttpServletRequest req ) { return ( req != null ) && ( com.google.gerrit.httpd.restapi.RestApiServlet.isType ( com.google.gerrit.httpd.restapi.RestApiServlet.JSON_TYPE , req.getHeader ( com.google.common.net.HttpHeaders.ACCEPT ) ) ) ; }
Source:
protected void configure ( ) { factory ( LfsGetLocksAction.Factory.class ) ; factory ( LfsPutLocksAction.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( LfsGetLocksAction.Factory.class ) ; factory ( LfsPutLocksAction.Factory.class ) ; factory ( LfsProjectLocks.Factory.class ) ; install ( com.googlesource.gerrit.plugins.lfs.locks.LfsLocksHandler.module ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { changes = com.google.gerrit.client.rpc.Natives.asList ( result ) ; base.setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { changes = com.google.gerrit.client.rpc.Natives.asList ( result ) ; base.setEnabled ( true ) ; base.setFocus ( true ) ; }
Source:
public final boolean siteHasUsernames ( ) { if ( ( ( isCustomExtension ( ) ) && ( ( httpPasswordUrl ( ) ) != null ) ) && ( ! ( canEdit ( FieldName.USER_NAME ) ) ) ) { return false ; } return true ; }

Target:
public final java.util.List < com.google.gerrit.client.info.AgreementInfo > contributorAgreements ( ) { java.util.List < com.google.gerrit.client.info.AgreementInfo > agreements = new java.util.ArrayList < > ( ) ; for ( com.google.gerrit.client.info.AgreementInfo a : com.google.gerrit.client.rpc.Natives.asList ( _contributorAgreements ( ) ) ) { agreements.add ( a ) ; } return agreements ; }
Source:
private com.google.gerrit.server.project.ChangeControl changeControl ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gerrit.server.change.NoSuchChangeException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.change.Change c = cd.change ( ) ; return changeControlFactory.controlFor ( c , identifiedUserFactory.create ( c.getOwner ( ) ) ) ; ccd5b7 = $missing$ ; }

Target:
private com.google.gerrit.server.project.ChangeControl changeControl ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return cd.changeControl ( internalUserFactory.create ( ) ) ; }
Source:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }

Target:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }
Source:
public void testContainsFalseWithTwoElements ( ) 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 ) . doesNotContain ( 3 ) ; }

Target:
public void testContainsFalseWithTwoElements ( ) 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 ( 3 ) ) . isFalse ( ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getPatchSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , commit ) , Target.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getPatchSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , commit ) , target ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , accountProjectWatchCache , remotePeerProvider , dbProvider , id ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doBrowse ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }
Source:
com.google.gerrit.server.IdentifiedUser provideCurrentUser ( com.google.gerrit.server.CurrentUser user ) { if ( user instanceof com.google.gerrit.server.IdentifiedUser ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) ; } throw new com.google.inject.ProvisionException ( com.google.gerrit.common.errors.NotSignedInException.MESSAGE , new com.google.gerrit.common.errors.NotSignedInException ( ) ) ; }

Target:
com.google.gerrit.server.IdentifiedUser provideCurrentUser ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) ; } throw new com.google.inject.ProvisionException ( com.google.gerrit.common.errors.NotSignedInException.MESSAGE , new com.google.gerrit.common.errors.NotSignedInException ( ) ) ; }
Source:
private org.eclipse.jgit.lib.Ref getDraftRef ( com.google.gerrit.acceptance.TestAccount account , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openMetadataRepository ( allUsers ) ) { return repo.exactRef ( com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( account.id , changeId ) ) ; } }

Target:
private org.eclipse.jgit.lib.Ref getDraftRef ( com.google.gerrit.acceptance.TestAccount account , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsers ) ) { return repo.exactRef ( com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( account.id , changeId ) ) ; } }
Source:
com.google.gerrit.server.git.WorkQueue.Executor getExecutor ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config config , final com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "receive" , null , "threadPoolSize" , java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; return queues.createQueue ( poolSize , "ReceiveCommits" ) ; }

Target:
public void write ( byte [ ] what , int off , int len ) { messageSender.sendBytes ( what , off , len ) ; }
Source:
static com.google.gerrit.server.patch.PatchListEntry empty ( java.lang.String fileName ) { return new com.google.gerrit.server.patch.PatchListEntry ( com.google.gerrit.reviewdb.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableSet.of ( ) , 0 , 0 , 0 , 0 ) ; }

Target:
public static com.google.gerrit.server.diff.PatchListEntry empty ( java.lang.String fileName ) { return new com.google.gerrit.server.diff.PatchListEntry ( com.google.gerrit.reviewdb.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.diff.PatchListEntry.EMPTY_HEADER , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableSet.of ( ) , 0 , 0 , 0 , 0 ) ; }
Source:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "labelAs " + ( label.formatWithEquals ( ) ) ; } return "label " + ( label.formatWithEquals ( ) ) ; }

Target:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "label on behalf of " + ( label.formatWithEquals ( ) ) ; } return "label " + ( label.formatWithEquals ( ) ) ; }
Source:
public java.lang.String getLabel ( ) { return getLabelId ( ) . get ( ) ; }

Target:
public boolean getAbstain ( ) { return abstain ; }
Source:
public void onDraftPublished ( com.google.gerrit.extensions.events.DraftPublishedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) . email ) ; }

Target:
public com.google.gerrit.reviewdb.server.ReviewDb get ( ) { if ( ( db ) == null ) { try { db = schemaFactory.open ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.inject.ProvisionException ( "Cannot open ReviewDb" , e ) ; } } return db ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHContent getFileContent ( java.lang.String path ) throws java.io.IOException { return ghRepository.getFileContent ( path ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHContent getFileContent ( java.lang.String path ) throws java.io.IOException { return ghRepository.getFileContent ( path ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , getRefControl ( ) . forUser ( who ) , notes ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }
Source:
public java.lang.Class < com.google.gerrit.server.group.PutMembers.Input > inputType ( ) { return com.google.gerrit.server.group.PutMembers.Input.class ; }

Target:
public java.lang.Class < com.google.gerrit.server.group.AddMembers.Input > inputType ( ) { return com.google.gerrit.server.group.AddMembers.Input.class ; }
Source:
private boolean isLive ( final java.io.File entry ) { final java.lang.String name = entry.getName ( ) ; return ErrorLogFile.LOG_NAME.equals ( name ) ; }

Target:
private boolean isLive ( final java.io.File entry ) { final java.lang.String name = entry.getName ( ) ; return ( ErrorLogFile.LOG_NAME.equals ( name ) ) || ( name.endsWith ( ".pid" ) ) ; }
Source:
public static void drop ( com.google.gerrit.testing.InMemoryDatabase db ) { if ( db != null ) { db.drop ( ) ; } }

Target:
public static void drop ( com.google.gerrit.testing.InMemoryDatabase db ) { if ( db != null ) { db.dbInstance.drop ( ) ; } }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.groups.GroupInfo item ) { return item.getGroupId ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.info.GroupInfo item ) { return item.getGroupId ( ) ; }
Source:
protected void onExit ( final int rc ) { eventListenerRegistration.remove ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
private void removeEventListenerRegistration ( ) { if ( ( eventListenerRegistration ) != null ) { eventListenerRegistration.remove ( ) ; } }
Source:
public boolean canCreateAccount ( ) { return ( canPerform ( GlobalCapability.CREATE_ACCOUNT ) ) || ( user.isAdministrator ( ) ) ; }

Target:
public boolean canAdministrateServer ( ) { if ( ( canAdministrateServer ) == null ) { canAdministrateServer = ( ( user ) instanceof com.google.gerrit.server.PeerDaemonUser ) || ( canPerform ( GlobalCapability.ADMINISTRATE_SERVER ) ) ; } return canAdministrateServer ; }
Source:
public long getTail ( ) throws java.io.IOException { if ( ( getHead ( ) ) == 0 ) { return 0 ; } long tail = stores.tail.get ( ) ; return tail < 1 ? 1 : tail ; }

Target:
public long getTail ( ) throws java.io.IOException { if ( ( getHead ( ) ) == 0 ) { return 0 ; } long tail = stores.tail.spinGet ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.MAX_GET_SPINS ) ; return tail < 1 ? 1 : tail ; }
Source:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; for ( final com.google.gerrit.client.SignedInListener l : com.google.gerrit.client.Gerrit.signedInListeners ) { l.onSignIn ( ) ; } }

Target:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.DeferredCommand.addCommand ( new com.google.gwt.user.client.Command ( ) { public void execute ( ) { for ( final com.google.gerrit.client.SignedInListener l : com.google.gerrit.client.Gerrit.signedInListeners ) { l.onSignIn ( ) ; } } } ) ; }
Source:
public com.google.gerrit.server.project.ListProjects.FilterType getType ( ) { return type ; }

Target:
public com.google.gerrit.server.OutputFormat getFormat ( ) { return format ; }
Source:
private Account.Id parseIdent ( org.eclipse.jgit.revwalk.RevCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { return parseIdent ( commit.getCommitterIdent ( ) ) ; }

Target:
private Account.Id parseIdent ( org.eclipse.jgit.revwalk.RevCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { return parseIdent ( commit.getAuthorIdent ( ) ) ; }
Source:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , expectedStatus ) ; }

Target:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , false , expectedStatus ) ; }
Source:
com.google.gerrit.extensions.common.AccountInfo getReviewer ( ) ;

Target:
java.util.List < com.google.gerrit.extensions.common.AccountInfo > getReviewers ( ) ;
Source:
public void testCreateProjectHttpWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( ( "/projects/" + ( allProjects.get ( ) ) ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_CONFLICT ) ; }

Target:
public void testCreateProjectHttpWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { adminSession.put ( ( "/projects/" + ( allProjects.get ( ) ) ) ) . assertConflict ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { addRight.setEnabled ( true ) ; nameTxt.setText ( "" ) ; referenceTxt.setText ( "" ) ; display ( result ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewRight ( ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( ChangeIndex.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( ChangeIndex.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; bind ( com.google.gerrit.server.query.change.IndexRewrite.class ) . toInstance ( IndexRewrite.DISABLED ) ; }
Source:
public javax.servlet.ServletOutputStream getOutputStream ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void write ( int c ) throws java.io.IOException { osWriter.write ( c ) ; osWriter.flush ( ) ; }
Source:
public Account.Id getDeletedAssignee ( ) { return ( deletedAssignee ) != null ? deletedAssignee.getId ( ) : null ; }

Target:
public Account.Id getDeletedAssignee ( ) { return ( deletedAssignee ) != null ? deletedAssignee.getAccount ( ) . getId ( ) : null ; }
Source:
public java.util.List < java.lang.String > getTeamnamesForRepositoryRole ( java.lang.String role ) { return java.util.Collections.emptyList ( ) ; }

Target:
public java.util.List < java.lang.String > getTeamNamesForRepositoryRole ( java.lang.String role ) { return null ; }
Source:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { return addDraftBox ( com.google.gerrit.client.changes.CommentInfo.createRange ( path , getSideFromCm ( cm ) , ( line + 1 ) , null , null , null ) ) ; }

Target:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { return addDraftBox ( com.google.gerrit.client.changes.CommentInfo.createRange ( path , getStoredSideFromDisplaySide ( getSideFromCm ( cm ) ) , ( line + 1 ) , null , null , null ) , getSideFromCm ( cm ) ) ; }
Source:
public void testChangeOwner_OwnerACLGranted ( ) throws java.lang.Exception { grantApproveToChangeOwner ( ) ; approve ( user , createMyChange ( ) ) ; }

Target:
public void testChangeOwner_OwnerACLGranted ( ) throws java.lang.Exception { grantApproveToChangeOwner ( project ) ; approve ( user , createMyChange ( testRepo ) ) ; }
Source:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent arg0 ) { setEdit ( true ) ; }

Target:
public void run ( ) { expandText ( ) ; }
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 ) ; }

Target:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { org.apache.lucene.search.BooleanQuery.setMaxClauseCount ( cfg.getInt ( "index" , "maxTerms" , org.apache.lucene.search.BooleanQuery.getMaxClauseCount ( ) ) ) ; return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) ; }
Source:
private boolean isSignIn ( final com.google.gerrit.httpd.auth.openid.SignInMode mode ) { switch ( mode ) { case SIGN_IN : case REGISTER : return true ; default : return false ; } }

Target:
private boolean isSignIn ( final com.google.gerrit.httpd.auth.openid.SignInMode mode ) { switch ( mode ) { case SIGN_IN : case REGISTER : return true ; case LINK_IDENTIY : default : return false ; } }
Source:
private java.lang.String url ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , r.id ( ) ) ; }

Target:
private java.lang.String url ( com.google.gerrit.client.info.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , r.id ( ) ) ; }
Source:
private static com.google.gerrit.reviewdb.client.AccountGroup missing ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) { com.google.gerrit.reviewdb.client.AccountGroup.NameKey name = new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( ( "Deleted Group" + key ) ) ; return new com.google.gerrit.reviewdb.client.AccountGroup ( name , key , null ) ; }

Target:
private static com.google.gerrit.reviewdb.client.AccountGroup missing ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) { com.google.gerrit.reviewdb.client.AccountGroup.NameKey name = new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( ( "Deleted Group" + key ) ) ; return new com.google.gerrit.reviewdb.client.AccountGroup ( name , key , null , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; }
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 , 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 ( accountCache , emails , key , repository , changeData , project , branch , files ) ; }
Source:
public void setCharacterEncoding ( java.lang.String name ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
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 ) ; }
Source:
void unregisterReplyBox ( ) { replyBox = null ; }

Target:
void unregisterReplyBox ( ) { replyBox = null ; com.google.gwt.user.client.ui.UIObject.setVisible ( buttons , isOpen ( ) ) ; }
Source:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.delete ( changeId ) ; }

Target:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId ) ; } }
Source:
private static boolean isConfig ( com.google.gerrit.server.project.ListBranches.BranchInfo i ) { return RefNames.REFS_CONFIG.equals ( i.ref ) ; }

Target:
private static boolean isHead ( com.google.gerrit.extensions.api.projects.BranchInfo i ) { return Constants.HEAD.equals ( i.ref ) ; }
Source:
private void autoReindexIfStale ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { if ( autoReindexIfStale ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = reindexIfStale ( uuid ) ; } }

Target:
private void autoReindexIfStale ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { if ( autoReindexIfStale ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = reindexIfStaleAsync ( uuid ) ; } }
Source:
boolean canForceEditTopicName ( ) { return canForcePerform ( Permission.EDIT_TOPIC_NAME ) ; }

Target:
boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return canPerform ( Permission.SUBMIT , isChangeOwner , false ) ; }
Source:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.CurrentUser user ) { }

Target:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) { }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.server.CurrentUser user , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;
Source:
private com.google.gerrit.server.index.change.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.index.query.QueryParseException { return query ( p , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; }

Target:
private com.google.gerrit.server.index.change.IndexedChangeQuery query ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.index.query.QueryParseException { return query ( p , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; }
Source:
public void suggestParentCandidates ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.Project > > callback ) { suggestParentCandidatesHandlerFactory.create ( ) . to ( callback ) ; }

Target:
public void suggestParentCandidates ( com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.Project > > callback ) { suggestParentCandidatesHandlerFactory.create ( ) . to ( callback ) ; }
Source:
public void onChangeEvent ( final com.google.gerrit.server.events.ChangeEvent event ) { offer ( event ) ; }

Target:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { offer ( event ) ; }
Source:
public void printTest ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( sshSession.exec ( "cookbook print" ) ) . isEqualTo ( "Hello world!\n" ) ; com.google.common.truth.Truth.assertThat ( sshSession.hasError ( ) ) . isFalse ( ) ; }

Target:
public void printTest ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSshSession.exec ( "cookbook print" ) ) . isEqualTo ( "Hello world!\n" ) ; com.google.common.truth.Truth.assertThat ( adminSshSession.hasError ( ) ) . isFalse ( ) ; }
Source:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { toGerrit ( com.google.gerrit.common.PageLinks.toChangeQuery ( query ) , 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 ( com.google.gerrit.common.PageLinks.toChangeQuery ( query ) , req , rsp ) ; }
Source:
void onCreate ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) throws java.io.IOException ;

Target:
void onCreate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) throws java.io.IOException ;
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.xdocs.client.ChangeInfo change ) { setRevisions ( change , patchSet ) ; addHeader ( change ) ; display ( change ) ; }

Target:
public void onSuccess ( com.googlesource.gerrit.plugins.xdocs.client.ChangeInfo change ) { setRevisions ( change , patchSet ) ; addHeader ( change ) ; init ( ) ; display ( change ) ; }
Source:
public boolean isSampledStatisticsEnabled ( ) { return self ( ) . isSampledStatisticsEnabled ( ) ; }

Target:
public boolean isStatisticsEnabled ( ) { return self.isStatisticsEnabled ( ) ; }
Source:
public com.google.gerrit.extensions.registration.DynamicMap < com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeEditResource > > views ( ) { throw new java.lang.IllegalStateException ( "not yet implemented" ) ; }

Target:
public com.google.gerrit.extensions.registration.DynamicMap < com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeEditResource > > views ( ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
com.google.gerrit.client.diff.UnifiedChunkManager.LineSidePair getLineSidePairFromCmLine ( int cmLine ) { return chunkManager.getLineSidePairFromCmLine ( cmLine ) ; }

Target:
com.google.gerrit.client.diff.UnifiedChunkManager.LineRegionInfo getLineRegionInfoFromCmLine ( int cmLine ) { return chunkManager.getLineRegionInfoFromCmLine ( cmLine ) ; }
Source:
void onCherryPick ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.CherryPickAction.call ( cherrypick , changeId , revision , project , message ) ; }

Target:
void onCherryPick ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.CherryPickAction.call ( cherrypick , changeInfo , revision , project , message ) ; }
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; for ( net.codemirror.lib.CodeMirror cm : getCms ( ) ) { cm.adjustHeight ( height ) ; } }

Target:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; } } ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gerrit.client.rpc.HttpCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }
Source:
public void anonymousAccess ( ) throws java.lang.Exception { setApiUserAnonymous ( ) ; gApi.config ( ) . server ( ) . getInfo ( ) ; }

Target:
public void anonymousAccess ( ) throws java.lang.Exception { configureContributorAgreement ( true ) ; setApiUserAnonymous ( ) ; gApi.config ( ) . server ( ) . getInfo ( ) ; }
Source:
private static void checkMutuallyExclusiveLabels ( java.util.Set < java.lang.String > labels ) { if ( labels.containsAll ( com.google.common.collect.ImmutableSet.of ( com.google.gerrit.server.StarredChangesUtil.DEFAULT_LABEL , com.google.gerrit.server.StarredChangesUtil.IGNORE_LABEL ) ) ) { throw com.google.gerrit.server.StarredChangesUtil.IllegalLabelException.mutuallyExclusiveLabels ( com.google.gerrit.server.StarredChangesUtil.DEFAULT_LABEL , com.google.gerrit.server.StarredChangesUtil.IGNORE_LABEL ) ; } }

Target:
private static void checkMutuallyExclusiveLabels ( java.util.Set < java.lang.String > labels ) { if ( labels.containsAll ( com.google.common.collect.ImmutableSet.of ( com.google.gerrit.server.StarredChangesUtil.DEFAULT_LABEL , com.google.gerrit.server.StarredChangesUtil.IGNORE_LABEL ) ) ) { throw new com.google.gerrit.server.StarredChangesUtil.MutuallyExclusiveLabelsException ( com.google.gerrit.server.StarredChangesUtil.DEFAULT_LABEL , com.google.gerrit.server.StarredChangesUtil.IGNORE_LABEL ) ; } }
Source:
private java.lang.String commitId ( int i ) { return results.get ( i ) . getCommitId ( ) . name ( ) ; }

Target:
private java.lang.String commitId ( int i ) { return results.get ( i ) . getCommit ( ) . name ( ) ; }
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 onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNew ( ) ; } }
Source:
public void setReversePatchSetOrder ( final boolean reversePatchSetOrder ) { this . reversePatchSetOrder = reversePatchSetOrder ; }

Target:
public void setEmailStrategy ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.EmailStrategy strategy ) { this . emailStrategy = strategy.name ( ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi api ( int id , java.lang.String action ) { return new com.google.gerrit.client.rpc.RestApi ( ( ( ( "/changes/" + id ) + "/" ) + action ) ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi revision ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id.getParentKey ( ) . get ( ) ) . view ( "revisions" ) . id ( id.get ( ) ) ; }
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.ListBranchesResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }
Source:
private com.google.gerrit.httpd.raw.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.Paths ( ) ; } }

Target:
private com.google.gerrit.httpd.raw.StaticModule.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.StaticModule.Paths ( ) ; } return paths ; }
Source:
private void verifyLocks ( java.lang.String project , com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext action ) throws java.io.IOException { com.googlesource.gerrit.plugins.lfs.locks.LfsPutLocksAction.log.debug ( "Verify list of locks for project" , project ) ; action.sendResponse ( new com.googlesource.gerrit.plugins.lfs.locks.LfsVerifyLocksResponse ( java.util.Collections.emptyList ( ) , java.util.Collections.emptyList ( ) , null ) ) ; }

Target:
public void run ( com.google.gerrit.server.project.ProjectState project , com.google.gerrit.server.CurrentUser user ) throws java.io.IOException , org.eclipse.jgit.lfs.errors.LfsException { com.googlesource.gerrit.plugins.lfs.locks.LfsPutLocksAction.log.debug ( "Verify list of locks for project" , project ) ; context.sendResponse ( new com.googlesource.gerrit.plugins.lfs.locks.LfsVerifyLocksResponse ( java.util.Collections.emptyList ( ) , java.util.Collections.emptyList ( ) , null ) ) ; }
Source:
public void setParentToSelfNotAllowed ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "cycle exists between" ) ; gApi.projects ( ) . name ( project.get ( ) ) . parent ( project.get ( ) ) ; }

Target:
public void setParentToSelfNotAllowed ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "cannot set parent to self" ) ; gApi.projects ( ) . name ( project.get ( ) ) . parent ( project.get ( ) ) ; }
Source:
public com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > getReviewDbProvider ( ) { return com.google.inject.util.Providers.of ( db ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { testEnv.getInjector ( ) . injectMembers ( this ) ; db = testEnv.getDb ( ) ; }
Source:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , java.lang.String name , com.google.gerrit.server.index.Schema < ? > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s_%04d" , name , schema.getVersion ( ) ) ) ; }

Target:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , java.lang.String name , com.google.gerrit.index.Schema < ? > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s_%04d" , name , schema.getVersion ( ) ) ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . addValue ( getId ( ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . addValue ( getId ( ) ) . toString ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; if ( isInvalidSshKey ( caught ) ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidSshKeyError ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doAddNew ( ) ; }
Source:
protected void add ( com.google.gerrit.server.mail.RecipientType type , com.google.gerrit.server.mail.ChangeEmail.Watchers.List list ) { for ( com.google.gerrit.reviewdb.client.Account.Id user : list.accounts ) { add ( type , user ) ; } for ( com.google.gerrit.server.mail.Address addr : list.emails ) { add ( type , addr ) ; } }

Target:
protected void add ( com.google.gerrit.server.mail.RecipientType type , com.google.gerrit.server.mail.ProjectWatch.Watchers.List list ) { for ( com.google.gerrit.reviewdb.client.Account.Id user : list.accounts ) { add ( type , user ) ; } for ( com.google.gerrit.server.mail.Address addr : list.emails ) { add ( type , addr ) ; } }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groups ( final com.google.gerrit.server.account.AccountState who ) { return who.getInternalGroups ( ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership groups ( final com.google.gerrit.server.account.AccountState who ) { return groupMembershipFactory.create ( who.getInternalGroups ( ) ) ; }
Source:
public java.lang.String getUserName ( ) { return state ( ) . getUserName ( ) . orElse ( null ) ; }

Target:
public java.util.Optional < java.lang.String > getUserName ( ) { return state ( ) . getUserName ( ) ; }
Source:
public com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput apply ( com.google.gerrit.extensions.common.CommentInfo info ) { com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ci = new com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ( ) ; ci.path = path ; com.google.gerrit.acceptance.server.change.CommentsIT.copy ( info , ci ) ; return ci ; }

Target:
private static com.google.common.base.Function < com.google.gerrit.extensions.common.CommentInfo , com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput > infoToInput ( java.lang.String path ) { return com.google.gerrit.acceptance.server.change.CommentsIT.infoToInput ( path , CommentInput :: new ) ; }
Source:
public void setUp ( ) { com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void setUp ( ) { com.google.gerrit.testing.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
private PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }

Target:
private PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }