auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void ensurePermitted ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gwtorm.server.OrmException { if ( ! ( changeControl.canAddPatchSet ( reviewDb.get ( ) ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( "Adding patch sets and hence creation or" + " modification of change edits is not permitted." ) ) ; } }

Target:
private void ensurePermitted ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gwtorm.server.OrmException { if ( ! ( changeControl.canAddPatchSet ( reviewDb.get ( ) ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "Not allowed to edit a change." ) ; } }
Source:
private com.google.gerrit.acceptance.RestResponse POST ( java.lang.String endPoint , com.google.gerrit.acceptance.rest.group.MembersInput mi ) throws java.io.IOException { return session.post ( endPoint , mi ) ; }

Target:
private com.google.gerrit.acceptance.RestResponse POST ( java.lang.String endPoint , com.google.gerrit.server.group.AddMembers.Input mi ) throws java.io.IOException { return session.post ( endPoint , mi ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return json.format ( rsrc ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.ok ( json.format ( rsrc ) ) . caching ( com.google.gerrit.extensions.restapi.CacheControl.PRIVATE ( 0 , java.util.concurrent.TimeUnit.SECONDS ) . setMustRevalidate ( ) ) ; }
Source:
private boolean isSearcherCurrent ( ) { try { return reopenThread.waitForGeneration ( gen , 0 ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.SubIndex.log.warn ( "Interrupted waiting for searcher generation" , e ) ; return false ; } }

Target:
private boolean isGenAvailableNowForCurrentSearcher ( ) { try { return reopenThread.waitForGeneration ( gen , 0 ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.SubIndex.log.warn ( "Interrupted waiting for searcher generation" , e ) ; return false ; } }
Source:
public void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , java.util.Map < java.lang.String , java.lang.Short > oldApprovals , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.PatchSet > ps ) { addPatchSets ( a , ps , null , false , null ) ; }

Target:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.client.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSetApproval > > approvals ) { addPatchSets ( ca , ps , approvals , false , null ) ; }
Source:
com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.client.reviewdb.Account.Id id ) ;

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( systemConfig , remotePeerProvider , dbProvider , id ) ; }
Source:
abstract com.google.gerrit.server.mail.receive.MailMessage.Builder htmlContent ( java.lang.String val ) ;

Target:
public abstract com.google.gerrit.server.mail.receive.MailMessage.Builder subject ( java.lang.String val ) ;
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.query.change.ChangeQueryRewriter.class ) . to ( com.google.gerrit.server.index.IndexRewriteImpl.class ) ; bind ( com.google.gerrit.server.index.IndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.IndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.IndexRewriter.class ) ; bind ( com.google.gerrit.server.index.IndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.IndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { upToChange ( ) ; } }

Target:
void onClose ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { upToChange ( ) ; } }
Source:
public boolean canRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( Project.State.READ_ONLY ) ) || ( canWrite ( ) ) ; }

Target:
public boolean canWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.ACTIVE ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.ExternalNameKey > lookupGroups ( java.lang.String name ) ;

Target:
public com.google.gerrit.server.account.AuthRequest unlink ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account.Id to , com.google.gerrit.server.account.AuthRequest who ) throws com.google.gerrit.server.account.AccountException ;
Source:
public void currentPatchSetMissing ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , userId ) ; db.changes ( ) . insert ( java.util.Collections.singleton ( c ) ) ; assertProblems ( c , "Current patch set 1 not found" ) ; }

Target:
public void currentPatchSetMissing ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = insertChange ( ) ; assertProblems ( c , "Current patch set 1 not found" ) ; }
Source:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box , com.google.gerrit.common.changes.Side side ) { diffTable.addFileCommentBox ( box , side ) ; }

Target:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box ) { diffTable.onRemoveDraftBox ( box ) ; }
Source:
private void postMessage ( java.lang.String changeId , java.lang.String msg ) throws java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = msg ; adminSession.post ( ( ( "/changes/" + changeId ) + "/revisions/1/review" ) , in ) . consume ( ) ; }

