auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < com.google.gerrit.reviewdb.client.Account > load ( java.lang.Boolean key ) throws java.lang.Exception { return com.google.common.collect.ImmutableList.copyOf ( dbProvider.get ( ) . accounts ( ) . all ( ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.Account in ) { return in.isActive ( ) ; }
Source:
java.util.List < com.google.gerrit.common.data.PermissionRule > getOverridden ( java.lang.String permissionName ) { return com.google.common.base.Objects.firstNonNull ( overridden.get ( permissionName ) , java.util.Collections.< com.google.gerrit.common.data.PermissionRule > emptyList ( ) ) ; }

Target:
java.util.List < com.google.gerrit.common.data.PermissionRule > getOverridden ( java.lang.String permissionName ) { return com.google.common.base.MoreObjects.firstNonNull ( overridden.get ( permissionName ) , java.util.Collections.< com.google.gerrit.common.data.PermissionRule > emptyList ( ) ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > username ( java.lang.String username ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.USERNAME , AccountQueryBuilder.FIELD_USERNAME , username.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > username ( java.lang.String username ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.USERNAME , AccountQueryBuilder.FIELD_USERNAME , username.toLowerCase ( ) ) ; }
Source:
private void updateRemoteExternalId ( com.google.gerrit.server.account.AuthResult arsp , java.lang.String remoteAuthToken ) throws com.google.gerrit.server.account.AccountException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { accountManager.updateLink ( arsp.getAccountId ( ) , new com.google.gerrit.server.account.AuthRequest ( ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_EXTERNAL , remoteAuthToken ) ) ) ; }

Target:
private void updateRemoteExternalId ( com.google.gerrit.server.account.AuthResult arsp , java.lang.String remoteAuthToken ) throws com.google.gerrit.server.account.AccountException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { accountManager.updateLink ( arsp.getAccountId ( ) , new com.google.gerrit.server.account.AuthRequest ( ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_EXTERNAL , remoteAuthToken ) ) ) ; }
Source:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { final java.lang.String token = req.getPathInfo ( ) . substring ( 1 ) ; toGerrit ( token , req , rsp ) ; }

Target:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { final java.lang.String token = req.getPathInfo ( ) . substring ( 1 ) ; com.google.gerrit.httpd.UrlModule.toGerrit ( token , req , rsp ) ; }
Source:
public static java.util.Set < java.lang.String > getPersonParts ( org.eclipse.jgit.lib.PersonIdent person ) { if ( person == null ) { return com.google.common.collect.ImmutableSet.of ( ) ; } return com.google.gerrit.server.index.SchemaUtil.getPersonParts ( person.getName ( ) , java.util.Collections.singleton ( person.getEmailAddress ( ) ) ) ; }

Target:
public static java.util.Set < java.lang.String > getPersonParts ( org.eclipse.jgit.lib.PersonIdent person ) { if ( person == null ) { return com.google.common.collect.ImmutableSet.of ( ) ; } return com.google.gerrit.server.index.SchemaUtil.getNameParts ( person.getName ( ) , java.util.Collections.singleton ( person.getEmailAddress ( ) ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { enableForm ( ) ; display ( result ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.admin.CreateChangeAction.call ( createChange , getProjectKey ( ) . get ( ) ) ; }
Source:
public static java.lang.String toAccountQuery ( final java.lang.String fullname ) { return ( ( "/q/owner:\"" + ( com.google.gwtorm.client.KeyUtil.encode ( fullname ) ) ) + "\"," ) + ( com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toAccountQuery ( final java.lang.String fullname ) { java.lang.String query = ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " status:open" ; return com.google.gerrit.common.PageLinks.toChangeQuery ( query , com.google.gerrit.common.PageLinks.TOP ) ; }
Source:
private java.util.Set < java.lang.String > getMyOrganisationsLoginsViaApi ( ) throws java.io.IOException { return getHub ( ) . getMyOrganizations ( ) . keySet ( ) ; }

Target:
public java.util.Set < java.lang.String > getMyOrganisationsLogins ( ) throws java.io.IOException { if ( isLoggedIn ( ) ) { return getHub ( ) . getMyOrganizations ( ) . keySet ( ) ; } return java.util.Collections.emptySet ( ) ; }
Source:
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 ) ; }

Target:
public < I > com.google.gerrit.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.index.FieldDef.Getter < I , java.lang.Iterable < T > > getter ) { return new com.google.gerrit.index.FieldDef ( name , type , stored , true , getter ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.change.GetChange.cache ( json.format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.format ( rsrc ) ) ; }
Source:
public void go ( ) { errorDialog.hide ( ) ; super . go ( ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { refreshBranches ( ) ; super . onFailure ( caught ) ; }
Source:
public void usernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; assertCannotRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , u ) ; assertCanRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , d ) ; }

Target:
public void usernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.testing.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.testing.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.testing.Util.DEVS ) ; assertCannotRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , u ) ; assertCanRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , d ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; }
Source:
abstract java.lang.Runnable newDraftCallback ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
public void run ( ) { if ( cm.extras ( ) . hasActiveLine ( ) ) { newDraft ( cm ) ; } }
Source:
public void contextDestroyed ( final javax.servlet.ServletContextEvent event ) { com.google.gerrit.server.Lifecycle.stop ( dbInjector , sysInjector , sshInjector , webInjector ) ; super . contextDestroyed ( event ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.server.config.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public void commentOnWipChangeByOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnWipChangeByOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
protected void configure ( ) { factory ( RenameGroupOp.Factory.class ) ; factory ( MetaDataUpdate.InternalFactory.class ) ; bind ( MetaDataUpdate.Server.class ) ; }

Target:
protected void configure ( ) { factory ( RenameGroupOp.Factory.class ) ; factory ( MetaDataUpdate.InternalFactory.class ) ; bind ( MetaDataUpdate.Server.class ) ; bind ( com.google.gerrit.server.git.ReceiveConfig.class ) ; }
Source:
private static com.google.gerrit.server.git.CommitMergeStatus getCommitMergeStatus ( org.eclipse.jgit.errors.NoMergeBaseException.MergeBaseFailureReason reason ) { switch ( reason ) { case MULTIPLE_MERGE_BASES_NOT_SUPPORTED : case TOO_MANY_MERGE_BASES : default : return CommitMergeStatus.MANUAL_RECURSIVE_MERGE ; case CONFLICTS_DURING_MERGE_BASE_CALCULATION : return CommitMergeStatus.PATH_CONFLICT ; } }

Target:
private static com.google.gerrit.server.git.strategy.CommitMergeStatus getCommitMergeStatus ( org.eclipse.jgit.errors.NoMergeBaseException.MergeBaseFailureReason reason ) { switch ( reason ) { case MULTIPLE_MERGE_BASES_NOT_SUPPORTED : case TOO_MANY_MERGE_BASES : default : return com.google.gerrit.server.git.strategy.CommitMergeStatus.MANUAL_RECURSIVE_MERGE ; case CONFLICTS_DURING_MERGE_BASE_CALCULATION : return com.google.gerrit.server.git.strategy.CommitMergeStatus.PATH_CONFLICT ; } }
Source:
public void upsertComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { upsertDraftComment ( comment ) ; } else { deleteDraftCommentIfPresent ( comment ) ; upsertPublishedComment ( comment ) ; } }

Target:
public void insertComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { insertDraftComment ( comment ) ; } else { insertPublishedComment ( comment ) ; } }
Source:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.newIdent ( author , when , serverIdent , anonymousCowardName ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountInfo result ) { onCloseForm ( ) ; assigneeLink.setText ( result.name ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.AccountInfo result ) { onCloseForm ( ) ; setAssignee ( result ) ; com.google.gerrit.client.change.Reviewers reviewers = getReviewers ( ) ; if ( reviewers != null ) { reviewers.updateReviewerList ( ) ; } }
Source:
public com.google.gerrit.extensions.common.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 ( ) , true ) ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , java.util.Optional.empty ( ) , true ) ; }
Source:
public boolean match ( com.google.gerrit.reviewdb.PatchSetApproval p , short value ) { return ( p.getValue ( ) ) == value ; }

