auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gwtorm.server.Access < ? , ? > [ ] allRelations ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public com.google.gwtorm.server.Access < ? , ? > [ ] allRelations ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public WorkQueue.Executor createEmailReviewCommentsExecutor ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config config , com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "sendemail" , null , "threadPoolSize" , 1 ) ; return queues.createQueue ( poolSize , "EmailReviewComments" ) ; }

Target:
public java.util.concurrent.ExecutorService createSendEmailExecutor ( ) { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse head ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Head ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse head ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Head ( getUrl ( endPoint ) ) ) ; }
Source:
private void initUI ( ) { initName ( ) ; initDescription ( ) ; initMemberList ( ) ; }

Target:
private void initUI ( ) { initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }
Source:
public void addOtherUsersGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; }

Target:
public void addOtherUsersGpgKey_Conflict ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; }
Source:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getCurrentUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }

Target:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }
Source:
public void configure ( ) { java.lang.String secureStoreClassName = com.google.gerrit.server.config.GerritServerConfigModule.getSecureStoreClassName ( sitePath ) ; bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.server.securestore.SecureStoreClassName.class ) . toProvider ( com.google.inject.util.Providers.of ( secureStoreClassName ) ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.httpd.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account.Id account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( account ) ; return rsrc.getControl ( ) . forUser ( who ) . isRefVisible ( ) ; }

Target:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account.Id account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( account ) ; return perm.user ( who ) . testOrFalse ( RefPermission.READ ) ; }
Source:
public final AccountGroup.Id getGroupId ( ) { return new com.google.gerrit.reviewdb.client.AccountGroup.Id ( groupId ( ) ) ; }

Target:
public final AccountGroup.Id getGroupId ( ) { return new com.google.gerrit.reviewdb.client.AccountGroup.Id ( group_id ( ) ) ; }
Source:
public void onFocus ( com.google.gwt.user.client.ui.Widget sender ) { if ( Util.C.defaultAccountName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( "gerrit-InputFieldTypeHint" ) ; } }

Target:
public void onFocus ( final com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultAccountName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( "gerrit-InputFieldTypeHint" ) ; } }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.reviewedAndNext ( ) . run ( ) ; }
Source:
public void afterRefresh ( boolean didRefresh ) throws java.io.IOException { for ( com.google.gerrit.lucene.SubIndex.NrtFuture f : notDoneNrtFutures ) { f.removeIfDone ( ) ; } }

Target:
public void afterRefresh ( boolean didRefresh ) throws java.io.IOException { for ( com.google.gerrit.lucene.AbstractLuceneIndex < K , V > . NrtFuture f : notDoneNrtFutures ) { f.removeIfDone ( ) ; } }
Source:
public java.util.List < ? extends com.google.gerrit.extensions.common.GroupAuditEventInfo > auditLog ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getAuditLog.apply ( rsrc ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get audit log" , e ) ; } }

Target:
public java.util.List < ? extends com.google.gerrit.extensions.common.GroupAuditEventInfo > auditLog ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getAuditLog.apply ( rsrc ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get audit log" , e ) ; } }
Source:
public boolean indexChange ( final int changeId ) { return new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarder.Request ( ( "index change " + changeId ) ) { @ java.lang.Override com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult send ( ) throws java.io.IOException { return httpSession.post ( buildIndexEndpoint ( changeId ) ) ; } } . execute ( ) ; }

Target:
public boolean indexChange ( final int changeId ) { return new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarder.Request ( "index change" , changeId ) { @ java.lang.Override com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult send ( ) throws java.io.IOException { return httpSession.post ( buildIndexEndpoint ( changeId ) ) ; } } . execute ( ) ; }
Source:
public void add ( com.google.gerrit.server.notedb.ChangeDraftUpdate draftUpdate ) { draftUpdates.put ( draftUpdate.getRefName ( ) , draftUpdate ) ; }

Target:
public void add ( com.google.gerrit.server.notedb.ChangeDraftUpdate draftUpdate ) { com.google.common.base.Preconditions.checkState ( ( ( staged ) == null ) , "cannot add new update after staging" ) ; draftUpdates.put ( draftUpdate.getRefName ( ) , draftUpdate ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete draft ps" , e ) ; } }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstCommit ( org.eclipse.jgit.lib.AnyObjectId otherCommitId , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { return new com.google.gerrit.server.patch.PatchListKey ( otherCommitId , newId , whitespace , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public static com.google.gerrit.server.diff.PatchListKey againstCommit ( org.eclipse.jgit.lib.AnyObjectId otherCommitId , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { return new com.google.gerrit.server.diff.PatchListKey ( otherCommitId , newId , whitespace , com.google.gerrit.server.diff.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
public static boolean readWrite ( ) { return ( ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) == ( com.google.gerrit.testutil.NoteDbMode.READ_WRITE ) ) || ( ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) == ( com.google.gerrit.testutil.NoteDbMode.PRIMARY ) ) ; }

Target:
public static boolean readWrite ( ) { return com.google.gerrit.testutil.NoteDbMode.get ( ) . readWrite ; }
Source:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneIndexModule.SingleVersionListener.class ) ; }