Target:
private void postMessage ( java.lang.String changeId , java.lang.String msg ) throws java.lang.Exception { com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = msg ; gApi.changes ( ) . id ( changeId ) . current ( ) . review ( in ) ; }
Source:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch , com.googlesource.gerrit.plugins.replication.ReplicationFilter filter , com.googlesource.gerrit.plugins.replication.ReplicationState state ) ;

Target:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch , com.googlesource.gerrit.plugins.replication.ReplicationFilter filter , com.googlesource.gerrit.plugins.replication.ReplicationState state , boolean now ) ;
Source:
private void removeChangeIdLock ( com.google.gerrit.reviewdb.client.Change.Id id ) { synchronized ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServlet.changeIdLocks ) { com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServlet.changeIdLocks.remove ( id ) ; } }

Target:
private void removeChangeIdLock ( com.google.gerrit.reviewdb.client.Change.Id id ) { synchronized ( com.ericsson.gerrit.plugins.highavailability.SyncIndexRestApiServlet.changeIdLocks ) { com.ericsson.gerrit.plugins.highavailability.SyncIndexRestApiServlet.changeIdLocks.remove ( id ) ; } }
Source:
public java.lang.String getRefName ( ) { return null ; }

Target:
public Change.Key getChangeKey ( ) { return null ; }
Source:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , DiffTable.style.padding ( ) , ( nextLine - 1 ) , cnt , Unit.EM , null ) ; }

Target:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , DiffTable.style.padding ( ) , ( nextLine - 1 ) , ( 1.1 * cnt ) , Unit.EM , null ) ; }
Source:
public org.apache.sshd.common.file.SshFile getFile ( java.lang.String file ) { return null ; }

Target:
public java.nio.file.PathMatcher getPathMatcher ( java.lang.String arg0 ) { return null ; }
Source:
public void addReviewerToReviewableWipChange ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
public void addReviewerToReviewableWipChange ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }
Source:
private void createTestSiteDirs ( ) throws java.io.IOException { com.google.gerrit.server.config.SitePaths sitePath = new com.google.gerrit.server.config.SitePaths ( testSite ) ; pluginsSitePath = java.nio.file.Files.createDirectories ( sitePath.plugins_dir ) ; java.nio.file.Files.createDirectories ( sitePath.tmp_dir ) ; }

Target:
private void createTestSiteDirs ( ) throws java.io.IOException { com.google.gerrit.server.config.SitePaths sitePath = new com.google.gerrit.server.config.SitePaths ( testSite ) ; pluginsSitePath = java.nio.file.Files.createDirectories ( sitePath.plugins_dir ) ; java.nio.file.Files.createDirectories ( sitePath.tmp_dir ) ; java.nio.file.Files.createDirectories ( sitePath.etc_dir ) ; }
Source:
public java.lang.String getPluginName ( java.nio.file.Path srcPath ) { return com.google.common.base.MoreObjects.firstNonNull ( getGerritPluginName ( srcPath ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcPath ) ) ; }

Target:
public java.lang.String getPluginName ( java.nio.file.Path srcPath ) { return com.google.common.base.MoreObjects.firstNonNull ( getGerritPluginName ( srcPath ) , com.google.gerrit.server.plugins.PluginUtil.nameOf ( srcPath ) ) ; }
Source:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { com.google.gerrit.reviewdb.Account.Id id = byName.get ( username ) ; return id != null ? get ( id ) : null ; }

Target:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { com.google.gerrit.reviewdb.Account.Id id = byName.get ( username ) ; return id != null ? byId.get ( id ) : null ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.accounts.Accounts.class ) . to ( com.google.gerrit.server.api.accounts.AccountsImpl.class ) ; factory ( AccountApiImpl.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.accounts.Accounts.class ) . to ( com.google.gerrit.server.api.accounts.AccountsImpl.class ) ; factory ( AccountApiImpl.Factory.class ) ; factory ( GpgKeyApiImpl.Factory.class ) ; }
Source:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , expectedStatus ) ; }