Target:
public boolean match ( short psValue , short expValue ) { return psValue == expValue ; }
Source:
protected com.google.gerrit.util.cli.CmdLineParser newCmdLineParser ( ) { return cmdLineParserFactory.create ( this ) ; }

Target:
protected void parseCommandLine ( ) throws com.google.gerrit.sshd.BaseCommand.UnloggedFailure { parseCommandLine ( this ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.AccountGroup.Id result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toAccountGroup ( result ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.AccountGroup.Id result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( result ) ) ; }
Source:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( ( ( ( "Cannot replicate to " + ( uri ) ) + "." ) + " It was canceled while running" ) , e ) ; }

Target:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( "Cannot replicate to {}. It was canceled while running" , uri , e ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.accountSettingsHeading ( ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.settingsHeading ( ) ) ; }
Source:
public static com.google.common.cache.CacheBuilder < java.lang.Object , java.lang.Object > newBuilder ( ) { return com.google.common.cache.CacheBuilder.newBuilder ( ) . maximumSize ( ( 1 << 10 ) ) . expireAfterWrite ( 30 , java.util.concurrent.TimeUnit.MINUTES ) ; }

Target:
public static com.google.common.cache.CacheBuilder < java.lang.Object , java.lang.Object > defaultBuilder ( ) { return com.google.common.cache.CacheBuilder.newBuilder ( ) . maximumSize ( ( 1 << 10 ) ) . expireAfterWrite ( 30 , java.util.concurrent.TimeUnit.MINUTES ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return getProjectControl ( ) . getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.project.RefControl getRefControl ( ) { return refControl ; }
Source:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.NotifyHandling notify ) throws java.lang.Exception { abandon ( changeId , by , EmailStrategy.ENABLED , notify ) ; }

Target:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy emailStrategy ) throws java.lang.Exception { abandon ( changeId , by , emailStrategy , null ) ; }
Source:
public void testUsernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.Util.grant ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = util.user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = util.user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; org.junit.Assert.assertFalse ( "u can't read" , u.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; org.junit.Assert.assertTrue ( "d can read" , d.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; }

Target:
public void testUsernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = util.user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = util.user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; org.junit.Assert.assertFalse ( "u can't read" , u.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; org.junit.Assert.assertTrue ( "d can read" , d.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > draftByAuthor ( com.google.gerrit.reviewdb.client.Account.Id author ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > draftByAuthor ( com.google.gerrit.reviewdb.client.Account.Id author ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public boolean isOk ( ) { return problems.isEmpty ( ) ; }

Target:
public boolean isOk ( ) { return ( status.compareTo ( Status.OK ) ) >= 0 ; }
Source:
public void testEvictProjectListOK ( ) throws java.lang.Exception { setupMocks ( Constants.PROJECT_LIST , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.PROJECT_LIST , new java.lang.Object ( ) ) ) . isTrue ( ) ; }

Target:
public void testEvictGroupsMembersOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS_MEMBERS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS_MEMBERS , org.mockito.Mockito.mock ( AccountGroup.UUID.class ) ) ) . isTrue ( ) ; }
Source:
org.kohsuke.args4j.spi.OptionHandler create ( com.google.gerrit.util.cli.CmdLineParser cmdLineParser , org.kohsuke.args4j.OptionDef optionDef , org.kohsuke.args4j.spi.Setter setter ) ;

Target:
org.kohsuke.args4j.spi.OptionHandler < T > create ( com.google.gerrit.util.cli.CmdLineParser cmdLineParser , org.kohsuke.args4j.OptionDef optionDef , org.kohsuke.args4j.spi.Setter < T > setter ) ;
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public com.google.gerrit.server.ssh.AbstractCommand create ( ) { return new com.google.gerrit.server.ssh.AdminFlushGroupCache ( ) ; }

Target:
public com.google.gerrit.server.ssh.AbstractCommand create ( ) { return new com.google.gerrit.server.ssh.AdminFlushCaches ( ) ; }
Source:
public boolean updateTeamModels ( java.util.Collection < com.gitblit.models.TeamModel > arg0 ) { return false ; }

Target:
public boolean supportsRoleChanges ( com.gitblit.models.UserModel user , com.gitblit.Constants.Role role ) { return false ; }
Source:
public void testCreateProjectWithNameMismatch_BadRequest ( ) throws java.io.IOException { com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = session.put ( "/projects/someName" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_BAD_REQUEST , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWithNameMismatch_BadRequest ( ) throws java.io.IOException { com.google.gerrit.server.project.CreateProject.Input in = new com.google.gerrit.server.project.CreateProject.Input ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = session.put ( "/projects/someName" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_BAD_REQUEST , r.getStatusCode ( ) ) ; }
Source:
public void testPushForMasterWithApprovals_ValueOutOfRange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master/%l=Code-Review-3" ) ; r.assertErrorStatus ( "label \"Code-Review\": -3 is not a valid value" ) ; }

Target:
public void pushForMasterWithApprovals_ValueOutOfRange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master/%l=Code-Review-3" ) ; r.assertErrorStatus ( "label \"Code-Review\": -3 is not a valid value" ) ; }
Source:
private final native void setStartLine ( int sl ) ;

