auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { reviewers.onOpenForm ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { reviewers.onOpenForm ( ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.ObjectId into , com.google.gerrit.extensions.common.SubmitType submitType , java.lang.String mergeStrategy , com.google.gerrit.reviewdb.client.Branch.NameKey dest ) { return get ( new com.google.gerrit.server.change.MergeabilityCache.EntryKey ( commit , into , submitType , mergeStrategy , dest ) ) ; }

Target:
public static com.google.inject.Key bindingKey ( ) { return com.google.inject.Key.get ( new com.google.inject.TypeLiteral < com.google.common.cache.LoadingCache < com.google.gerrit.server.change.MergeabilityCache.EntryKey , java.lang.Boolean > > ( ) { } , com.google.inject.name.Names.named ( com.google.gerrit.server.change.MergeabilityCache.CACHE_NAME ) ) ; }
Source:
private static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return com.google.gerrit.lucene.QueryBuilder.stringTerm ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) , nameKey.get ( ) ) ; }

Target:
private static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return com.google.gerrit.lucene.QueryBuilder.stringTerm ( com.google.gerrit.index.project.ProjectField.NAME.getName ( ) , nameKey.get ( ) ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int start , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.FakeIndex.Source ( p ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.server.query.change.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.FakeIndex.Source ( p ) ; }
Source:
protected java.lang.String getId ( com.google.gerrit.reviewdb.client.AccountGroup group ) { return group.getGroupUUID ( ) . get ( ) ; }

Target:
protected java.lang.String getId ( com.google.gerrit.server.group.InternalGroup group ) { return group.getGroupUUID ( ) . get ( ) ; }
Source:
public void want ( final java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup.Id > ids ) { for ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id : ids ) { want ( id ) ; } }

Target:
public void want ( final java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup.UUID > uuids ) { for ( final com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid : uuids ) { want ( uuid ) ; } }
Source:
public void rollback ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public void rollback ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
void listBranches ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > 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:
protected com.google.gerrit.server.AnonymousUser createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { com.google.gerrit.rules.PrologEnvironment env = ( ( com.google.gerrit.rules.PrologEnvironment ) ( engine.control ) ) ; return env.getInjector ( ) . getInstance ( com.google.gerrit.server.AnonymousUser.class ) ; }

Target:
protected com.google.gerrit.server.AnonymousUser createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { com.google.gerrit.rules.PrologEnvironment env = ( ( com.google.gerrit.rules.PrologEnvironment ) ( engine.control ) ) ; return env.getArgs ( ) . getAnonymousUser ( ) ; }
Source:
public boolean canUpdate ( ) { return canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD , com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD_UPDATE ) ; }

Target:
public boolean isVisible ( ) { return ( getProjectControl ( ) . visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ; }
Source:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class ) ; }

Target:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
public int getInt ( java.lang.String name , int defaultValue ) { return getValue ( name , new com.google.common.base.Function < java.lang.String , java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer apply ( java.lang.String stringVal ) { return java.lang.Integer.parseInt ( stringVal ) ; } } , defaultValue ) ; }

Target:
public int getInt ( java.lang.String name , int defaultValue ) { return cfg.getInt ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name , defaultValue ) ; }
Source:
private void configureCmdLineParser ( ) { factory ( CmdLineParser.Factory.class ) ; registerOptionHandler ( Account.Id.class , com.google.gerrit.server.ssh.commands.AccountIdHandler.class ) ; registerOptionHandler ( PatchSet.Id.class , com.google.gerrit.server.ssh.commands.PatchSetIdHandler.class ) ; registerOptionHandler ( com.google.gerrit.server.project.ProjectControl.class , com.google.gerrit.server.ssh.commands.ProjectControlHandler.class ) ; }

