auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }

Target:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( isProjectStatePermittingRead ( ) ) ; } return isVisible ; }
Source:
protected java.lang.Class < ? extends com.google.inject.Provider < java.lang.String > > provider ( ) { return com.google.gerrit.server.config.CanonicalWebUrlProvider.class ; }

Target:
protected void configure ( ) { bind ( new com.google.inject.TypeLiteral < com.google.gerrit.extensions.registration.DynamicSet < com.google.gerrit.server.cache.CacheRemovalListener > > ( ) { } ) . toInstance ( com.google.gerrit.extensions.registration.DynamicSet.< com.google.gerrit.server.cache.CacheRemovalListener > emptySet ( ) ) ; install ( new com.google.gerrit.server.cache.h2.DefaultCacheFactory.Module ( ) ) ; }
Source:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box , com.google.gerrit.common.changes.Side side ) { getPanelFromSide ( side ) . onRemoveDraftBox ( box ) ; }

Target:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box ) { getPanelFromSide ( box.getSide ( ) ) . onRemoveDraftBox ( box ) ; }
Source:
private java.lang.String urlGetFiles ( ) { return ( ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edits/" ) + "0" ) + "/files/" ; }

Target:
private java.lang.String urlEdit ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit" ; }
Source:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { java.util.List < com.google.gerrit.server.query.change.ChangeData > tmp = com.google.common.collect.ImmutableList.of ( cd ) ; return formatList2 ( com.google.common.collect.ImmutableList.of ( tmp ) ) . get ( 0 ) . get ( 0 ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , com.google.common.base.Optional.< com.google.gerrit.reviewdb.client.PatchSet.Id > absent ( ) ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return com.google.gerrit.server.group.GetGroup.parse ( resource.getControl ( ) . getGroup ( ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.group.GetGroup.GroupInfo ( resource.getControl ( ) . getGroup ( ) ) ; }
Source:
public void setPreferredEmail ( final java.lang.String addr ) { if ( ( addr != null ) && ( addr.contains ( "@" ) ) ) { sshUserName = addr.substring ( 0 , addr.indexOf ( '@' ) ) . toLowerCase ( ) ; } else { sshUserName = null ; } preferredEmail = addr ; }

Target:
public void setPreferredEmail ( final java.lang.String addr ) { preferredEmail = addr ; }
Source:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( RemoveReviewer.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AddReviewerHandler.Factory.class ) ; factory ( RemoveReviewerHandler.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }
Source:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings createPluginSettings ( ) { return new io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings ( pluginUserName , branch , fileRef , localFilePath , allowMaintainersSubmit , autoAddReviewers , autoSubmit , dislikeWarnings ) ; }

Target:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings createPluginSettings ( ) { return new io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings ( pluginUserName , branch , wildcardBranch , fileRef , localFilePath , allowMaintainersSubmit , autoAddReviewers , autoSubmit , dislikeWarnings ) ; }
Source:
public com.google.gerrit.reviewdb.client.AccountGroup toAccountGroup ( ) { return com.google.gerrit.common.data.GroupDescriptions.toAccountGroup ( getGroup ( ) ) ; }

Target:
public java.util.Optional < com.google.gerrit.common.data.GroupDescription.Internal > asInternalGroup ( ) { com.google.gerrit.common.data.GroupDescription.Basic group = getGroup ( ) ; if ( group instanceof com.google.gerrit.common.data.GroupDescription.Internal ) { return java.util.Optional.of ( ( ( com.google.gerrit.common.data.GroupDescription.Internal ) ( group ) ) ) ; } return java.util.Optional.empty ( ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { return this ; }

Target:
protected final void add ( final com.google.gwt.user.client.ui.Widget w ) { body.add ( w ) ; }
Source:
void setExpandAllComments ( boolean b ) { for ( com.google.gerrit.client.diff.PublishedBox box : published.values ( ) ) { box.setOpen ( b ) ; } }

Target:
void setExpandAllComments ( boolean b ) { for ( com.google.gerrit.client.diff.CommentGroup g : sideA.values ( ) ) { g.setOpenAll ( b ) ; } for ( com.google.gerrit.client.diff.CommentGroup g : sideB.values ( ) ) { g.setOpenAll ( b ) ; } }
Source:
public boolean canRunUploadPack ( ) { return isAnyIncludedIn ( uploadGroups , user.getEffectiveGroups ( ) ) ; }

Target:
public boolean canRunUploadPack ( ) { return isAnyIncludedIn ( uploadGroups , getEffectiveUserGroups ( ) ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > inname ( java.lang.String name ) { return new com.google.gerrit.server.query.project.ProjectPredicates.ProjectPredicate ( com.google.gerrit.server.index.project.ProjectField.NAME_PART , name.toLowerCase ( java.util.Locale.US ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > inname ( java.lang.String name ) { return new com.google.gerrit.index.project.ProjectPredicate ( com.google.gerrit.index.project.ProjectField.NAME_PART , name.toLowerCase ( java.util.Locale.US ) ) ; }
Source:
private com.google.gwtorm.schema.java.JavaColumnModel collectionColumn ( final com.google.gwtorm.schema.java.JavaColumnModel f , final java.lang.Class < ? > valClazz ) throws com.google.gwtorm.client.OrmException { return new com.google.gwtorm.schema.java.JavaColumnModel ( f.getPathToFieldName ( ) , f.getColumnID ( ) , valClazz ) ; }

Target:
private com.google.gwtorm.schema.java.JavaColumnModel collectionColumn ( final com.google.gwtorm.schema.java.JavaColumnModel f , final java.lang.Class < ? > valClazz ) throws com.google.gwtorm.client.OrmException { return new com.google.gwtorm.schema.java.JavaColumnModel ( f.getField ( ) , f.getPathToFieldName ( ) , f.getColumnID ( ) , valClazz ) ; }
Source:
protected void format ( ) { appendText ( getNameFor ( fromId ) ) ; appendText ( ( ( " has abandoned change " + ( change.getChangeId ( ) ) ) + ":\n" ) ) ; appendText ( "\n" ) ; formatCoverLetter ( ) ; }

Target:
protected void format ( ) { appendText ( getNameFor ( fromId ) ) ; appendText ( ( ( " has abandoned change " + ( change.getKey ( ) . abbreviate ( ) ) ) + ":\n" ) ) ; appendText ( "\n" ) ; formatCoverLetter ( ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > name ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME , GroupQueryBuilder.FIELD_NAME , name.toLowerCase ( java.util.Locale.US ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.group.InternalGroup > name ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME , GroupQueryBuilder.FIELD_NAME , name ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.account.ExternalIdDetail result ) { identites.display ( result ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountExternalId > result ) { identites.display ( result ) ; }
Source:
public final native int update_delay ( ) ;

Target:
public final native int largeChange ( ) ;
Source:
public java.lang.String apply ( com.google.gerrit.server.project.ProjectResource resource ) { com.google.gerrit.reviewdb.client.Project project = resource.getControl ( ) . getProject ( ) ; return com.google.common.base.Strings.nullToEmpty ( project.getDescription ( ) ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.project.ProjectResource rsrc ) { return com.google.common.base.Strings.nullToEmpty ( rsrc.getProjectState ( ) . getProject ( ) . getDescription ( ) ) ; }
Source:
javax.servlet.http.HttpServlet getGwtUiServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { if ( ( warFs ) != null ) { return new com.google.gerrit.httpd.raw.WarGwtUiServlet ( cache , warFs ) ; } else { return new com.google.gerrit.httpd.raw.DeveloperGwtUiServlet ( cache , unpackedWar ) ; } }

Target:
javax.servlet.http.HttpServlet getGwtUiServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { if ( ( warFs ) != null ) { return new com.google.gerrit.httpd.raw.WarGwtUiServlet ( cache , warFs ) ; } else { return new com.google.gerrit.httpd.raw.DirectoryGwtUiServlet ( cache , unpackedWar , development ) ; } }
Source:
org.parboiled.Rule Number ( ) { return OneOrMore ( CharRange ( '0' , '9' ) ) ; }

Target:
org.parboiled.Rule Number ( ) { return oneOrMore ( charRange ( '0' , '9' ) ) ; }
Source:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
boolean canAddPatchSet ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.api.Git git ) ;

Target:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.junit.TestRepository < ? > testRepo ) ;
Source:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/groups/Administrators" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_CONFLICT ) ; }

Target:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws java.lang.Exception { try { gApi.groups ( ) . create ( "Administrators" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceConflictException expected ) { } }
Source:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.common.data.ContributorAgreement cla ) ;

Target:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , java.lang.String claName ) ;
Source:
public com.google.template.soy.data.SanitizedContent toSoyHtml ( org.commonmark.node.Node node ) { if ( node == null ) { return null ; } toc.setRoot ( node ) ; node.accept ( this ) ; return html.toSoy ( ) ; }

Target:
public com.google.template.soy.data.SanitizedContent toSoyHtml ( org.commonmark.node.Node node ) { if ( node != null ) { com.google.gitiles.doc.html.SoyHtmlBuilder out = new com.google.gitiles.doc.html.SoyHtmlBuilder ( ) ; renderToHtml ( out , node ) ; return out.toSoy ( ) ; } return null ; }
Source:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws com.google.gwtorm.server.OrmException { ctx.getChange ( ) . setStatus ( Change.Status.MERGED ) ; ctx.getUpdate ( ctx.getChange ( ) . currentPatchSetId ( ) ) . fixStatus ( Change.Status.MERGED ) ; return true ; }

Target:
public boolean updateChange ( com.google.gerrit.server.update.BatchUpdate.ChangeContext ctx ) throws com.google.gwtorm.server.OrmException { ctx.getChange ( ) . setStatus ( Change.Status.MERGED ) ; ctx.getUpdate ( ctx.getChange ( ) . currentPatchSetId ( ) ) . fixStatus ( Change.Status.MERGED ) ; return true ; }
Source:
private com.google.gerrit.acceptance.TestAccount createAccount ( java.lang.String name , java.lang.String group ) throws java.lang.Exception { name = name ( name ) ; return accounts.create ( name , ( name + "@example.com" ) , ( name + " full name" ) , group ) ; }

Target:
private com.google.gerrit.acceptance.TestAccount createTestAccount ( java.lang.String name , java.lang.String group ) throws java.lang.Exception { name = name ( name ) ; return accountCreator.create ( name , ( name + "@example.com" ) , ( name + " full name" ) , group ) ; }
Source:
private com.google.gerrit.server.project.ProjectControl newProjectControl ( ) throws java.lang.Exception { return projectControlFactory.controlFor ( project.getName ( ) , user ) ; }

Target:
private com.google.gerrit.server.project.ProjectState readProjectState ( ) throws java.lang.Exception { return projectCache.get ( project.getName ( ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( type ) , culprit } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.IllegalTypeException.TYPE_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( type ) , culprit } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.IllegalTypeException.TYPE_ERROR , args ) ; }
Source:
private void configureRequestScope ( ) { }

Target:
private void configureRequestScope ( ) { bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.server.ssh.SshCurrentUserProvider.class ) . in ( SshScopes.REQUEST ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . to ( com.google.gerrit.server.IdentifiedUser.class ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser getIdentifiedUser ( ) { com.google.common.base.Preconditions.checkNotNull ( user ) ; return user.asIdentifiedUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }
Source:
private void enable ( boolean enabled ) { commitMessage.setEnabled ( enabled ) ; commit.setEnabled ( enabled ) ; }

Target:
private void enable ( boolean enabled ) { commitMessage.setEnabled ( enabled ) ; commit.setEnabled ( enabled ) ; cancel1.setEnabled ( enabled ) ; cancel2.setEnabled ( enabled ) ; }
Source:
public java.lang.String getUserName ( ) { return null ; }

Target:
public java.util.Optional < java.lang.String > getUserName ( ) { return java.util.Optional.empty ( ) ; }
Source:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ) ; }

Target:
boolean canForceEditTopicName ( ) { return canForcePerform ( Permission.EDIT_TOPIC_NAME ) ; }
Source:
public void addBranch ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }

Target:
public void listBranches ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }
Source:
public boolean supportsCredentialChanges ( com.gitblit.models.UserModel user ) { return false ; }

Target:
public void logout ( com.gitblit.models.UserModel user ) { }
Source:
public final short changesPerPage ( ) { return get ( "changes_per_page" , AccountGeneralPreferences.DEFAULT_PAGESIZE ) ; }

Target:
public final short changesPerPage ( ) { short changesPerPage = get ( "changes_per_page" , AccountGeneralPreferences.DEFAULT_PAGESIZE ) ; return 0 < changesPerPage ? changesPerPage : com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DEFAULT_PAGESIZE ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new com.google.gitiles.dev.DevServer ( com.google.gitiles.GitilesConfig.loadDefault ( ) ) . start ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new com.google.gitiles.dev.DevServer ( com.google.gitiles.GitilesConfig.defaultFile ( ) ) . start ( ) ; }
Source:
public void testCreatePermissionOnlyProject ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.permissions_only = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , GitRepositoryManager.REF_CONFIG ) ; }

Target:
public void testCreatePermissionOnlyProject ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.permissions_only = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , RefNames.REFS_CONFIG ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = new com.google.gerrit.testutil.InMemoryDatabase ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.storage.dfs.DfsRepository > ( new org.eclipse.jgit.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; walk = new org.eclipse.jgit.revwalk.RevWalk ( repo.getRepository ( ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; walk = new org.eclipse.jgit.revwalk.RevWalk ( repo.getRepository ( ) ) ; }
Source:
public void setRegisterKeys ( final boolean on ) { myTable.setRegisterKeys ( on ) ; }

Target:
public void setRegisterKeys ( final boolean on ) { registerKeys = on ; if ( ( myTable ) != null ) { myTable.setRegisterKeys ( on ) ; } }
Source:
public com.google.gerrit.server.change.ChangeInserter setGroups ( java.lang.Iterable < java.lang.String > groups ) { patchSet.setGroups ( groups ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setNotify ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify ) { this . notify = notify ; return this ; }
Source:
public com.google.gerrit.server.change.ChangeResource parse ( com.google.gerrit.server.project.ChangeControl control ) { return changeResourceFactory.create ( control ) ; }

Target:
public com.google.gerrit.server.change.ChangeResource parse ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.server.CurrentUser user ) { return changeResourceFactory.create ( notes , user ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSetApproval > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchSetApproval.Key > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSetApproval > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchSetApproval.Key > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { return ghMembershipProvider.get ( user.getUserName ( ) ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String username = user.getUserName ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( username ) ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } else { return ghMembershipProvider.get ( username ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.extensions.systemstatus.ServerInformation.class ) . toInstance ( srvInfo ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.systemstatus.ServerInformation.class ) . toInstance ( env.getServerInformation ( ) ) ; }
Source:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; com.google.gerrit.acceptance.TempFileUtil.cleanup ( ) ; }

Target:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }
Source:
public void setPreferredEmail ( final java.lang.String addr ) { if ( ( addr != null ) && ( addr.contains ( "@" ) ) ) { sshUserName = addr.substring ( 0 , addr.indexOf ( '@' ) ) . toLowerCase ( ) ; } else { sshUserName = null ; } preferredEmail = addr ; }

Target:
public void setSshUserName ( final java.lang.String name ) { sshUserName = name ; }
Source:
private void checkLog ( ) { checkRevision ( ) ; }

Target:
private void checkLog ( ) { checkRepositoryIndex ( ) ; }
Source:
public boolean setTeamnamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > teamnames ) { return false ; }

Target:
public boolean supportsRoleChanges ( com.gitblit.models.TeamModel team , com.gitblit.Constants.Role role ) { return false ; }
Source:
public void setAllowed ( java.util.Map < com.google.gerrit.reviewdb.ApprovalCategory.Id , java.util.Set < com.google.gerrit.reviewdb.ApprovalCategoryValue.Id > > allowed ) { this . allowed = allowed ; }

Target:
public void setLabels ( java.util.List < com.google.gerrit.common.data.PermissionRange > labels ) { this . labels = labels ; }
Source:
public PatchSet.Id getPatchSetId ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( commit.getChangeId ( ) ) ) ) . currentPatchSetId ( ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeData getChange ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( commit.getChangeId ( ) ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { if ( result.isOwner ( ) ) { table.setWidget ( row , column , getHeadRevisionWidget ( rev ) ) ; } else { table.setText ( row , 3 , rev ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { addPanel.setVisible ( result.canAddRefs ( ) ) ; }
Source:
private static void save ( com.dyuproject.openid.UrlEncodedParameterMap b , javax.servlet.http.HttpServletRequest r , java.lang.String n ) { final java.lang.String v = r.getParameter ( n ) ; if ( v != null ) { b.put ( n , v ) ; } }

Target:
private static void save ( com.google.gerrit.server.UrlEncoded b , javax.servlet.http.HttpServletRequest r , java.lang.String n ) { final java.lang.String v = r.getParameter ( n ) ; if ( v != null ) { b.put ( n , v ) ; } }
Source:
void setToRetry ( ) { retrying = true ; }

Target:
void setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; }
Source:
public void shouldNotHavePushTask ( ) { org.junit.Assert.assertFalse ( replicationState.hasPushTask ( ) ) ; }

Target:
public void shouldNotHavePushTask ( ) { com.google.common.truth.Truth.assertThat ( replicationState.hasPushTask ( ) ) . isFalse ( ) ; }
Source:
public final com.google.gerrit.client.diff.DiffInfo.IntraLineStatus intraline_status ( ) { java.lang.String s = intraline_statusRaw ( ) ; return s != null ? com.google.gerrit.client.diff.DiffInfo.IntraLineStatus.valueOf ( s ) : com.google.gerrit.client.diff.DiffInfo.IntraLineStatus.OFF ; }

Target:
public final com.google.gerrit.client.diff.DiffInfo.IntraLineStatus intralineStatus ( ) { java.lang.String s = intralineStatusRaw ( ) ; return s != null ? com.google.gerrit.client.diff.DiffInfo.IntraLineStatus.valueOf ( s ) : com.google.gerrit.client.diff.DiffInfo.IntraLineStatus.OFF ; }
Source:
public void stop ( ) { for ( com.google.gerrit.reviewdb.server.ReviewDb db : dbs ) { db.close ( ) ; } }

Target:
protected void configure ( ) { factory ( ChangeResource.Factory.class ) ; }
Source:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , com.google.gerrit.client.diff.SideBySide2.Direction.NEXT ) . run ( ) ; } }

Target:
public void execute ( ) { deferred = null ; operation ( new java.lang.Runnable ( ) { public void run ( ) { for ( java.lang.Runnable thunk : list ) { thunk.run ( ) ; } } } ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > description ( java.lang.String description ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.DESCRIPTION , GroupQueryBuilder.FIELD_DESCRIPTION , description ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > description ( java.lang.String description ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.DESCRIPTION , GroupQueryBuilder.FIELD_DESCRIPTION , description ) ; }
Source:
public java.lang.Boolean apply ( java.lang.String stringVal ) { return java.lang.Boolean.parseBoolean ( stringVal ) ; }

Target:
public boolean getBoolean ( java.lang.String name , boolean defaultValue ) { return cfg.getBoolean ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name , defaultValue ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String ref , org.eclipse.jgit.lib.ObjectId oldObjectId , org.eclipse.jgit.lib.ObjectId newObjectId ) { fire ( project , ref , oldObjectId , newObjectId , ReceiveCommand.Type.UPDATE ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String ref , org.eclipse.jgit.lib.ObjectId oldObjectId , org.eclipse.jgit.lib.ObjectId newObjectId , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , ref , oldObjectId , newObjectId , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }
Source:
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 ) ; }

Target:
private com.google.gerrit.common.changes.Side getSideFromCm ( net.codemirror.lib.CodeMirror cm ) { return cm == ( cmA ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }
Source:
abstract Patch.Key key ( ) ;

Target:
abstract java.lang.String filename ( ) ;
Source:
private boolean canSeeMembers ( ) { if ( ( group ) instanceof com.google.gerrit.common.data.GroupDescription.Internal ) { return ( ( ( com.google.gerrit.common.data.GroupDescription.Internal ) ( group ) ) . isVisibleToAll ( ) ) || ( isOwner ( ) ) ; } return false ; }

Target:
private boolean canSeeMembers ( ) { if ( ( group ) instanceof com.google.gerrit.common.data.GroupDescription.Internal ) { return ( ( ( com.google.gerrit.common.data.GroupDescription.Internal ) ( group ) ) . isVisibleToAll ( ) ) || ( isOwner ( ) ) ; } return canAdministrateServer ( ) ; }
Source:
public boolean exists ( java.lang.String issueKey ) throws java.io.IOException { return execute ( ( ) -> client ( ) . issueExists ( issueKey ) ) ; }

Target:
public boolean exists ( java.lang.String issueKey ) throws java.io.IOException { return execute ( ( ) -> jiraClient.issueExists ( issueKey ) ) ; }
Source:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }

Target:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , AsciidoctorFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_EXT , "adoc" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.GetterWithArgs < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.server.index.FieldDef.Getter < I , java.lang.Iterable < T > > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , true , getter ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setDraft ( boolean draft ) { this . draft = draft ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setDraft ( ) { change.setStatus ( Change.Status.DRAFT ) ; patchSet.setDraft ( true ) ; return this ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return ApprovalCategory.SUBMIT_ID.equals ( input.getCategoryId ( ) . get ( ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return input.isSubmit ( ) ; }
Source:
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.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;

Target:
void reviewProjectAccess ( 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.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Change.Id > callback ) ;
Source:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style , com.google.gwt.dom.client.Element reviewersText ) { this . style = style ; this . reviewersText = reviewersText ; }

Target:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style , com.google.gwt.dom.client.Element ccText ) { this . style = style ; this . ccText = ccText ; }
Source:
private com.google.gerrit.acceptance.server.mail.StagedChange stageReviewableChange ( ) throws java.lang.Exception { return stageChange ( this :: stageReviewableChange ) ; }

Target:
private com.google.gerrit.acceptance.server.mail.StagedChange stageReviewableWipChangeWithExtraReviewer ( ) throws java.lang.Exception { return stageChangeWithExtraReviewer ( this :: stageReviewableWipChange ) ; }
Source:
private boolean isEditable ( com.google.gerrit.client.diff.FileInfo info ) { java.lang.String status = info.status ( ) ; return ( status == null ) || ( ! ( ChangeType.DELETED.matches ( status ) ) ) ; }

Target:
private boolean isEditable ( com.google.gerrit.client.info.FileInfo info ) { java.lang.String status = info.status ( ) ; return ( status == null ) || ( ! ( ChangeType.DELETED.matches ( status ) ) ) ; }
Source:
public boolean allRefsAreVisible ( ) { return ( visibleForReplication ( ) ) || ( canPerformOnAllRefs ( Permission.READ ) ) ; }

Target:
public boolean allRefsAreVisible ( ) { return ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAllRefs ( Permission.READ ) ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl reload ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return changeControlFactory.controlFor ( db , ctl.getChange ( ) . getProject ( ) , ctl.getId ( ) , ctl.getUser ( ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes reload ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return changeNotesFactory.create ( db , notes.getChange ( ) . getProject ( ) , notes.getChangeId ( ) ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) { if ( ( change ) != null ) { topicEdited.fire ( change , ctx.getAccount ( ) , oldTopicName , ctx.getWhen ( ) ) ; } }

Target:
public void postUpdate ( com.google.gerrit.server.update.BatchUpdate.Context ctx ) { if ( ( change ) != null ) { topicEdited.fire ( change , ctx.getAccount ( ) , oldTopicName , ctx.getWhen ( ) ) ; } }
Source:
public void get ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo info = gApi.accounts ( ) . id ( "admin" ) . get ( ) ; org.junit.Assert.assertEquals ( "Administrator" , info.name ) ; org.junit.Assert.assertEquals ( "admin@example.com" , info.email ) ; org.junit.Assert.assertEquals ( "admin" , info.username ) ; }

Target:
public void get ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo info = gApi.accounts ( ) . id ( "admin" ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.name ) . isEqualTo ( "Administrator" ) ; com.google.common.truth.Truth.assertThat ( info.email ) . isEqualTo ( "admin@example.com" ) ; com.google.common.truth.Truth.assertThat ( info.username ) . isEqualTo ( "admin" ) ; }
Source:
public com.google.gerrit.extensions.registration.DynamicSet < T > . ReloadableHandle replace ( com.google.inject.Key < T > newKey , T newItem ) { if ( ref.compareAndSet ( item , newItem ) ) { return new ReloadableHandle ( ref , newKey , newItem ) ; } return null ; }

Target:
public void remove ( ) { if ( ref.compareAndSet ( item , null ) ) { items.remove ( ref ) ; } }
Source:
public java.util.Iterator < com.google.gerrit.server.query.change.ChangeData > iterator ( ) { return com.google.common.collect.Iterables.concat ( results ) . iterator ( ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { return source.read ( ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }
Source:
public static void getMessage ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.String > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id.getParentKey ( ) . get ( ) ) . view ( "edit:message" ) . get ( com.google.gerrit.client.changes.ChangeFileApi.wrapper ( cb ) ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi messageEdit ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id.getParentKey ( ) . get ( ) ) . view ( "edit:message" ) ; }
Source:
public int hashCode ( ) { return status.hashCode ( ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( status ) ; }
Source:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.ChangeActions.publish ( changeId , revision , publish , deleteRevision ) ; }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( getProject ( ) , changeId , revision , publish , deleteRevision ) ; } }
Source:
protected com.google.gson.JsonElement buildJson ( java.lang.String path , java.lang.String additionalQueryString ) throws java.lang.Exception { return new com.google.gson.JsonParser ( ) . parse ( buildJsonRaw ( path , additionalQueryString ) ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , classOfT ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo addChangeActions ( com.google.gerrit.extensions.common.ChangeInfo to , com.google.gerrit.server.project.ChangeControl ctl ) { java.util.List < com.google.gerrit.extensions.api.changes.ActionVisitor > visitors = visitors ( ) ; to.actions = toActionMap ( ctl , visitors , copy ( visitors , to ) ) ; return to ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo addChangeActions ( com.google.gerrit.extensions.common.ChangeInfo to , com.google.gerrit.server.notedb.ChangeNotes notes ) { java.util.List < com.google.gerrit.extensions.api.changes.ActionVisitor > visitors = visitors ( ) ; to.actions = toActionMap ( notes , visitors , copy ( visitors , to ) ) ; return to ; }
Source:
com.google.gerrit.server.permissions.PermissionBackend.ForChange asForChange ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd , @ com.google.gerrit.common.Nullable com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) { return new com.google.gerrit.server.project.ChangeControl.ForChangeImpl ( cd , db ) ; }

Target:
com.google.gerrit.server.permissions.PermissionBackend.ForChange asForChange ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd , @ com.google.gerrit.common.Nullable com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) { return new com.google.gerrit.server.permissions.ChangeControl.ForChangeImpl ( cd , db ) ; }
Source:
public void parse ( ) { projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg , validationErrorSink ) ; }

Target:
public void parse ( ) { projectWatches = com.google.gerrit.server.account.ProjectWatches.parse ( accountId , cfg , validationErrorSink ) ; }
Source:
private net.codemirror.lib.CodeMirror otherCM ( net.codemirror.lib.CodeMirror me ) { return me == ( cmA ) ? cmB : cmA ; }

Target:
private net.codemirror.lib.CodeMirror otherCm ( net.codemirror.lib.CodeMirror me ) { return me == ( cmA ) ? cmB : cmA ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { }

Target:
protected void populateWatches ( ) { Util.ACCOUNT_SVC.myProjectWatch ( new com.google.gerrit.client.rpc.ScreenLoadCallback < java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > > ( this ) { @ java.lang.Override public void preDisplay ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watchesTab.display ( result ) ; } } ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; history.addComments ( id , result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( com.google.gerrit.client.change.ChangeScreen.filterForRevision ( result , rev._number ( ) ) ) ; history.addComments ( result ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities result ) { if ( result.canPerform ( com.google.gerrit.common.data.GlobalCapability.ADMINISTRATE_SERVER ) ) { com.google.gerrit.client.Gerrit.addLink ( menuBar , com.google.gerrit.client.Gerrit.C.menuPlugins ( ) , PageLinks.ADMIN_PLUGINS ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities result ) { if ( result.canPerform ( com.google.gerrit.common.data.GlobalCapability.CREATE_GROUP ) ) { com.google.gerrit.client.Gerrit.addLink ( groupsBar , com.google.gerrit.client.Gerrit.C.menuGroupsCreate ( ) , PageLinks.ADMIN_CREATE_GROUP ) ; } }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style , editButton , replyButton ) ; edit.onEdit ( ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style.replyBox ( ) , editButton , replyButton ) ; edit.onEdit ( ) ; }
Source:
public void run ( ) throws java.lang.Exception { ui.message ( "\n" ) ; ui.header ( "GitBlit Integration" ) ; if ( ui.yesno ( true , "Do you want to use GitBlit as your GitWeb viewer ?" ) ) { configureGitBlit ( ) ; } }

Target:
public void run ( ) throws java.lang.Exception { ui.message ( "\n" ) ; ui.header ( "GitBlit Integration" ) ; if ( ui.yesno ( true , "Do you want to use GitBlit as your GitWeb viewer?" ) ) { configureGitBlit ( ) ; } }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { popup.setVisible ( false ) ; popup.clear ( ) ; hideFullScreenIcon ( ) ; }

Target:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { popup.setVisible ( false ) ; popup.clear ( ) ; hideFullScreenIcon ( ) ; hideDeleteIcon ( ) ; }
Source:
private boolean canSkipValidation ( com.google.gerrit.server.config.PluginConfig config , java.lang.String validatorOp ) { return matchCriteria ( config , "skipValidation" , validatorOp , false ) ; }

Target:
private boolean activeForRef ( com.google.gerrit.server.config.PluginConfig config , java.lang.String ref ) { return matchCriteria ( config , "ref" , ref , true , true ) ; }
Source:
boolean isExpired ( ) { return ( java.lang.System.currentTimeMillis ( ) ) > ( ( expiresAt ) * 1000 ) ; }

Target:
boolean isExpired ( ) { return ( ( java.lang.System.currentTimeMillis ( ) ) / 1000L ) > ( expiresAt ) ; }
Source:
public com.google.gerrit.reviewdb.server.AccountDiffPreferenceAccess accountDiffPreferences ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public com.google.gerrit.reviewdb.server.AccountDiffPreferenceAccess accountDiffPreferences ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { ensureLoaded ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { ensureLoaded ( result ) ; patchTable.setRegisterKeys ( true ) ; }
Source:
void finish ( ) { id = com.google.common.base.Joiner.on ( '~' ) . join ( com.google.gerrit.server.util.Url.encode ( project ) , com.google.gerrit.server.util.Url.encode ( branch ) , com.google.gerrit.server.util.Url.encode ( changeId ) ) ; }

Target:
void finish ( ) { id = com.google.common.base.Joiner.on ( '~' ) . join ( com.google.gerrit.extensions.restapi.Url.encode ( project ) , com.google.gerrit.extensions.restapi.Url.encode ( branch ) , com.google.gerrit.extensions.restapi.Url.encode ( changeId ) ) ; }
Source:
void onOneNodeReplicated ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) { }

Target:
void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) { com.googlesource.gerrit.plugins.replication.RefReplicatedEvent event = new com.googlesource.gerrit.plugins.replication.RefReplicatedEvent ( project , ref , com.googlesource.gerrit.plugins.replication.PushResultProcessing.resolveNodeName ( uri ) , status ) ; postEvent ( project , ref , event ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; engine.areg2 = this . areg2 ; engine.areg3 = this . areg3 ; engine.areg4 = this . areg4 ; engine.areg5 = this . areg5 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; engine.r2 = this . r2 ; engine.r3 = this . r3 ; engine.r4 = this . r4 ; engine.r5 = this . r5 ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void run ( ) { switch ( getIntraLineStatus ( ) ) { case OFF : case OK : toggleShowIntraline ( ) ; break ; default : break ; } }
Source:
public void noHashtags ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\nLine 1\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . isEmpty ( ) ; }

Target:
public void noHashtags ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\nLine 1\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . isEmpty ( ) ; }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getChunkManager ( ) . diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public boolean execute ( ) { if ( ( prefs.syntaxHighlighting ( ) ) && ( isAttached ( ) ) ) { setSyntaxHighlighting ( prefs.syntaxHighlighting ( ) ) ; } return false ; }