Target:
private final native void set ( int sl , int sc , int el , int ec ) ;
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { event.preventDefault ( ) ; onLogin ( ) ; } }

Target:
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 ) ) { event.preventDefault ( ) ; onLogin ( ) ; } }
Source:
private org.eclipse.jgit.transport.PushCertificate newSignedCert ( java.lang.String nonce , com.google.gerrit.gpg.testutil.TestKey signingKey ) throws java.lang.Exception { return newSignedCert ( nonce , signingKey , null ) ; }

Target:
private org.eclipse.jgit.transport.PushCertificate newSignedCert ( java.lang.String nonce , com.google.gerrit.gpg.testing.TestKey signingKey ) throws java.lang.Exception { return newSignedCert ( nonce , signingKey , null ) ; }
Source:
static java.lang.String getDefaultTemplateMsgWithBursts ( java.lang.String rateLimitTypeName ) { return ( ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 0 ] ) + rateLimitTypeName ) + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 2 ] ) ; }

Target:
private static java.lang.String getDefaultTemplateMsgWithBursts ( java.lang.String rateLimitTypeName ) { return ( ( ( ( ( "Exceeded rate limit of " + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.RATE_LIMIT_TOKEN ) ) + " " ) + rateLimitTypeName ) + " requests/hour (or idle time used up in bursts of max " ) + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.BURSTS_LIMIT_TOKEN ) ) + " requests)" ; }
Source:
protected void configureServlets ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.JavaScriptPlugin ( "automerger.js" ) ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.JavaScriptPlugin ( "automerger.js" ) ) ; }
Source:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.multimaster.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.multimaster.forwarder.rest.RestEventForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.multimaster.event.EventModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.multimaster.index.IndexModule ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.multimaster.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.multimaster.forwarder.rest.RestForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.multimaster.event.EventModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.multimaster.index.IndexModule ( ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . < T > fromJson ( buildJsonRaw ( path , "" ) , typeOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , typeOfT ) ; }
Source:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { HEAD ( ( 5723.0F - 2.15 ) ) ; com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( ( ( "Cannot replicate to " + ( uri ) ) + ". It was canceled while running" ) , e ) ; }