Target:
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 ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.userAccount ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.userAccount ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.userAccount ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.userAccount ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( gStarting ) ; }
Source:
public void removeAll ( ) { cache.removeAll ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAllAsync ( ) { return cache.removeAllAsync ( ) ; }
Source:
public void setTimeForTesting ( ) { systemTimeZone = java.lang.System.setProperty ( "user.timezone" , "US/Eastern" ) ; com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void setTimeForTesting ( ) { systemTimeZone = java.lang.System.setProperty ( "user.timezone" , "US/Eastern" ) ; com.google.gerrit.testing.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public int compare ( final com.google.gerrit.client.reviewdb.Project a , final com.google.gerrit.client.reviewdb.Project b ) { return a.getName ( ) . compareTo ( b.getName ( ) ) ; }

Target:
public void deleteBranch ( final com.google.gerrit.client.reviewdb.Project.NameKey projectName , final java.util.Set < com.google.gerrit.client.reviewdb.Branch.NameKey > toRemove , final com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.client.reviewdb.Branch.NameKey > > callback ) { deleteBranchesFactory.create ( projectName , toRemove ) . to ( callback ) ; }
Source:
public abstract java.lang.String getSqlType ( com.google.gwtorm.schema.ColumnModel column ) ;

Target:
public abstract java.lang.String getSqlType ( com.google.gwtorm.schema.ColumnModel column , com.google.gwtorm.schema.sql.SqlDialect dialect ) ;
Source:
private boolean canRegisterNewEmail ( ) { return com.google.gerrit.client.Gerrit.info ( ) . auth ( ) . canEdit ( Account.FieldName.REGISTER_NEW_EMAIL ) ; }

Target:
private boolean canRegisterNewEmail ( ) { return com.google.gerrit.client.Gerrit.info ( ) . auth ( ) . canEdit ( AccountFieldName.REGISTER_NEW_EMAIL ) ; }
Source:
public com.google.common.base.Optional < com.google.gerrit.server.query.change.ChangeData.ChangedLines > changedLines ( ) throws com.google.gwtorm.server.OrmException { if ( ( changedLines ) == null ) { if ( ! ( lazyLoad ) ) { return com.google.common.base.Optional.absent ( ) ; } changedLines = computeChangedLines ( ) ; } return changedLines ; }

Target:
public java.util.Optional < com.google.gerrit.server.query.change.ChangeData.ChangedLines > changedLines ( ) throws com.google.gwtorm.server.OrmException { if ( ( changedLines ) == null ) { if ( ! ( lazyLoad ) ) { return java.util.Optional.empty ( ) ; } changedLines = computeChangedLines ( ) ; } return changedLines ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; query = new com.google.gerrit.client.admin.ProjectTagsScreen.Query ( match ) . start ( start ) . run ( ) ; savedPanel = TAGS ; }

Target:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { addPanel.setVisible ( result.canAddRefs ( ) ) ; }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , c , allUsers , user ) ; return update ; }

Target:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; update.setAllowWriteToNewRef ( true ) ; return update ; }
Source:
protected abstract void populateDownloadCommandLinks ( ) ;

Target:
protected abstract java.util.Set < com.google.gerrit.client.config.DownloadInfo.DownloadCommandInfo > getCommands ( com.google.gerrit.client.config.DownloadInfo.DownloadSchemeInfo schemeInfo ) ;
Source:
public java.lang.String getName ( ) { return this . getName ( ) ; }

Target:
public java.lang.String getName ( ) { return this . getClass ( ) . getName ( ) ; }
Source:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.newIdent ( author , when , serverIdent , anonymousCowardName ) ; }