Target:
private void fastForwardTagToNewCommit ( 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 , true , false , expectedStatus ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForUser ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Account.Id owner ) throws java.lang.Exception { return newChange ( repo , null , owner , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithStatus ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Change.Status status ) throws java.lang.Exception { return newChange ( repo , null , null , status , null ) ; }
Source:
private com.google.gerrit.reviewdb.client.Change getChange ( java.lang.String changeId ) throws java.lang.Exception { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( changeId ) ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.Change getChange ( java.lang.String changeId ) throws java.lang.Exception { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( changeId ) ) . change ( ) ; }
Source:
private int getMyTotalHeight ( ) { int total = 0 ; for ( com.google.gerrit.client.diff.CommentBox box : comments ) { total += box.getOffsetHeight ( ) ; } return total ; }

Target:
private int getMyTotalHeight ( ) { int total = 0 ; for ( com.google.gerrit.client.diff.CommentBox box : comments ) { total += ( box.getOffsetHeight ( ) ) + 5 ; } return total ; }
Source:
private int getRandomExecutionDelay ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( config.getJobExecTimeout ( ) ) ; }

Target:
private int getRandomExecutionDelay ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( config.jobExecTimeout ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.change.ChangeJson.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }
Source:
public boolean isOwner ( ) { return ( canPerformOnAllRefs ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean allRefsAreVisible ( ) { return canPerformOnAllRefs ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ; }
Source:
private boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( Permission.CREATE ) ) || ( isOwnerAnyRef ( ) ) ; }

Target:
private boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( Permission.CREATE ) ) || ( isAdmin ( ) ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit createRef ( java.lang.String refName ) throws java.io.IOException { if ( com.google.common.base.Objects.equal ( src , revision ) ) { return revision ; } return updateRef ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) , src , refName ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit createRef ( java.lang.String refName ) throws java.io.IOException { if ( java.util.Objects.equals ( src , revision ) ) { return revision ; } return updateRef ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) , src , refName ) ; }
Source:
private static byte [ ] toBytes ( com.google.gerrit.extensions.restapi.BinaryResult content ) throws java.lang.Exception { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; content.writeTo ( os ) ; return os.toByteArray ( ) ; }

Target:
private static void assertByteArray ( com.google.gerrit.extensions.restapi.BinaryResult result , byte [ ] expected ) throws java.lang.Exception { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; result.writeTo ( os ) ; com.google.common.truth.Truth.assertThat ( os.toByteArray ( ) ) . isEqualTo ( expected ) ; }
Source:
public static com.google.gerrit.testutil.InMemoryDatabase newDatabase ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { com.google.inject.Injector injector = com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( ) ) ; lifecycle.add ( injector ) ; return injector.getInstance ( com.google.gerrit.testutil.InMemoryDatabase.class ) ; }

Target:
public static com.google.gerrit.testing.InMemoryDatabase newDatabase ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { com.google.inject.Injector injector = com.google.inject.Guice.createInjector ( new com.google.gerrit.testing.InMemoryModule ( ) ) ; lifecycle.add ( injector ) ; return injector.getInstance ( com.google.gerrit.testing.InMemoryDatabase.class ) ; }
Source:
public void visit ( com.google.gitiles.doc.NamedAnchorNode node ) { if ( outputNamedAnchor ) { html.open ( "a" ) . attribute ( "name" , node.name ) . close ( "a" ) ; } }

Target:
private void visit ( com.google.gitiles.doc.NamedAnchor node ) { if ( outputNamedAnchor ) { html.open ( "a" ) . attribute ( "name" , node.getName ( ) ) . close ( "a" ) ; } }
Source:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; com.googlesource.gerrit.plugins.lfs.AuthInfo authInfo = authorizer.generateAuthInfo ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.UPLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.ExpiringAction ( action.href , authInfo ) ; }