Target:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( "Cannot replicate to {}. It was canceled while running" , uri , e ) ; }
Source:
public void singleHashtagNumeric ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n#123\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "123" ) ) ; }

Target:
public void singleHashtagNumeric ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n#123\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "123" ) ) ; }
Source:
boolean isOwner ( final com.google.gerrit.server.account.GroupMembership groups ) { return com.google.common.collect.Iterables.any ( tree ( ) , new com.google.common.base.Predicate < com.google.gerrit.server.project.ProjectState > ( ) { @ java.lang.Override public boolean apply ( com.google.gerrit.server.project.ProjectState in ) { return groups.containsAnyOf ( in.localOwners ) ; } } ) ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getAllOwners ( ) { java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > result = new java.util.HashSet < > ( ) ; for ( com.google.gerrit.server.project.ProjectState p : tree ( ) ) { result.addAll ( p.localOwners ) ; } return result ; }
Source:
public java.lang.Double get ( ) { return ( sys.getProcessCpuTime ( ) ) / 1.0E9 ; }

Target:
public java.lang.Double get ( ) { return ( provider.getProcessCpuTime ( ) ) / 1.0E9 ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) ; bind ( com.google.gerrit.server.git.GitProjectImporter.class ) ; }
Source:
com.google.gerrit.server.patch.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.patch.PatchListKey ( oldId , parentNum , newId , whitespace ) ; }