Target:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return changeNoteUtil.newIdent ( author , when , serverIdent , anonymousCowardName ) ; }
Source:
private static com.google.common.collect.ImmutableMultimap.Builder < org.eclipse.jgit.lib.ObjectId , com.google.gerrit.reviewdb.client.PatchSet.Id > patchSets ( ) { return com.google.common.collect.ImmutableMultimap.builder ( ) ; }

Target:
private static com.google.common.collect.ImmutableListMultimap.Builder < org.eclipse.jgit.lib.ObjectId , com.google.gerrit.reviewdb.client.PatchSet.Id > patchSets ( ) { return com.google.common.collect.ImmutableListMultimap.builder ( ) ; }
Source:
public java.lang.String getRepository ( ) { return gitHubRepository.repository ; }

Target:
protected java.lang.String getSourceUri ( ) { return gitHubRepository.getCloneUrl ( ) ; }
Source:
public com.google.gerrit.pgm.util.LibraryDownloader setRequired ( final boolean required ) { this . required = required ; return this ; }

Target:
public void downloadRequired ( ) { this . required = true ; download ( ) ; }
Source:
public boolean isOwner ( ) { return ( controlForRef ( AccessSection.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
boolean visibleForReplication ( ) { return ( ( user ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( user ) ) . isEverythingVisible ( ) ) ; }
Source:
void changeProjectSettings ( com.google.gerrit.reviewdb.Project update , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = session.delete ( urlEdit ( ) ) ; org.junit.Assert.assertEquals ( org.apache.http.HttpStatus.SC_BAD_REQUEST , r.getStatusCode ( ) ) ; }

Target:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = session.delete ( urlEdit ( ) ) ; org.junit.Assert.assertEquals ( org.apache.http.HttpStatus.SC_NOT_FOUND , r.getStatusCode ( ) ) ; }
Source:
void storeEvent ( com.google.gerrit.server.events.ProjectEvent event ) throws java.sql.SQLException { storeEvent ( event.getProjectNameKey ( ) . get ( ) , new java.sql.Timestamp ( java.util.concurrent.TimeUnit.SECONDS.toMillis ( event.eventCreatedOn ) ) , new com.google.gson.Gson ( ) . toJson ( event ) ) ; }

Target:
void storeEvent ( com.google.gerrit.server.events.ProjectEvent event ) throws java.sql.SQLException { storeEvent ( event.getProjectNameKey ( ) . get ( ) , new java.sql.Timestamp ( java.util.concurrent.TimeUnit.SECONDS.toMillis ( event.eventCreatedOn ) ) , gson.toJson ( event ) ) ; }
Source:
public void execute ( ) { getElement ( ) . getStyle ( ) . setPaddingLeft ( cm.getGutterElement ( ) . getOffsetWidth ( ) , Unit.PX ) ; }

Target:
public void run ( ) { int w = cm.getGutterElement ( ) . getOffsetWidth ( ) ; getElement ( ) . getStyle ( ) . setPaddingLeft ( w , Unit.PX ) ; setVisible ( true ) ; }
Source:
com.google.gerrit.common.changes.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { return ( side == ( com.google.gerrit.client.diff.SideBySide2.DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }

Target:
com.google.gerrit.common.changes.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }
Source:
void setLimit ( int n ) { queryProcessor.setLimit ( n ) ; }

Target:
void setLimit ( int n ) { queryProcessor.setUserProvidedLimit ( n ) ; }
Source:
protected io.searchbox.core.Bulk.Builder addActions ( io.searchbox.core.Bulk.Builder builder , com.google.gerrit.reviewdb.client.Change.Id c ) { return builder.addAction ( delete ( OPEN_CHANGES , c ) ) . addAction ( delete ( OPEN_CHANGES , c ) ) ; }

Target:
protected io.searchbox.core.Bulk.Builder addActions ( io.searchbox.core.Bulk.Builder builder , com.google.gerrit.reviewdb.client.Change.Id c ) { return builder.addAction ( delete ( com.google.gerrit.elasticsearch.ElasticChangeIndex.OPEN_CHANGES , c ) ) . addAction ( delete ( com.google.gerrit.elasticsearch.ElasticChangeIndex.OPEN_CHANGES , c ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.api.projects.ReflogEntryInfo > reflog ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getReflog.apply ( resource ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve reflog" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.api.projects.ReflogEntryInfo > reflog ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getReflog.apply ( resource ( ) ) ; } catch ( java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve reflog" , e ) ; } }
Source:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return ( ( "q," + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + "," ) + ( com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return com.google.gerrit.common.PageLinks.toChangeQuery ( query , com.google.gerrit.common.PageLinks.TOP ) ; }
Source:
private static void logAndThrowSubmoduleException ( final java.lang.String errorMsg ) throws com.google.gerrit.server.git.SubmoduleException { com.google.gerrit.server.git.SubmoduleOp.log.error ( errorMsg ) ; throw new com.google.gerrit.server.git.SubmoduleException ( errorMsg ) ; }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.SubmoduleOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.SubmoduleOp.log.debug ( ( ( ( "[" + ( orm.getSubmissionId ( ) ) ) + "]" ) + msg ) , args ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.PatchLineComment result ) { enable ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.PatchLineComment result ) { enableButtons ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }
Source:
com.googlesource.gerrit.plugins.quota.UsageDataEventCreator providePushEventCreator ( com.google.gerrit.server.project.ProjectCache projectCache , @ com.google.inject.name.Named ( value = com.googlesource.gerrit.plugins.quota.PersistentCounter.PUSH ) com.googlesource.gerrit.plugins.quota.PersistentCounter counts ) { return new com.googlesource.gerrit.plugins.quota.FetchAndPushEventCreator ( projectCache , counts , FetchAndPushEventCreator.PUSH_COUNT ) ; }

Target:
static com.google.inject.Module module ( ) { return new com.google.gerrit.server.cache.CacheModule ( ) { protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.googlesource.gerrit.plugins.quota.UsageDataEventCreator.class ) . to ( com.googlesource.gerrit.plugins.quota.RepoSizeEventCreator.class ) ; } } ; }
Source:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box , com.google.gerrit.common.changes.Side side ) { diffTable.onRemoveDraftBox ( box , side ) ; }

Target:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box ) { diffTable.addFileCommentBox ( box ) ; }
Source:
public boolean getBoolean ( java.lang.String name , boolean defaultValue ) { return getValue ( name , new com.google.common.base.Function < java.lang.String , java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean apply ( java.lang.String stringVal ) { return java.lang.Boolean.parseBoolean ( stringVal ) ; } } , defaultValue ) ; }