Target:
private void configureCmdLineParser ( ) { factory ( CmdLineParser.Factory.class ) ; registerOptionHandler ( Account.Id.class , com.google.gerrit.server.ssh.args4j.AccountIdHandler.class ) ; registerOptionHandler ( PatchSet.Id.class , com.google.gerrit.server.ssh.args4j.PatchSetIdHandler.class ) ; registerOptionHandler ( com.google.gerrit.server.project.ProjectControl.class , com.google.gerrit.server.ssh.args4j.ProjectControlHandler.class ) ; }
Source:
public com.google.gerrit.extensions.api.changes.RevisionApi revision ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return revisionApi.create ( revisions.parse ( change , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( id ) ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot parse revision" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.changes.ReviewerApi reviewer ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return reviewerApi.create ( reviewers.parse ( change , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( id ) ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot parse reviewer" , e ) ; } }
Source:
public com.google.gerrit.server.account.AccountState get ( final com.google.gerrit.reviewdb.Account.Id accountId ) { return byId.get ( accountId ) ; }

Target:
public void evict ( final com.google.gerrit.reviewdb.Account.Id accountId ) { byId.remove ( accountId ) ; }
Source:
void onCreateEdit ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.CreateEditAction.create ( changeId , revision ) ; }

Target:
void onDeleteEdit ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId ) ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , new com.googlesource.gerrit.plugins.verifystatus.client.BuildsDropDownPanel.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , new com.googlesource.gerrit.plugins.verifystatus.client.JobsDropDownPanel.Factory ( ) ) ; com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , new com.googlesource.gerrit.plugins.verifystatus.client.JobsPanel.Factory ( ) ) ; }
Source:
public final com.google.gerrit.extensions.common.Theme theme ( ) { java.lang.String s = themeRaw ( ) ; return s != null ? com.google.gerrit.extensions.common.Theme.valueOf ( s ) : com.google.gerrit.extensions.common.Theme.DEFAULT ; }

Target:
public final com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ignoreWhitespace ( ) { java.lang.String s = ignoreWhitespaceRaw ( ) ; return s != null ? com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.valueOf ( s ) : com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.IGNORE_NONE ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , c , user ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , c , allUsers , user ) ; }
Source:
void setName ( java.lang.String n ) { name = n ; id = com.google.gerrit.server.util.Url.encode ( n ) ; }

Target:
void setName ( java.lang.String n ) { name = n ; id = com.google.gerrit.extensions.restapi.Url.encode ( n ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { super . onFailure ( caught ) ; enableForm ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { goChange ( ) ; super . onFailure ( caught ) ; }
Source:
private com.google.gerrit.reviewdb.RefRight grant ( com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , com.google.gerrit.reviewdb.AccountGroup.Id group , java.lang.String ref , int maxValue ) { return grant ( categoryId , group , ref , maxValue , maxValue ) ; }

Target:
private void grant ( com.google.gerrit.reviewdb.Project.NameKey project , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , com.google.gerrit.reviewdb.AccountGroup.Id group , java.lang.String ref , int maxValue ) { grant ( project , categoryId , group , ref , maxValue , maxValue ) ; }
Source:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.git.GitUtil.createProject ( s , name , parent , true ) ; }

Target:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.GitUtil.createProject ( s , name , parent , true ) ; }
Source:
public boolean apply ( java.lang.String input ) { return input.endsWith ( suffix ) ; }

Target:
private java.util.Collection < org.eclipse.jgit.lib.Ref > getDraftRefs ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.io.IOException { return repo.getRefDatabase ( ) . getRefs ( com.google.gerrit.reviewdb.client.RefNames.refsDraftCommentsPrefix ( changeId ) ) . values ( ) ; }
Source:
public final native com.google.gwt.core.client.JavaScriptObject has_require_change_id ( ) ;

Target:
public final com.google.gerrit.reviewdb.client.Project.InheritableBoolean configured_value ( ) { return com.google.gerrit.reviewdb.client.Project.InheritableBoolean.valueOf ( configured_valueRaw ( ) ) ; }
Source:
public boolean canRebase ( ) { return canAddPatchSet ( ) ; }

Target:
public boolean canRebase ( ) { return ( isOwner ( ) ) || ( getRefControl ( ) . canSubmit ( ) ) ; }
Source:
public long getElapsed ( ) { return ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) - ( when ) ; }