Target:
com.google.gerrit.server.patch.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.patch.PatchListKey ( oldId , parentNum , newId , whitespace , PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
public void remove ( ) { m.remove ( name.value ( ) , cmd ) ; }

Target:
public void remove ( ) { if ( ! ( m.remove ( name.value ( ) , commandProvider ) ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "can not unregister command: %s" , name.value ( ) ) ) ; } }
Source:
public void update ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , true ) ; } }

Target:
public void update ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , true ) ; } maybeFlush ( ) ; }
Source:
net.codemirror.lib.CodeMirror getCmA ( ) { return cmA ; }

Target:
com.google.gerrit.client.diff.ChunkManager getChunkManager ( ) { return chunkManager ; }
Source:
public void display ( final java.lang.String commitMessage ) { display ( null , null , false , commitMessage ) ; }

Target:
public void display ( java.lang.String commitMessage , com.google.gerrit.client.ui.CommentLinkProcessor commentLinkProcessor ) { display ( null , null , false , commitMessage , commentLinkProcessor ) ; }
Source:
public boolean isLoggedIn ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope ... scopes ) { return isLoggedIn ( new java.util.TreeSet < com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope > ( java.util.Arrays.asList ( scopes ) ) ) ; }

Target:
public com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol getOAuthProtocol ( ) { return oauth ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . screen ( "create" , new com.googlesource.gerrit.plugins.serviceuser.client.CreateServiceUserScreen.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . screen ( "create" , new com.googlesource.gerrit.plugins.serviceuser.client.CreateServiceUserScreen.Factory ( ) ) ; com.google.gerrit.plugin.client.Plugin.get ( ) . screen ( "admin" , new com.googlesource.gerrit.plugins.serviceuser.client.ServiceUserAdminScreen.Factory ( ) ) ; }
Source:
public com.google.gerrit.extensions.common.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.extensions.common.GroupInfo info = init ( rsrc.getGroup ( ) ) ; initMembersAndSubgroups ( rsrc , info ) ; return info ; }

Target:
public com.google.gerrit.extensions.common.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { return createGroupInfo ( rsrc.getGroup ( ) , rsrc :: getControl ) ; }
Source:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithInheritance ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( ( pluginName + ( com.google.gerrit.server.config.PluginConfigFactory.EXTENSION ) ) ) . getWithInheritance ( ) ; }