Target:
public java.lang.String getString ( java.lang.String name ) { return cfg.getString ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name ) ; }
Source:
public void keyExpiringInFuture ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.key2 ( ) ) ; }

Target:
public void keyExpiringInFuture ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithExpiration ( ) ) ; }
Source:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps != null ) { files.put ( ps.getPatchSetId ( ) , com.google.common.collect.ImmutableList.copyOf ( filePaths ) ) ; } }

Target:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps != null ) { initFiles ( ) . put ( ps.getPatchSetId ( ) , com.google.common.collect.ImmutableList.copyOf ( filePaths ) ) ; } }
Source:
public void execute ( ) { setFocus ( true ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; c.setStarred ( prior ) ; setStar ( row , c ) ; }
Source:
protected boolean hasDifferences ( com.google.gerrit.common.data.PatchScript script ) { return ( hasEdits ( script ) ) || ( hasMeta ( script ) ) ; }

Target:
protected boolean hasDifferences ( com.google.gerrit.common.data.PatchScript script ) { return ( ( hasEdits ( script ) ) || ( hasMeta ( script ) ) ) || ( hasComments ( script ) ) ; }
Source:
public void testProjectWithSlashesNotFound ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.google.gerrit.server.util.SubmoduleSection > sectionsToReturn = new java.util.HashMap < > ( ) ; sectionsToReturn.put ( "project" , new com.google.gerrit.server.util.SubmoduleSection ( "ssh://localhost/company/tools/project" , "project" , "." ) ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > expectedSubscriptions = java.util.Collections.emptySet ( ) ; execute ( new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "super-project" ) , "refs/heads/master" ) , sectionsToReturn , new java.util.HashMap < java.lang.String , java.lang.String > ( ) , expectedSubscriptions ) ; }