Target:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; com.googlesource.gerrit.plugins.lfs.AuthInfo authInfo = authorizer.generateAuthInfo ( org.eclipse.jgit.lfs.lib.Constants.UPLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.ExpiringAction ( action.href , authInfo ) ; }
Source:
public static org.commonmark.node.Node parse ( byte [ ] md ) { return com.google.gitiles.doc.GitilesMarkdown.parse ( org.eclipse.jgit.util.RawParseUtils.decode ( md ) ) ; }

Target:
public static org.commonmark.node.Node parse ( com.google.gitiles.doc.MarkdownConfig cfg , byte [ ] md ) { return com.google.gitiles.doc.GitilesMarkdown.parse ( cfg , org.eclipse.jgit.util.RawParseUtils.decode ( md ) ) ; }
Source:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.io.File ex = new java.io.File ( site.mail_dir , ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.InitUtil.extract ( ex , com.google.gerrit.server.mail.OutgoingEmail.class , orig ) ; com.google.gerrit.pgm.init.InitUtil.chmod ( 292 , ex ) ; }

Target:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.io.File ex = new java.io.File ( site.mail_dir , ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.InitUtil.extract ( ex , com.google.gerrit.server.mail.OutgoingEmail.class , orig ) ; com.google.gerrit.common.FileUtil.chmod ( 292 , ex ) ; }
Source:
public final native com.google.gwt.core.client.JsArrayString diff_header ( ) ;

Target:
public final native com.google.gwt.core.client.JsArrayString diffHeader ( ) ;
Source:
public void onFailure ( java.lang.Throwable caught ) { deleteIdentity.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { updateDeleteButton ( ) ; super . onFailure ( caught ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.reviewdb.client.Change change ) { return index ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return indexAsync ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }
Source:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.client.reviewdb.Project.NameKey projectName ) { return get0 ( projectName ) ; }

Target:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.client.reviewdb.Project.NameKey projectName ) { return byName.get ( projectName ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultProjectName ( ) . equals ( nameBox.getText ( ) ) ) { nameBox.setText ( "" ) ; nameBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , null , db , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }
Source:
public com.google.gerrit.server.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.server.query.Predicate < T > > children ) { return this ; }

Target:
public com.google.gerrit.index.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.index.query.Predicate < T > > children ) { return this ; }
Source:
public static com.google.gerrit.common.data.PermissionRule allow ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref , boolean exclusive ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , com.google.gerrit.server.project.testing.Util.newRule ( project , group ) , ref , exclusive ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule allow ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref , boolean exclusive ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , com.google.gerrit.server.project.testing.Util.newRule ( project , group ) , ref , exclusive ) ; }
Source:
public void setUpTestRepo ( ) throws java.lang.Exception { testRepo = new org.eclipse.jgit.junit.TestRepository ( repo ) ; walk = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ; }

Target:
public void setUpTestRepo ( ) throws java.lang.Exception { testRepo = new org.eclipse.jgit.junit.TestRepository ( repo ) ; walk = com.google.gerrit.server.notedb.ChangeNotesCommit.newRevWalk ( repo ) ; }
Source:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscription.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifest.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscription.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifest.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TagManifest.class ) ; }
Source:
public void setup ( ) throws java.lang.Exception { testAccount = accounts.create ( "someUser" ) ; }

Target:
public void setup ( ) throws java.lang.Exception { testAccount = accountCreator.create ( "someUser" ) ; }
Source:
protected abstract T updateProjectConfig ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract T updateProjectConfig ( com.google.gerrit.server.project.ProjectControl ctl , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , 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" ) . id ( draftId ) . put ( content , cb ) ; }

Target:
public static void createDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , 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 ( project , id , "drafts" ) . put ( content , cb ) ; }
Source:
com.google.gerrit.server.workflow.FunctionState create ( com.google.gerrit.client.reviewdb.Change c , java.util.Collection < com.google.gerrit.client.reviewdb.ChangeApproval > all ) ;