Target:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithMergedInheritance ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String pluginName ) throws com.google.gerrit.server.project.NoSuchProjectException { return getPluginConfig ( projectName , pluginName ) . getWithInheritance ( true ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doLinkIdentity ( ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { identites.deleteChecked ( ) ; }
Source:
public java.util.Map < com.google.gerrit.reviewdb.Account.Id , com.google.gerrit.server.account.AccountState > getAll ( java.lang.Iterable < com.google.gerrit.reviewdb.Account.Id > accountIds ) { return byId.getAll ( accountIds ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.AccountExternalId.Key key ) { return byExt.removeAsync ( key ) ; }
Source:
public int nextChangeId ( ) throws com.google.gwtorm.server.OrmException { if ( ! ( migration.readChangeSequence ( ) ) ) { return db.get ( ) . nextChangeId ( ) ; } return changeSeq.next ( ) ; }

Target:
public int nextChangeId ( ) throws com.google.gwtorm.server.OrmException { if ( ! ( migration.readChangeSequence ( ) ) ) { return com.google.gerrit.server.Sequences.nextChangeId ( db.get ( ) ) ; } return changeSeq.next ( ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsers , change.getProject ( ) , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsers , changeNoteUtil , commentsUtil , change.getProject ( ) , change ) ; }
Source:
public void evictParentGroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;

Target:
void evictSubgroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;
Source:
public static com.google.gerrit.client.rpc.RestApi change ( int id ) { return new com.google.gerrit.client.rpc.RestApi ( "/changes/" ) . id ( java.lang.String.valueOf ( id ) ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi change ( int id ) { return new com.google.gerrit.client.rpc.RestApi ( "changes" ) . id ( java.lang.String.valueOf ( id ) ) ; }
Source:
public void addReviewerToWipChange ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
private void addReviewerToWipChange ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
com.google.gerrit.server.permissions.PermissionBackend.ForChange asForChange ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.project.ChangeControl.ForChangeImpl ( cd ) ; }

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.project.ChangeControl.ForChangeImpl ( cd , db ) ; }
Source:
com.google.gerrit.server.git.SubmoduleOp create ( java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > updatedBranches , com.google.gerrit.server.git.MergeOpRepoManager orm ) ;

Target:
public com.google.gerrit.server.git.SubmoduleOp create ( java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > updatedBranches , com.google.gerrit.server.git.MergeOpRepoManager orm ) throws com.google.gerrit.server.git.SubmoduleException { return new com.google.gerrit.server.git.SubmoduleOp ( gitmodulesFactory , myIdent , cfg , projectCache , projectStateFactory , batchUpdateFactory , updatedBranches , orm ) ; }
Source:
public void deleteBranch ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > toRemove , final com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > > callback ) { deleteBranchesFactory.create ( projectName , toRemove ) . to ( callback ) ; }

Target:
public void deleteBranch ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > toRemove , final com.google.gwtjsonrpc.common.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > > callback ) { deleteBranchesFactory.create ( projectName , toRemove ) . to ( callback ) ; }
Source:
public java.lang.String getMessage ( ) { return escape ( message ) ; }

Target:
public java.lang.String getMessage ( ) { return clean ( message ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl stubChangeControl ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.stubChangeControl ( repoManager , c , changeOwner ) ; }

Target:
private com.google.gerrit.server.project.ChangeControl stubChangeControl ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.stubChangeControl ( repoManager , c , allUsers , changeOwner ) ; }
Source:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/groups/newGroup" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/groups/newGroup" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }
Source:
private java.lang.String newChange2 ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = HEAD ( 0 ) ; com.google.gerrit.acceptance.edit.Merge changes ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , testRepo , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD , java.nio.charset.StandardCharsets.UTF_8 ) ) ; return push.rm ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
Account.Id getAccountId ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) . getAccountId ( ) ; }