Target:
public void testProjectWithSlashesNotFound ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection > sectionsToReturn = new java.util.HashMap < > ( ) ; sectionsToReturn.put ( "project" , new com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection ( "ssh://localhost/company/tools/project" , "project" , "." ) ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > expectedSubscriptions = java.util.Collections.emptySet ( ) ; execute ( new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "super-project" ) , "refs/heads/master" ) , sectionsToReturn , new java.util.HashMap < java.lang.String , java.lang.String > ( ) , expectedSubscriptions ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveStateOnUnload = false ; goChange ( ) ; }
Source:
public boolean isVisible ( ) { return getProjectControl ( ) . isVisible ( ) ; }

Target:
public boolean isVisible ( ) { return getRefControl ( ) . isVisible ( ) ; }
Source:
private void assertCanRead ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.isVisible ( ) ) . named ( "can read" ) . isTrue ( ) ; }

Target:
private void assertCanAccess ( com.google.gerrit.server.project.ProjectControl u ) { boolean access = u.asForProject ( ) . testOrFalse ( ProjectPermission.ACCESS ) ; com.google.common.truth.Truth.assertThat ( access ) . named ( "can access" ) . isTrue ( ) ; }
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 ) , getChange ( ) ) ; }

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 ) , change ) ; }
Source:
private static synchronized com.google.gerrit.git.WorkQueue.Executor getPool ( final boolean autoStart ) { if ( autoStart && ( ( com.google.gerrit.git.WorkQueue.pool ) == null ) ) { com.google.gerrit.git.WorkQueue.pool = new com.google.gerrit.git.WorkQueue.Executor ( 1 ) ; } return com.google.gerrit.git.WorkQueue.pool ; }

Target:
private static synchronized com.google.gerrit.git.WorkQueue.Executor getDefaultQueue ( ) { if ( ( com.google.gerrit.git.WorkQueue.defaultQueue ) == null ) { com.google.gerrit.git.WorkQueue.defaultQueue = com.google.gerrit.git.WorkQueue.createQueue ( 1 ) ; } return com.google.gerrit.git.WorkQueue.defaultQueue ; }
Source:
public boolean canForgeGerritServerIdentity ( ) { return canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_SERVER ) ; }

Target:
public boolean canDelete ( ) { switch ( getCurrentUser ( ) . getAccessPath ( ) ) { case WEB_UI : return ( isOwner ( ) ) || ( canPushWithForce ( ) ) ; case GIT : return canPushWithForce ( ) ; default : return false ; } }
Source:
Account.Id parse ( java.lang.String id ) { return Account.Id.parse ( id ) ; }

Target:
Account.Id parse ( java.lang.String id ) { return Account.Id.tryParse ( id ) . get ( ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.Account.Id key ) { byAccountId.remove ( key ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.Account.Id key ) { return byAccountId.removeAsync ( key ) ; }
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:
private void upToChange ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { if ( ! ( failed ) ) { failed = true ; failedThrowable = caught ; } remaining.remove ( this ) ; this . applyAllFailed ( ) ; }

Target:
private void success ( com.google.gerrit.client.rpc.CallbackGroup.CallbackGlue cb ) { remaining.remove ( cb ) ; apply ( ) ; }
Source:
void onIgnoreWhitespace ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ChangeEvent e ) { prefs.ignoreWhitespace ( com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( ignoreWhitespace.getSelectedIndex ( ) ) ) ) ; view.reloadDiffInfo ( ) ; }

Target:
void onIgnoreWhitespace ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ChangeEvent e ) { prefs.ignoreWhitespace ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.valueOf ( ignoreWhitespace.getValue ( ignoreWhitespace.getSelectedIndex ( ) ) ) ) ; if ( ( view ) != null ) { view.reloadDiffInfo ( ) ; } }
Source:
protected void insertRow ( final int row ) { table.insertRow ( row ) ; table.getCellFormatter ( ) . setStyleName ( row , 0 , com.google.gerrit.client.patches.S_ICON_CELL ) ; }