Target:
com.google.gerrit.server.workflow.FunctionState create ( com.google.gerrit.client.reviewdb.Change c , com.google.gerrit.client.reviewdb.PatchSet.Id psId , java.util.Collection < com.google.gerrit.client.reviewdb.PatchSetApproval > all ) ;
Source:
public static void setHeaderVisible ( boolean visible ) { com.google.gerrit.client.Gerrit.topMenu.setVisible ( visible ) ; com.google.gerrit.client.Gerrit.siteHeader.setVisible ( ( visible && ( ( com.google.gerrit.client.Gerrit.myAccount ) != null ? com.google.gerrit.client.Gerrit.myAccount.getGeneralPreferences ( ) . isShowSiteHeader ( ) : true ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.documentation.DocInfo indexInfo ) { com.google.gerrit.client.Gerrit.hasDocumentation = indexInfo != null ; com.google.gerrit.client.Gerrit.docUrl = com.google.gerrit.client.Gerrit.selfRedirect ( "/Documentation/" ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; callback.onCancel ( ) ; }
Source:
private void display ( final com.google.gerrit.client.data.SideBySidePatchDetail detail ) { sbsTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; sbsTable.display ( detail ) ; }

Target:
private void display ( final com.google.gerrit.client.data.SideBySidePatchDetail detail ) { sbsTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; sbsTable.display ( detail ) ; sbsTable.finishDisplay ( true ) ; }
Source:
public void groupCannotBeRenamedToNull ( ) throws java.lang.Exception { createGroup ( groupUuid , groupName ) ; expectedException.expect ( java.lang.NullPointerException.class ) ; com.google.gerrit.server.group.db.GroupNameNotes.loadForRename ( repo , groupUuid , groupName , null ) ; }

Target:
public void groupCannotBeRenamedToNull ( ) throws java.lang.Exception { createGroup ( groupUuid , groupName ) ; expectedException.expect ( java.lang.NullPointerException.class ) ; com.google.gerrit.server.group.db.GroupNameNotes.forRename ( repo , groupUuid , groupName , null ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.server.account.AccountState updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }
Source:
private void setupCommonMocks ( ) { org.easymock.EasyMock.expect ( itsConfig.isEnabled ( org.easymock.EasyMock.anyObject ( com.google.gerrit.server.events.Event.class ) ) ) . andReturn ( true ) . anyTimes ( ) ; }

Target:
private void setupCommonMocks ( ) { org.easymock.EasyMock.expect ( itsConfig.isEnabled ( org.easymock.EasyMock.anyObject ( com.google.gerrit.server.events.RefEvent.class ) ) ) . andReturn ( true ) . anyTimes ( ) ; }
Source:
public void setNodeCoherent ( boolean b ) throws java.lang.UnsupportedOperationException { self ( ) . setNodeCoherent ( b ) ; }

Target:
public void setStatisticsEnabled ( boolean enableStatistics ) { self.setStatisticsEnabled ( enableStatistics ) ; }
Source:
public com.googlecode.prolog_cafe.builtin.Operation exec ( com.googlecode.prolog_cafe.builtin.Prolog engine ) { engine.neckCut ( ) ; return cont ; }

Target:
public com.googlecode.prolog_cafe.lang.Operation exec ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.neckCut ( ) ; return cont ; }
Source:
public void run ( ) { updateActiveLine ( cm ) . run ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
public static com.google.gwt.user.client.Element set ( final com.google.gwt.user.client.Element e , final com.google.gwtexpui.safehtml.client.SafeHtml str ) { com.google.gwt.user.client.DOM.setInnerHTML ( e , str.asString ( ) ) ; return e ; }

Target:
public static com.google.gwt.dom.client.Element setInnerHTML ( com.google.gwt.dom.client.Element e , com.google.gwtexpui.safehtml.client.SafeHtml str ) { e.setInnerHTML ( str.asString ( ) ) ; return e ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > draftByPatchSetAuthor ( com.google.gerrit.reviewdb.client.PatchSet.Id patchset , com.google.gerrit.reviewdb.client.Account.Id author ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > draftByPatchSetAuthor ( com.google.gerrit.reviewdb.client.PatchSet.Id patchset , com.google.gerrit.reviewdb.client.Account.Id author ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public static com.google.gerrit.server.index.IndexConfig create ( int maxLimit ) { com.google.common.base.Preconditions.checkArgument ( ( maxLimit > 0 ) , "maxLimit must be positive: %s" , maxLimit ) ; return new com.google.gerrit.server.index.AutoValue_IndexConfig ( maxLimit ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig create ( int maxLimit , int maxPages ) { return new com.google.gerrit.server.index.AutoValue_IndexConfig ( com.google.gerrit.server.index.IndexConfig.checkLimit ( maxLimit , "maxLimit" ) , com.google.gerrit.server.index.IndexConfig.checkLimit ( maxPages , "maxPages" ) ) ; }
Source:
public final AccountGroup.UUID getOwnerUUID ( ) { java.lang.String owner = owner_id ( ) ; if ( owner != null ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodePathSegment ( owner ) ) ; } return null ; }

Target:
public final AccountGroup.UUID getOwnerUUID ( ) { java.lang.String owner = owner_id ( ) ; if ( owner != null ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodeQueryString ( owner ) ) ; } return null ; }
Source:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "download-commands" , true ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "download-commands" ) ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > topic ( java.lang.String topic ) { return new com.google.gerrit.server.query.change.TopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byExactTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentLink" , pluginName , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , pluginName , "association" , ItsAssociationPolicy.OPTIONAL ) ; }
Source:
void bind ( final net.sf.ehcache.Ehcache ehcache ) { cache.bind ( ehcache ) ; }

Target:
public void bind ( com.google.gerrit.server.cache.Cache < K , V > impl ) { if ( ( cache ) == null ) { throw new com.google.inject.ProvisionException ( "Cache was never registered" ) ; } cache.bind ( impl ) ; }
Source:
void finish ( ) { id = com.google.gerrit.server.util.Url.encode ( name ) ; }

Target:
void finish ( ) { id = com.google.gerrit.extensions.restapi.Url.encode ( name ) ; }
Source:
private void cherryPickRootOntoBranch ( com.google.gerrit.server.git.CodeReviewCommit n ) { n.setStatusCode ( CommitMergeStatus.CANNOT_CHERRY_PICK_ROOT ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) { mergeTip.moveTipTo ( toMerge , toMerge ) ; toMerge.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; }
Source:
public static void main ( final java.lang.String [ ] argv ) throws java.lang.Exception { java.lang.System.exit ( com.google.gerrit.main.GerritLauncher.mainImpl ( argv ) ) ; }

Target:
public static void main ( final java.lang.String [ ] argv ) throws java.lang.Exception { java.lang.System.exit ( com.google.gerrit.launcher.GerritLauncher.mainImpl ( argv ) ) ; }
Source:
public void setUpConfig ( ) throws java.lang.Exception { config.setInt ( "index" , null , "maxPages" , 10 ) ; }

Target:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setInt ( "index" , null , "maxPages" , 10 ) ; return cfg ; }
Source:
public void testWithSectionOfNonexistingProject ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( "\n" + ( ( ( "[submodule \"a\"]\n" + "path = a\n" ) + "url = ssh://non-localhost/a\n" ) + "branch = .\\n" ) ) ) ; java.lang.String thisServer = com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( projectCache , cfg , thisServer , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }

Target:
public void testWithSectionToOtherServer ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Project.NameKey p1 = createProject ( "a" ) ; org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( ( ( ( "" + ( ( "[submodule \"a\"]" + "path = a" ) + "url = ssh://non-localhost/" ) ) + ( p1.get ( ) ) ) + "\n" ) + "branch = ." ) ) ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( cfg , com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }
Source:
public void setMessage ( java.lang.String message ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public void setMessage ( java.lang.String message ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromUser ( java.lang.String username ) { try { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( username , encode ( username ) ) ; } catch ( com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException e ) { return null ; } }

Target:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromUser ( java.lang.String username , java.lang.String email , java.lang.String fullName ) { try { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( cipher , username , email , fullName ) ; } catch ( com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException e ) { return null ; } }
Source:
public static void all ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.MemberList > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group.get ( ) ) . view ( "members" ) . get ( callback ) ; }

Target:
public static void all ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.MemberList > callback ) { new com.google.gerrit.client.rpc.RestApi ( "groups" ) . id ( group.get ( ) ) . view ( "members" ) . get ( callback ) ; }
Source:
public void execute ( ) { if ( ( box.getValue ( ) . trim ( ) . length ( ) ) == 0 ) { widget.setEnabled ( false ) ; } }

Target:
public void execute ( ) { if ( box.getValue ( ) . trim ( ) . equals ( originalValue ) ) { widget.setEnabled ( false ) ; } }
Source:
public final native void setScrollSetByOther ( boolean setByOther ) ;

Target:
public final native double getScrollSetAt ( ) ;
Source:
static void invoke ( com.google.gerrit.client.changes.ChangeInfo change , com.google.gerrit.client.actions.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.legacyId ( ) ) ) ) ; }

Target:
static void invoke ( com.google.gerrit.client.info.ChangeInfo change , com.google.gerrit.client.info.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.legacyId ( ) ) ) ) ; }
Source:
public final java.util.Set < java.lang.String > permitted_labels ( ) { return com.google.gerrit.client.rpc.Natives.keys ( _permitted_labels ( ) ) ; }