Target:
public long getElapsed ( ) { return ( com.google.gerrit.common.TimeUtil.nowMs ( ) ) - ( when ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.diff.DiffInfo diff ) { display ( diff ) ; }

Target:
protected void preDisplay ( java.lang.Void result ) { display ( diff ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ProjectEvent ) { database.storeEvent ( ( ( com.google.gerrit.server.events.ProjectEvent ) ( event ) ) ) ; } }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { pool.execute ( new com.ericsson.gerrit.plugins.eventslog.EventHandler.StoreEventTask ( ( ( com.google.gerrit.server.events.ProjectEvent ) ( event ) ) ) ) ; }
Source:
private static boolean isTag ( final org.eclipse.jgit.lib.Ref ref ) { return ref.getName ( ) . startsWith ( Constants.R_TAGS ) ; }

Target:
private static boolean isConfig ( final org.eclipse.jgit.lib.Ref ref ) { return ref.getName ( ) . equals ( GitRepositoryManager.REF_CONFIG ) ; }
Source:
public void testParse_NameEmail2 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A <a@b>" ) ; org.junit.Assert.assertEquals ( "A" , a.name ) ; org.junit.Assert.assertEquals ( "a@b" , a.email ) ; }

Target:
public void testParse_NameEmail2 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A <a@b>" ) ; com.google.common.truth.Truth.assertThat ( a.name ) . isEqualTo ( "A" ) ; com.google.common.truth.Truth.assertThat ( a.email ) . isEqualTo ( "a@b" ) ; }
Source:
public void listEmptyGroupIncludes ( ) throws java.lang.Exception { java.lang.String gx = group ( "gx" ) ; com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( gx ) . includedGroups ( ) ) . isEmpty ( ) ; }

Target:
public void listEmptyGroupIncludes ( ) throws java.lang.Exception { java.lang.String gx = createGroup ( "gx" ) ; com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( gx ) . includedGroups ( ) ) . isEmpty ( ) ; }
Source:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInfo ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInput ( ChangeStatus.DRAFT ) ) ; }
Source:
private void checkAccessAnnotations ( com.google.gerrit.httpd.restapi.RestApiServlet.ViewData viewData ) throws com.google.gerrit.extensions.restapi.AuthException { checkAccessAnnotations ( viewData.pluginName , viewData.view.getClass ( ) ) ; }

Target:
private void checkRequiresCapability ( com.google.gerrit.httpd.restapi.RestApiServlet.ViewData viewData ) throws com.google.gerrit.extensions.restapi.AuthException { com.google.gerrit.server.account.CapabilityUtils.checkRequiresCapability ( globals.currentUser , viewData.pluginName , viewData.view.getClass ( ) ) ; }
Source:
private void initChangeUrl ( ) throws javax.mail.MessagingException { msg.setHeader ( "X-Gerrit-ChangeURL" , changeUrl ( ) ) ; }

Target:
private void initChangeUrl ( ) throws javax.mail.MessagingException { final java.lang.String u = changeUrl ( ) ; if ( u != null ) { msg.setHeader ( "X-Gerrit-ChangeURL" , ( ( "<" + u ) + ">" ) ) ; } }
Source:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAll ( ) ; manager.remove ( this , otherBar ) ; cm.focus ( ) ; }