Target:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "unchanged" , unchanged ) . add ( "updated" , updated ) . add ( "deleted" , deleted ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . add ( "unchanged" , unchanged ) . add ( "updated" , updated ) . add ( "deleted" , deleted ) . toString ( ) ; }
Source:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.put ( "/projects/newProject" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/All-Projects" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_CONFLICT ) ; }
Source:
private final void setSide ( com.google.gerrit.common.changes.Side side ) { setSideRaw ( side.toString ( ) ) ; }

Target:
public final void side ( com.google.gerrit.common.changes.Side side ) { sideRaw ( side.toString ( ) ) ; }
Source:
private void insertDraftComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { createDraftUpdateIfNull ( ) ; draftUpdate.insertComment ( c ) ; }

Target:
com.google.gerrit.server.notedb.ChangeDraftUpdate createDraftUpdateIfNull ( ) { if ( ( draftUpdate ) == null ) { draftUpdate = draftUpdateFactory.create ( ctl , when ) ; } return draftUpdate ; }
Source:
protected void preDisplay ( com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.changes.ChangeList > result ) { display ( result ) ; }

Target:
protected void preDisplay ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeList > result ) { display ( result ) ; }
Source:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( "<p>A &lt;<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>&gt; B</p>" ) ; }

Target:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( ( "<p>A &lt;<a href=\"http://go.here/\" target=\"_blank\" rel=\"nofollow\"" + ">http://go.here/</a>&gt; B</p>" ) ) ; }
Source:
public void evictGroupsMembers ( ) throws java.io.IOException , javax.servlet.ServletException { setUp ( Constants.GROUPS_MEMBERS ) ; servlet.doPost ( request , response ) ; verifyAll ( ) ; }

Target:
public void evictGroupsMembers ( ) throws java.io.IOException , javax.servlet.ServletException { configureMocksFor ( Constants.GROUPS_MEMBERS ) ; servlet.doPost ( request , response ) ; verifyAll ( ) ; }
Source:
private void initUI ( ) { diffTable = new com.google.gerrit.client.patches.UnifiedDiffTable ( ) ; add ( diffTable ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; diffTable = new com.google.gerrit.client.patches.UnifiedDiffTable ( ) ; add ( diffTable ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.PatchScript result ) { if ( ( rpcSequence ) == rpcseq ) { onResult ( result , isFirst ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; contentTable.setCommentLinkProcessor ( commentLinkProcessor ) ; setTheme ( result.getTheme ( ) ) ; }
Source:
public void caseSensitiveName ( ) 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 ( "est" , "null@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "Establish" , "null@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "tESt" , "null@google.com" ) ) ) ; org.junit.Assert.assertFalse ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "tesTing" , "null@google.com" ) ) ) ; }

Target:
public void caseSensitiveName ( ) 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 ( "est" , "null@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "Establish" , "null@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "tESt" , "null@google.com" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "tesTing" , "null@google.com" ) ) ) . isFalse ( ) ; }
Source:
public T get ( java.lang.String pluginName , java.lang.String exportName ) { return items.get ( new com.google.gerrit.extensions.registration.DynamicMap.NamePair ( pluginName , exportName ) ) ; }

Target:
public T get ( java.lang.String pluginName , java.lang.String exportName ) { com.google.inject.Provider < T > p = items.get ( new com.google.gerrit.extensions.registration.DynamicMap.NamePair ( pluginName , exportName ) ) ; return p != null ? p.get ( ) : null ; }
Source:
public void setNotifyNewChanges ( final boolean a ) { notifyNewChanges = a ; }

Target:
public boolean isNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; } return false ; }
Source:
public void testUpsertTwoBothExistsing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 , 1 ) ; createClassUnderTest ( ) . upsert ( com.google.gwtorm.jdbc.TestJdbcAccess.TWO_ROWS ) ; }

Target:
public void testInsertOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement insert = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . insert ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( insert ) ; }
Source:
public org.apache.sshd.common.file.FileSystemView getNormalizedView ( ) { return this ; }

Target:
public java.lang.String getSeparator ( ) { return null ; }