Target:
protected void insertRow ( final int row ) { table.insertRow ( row ) ; table.getCellFormatter ( ) . setStyleName ( row , 0 , Gerrit.RESOURCES.css ( ) . iconCell ( ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return getRefControl ( ) . getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return getRefControl ( ) . getUser ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { update ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { save ( ) ; } }
Source:
private com.google.gerrit.extensions.common.ChangeStatus booleanToDraftStatus ( java.lang.Boolean draft ) { if ( draft == null ) { return com.google.gerrit.extensions.common.ChangeStatus.NEW ; } return draft ? com.google.gerrit.extensions.common.ChangeStatus.DRAFT : com.google.gerrit.extensions.common.ChangeStatus.NEW ; }

Target:
private com.google.gerrit.extensions.client.ChangeStatus booleanToDraftStatus ( java.lang.Boolean draft ) { if ( draft == null ) { return com.google.gerrit.extensions.client.ChangeStatus.NEW ; } return draft ? com.google.gerrit.extensions.client.ChangeStatus.DRAFT : com.google.gerrit.extensions.client.ChangeStatus.NEW ; }
Source:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitWebType gitWebType = new com.google.gerrit.common.data.GitWebType ( ) ; gitWebType.setPathSeparator ( '!' ) ; org.junit.Assert.assertEquals ( "a!b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }

Target:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitwebType gitwebType = new com.google.gerrit.common.data.GitwebType ( ) ; gitwebType.setPathSeparator ( '!' ) ; org.junit.Assert.assertEquals ( "a!b" , gitwebType.replacePathSeparator ( "a/b" ) ) ; }
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:
long getTimeoutMillis ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( cfg , "receive" , null , "timeout" , java.util.concurrent.TimeUnit.SECONDS.convert ( 2 , java.util.concurrent.TimeUnit.MINUTES ) , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftLeft ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.lang.IllegalTypeException ( "integer" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftLeft ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }
Source:
public void startPositionEqualToEndPositionIsValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 11 , 13 , 11 ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isValid ( ) ; }

Target:
public void startPositionEqualToEndPositionIsValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 11 , 13 , 11 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }
Source:
public void linkifyAmpersand ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS , config ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url?a&b" , "url" , "http://my/url?a&b" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url?a&b" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://weird/htmlified/?url" , "url" , "http://weird/htmlified/?url" ) , com.google.common.collect.ImmutableMap.of ( "text" , "&lt;p&rt;" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://weird/htmlified/?url&lt;p&rt;" ) ) ; }

Target:
public void linkifyAmpersand ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS , config ) ; com.google.common.truth.Truth.assertThat ( l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url?a&b" ) ) . containsExactly ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url?a&b" , "url" , "http://my/url?a&b" ) ) . inOrder ( ) ; com.google.common.truth.Truth.assertThat ( l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://weird/htmlified/?url&lt;p&rt;" ) ) . containsExactly ( com.google.common.collect.ImmutableMap.of ( "text" , "http://weird/htmlified/?url" , "url" , "http://weird/htmlified/?url" ) , com.google.common.collect.ImmutableMap.of ( "text" , "&lt;p&rt;" ) ) . inOrder ( ) ; }
Source:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKey.key1 ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }

Target:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.admin.ProjectDetail result ) { display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.admin.ProjectDetail result ) { display ( result ) ; }
Source:
static com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > commitField ( java.lang.String id ) { if ( ( id.length ( ) ) == ( org.eclipse.jgit.lib.Constants.OBJECT_ID_STRING_LENGTH ) ) { return com.google.gerrit.server.index.ChangeField.EXACT_COMMIT ; } return com.google.gerrit.server.index.ChangeField.COMMIT ; }