Target:
public final java.sql.Timestamp date ( ) { return com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( dateRaw ( ) ) ; }
Source:
public final native net.codemirror.lib.KeyMap remove ( java.lang.String key ) ;

Target:
public final native net.codemirror.lib.KeyMap fallthrough ( net.codemirror.lib.KeyMap m ) ;
Source:
public boolean isEnableSignedPush ( ) { return getInheritableBoolean ( new com.google.common.base.Function < com.google.gerrit.reviewdb.client.Project , com.google.gerrit.extensions.client.InheritableBoolean > ( ) { @ java.lang.Override public com.google.gerrit.extensions.client.InheritableBoolean apply ( com.google.gerrit.reviewdb.client.Project input ) { return input.getEnableSignedPush ( ) ; } } ) ; }

Target:
public boolean isCreateNewChangeForAllNotInTarget ( ) { return getInheritableBoolean ( Project :: getCreateNewChangeForAllNotInTarget ) ; }
Source:
private java.lang.String healthCheckAccess ( ) throws java.io.IOException { client ( ) . sysInfo ( ) ; final java.lang.String result = ( "{\"status\"=\"ok\",\"username\"=\"" + ( getUsername ( ) ) ) + "\"}" ; log.debug ( "Health check on access result: {}" , result ) ; return result ; }