Target:
private void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; manager.remove ( this , otherBar ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHRef [ ] getRefs ( ) throws java.io.IOException { return ghRepository.getRefs ( ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHRef [ ] getRefs ( ) throws java.io.IOException { return ghRepository.getRefs ( ) ; }
Source:
public com.google.gerrit.extensions.api.projects.BranchInfo apply ( com.google.gerrit.server.project.BranchResource rsrc ) { return rsrc.getBranchInfo ( ) ; }

Target:
public com.google.gerrit.extensions.api.projects.BranchInfo apply ( com.google.gerrit.server.project.BranchResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return list.get ( ) . toBranchInfo ( rsrc ) ; }
Source:
public void caseSensitiveEmailLocalPart ( ) throws java.lang.Exception { com.google.gitiles.IdentRevFilter filter = com.google.gitiles.IdentRevFilter.author ( "eSt" ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "est@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "Establish@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "tESt@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "tesTing@google.com" ) ) ) ; }

Target:
public void caseSensitiveEmailLocalPart ( ) throws java.lang.Exception { com.google.gitiles.IdentRevFilter filter = com.google.gitiles.IdentRevFilter.author ( "eSt" ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "est@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "Establish@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "tESt@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "null" , "tesTing@google.com" ) ) ) . isFalse ( ) ; }
Source:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , note ( ) , toc ( ) } ; }

Target:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , hr ( ) , note ( ) , toc ( ) } ; }
Source:
private java.nio.file.Path getDeveloperBuckOut ( ) { try { return com.google.gerrit.launcher.GerritLauncher.getDeveloperBuckOut ( ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }

Target:
private static java.nio.file.Path getSourseRootOrNull ( ) { try { return com.google.gerrit.launcher.GerritLauncher.resolveInSourceRoot ( "." ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }
Source:
private byte [ ] formatTxtAsHtml ( java.lang.String txt ) { java.lang.String html = ( "<pre>" + ( org.apache.commons.lang.StringEscapeUtils.escapeHtml ( txt ) ) ) + "</pre>" ; return html.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; }

Target:
private com.google.gerrit.httpd.resources.Resource getAsHtmlResource ( java.lang.String html , int lastModified ) { return new com.google.gerrit.httpd.resources.SmallResource ( html.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) . setContentType ( "text/html" ) . setCharacterEncoding ( java.nio.charset.StandardCharsets.UTF_8.name ( ) ) . setLastModified ( lastModified ) ; }
Source:
static void checkEnabled ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ! ( com.google.gerrit.server.util.BouncyCastleUtil.havePGP ( ) ) ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( "GPG not enabled" ) ; } }

Target:
static void checkEnabled ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ! ( com.google.gerrit.gpg.BouncyCastleUtil.havePGP ( ) ) ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( "GPG not enabled" ) ; } }
Source:
void delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { writer.deleteDocuments ( term ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < java.lang.Void > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.updateDocument ( term , doc ) ) ; }
Source:
public void deleteFile ( java.lang.String filePath ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditDeleteContent.apply ( changeResource.getControl ( ) , filePath ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete file of change edit" , e ) ; } }

Target:
public void deleteFile ( java.lang.String filePath ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditDeleteContent.apply ( changeResource.getControl ( ) , filePath ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete file of change edit" , e ) ; } }
Source:
public boolean match ( T object ) throws com.google.gwtorm.server.OrmException { com.google.common.base.Preconditions.checkState ( that.isMatchable ( ) , "match invoked, but child predicate %s doesn't implement %s" , that , com.google.gerrit.server.query.Matchable.class . getName ( ) ) ; return ! ( that.asMatchable ( ) . match ( object ) ) ; }

Target:
public boolean match ( T object ) throws com.google.gwtorm.server.OrmException { com.google.common.base.Preconditions.checkState ( that.isMatchable ( ) , "match invoked, but child predicate %s doesn't implement %s" , that , com.google.gerrit.index.query.Matchable.class . getName ( ) ) ; return ! ( that.asMatchable ( ) . match ( object ) ) ; }
Source:
public static com.google.gerrit.server.patch.ComparisonType againstAutoMerge ( ) { return new com.google.gerrit.server.patch.ComparisonType ( null , true ) ; }

Target:
public static com.google.gerrit.server.diff.ComparisonType againstAutoMerge ( ) { return new com.google.gerrit.server.diff.ComparisonType ( null , true ) ; }
Source:
private java.util.jar.Manifest getPluginManifest ( com.google.gerrit.server.plugins.PluginScanner scanner ) throws com.google.gerrit.server.plugins.InvalidPluginException { try { return scanner.getManifest ( ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.server.plugins.InvalidPluginException ( "Cannot get plugin manifest" , e ) ; } }

Target:
private static java.util.jar.Manifest getPluginManifest ( com.google.gerrit.server.plugins.PluginContentScanner scanner ) throws com.google.gerrit.server.plugins.InvalidPluginException { try { return scanner.getManifest ( ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.server.plugins.InvalidPluginException ( "Cannot get plugin manifest" , e ) ; } }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return null ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user on email thread" ) ; }
Source:
void removeStates ( ) { stateMap.clear ( ) ; }

Target:
com.googlesource.gerrit.plugins.replication.ReplicationState [ ] getStatesByRef ( java.lang.String ref ) { java.util.Collection < com.googlesource.gerrit.plugins.replication.ReplicationState > states = stateMap.get ( ref ) ; return states.toArray ( new com.googlesource.gerrit.plugins.replication.ReplicationState [ states.size ( ) ] ) ; }
Source:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canCherryPick ( args.mergeSorter , args.repo , mergeTip , args.rw , toMerge ) ; }

Target:
static boolean dryRun ( com.google.gerrit.server.git.strategy.SubmitDryRun.Arguments args , com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canCherryPick ( args.mergeSorter , args.repo , mergeTip , args.rw , toMerge ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { b.setEnabled ( false ) ; Util.MANAGE_SVC.submit ( patchSet.getId ( ) , new com.google.gerrit.client.changes.ChangeDetailCache.GerritWidgetCallback ( b ) { public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { onSubmitResult ( result ) ; } } ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( patchSet.getId ( ) . getParentKey ( ) ) , new com.google.gerrit.client.changes.ChangeScreen ( patchSet.getId ( ) . getParentKey ( ) ) ) ; }
Source:
public final native double getScrollSetAt ( ) ;

Target:
public final native void setScrollSetByOther ( boolean setByOther ) ;
Source:
public void save ( ) { lastUpdated = new java.util.Date ( ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.table.insertOrUpdate ( this ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.log.info ( java.lang.String.format ( "Saving Usage: %s, %s, %s, %s" , project , branch , destination , ref ) ) ; }

Target:
public void save ( ) { lastUpdated = new java.util.Date ( ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.log.debug ( java.lang.String.format ( "Saving Usage: %s, %s, %s, %s" , project , branch , destination , ref ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.table.insertOrUpdate ( this ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { enableForm ( true ) ; saveName.setEnabled ( false ) ; saveDesc.setEnabled ( false ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { enableForm ( true ) ; saveName.setEnabled ( false ) ; saveOwner.setEnabled ( false ) ; saveDesc.setEnabled ( false ) ; display ( result ) ; }
Source:
private boolean isOpen ( ) { return com.google.gwt.user.client.ui.UIObject.isVisible ( contentPanel ) ; }

Target:
private boolean isOpen ( ) { return getStyleName ( ) . contains ( style.open ( ) ) ; }
Source:
abstract com.google.gerrit.server.update.RetryHelper.Options autoBuild ( ) ;

Target:
public abstract com.google.gerrit.server.update.RetryHelper.Options build ( ) ;
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.index.IndexPredicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult setCharacterEncoding ( java.lang.String encoding ) { characterEncoding = encoding ; return this ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult setCharacterEncoding ( java.lang.String encoding ) { return setCharacterEncoding ( java.nio.charset.Charset.forName ( encoding ) ) ; }
Source:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return java.util.Optional.ofNullable ( db.accountGroups ( ) . get ( key ) ) ; } }

Target:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.get ( db , key ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , null , db , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , null , db , id ) ; }
Source:
public void deleteReviewerFromWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; removeReviewer ( sc , extraReviewer ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void deleteReviewerFromReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChangeWithExtraReviewer ( ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public static void draft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . get ( cb ) ; }

Target:
public static void drafts ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . get ( cb ) ; }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.reviewdb.client.Change change , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.reviewdb.client.Change change , @ com.google.inject.assistedinject.Assisted ( value = "effective" ) com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.inject.assistedinject.Assisted ( value = "real" ) com.google.gerrit.reviewdb.client.Account.Id realAccountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;
Source:
com.google.gerrit.server.account.GroupDetailFactory create ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId ) ;

Target:
com.google.gerrit.server.account.GroupDetailFactory create ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) ;
Source:
public java.lang.String getShortName ( ) { final java.lang.String n = get ( ) ; if ( n.startsWith ( "refs/heads/" ) ) { return n.substring ( "refs/heads/" . length ( ) ) ; } return n ; }

Target:
public java.lang.String getShortName ( ) { final java.lang.String n = get ( ) ; if ( n.startsWith ( com.google.gerrit.client.reviewdb.Branch.R_HEADS ) ) { return n.substring ( com.google.gerrit.client.reviewdb.Branch.R_HEADS.length ( ) ) ; } return n ; }
Source:
public final native void setWidth ( java.lang.String w ) ;

Target:
public final int getHeight ( ) { return getWrapperElement ( ) . getClientHeight ( ) ; }
Source:
public void setCommit ( org.eclipse.jgit.lib.ObjectId commit ) { com.google.common.base.Preconditions.checkArgument ( ( commit != null ) ) ; this . commit = commit ; }

Target:
public void setCommit ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException { org.eclipse.jgit.revwalk.RevCommit commit = rw.parseCommit ( id ) ; rw.parseBody ( commit ) ; this . commit = commit ; subject = commit.getShortMessage ( ) ; }
Source:
public boolean isEnabled ( ) { return ( enabled ) && ( isVisible ( ) ) ; }

Target:
public com.google.gerrit.extensions.webui.UiAction.Description setVisible ( boolean visible ) { return setVisible ( com.google.gerrit.extensions.conditions.BooleanCondition.valueOf ( visible ) ) ; }
Source:
public PatchSet.Id newPatchSetId ( ) { return new com.google.gerrit.reviewdb.PatchSet.Id ( changeId , ( ++ ( nbrPatchSets ) ) ) ; }

Target:
public void nextPatchSetId ( ) { ++ ( nbrPatchSets ) ; }
Source:
public void delete_MethodNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_METHOD_NOT_ALLOWED ) ; }

Target:
public void delete_MethodNotAllowed ( ) throws java.lang.Exception { adminSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) ) . assertMethodNotAllowed ( ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.ChangeScreen s = ( ( com.google.gerrit.client.changes.ChangeScreen ) ( newScreen ) ) ; changeId = s.changeId ; changeInfo = s.changeInfo ; starred = s.starred ; return this ; }

Target:
public void refresh ( ) { Util.DETAIL_SVC.changeDetail ( changeId , new com.google.gerrit.client.rpc.ScreenLoadCallback < com.google.gerrit.client.data.ChangeDetail > ( this ) { @ java.lang.Override protected void preDisplay ( final com.google.gerrit.client.data.ChangeDetail r ) { setStarred ( r.isStarred ( ) ) ; display ( r ) ; } } ) ; }
Source:
private java.lang.String urlPut ( com.google.gerrit.reviewdb.client.Change c ) { return ( urlDelete ( c ) ) + "/content" ; }

Target:
private java.lang.String urlEditFile ( ) { return ( ( urlEdit ( ) ) + "/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }
Source:
public java.lang.String getCommand ( java.lang.String url ) { return ( "git pull " + url ) + " ${ref}" ; }

Target:
public java.lang.String getCommand ( java.lang.String url , java.lang.String ref ) { return ( ( "git pull " + url ) + " " ) + ref ; }
Source:
private static com.google.gwt.user.client.ui.Label newDescriptionLabel ( ) { final com.google.gwt.user.client.ui.Label d = new com.google.gwt.user.client.ui.Label ( ) ; d.setStyleName ( "gerrit-ChangeScreen-Description" ) ; return d ; }

Target:
private static com.google.gwt.user.client.ui.HTML newDescriptionLabel ( ) { final com.google.gwt.user.client.ui.HTML d = new com.google.gwt.user.client.ui.HTML ( ) ; d.setStyleName ( "gerrit-ChangeScreen-Description" ) ; return d ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities ac ) { if ( ac.canPerform ( com.google.gerrit.common.data.GlobalCapability.CREATE_PROJECT ) ) { display ( ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.ADMIN_CREATE_PROJECT , new com.google.gerrit.client.NotFoundScreen ( ) ) ; } }
Source:
public void abandonReviewableChangeByOtherCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( sc.reviewer , sc.ccer , other ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . bcc ( sc.starrer ) . bcc ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; }

Target:
public void abandonReviewableChangeByOtherCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( sc.reviewer , sc.ccer , other ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . bcc ( sc.starrer ) . bcc ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) . noOneElse ( ) ; }
Source:
private void afterTest ( ) throws java.lang.Exception { server.stop ( ) ; }

Target:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; }
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.server.index.FieldDef.GetterWithArgs < I , java.lang.Iterable < T > > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , true , getter ) ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.Getter < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }
Source:
public void preDisplay ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( com.google.gerrit.client.admin.ProjectAccessScreen.uiBinder.createAndBindUi ( this ) ) ; driver = com.google.gwt.core.client.GWT.create ( com.google.gerrit.client.admin.ProjectAccessScreen.Driver.class ) ; accessEditor.setEditing ( false ) ; driver.initialize ( accessEditor ) ; }
Source:
private boolean isAuthorizedCall ( javax.servlet.http.HttpServletRequest req ) { return ( ! ( com.google.common.base.Strings.isNullOrEmpty ( req.getServletPath ( ) ) ) ) && ( req.getServletPath ( ) . startsWith ( com.google.gerrit.httpd.plugins.HttpPluginServlet.AUTHORIZED_PREFIX ) ) ; }

Target:
private static java.util.jar.JarFile jarFileOf ( com.google.gerrit.server.plugins.Plugin plugin ) { if ( plugin instanceof com.google.gerrit.server.plugins.ServerPlugin ) { return ( ( com.google.gerrit.server.plugins.ServerPlugin ) ( plugin ) ) . getJarFile ( ) ; } else { return null ; } }
Source:
int limit ( ) ;

Target:
com.google.gerrit.server.query.change.QueryOptions getOptions ( ) ;
Source:
public void testChangeOwner_OwnerACLNotGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { approve ( sessionOwner , createChange ( ) , HttpStatus.SC_FORBIDDEN ) ; }

Target:
public void testChangeOwner_OwnerACLGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { grantApproveToChangeOwner ( ) ; approve ( sessionOwner , createMyChange ( ) , HttpStatus.SC_OK ) ; }
Source:
public static com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle create ( org.eclipse.jgit.revwalk.RevWalk walk , org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.notedb.AutoValue_AbstractChangeNotes_LoadHandle ( walk , ( id != null ? id.copy ( ) : null ) ) ; }

Target:
public static com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle create ( org.eclipse.jgit.revwalk.RevWalk walk , org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.notedb.AutoValue_AbstractChangeNotes_LoadHandle ( com.google.common.base.Preconditions.checkNotNull ( walk ) , ( id != null ? id.copy ( ) : null ) ) ; }
Source:
public void start ( ) { startThread ( new java.lang.Runnable ( ) { public void run ( ) { runImp ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new java.lang.Runnable ( ) { public void run ( ) { runImp ( ) ; } } ) ; }
Source:
public void visit ( org.pegdown.ast.CodeNode node ) { wrapText ( "code" , node ) ; }

Target:
public void visit ( org.commonmark.node.BulletList node ) { wrapChildren ( "ul" , node ) ; }
Source:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; clearActiveLine ( cm ) ; clearActiveLine ( otherCm ( cm ) ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.CommentInfo > > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . setFillAccounts ( includeAuthorInfo ( ) ) . format ( listComments ( rsrc ) ) ; }

Target:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.CommentInfo > > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . setFillAccounts ( includeAuthorInfo ( ) ) . newCommentFormatter ( ) . format ( listComments ( rsrc ) ) ; }
Source:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Topic" ) . setVisible ( rsrc.permissions ( ) . testOrFalse ( ChangePermission.EDIT_TOPIC_NAME ) ) ; }

Target:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Topic" ) . setVisible ( rsrc.permissions ( ) . testCond ( ChangePermission.EDIT_TOPIC_NAME ) ) ; }
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 , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return runAs ( remotePeer , id , null ) ; }
Source:
public abstract boolean moreChanges ( ) ;

Target:
public abstract java.util.List < T > entities ( ) ;
Source:
private void loadDefaults ( ) { approvals = com.google.common.collect.ImmutableListMultimap.of ( ) ; reviewers = com.google.common.collect.ImmutableSetMultimap.of ( ) ; submitRecords = com.google.common.collect.ImmutableList.of ( ) ; }

Target:
private void loadDefaults ( ) { approvals = com.google.common.collect.ImmutableListMultimap.of ( ) ; reviewers = com.google.common.collect.ImmutableSetMultimap.of ( ) ; submitRecords = com.google.common.collect.ImmutableList.of ( ) ; changeMessages = com.google.common.collect.ImmutableList.of ( ) ; }
Source:
public java.lang.String toString ( ) { return "is:reviewed" ; }

Target:
public int getCost ( ) { return 1 ; }
Source:
public void deleteGpgKey ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; assertKeys ( key ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . delete ( ) ; assertKeys ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }

Target:
public void deleteGpgKey ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key1 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; assertKeys ( key ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . delete ( ) ; assertKeys ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }
Source:
default void onUpdate ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId updatedExtId ) throws java.io.IOException { onUpdate ( newNotesRev , java.util.Collections.singleton ( updatedExtId ) ) ; }

Target:
default void onUpdate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId updatedExtId ) throws java.io.IOException { onUpdate ( oldNotesRev , newNotesRev , java.util.Collections.singleton ( updatedExtId ) ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject msg ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( changeId ) ) ; hide ( ) ; }
Source:
public PatchSet.Id newPatchSetId ( ) { return new com.google.gerrit.reviewdb.PatchSet.Id ( changeId , ( ++ ( nbrPatchSets ) ) ) ; }

Target:
public PatchSet.Id currPatchSetId ( ) { return new com.google.gerrit.reviewdb.PatchSet.Id ( changeId , nbrPatchSets ) ; }
Source:
protected void configure ( ) { bind ( com.google.gwtjsonrpc.client.RemoteJsonService.class ) . toInstance ( srv ) ; }

Target:
protected void configure ( ) { bind ( com.google.gwtjsonrpc.common.RemoteJsonService.class ) . toInstance ( srv ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setDraft ( boolean draft ) { change.setStatus ( ( draft ? Change.Status.DRAFT : Change.Status.NEW ) ) ; patchSet.setDraft ( draft ) ; return this ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { com.google.common.base.Preconditions.checkState ( ( ( change ) != null ) , "getChange() only valid after creating change" ) ; return change ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doExternalSearch ( ) ; } }

Target:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { typeSelect.setEnabled ( true ) ; setType ( newType ) ; }
Source:
public void setOutputFormat ( com.googlesource.gerrit.plugins.verifystatus.commands.VerifyStatusQueryShell.OutputFormat fmt ) { outputFormat = fmt ; }

Target:
public void setOutputFormat ( com.googlesource.gerrit.plugins.verifystatus.VerifyStatusQueryShell.OutputFormat fmt ) { outputFormat = fmt ; }
Source:
public void put ( K key , V value ) { cache.put ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) , new com.google.gerrit.ehcache.SerializableProtobuf < V > ( value , valueCodec ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAsync ( final K key ) { if ( key != null ) { return cache.removeAsync ( wrapKey ( key ) ) ; } else { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; } }