Target:
static com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > commitField ( java.lang.String id ) { if ( ( id.length ( ) ) == ( org.eclipse.jgit.lib.Constants.OBJECT_ID_STRING_LENGTH ) ) { return com.google.gerrit.server.index.change.ChangeField.EXACT_COMMIT ; } return com.google.gerrit.server.index.change.ChangeField.COMMIT ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { query = new com.google.gerrit.client.admin.ProjectBranchesScreen.Query ( ) . start ( start ) . run ( ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { query = new com.google.gerrit.client.admin.ProjectBranchesScreen.Query ( match ) . start ( start ) . run ( ) ; super . onFailure ( caught ) ; }
Source:
private final org.bouncycastle.openpgp.PGPEncryptedDataGenerator cpk ( ) throws com.google.gerrit.server.contact.NoSuchProviderException , org.bouncycastle.openpgp.PGPException { BRANCH ( f20820 ) ; com.google.gerrit.server.contact.Remove now ; com.google.gerrit.server.contact.project parameter ; org.bouncycastle.openpgp.PGPEncryptedDataGenerator cpk = new org.bouncycastle.openpgp.PGPEncryptedDataGenerator ( org.bouncycastle.openpgp.PGPEncryptedData.CAST5 , true , prng , "BC" ) ; cpk.addMethod ( dest ) ; return cpk ; }

Target:
private final org.bouncycastle.openpgp.PGPEncryptedDataGenerator cpk ( ) throws java.security.NoSuchProviderException , org.bouncycastle.openpgp.PGPException { org.bouncycastle.openpgp.PGPEncryptedDataGenerator cpk = new org.bouncycastle.openpgp.PGPEncryptedDataGenerator ( org.bouncycastle.openpgp.PGPEncryptedData.CAST5 , true , prng , "BC" ) ; cpk.addMethod ( dest ) ; return cpk ; }
Source:
public void addReviewerByEmailToReviewableChangeInReviewDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; forAll ( ( adder ) -> { java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
public void addReviewerByEmailToReviewableChangeInReviewDbBatch ( ) throws java.lang.Exception { addReviewerByEmailToReviewableChangeInReviewDb ( batch ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; } }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless , slave ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }
Source:
protected void preDisplay ( java.lang.String content ) { initEditor ( content ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; group2.done ( ) ; group3.done ( ) ; }
Source:
public void setBlock ( boolean block ) { this . block = block ; }

Target:
public void setCanOverride ( boolean canOverride ) { this . canOverride = canOverride ; }
Source:
public boolean canUpload ( ) { return getProjectControl ( ) . controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ; }

Target:
public boolean canUploadMerges ( ) { return projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH_MERGE ) ; }
Source:
public static java.io.File solrIndexConfig ( com.google.gerrit.server.config.SitePaths sitePaths ) { return new java.io.File ( sitePaths.index_dir , "gerrit_index.config" ) ; }

Target:
public static java.nio.file.Path solrIndexConfig ( com.google.gerrit.server.config.SitePaths sitePaths ) { return sitePaths.index_dir.resolve ( "gerrit_index.config" ) ; }
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryParameter withOption ( com.google.gerrit.extensions.common.ListChangesOption options ) { this . options.add ( options ) ; return this ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withOption ( com.google.gerrit.extensions.common.ListChangesOption options ) { this . options.add ( options ) ; return this ; }
Source:
public com.google.gerrit.server.patch.PatchList get ( final com.google.gerrit.reviewdb.Change change , final com.google.gerrit.reviewdb.PatchSet patchSet ) { return get ( change , patchSet , com.google.gerrit.common.data.PatchScriptSettings.Whitespace.IGNORE_NONE ) ; }

Target:
public com.google.gerrit.server.patch.PatchList get ( final com.google.gerrit.reviewdb.Change change , final com.google.gerrit.reviewdb.PatchSet patchSet ) { return get ( change , patchSet , Whitespace.IGNORE_NONE ) ; }
Source:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.verifystatus.commands.VerifyStatusAdminQueryShell.class ) ; command ( com.googlesource.gerrit.plugins.verifystatus.commands.SaveCommand.class ) ; factory ( VerifyStatusQueryShell.Factory.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.verifystatus.VerifyStatusAdminQueryShell.class ) ; command ( com.googlesource.gerrit.plugins.verifystatus.SaveCommand.class ) ; factory ( VerifyStatusQueryShell.Factory.class ) ; }
Source:
public void destroySite ( ) throws java.lang.Exception { if ( ( sitePath ) != null ) { com.google.gerrit.acceptance.TempFileUtil.recursivelyDelete ( sitePath ) ; } }

Target:
public void destroySite ( ) throws java.lang.Exception { if ( ( sitePath ) != null ) { com.google.gerrit.acceptance.TempFileUtil.cleanup ( ) ; } }
Source:
public void noNotificationForChangeThatIsTurnedPrivateForWatchersInNotifyConfig ( ) 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_PATCHSETS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForChangeThatIsTurnedPrivateForWatchersInNotifyConfig ( ) 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_PATCHSETS ) ) ; com.google.gerrit.server.project.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.ProjectList result ) { createProjectLinkPanel.setVisible ( result.canCreateProject ( ) ) ; projects.display ( result.getProjects ( ) ) ; projects.finishDisplay ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities ac ) { createProjectLinkPanel.setVisible ( ac.canPerform ( com.google.gerrit.common.data.GlobalCapability.CREATE_PROJECT ) ) ; }