Target:
private java.lang.String healthCheckAccess ( ) throws java.io.IOException { client ( ) . sysInfo ( ) ; final java.lang.String result = ( "{\"status\"=\"ok\",\"username\"=\"" + ( getUsername ( ) ) ) + "\"}" ; log.debug ( "Healtheck on access result: {}" , result ) ; return result ; }
Source:
private void initNoteDb ( ) { ui.message ( ( "Use experimental NoteDb for change metadata?\n" + ( ( " NoteDb is not recommended for production servers." + " Please familiarize yourself with the documentation:\n" ) + " https://gerrit-review.googlesource.com/Documentation/dev-note-db.html\n" ) ) ) ; if ( ! ( ui.yesno ( false , "Enable" ) ) ) { return ; } org.eclipse.jgit.lib.Config defaultConfig = new org.eclipse.jgit.lib.Config ( ) ; NotesMigrationState.FINAL.setConfigValues ( defaultConfig ) ; for ( java.lang.String name : defaultConfig.getNames ( com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.CHANGES.key ( ) ) ) { noteDbChanges.set ( name , defaultConfig.getString ( com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.CHANGES.key ( ) , name ) ) ; } }

Target:
private void initNoteDb ( ) { ui.message ( ( "Use NoteDb for change metadata?\n" + ( " See documentation:\n" + " https://gerrit-review.googlesource.com/Documentation/dev-note-db.html\n" ) ) ) ; if ( ! ( ui.yesno ( false , "Enable" ) ) ) { return ; } org.eclipse.jgit.lib.Config defaultConfig = new org.eclipse.jgit.lib.Config ( ) ; NotesMigrationState.FINAL.setConfigValues ( defaultConfig ) ; for ( java.lang.String name : defaultConfig.getNames ( com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.CHANGES.key ( ) ) ) { noteDbChanges.set ( name , defaultConfig.getString ( com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.CHANGES.key ( ) , name ) ) ; } }
Source:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.common.data.AccountInfo acct ) { return com.google.gerrit.common.PageLinks.toAccountDashboard ( acct.getId ( ) ) ; }

Target:
public static java.lang.String toAccountQuery ( final java.lang.String fullname ) { java.lang.String query = ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " status:open" ; return com.google.gerrit.common.PageLinks.toChangeQuery ( query , com.google.gerrit.common.PageLinks.TOP ) ; }
Source:
java.lang.String getSecure ( java.lang.String name ) { return flags.sec.getString ( section , null , name ) ; }

Target:
public java.lang.String getSecure ( java.lang.String name ) { return flags.sec.getString ( section , subsection , name ) ; }
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; tag ( ) . delete ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( tag ( ) . get ( ) . canDelete ) . isNull ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; tag ( ) . delete ( ) ; }
Source:
public void testCreateProjectHttpWhenProjectAlreadyExists_PreconditionFailed ( ) throws java.lang.Exception { adminSession.putWithHeader ( ( "/projects/" + ( allProjects.get ( ) ) ) , new org.apache.http.message.BasicHeader ( com.google.common.net.HttpHeaders.IF_NONE_MATCH , "*" ) ) . assertPreconditionFailed ( ) ; }

Target:
public void testCreateProjectHttpWhenProjectAlreadyExists_PreconditionFailed ( ) throws java.lang.Exception { adminRestSession.putWithHeader ( ( "/projects/" + ( allProjects.get ( ) ) ) , new org.apache.http.message.BasicHeader ( com.google.common.net.HttpHeaders.IF_NONE_MATCH , "*" ) ) . assertPreconditionFailed ( ) ; }
Source:
public boolean nameIsId ( ) { return ( org.eclipse.jgit.lib.AbbreviatedObjectId.isId ( name ) ) && ( ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( name ) . prefixCompare ( id ) ) == 0 ) ; }

Target:
public boolean nameIsId ( ) { return nameEqualsAbbreviated ( id ) ; }
Source:
public boolean isValid ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.data.ApprovalType at , final com.google.gerrit.server.workflow.FunctionState state ) { return false ; }

Target:
public boolean isValid ( final com.google.gerrit.server.CurrentUser user , final com.google.gerrit.client.data.ApprovalType at , final com.google.gerrit.server.workflow.FunctionState state ) { return false ; }
Source:
protected com.google.gerrit.server.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return callFactory.get ( ) ; }

Target:
protected com.google.gerrit.server.http.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return callFactory.get ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetInfo getPatchSetInfo ( ) { return patchSetInfo ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setValidatePolicy ( com.google.gerrit.server.git.validators.CommitValidators.Policy validate ) { this . validatePolicy = com.google.common.base.Preconditions.checkNotNull ( validate ) ; return this ; }
Source:
public java.util.List < com.google.gitiles.blame.Region > load ( com.google.gitiles.blame.BlameCacheImpl.Key key ) throws java.io.IOException { return com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key ) ; }

Target:
public java.util.List < com.google.gitiles.blame.Region > call ( ) throws java.io.IOException { return com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key , repo ) ; }