auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.server.change.ChangeInserter setDraft ( boolean draft ) { change.setStatus ( ( draft ? Change.Status.DRAFT : Change.Status.NEW ) ) ; patchSet.setDraft ( draft ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setDraft ( boolean draft ) { com.google.common.base.Preconditions.checkState ( ( ( change ) == null ) , "setDraft(boolean) only valid before creating change" ) ; return setStatus ( ( draft ? Change.Status.DRAFT : Change.Status.NEW ) ) ; }
Source:
public com.google.gerrit.server.query.InternalQuery < T > setLimit ( int n ) { queryProcessor.setLimit ( n ) ; return this ; }

Target:
public com.google.gerrit.server.query.InternalQuery < T > setLimit ( int n ) { queryProcessor.setUserProvidedLimit ( n ) ; return this ; }
Source:
public com.google.gitiles.doc.html.HtmlBuilder appendAndEscape ( java.lang.CharSequence in ) { try { finishActiveTag ( ) ; textBuf.append ( in ) ; return this ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalStateException ( e ) ; } }

Target:
public com.google.gitiles.doc.html.HtmlBuilder appendAndEscape ( java.lang.CharSequence in ) { try { finishActiveTag ( ) ; textBuf.append ( in ) ; return this ; } catch ( java.io.IOException e ) { throw new com.google.gitiles.doc.RuntimeIOException ( e ) ; } }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }
Source:
public void execute ( java.lang.Runnable command ) { com.google.common.truth.Truth.assertThat ( command.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Send event '%s' to target instance" , com.ericsson.gerrit.plugins.syncevents.EventHandlerTest.PLUGIN_NAME , null ) ) ; command.run ( ) ; }

Target:
public void execute ( java.lang.Runnable command ) { com.google.common.truth.Truth.assertThat ( command.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Send event '%s' to target instance" , com.ericsson.gerrit.plugins.highavailability.event.EventHandlerTest.PLUGIN_NAME , null ) ) ; command.run ( ) ; }
Source:
abstract void expandBefore ( int cnt ) ;

Target:
private void expandAll ( ) { expandSideAll ( ) ; if ( ( otherBar ) != null ) { otherBar.expandSideAll ( ) ; } manager.remove ( this , otherBar ) ; }
Source:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }

Target:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; install ( getIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }

Target:
public com.google.gwtjsonrpc.common.VoidResult run ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; return com.google.gwtjsonrpc.common.VoidResult.INSTANCE ; }
Source:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.account.AccountResource rsrc ) { return com.google.gerrit.server.account.AccountInfo.parse ( rsrc.getUser ( ) . getAccount ( ) , true ) ; }

Target:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountInfo.Loader loader = infoFactory.create ( true ) ; com.google.gerrit.server.account.AccountInfo info = loader.get ( rsrc.getUser ( ) . getAccountId ( ) ) ; loader.fill ( ) ; return info ; }
Source:
public java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > getWatchedProjects ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getWatchedProjects.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get watched projects" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > getWatchedProjects ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getWatchedProjects.apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get watched projects" , e ) ; } }
Source:
protected abstract V impl ( ) throws java.lang.Exception ;

Target:
protected abstract V impl ( com.google.gerrit.server.util.RequestContext ctx ) throws java.lang.Exception ;
Source:
private static void initDisableUnwantedKeys ( ) { for ( java.lang.String s : new java.lang.String [ ] { "C" , "J" , "K" , "O" , "R" , "U" , "Ctrl-C" } ) { net.codemirror.lib.CodeMirror.disableUnwantedKey ( "vim" , s ) ; } }

Target:
private static void initDisableUnwantedKeys ( ) { for ( java.lang.String s : new java.lang.String [ ] { "A" , "C" , "J" , "K" , "O" , "R" , "U" , "Ctrl-C" } ) { net.codemirror.lib.CodeMirror.disableUnwantedKey ( "vim" , s ) ; } }
Source:
private void setScopes ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope ... scopes ) { this . scopesSet = new java.util.TreeSet < com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope > ( java.util.Arrays.asList ( scopes ) ) ; }

Target:
public org.kohsuke.github.GitHub login ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken authToken ) throws java.io.IOException { this . token = authToken ; this . hub = org.kohsuke.github.GitHub.connectUsingOAuth ( authToken.access_token ) ; return this . hub ; }
Source:
public java.lang.String getProjectUrl ( java.lang.String projectName ) { return getBranchUrl ( projectName , Constants.HEAD ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , Constants.HEAD ) , com.google.gerrit.extensions.webui.WebLinkTarget.SELF ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > queryChanges ( java.lang.String queryString ) throws com.google.gerrit.server.query.QueryParseException , com.google.gwtorm.server.OrmException { return queryChanges ( com.google.common.collect.ImmutableList.of ( queryString ) ) . get ( 0 ) ; }

Target:
public com.google.gerrit.server.query.change.QueryResult queryByString ( java.lang.String queryString ) throws com.google.gerrit.server.query.QueryParseException , com.google.gwtorm.server.OrmException { return queryByStrings ( com.google.common.collect.ImmutableList.of ( queryString ) ) . get ( 0 ) ; }
Source:
public com.google.gerrit.reviewdb.server.ReviewDb open ( ) { return new com.google.gerrit.testutil.DisabledReviewDb ( ) ; }

Target:
public com.google.gerrit.reviewdb.server.ReviewDb open ( ) { return new com.google.gerrit.testing.DisabledReviewDb ( ) ; }
Source:
public void setCommandPrefix ( final java.lang.String prefix ) { this . commandPrefix = prefix ; }

Target:
void setName ( final java.lang.String prefix ) { this . commandName = prefix ; }
Source:
public static com.google.gerrit.server.project.DashboardResource projectDefault ( com.google.gerrit.server.project.ProjectControl ctl ) { return new com.google.gerrit.server.project.DashboardResource ( ctl , null , null , null , true ) ; }

Target:
public static com.google.gerrit.server.project.DashboardResource projectDefault ( com.google.gerrit.server.project.ProjectState projectState , com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.server.project.DashboardResource ( projectState , user , null , null , null , true ) ; }
Source:
void onEdit ( ) { if ( canEdit ) { com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; input.setText ( text.getText ( ) ) ; input.setFocus ( true ) ; } }

Target:
void onEdit ( ) { if ( canEdit ) { com.google.gwt.user.client.ui.UIObject.setVisible ( show , false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; input.setText ( text.getText ( ) ) ; input.setFocus ( true ) ; } }
Source:
private void injectRuleBase ( java.lang.String rules ) throws java.io.IOException { injectRuleBase ( rules , false ) ; }

Target:
private void injectRuleBase ( java.lang.String rules ) throws java.io.IOException { injectRuleBase ( rules , com.googlesource.gerrit.plugins.hooks.workflow.RuleBaseTest.RuleBaseKind.GLOBAL ) ; }
Source:
public static com.google.gerrit.server.index.IndexConfig create ( int maxLimit ) { com.google.common.base.Preconditions.checkArgument ( ( maxLimit > 0 ) , "maxLimit must be positive: %s" , maxLimit ) ; return new com.google.gerrit.server.index.AutoValue_IndexConfig ( maxLimit ) ; }

Target:
private static int checkLimit ( int limit , java.lang.String name ) { if ( limit == 0 ) { return java.lang.Integer.MAX_VALUE ; } com.google.common.base.Preconditions.checkArgument ( ( limit > 0 ) , "%s must be positive: %s" , name , limit ) ; return limit ; }
Source:
public java.lang.String getDisplayName ( ) { return project.getName ( ) ; }

Target:
public boolean isAllProjects ( ) { return allProjectsName.equals ( project.getNameKey ( ) ) ; }
Source:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.client.Account.Id to ) { if ( ( ! ( emailOnlyAuthors ) ) || ( authors.contains ( to ) ) ) { super . add ( rt , to ) ; } }

Target:
protected void add ( final com.google.gerrit.extensions.api.changes.RecipientType rt , final com.google.gerrit.reviewdb.client.Account.Id to ) { if ( ( ! ( emailOnlyAuthors ) ) || ( authors.contains ( to ) ) ) { super . add ( rt , to ) ; } }
Source:
java.lang.String buildCommand ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) ;

Target:
protected abstract java.lang.ProcessBuilder newBuildProcess ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) throws java.io.IOException ;
Source:
public static com.google.gerrit.extensions.common.BanCommitInput fromCommits ( java.util.List < java.lang.String > commits ) { com.google.gerrit.extensions.common.BanCommitInput in = new com.google.gerrit.extensions.common.BanCommitInput ( ) ; in.commits = commits ; return in ; }

Target:
public static com.google.gerrit.extensions.api.projects.BanCommitInput fromCommits ( java.util.List < java.lang.String > commits ) { com.google.gerrit.extensions.api.projects.BanCommitInput in = new com.google.gerrit.extensions.api.projects.BanCommitInput ( ) ; in.commits = commits ; return in ; }
Source:
void setOpen ( boolean open ) { resizePaddingWidget ( ) ; setRangeHighlight ( open ) ; }

Target:
void setOpen ( boolean open ) { resizePaddingWidget ( ) ; setRangeHighlight ( open ) ; getCm ( ) . focus ( ) ; }
Source:
public boolean canRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( Project.State.READ_ONLY ) ) || ( canWrite ( ) ) ; }

Target:
public boolean canRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.READ_ONLY ) ) || ( canWrite ( ) ) ; }
Source:
private void destroy ( final com.google.gerrit.reviewdb.ActiveSession.Key key ) throws com.google.gwtorm.client.OrmException { schema.activeSessions ( ) . deleteKeys ( java.util.Arrays.asList ( key ) ) ; cache.remove ( key ) ; }

Target:
private void destroy ( final com.google.gerrit.reviewdb.ActiveSession.Key key ) throws com.google.gwtorm.client.OrmException { schema.activeSessions ( ) . deleteKeys ( java.util.Arrays.asList ( key ) ) ; com.google.gerrit.server.util.FutureUtil.waitFor ( cache.removeAsync ( key ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.PatchScript result ) { if ( ( rpcSequence ) == rpcseq ) { script = result ; onResult ( ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent arg0 ) { if ( showFullFileBox.getValue ( ) ) { contextLines = com.google.gerrit.client.reviewdb.AccountGeneralPreferences.WHOLE_FILE_CONTEXT ; } else { initContextLines ( ) ; } refresh ( false ) ; }
Source:
private com.google.gitiles.doc.MarkdownToHtml repoIndexReadme ( ) { return readme ( view ) ; }

Target:
private com.google.gitiles.doc.MarkdownToHtml repoIndexReadme ( ) { return readme ( view , "README.md" ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm divide ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( ( t.doubleValue ( ) ) == 0 ) throw new com.googlecode.prolog_cafe.lang.EvaluationException ( "zero_divisor" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( ( ( this . val ) / ( t.doubleValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm divide ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( ( t.doubleValue ( ) ) == 0 ) throw new com.googlecode.prolog_cafe.exceptions.EvaluationException ( "zero_divisor" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( ( ( this . val ) / ( t.doubleValue ( ) ) ) ) ; }
Source:
void updateHead ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String newHeadName ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , FilterType.ALL ) ) { updateHead ( uri , newHeadName ) ; } }

Target:
public void onHeadUpdated ( com.google.gerrit.extensions.events.HeadUpdatedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , FilterType.ALL ) ) { updateHead ( uri , event.getNewHeadName ( ) ) ; } }
Source:
protected void onUnload ( ) { if ( ( signedInListener ) != null ) { com.google.gerrit.client.Gerrit.removeSignedInListener ( signedInListener ) ; } super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { if ( ( signedInListener ) != null ) { com.google.gerrit.client.Gerrit.removeSignOutHandler ( signedInListener ) ; } super . onUnload ( ) ; }
Source:
protected com.google.gerrit.reviewdb.client.Project.SubmitType getSubmitType ( ) { return com.google.gerrit.reviewdb.client.Project.SubmitType.MERGE_IF_NECESSARY ; }

Target:
protected com.google.gerrit.extensions.common.SubmitType getSubmitType ( ) { return com.google.gerrit.extensions.common.SubmitType.MERGE_IF_NECESSARY ; }
Source:
public void testEventSentFailed ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( false , "Error" , false ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }

Target:
public void testEventSentOK ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.SUCCESSFUL , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.EMPTY_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isTrue ( ) ; }
Source:
public int compare ( final com.google.gerrit.server.patch.PatchListEntry a , final com.google.gerrit.server.patch.PatchListEntry b ) { return a.getNewName ( ) . compareTo ( b.getNewName ( ) ) ; }

Target:
public int compare ( final com.google.gerrit.server.patch.PatchListEntry a , final com.google.gerrit.server.patch.PatchListEntry b ) { return com.google.gerrit.server.patch.PatchList.comparePaths ( a.getNewName ( ) , b.getNewName ( ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { post ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void rollback ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public void rollback ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public void dontSkipByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig validatorConfig = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , "" ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupCacheUUIDByName ( ) ) ; com.google.common.truth.Truth.assertThat ( validatorConfig.isEnabledForRef ( anyUser , projectName , "anyRef" , "anyOp" ) ) . isTrue ( ) ; }

Target:
public void dontSkipByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig validatorConfig = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , "" ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupByNameFinder ( ) ) ; com.google.common.truth.Truth.assertThat ( validatorConfig.isEnabledForRef ( anyUser , projectName , "anyRef" , "anyOp" ) ) . isTrue ( ) ; }
Source:
public void confirmInvalidToken_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = "invalidToken" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/config/server/email.confirm" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_UNPROCESSABLE_ENTITY ) ; }

Target:
public void confirmForOtherUser_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( user.getId ( ) , "new.mail@example.com" ) ; adminSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }
Source:
protected abstract com.google.gerrit.server.mail.send.ProjectWatch.Watchers getWatchers ( com.google.gerrit.server.account.WatchConfig.NotifyType type ) throws com.google.gwtorm.server.OrmException ;

Target:
protected abstract com.google.gerrit.server.mail.send.ProjectWatch.Watchers getWatchers ( com.google.gerrit.server.account.WatchConfig.NotifyType type , boolean includeWatchersFromNotifyConfig ) throws com.google.gwtorm.server.OrmException ;
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { remove ( ids ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { remove ( infos ) ; }
Source:
private boolean isEditeable ( 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.diff.FileInfo info ) { java.lang.String status = info.status ( ) ; return ( status == null ) || ( ! ( ChangeType.DELETED.matches ( status ) ) ) ; }
Source:
private com.google.gerrit.client.patches.CommentEditorPanel createEditor ( final com.google.gerrit.reviewdb.client.PatchLineComment newComment ) { int row = rowOf ( getElement ( ) ) ; int column = columnOf ( getElement ( ) ) ; return createCommentEditor ( ( row + 1 ) , column , newComment ) ; }

Target:
private com.google.gerrit.client.patches.CommentEditorPanel findOrCreateEditor ( com.google.gerrit.reviewdb.client.PatchLineComment newComment , boolean create ) { int row = rowOf ( getElement ( ) ) ; int column = columnOf ( getElement ( ) ) ; return findOrCreateCommentEditor ( ( row + 1 ) , column , newComment , create ) ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.project.FileResource ( parent.getNameKey ( ) , parent.getCommitId ( ) . getName ( ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.project.FileResource ( parent.getProject ( ) , parent.getCommit ( ) . getName ( ) , id.get ( ) ) ; }
Source:
private java.lang.String readEmail ( ) { java.lang.String email = ui.readString ( "admin@example.com" , "email" ) ; if ( ( email != null ) && ( ! ( org.apache.commons.validator.routines.EmailValidator.getInstance ( ) . isValid ( email ) ) ) ) { ui.message ( "error: invalid email address\n" ) ; return readEmail ( ) ; } return email ; }

Target:
private java.lang.String readEmail ( com.google.gerrit.reviewdb.client.AccountSshKey sshKey ) { java.lang.String defaultEmail = "admin@example.com" ; if ( ( sshKey != null ) && ( ( sshKey.getComment ( ) ) != null ) ) { java.lang.String c = sshKey.getComment ( ) . trim ( ) ; if ( org.apache.commons.validator.routines.EmailValidator.getInstance ( ) . isValid ( c ) ) { defaultEmail = c ; } } return readEmail ( defaultEmail ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showAddKeyBlock ( true ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doBrowse ( ) ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit writeCommit ( java.lang.String body ) throws java.lang.Exception { return writeCommit ( body , com.google.gerrit.server.notedb.ChangeNoteUtil.newIdent ( changeOwner.getAccount ( ) , com.google.gerrit.common.TimeUtil.nowTs ( ) , serverIdent , "Anonymous Coward" ) ) ; }

Target:
private org.eclipse.jgit.revwalk.RevCommit writeCommit ( java.lang.String body ) throws java.lang.Exception { return writeCommit ( body , changeNoteUtil.newIdent ( changeOwner.getAccount ( ) , com.google.gerrit.common.TimeUtil.nowTs ( ) , serverIdent , "Anonymous Coward" ) ) ; }
Source:
protected com.google.gwtorm.client.ResultSet < T > getBySqlIn ( final java.util.Collection < K > keys ) throws com.google.gwtorm.client.OrmException { return super . get ( keys ) ; }

Target:
protected com.google.gwtorm.server.ResultSet < T > getBySqlIn ( final java.util.Collection < K > keys ) throws com.google.gwtorm.server.OrmException { return super . get ( keys ) ; }
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
public void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String msg , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > cb ) { changeProjectAccessFactory.create ( projectName , com.google.gerrit.httpd.rpc.project.ProjectAdminServiceImpl.getBase ( baseRevision ) , sections , msg ) . to ( cb ) ; }
Source:
public static org.eclipse.jgit.transport.ReceiveCommand getCommand ( org.eclipse.jgit.lib.RefUpdate update , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { HEAD ( 2 ) ; com.google.gerrit.server.git.validators.a35a2 Merge ; }

Target:
public static org.eclipse.jgit.transport.ReceiveCommand getCommand ( org.eclipse.jgit.lib.RefUpdate update , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { return new org.eclipse.jgit.transport.ReceiveCommand ( update.getExpectedOldObjectId ( ) , update.getNewObjectId ( ) , update.getName ( ) , type ) ; }
Source:
public java.lang.String getAuthorizationUrl ( com.googlesource.gerrit.plugins.oauth.Token requestToken ) { return api.getAuthorizationUrl ( config ) ; }

Target:
public java.lang.String getAuthorizationUrl ( org.scribe.model.Token requestToken ) { return api.getAuthorizationUrl ( config ) ; }
Source:
public boolean canUpload ( ) { return canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.READ , ( ( short ) ( 2 ) ) ) ; }

Target:
public boolean canUploadMerges ( ) { return getProjectControl ( ) . controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH_MERGE ) ; }
Source:
java.lang.Runnable toggleA ( ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; } } ; }

Target:
void setUpBlameIconA ( net.codemirror.lib.CodeMirror cm , boolean isBase , com.google.gerrit.reviewdb.client.PatchSet.Id rev , java.lang.String path ) { patchSetSelectBoxA.setUpBlame ( cm , isBase , rev , path ) ; }
Source:
final native void path ( java.lang.String p ) ;

Target:
final native void restore_path ( java.lang.String p ) ;
Source:
public java.lang.String getUserName ( ) { return state ( ) . getUserName ( ) ; }

Target:
public java.lang.String getUserName ( ) { return state ( ) . getUserName ( ) . orElse ( null ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNewTag ( ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewTag ( ) ; }
Source:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacy_id ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }

Target:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacyId ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }
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.common.data.GroupDescription.Basic group ) throws com.google.gwtorm.server.OrmException { return createGroupInfo ( group , com.google.common.base.Suppliers.memoize ( ( ) -> groupControlFactory.controlFor ( group ) ) ) ; }
Source:
public com.google.gerrit.server.plugins.PluginScanner getScanner ( ) { return scanner ; }

Target:
public com.google.gerrit.server.plugins.PluginContentScanner getContentScanner ( ) { return scanner ; }
Source:
public java.lang.String toString ( ) { return ( "Label[" + ( label.format ( ) ) ) + ']' ; }

Target:
public java.lang.String toString ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return ( "LabelAs[" + ( label.format ( ) ) ) + ']' ; } return ( "Label[" + ( label.format ( ) ) ) + ']' ; }
Source:
public com.google.gerrit.extensions.common.CommentInfo update ( com.google.gerrit.extensions.api.changes.DraftInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putDraft.apply ( draft , in ) . value ( ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot update draft" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.CommentInfo update ( com.google.gerrit.extensions.api.changes.DraftInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putDraft.apply ( draft , in ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot update draft" , e ) ; } }
Source:
void onAutoHideDiffTableHeader ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.autoHideDiffTableHeader ( ( ! ( e.getValue ( ) ) ) ) ; view.setAutoHideDiffHeader ( ( ! ( e.getValue ( ) ) ) ) ; view.resizeCodeMirror ( ) ; }

Target:
void onExpandAllComments ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.expandAllComments ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.getCommentManager ( ) . setExpandAllComments ( prefs.expandAllComments ( ) ) ; } }
Source:
public void evaluate ( ) throws java.lang.Throwable { try { setUp ( ) ; statement.evaluate ( ) ; } finally { tearDown ( ) ; } }

Target:
public void evaluate ( ) throws java.lang.Throwable { try { setUp ( target ) ; base.evaluate ( ) ; } finally { tearDown ( ) ; } }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountProjectWatch > of ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { changes = com.google.gerrit.client.rpc.Natives.asList ( result ) ; base.setEnabled ( true ) ; base.setFocus ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { changes = com.google.gerrit.client.rpc.Natives.asList ( result ) ; updateControls ( true ) ; }
Source:
public final java.util.Set < java.lang.String > permitted_values ( ) { return com.google.gerrit.client.rpc.Natives.keys ( _permitted_values ( ) ) ; }

Target:
public final void init ( ) { if ( ( labels0 ( ) ) != null ) { labels0 ( ) . copyKeysIntoChildren ( "_name" ) ; } }
Source:
public static void updated ( final com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }

Target:
public static void updated ( final com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( new java.sql.Timestamp ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }
Source:
public void run ( ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; chunkManager.adjustPadding ( ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void run ( ) { resizeCodeMirror ( ) ; chunkManager.adjustPadding ( ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
protected void configure ( ) { its = createMock ( com.googlesource.gerrit.plugins.hooks.its.ItsFacade.class ) ; bind ( com.googlesource.gerrit.plugins.hooks.its.ItsFacade.class ) . toInstance ( its ) ; }

Target:
protected void configure ( ) { its = createMock ( com.googlesource.gerrit.plugins.hooks.its.ItsFacade.class ) ; bind ( com.googlesource.gerrit.plugins.hooks.its.ItsFacade.class ) . toInstance ( its ) ; addStandardCommentFactory = createMock ( AddStandardComment.Factory.class ) ; bind ( AddStandardComment.Factory.class ) . toInstance ( addStandardCommentFactory ) ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( filterTxt.getText ( ) ) ) { filterTxt.setText ( Util.C.defaultFilter ( ) ) ; filterTxt.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onResize ( final com.google.gwt.event.logical.shared.ResizeEvent event ) { sp.setSize ( "100%" , "100%" ) ; popup.setHeight ( "100%" ) ; popupPosition.setPosition ( preferredPopupWidth , popup.getOffsetHeight ( ) ) ; }
Source:
public void abandonReviewableChangeNotifyOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void abandonReviewableChangeNotifyOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.acceptance.server.mail.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
private com.google.gerrit.extensions.api.changes.DraftInput newDraft ( java.lang.String path , com.google.gerrit.extensions.client.Side side , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.DraftInput d = new com.google.gerrit.extensions.api.changes.DraftInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( d , path , side , line , message ) ; }

Target:
private static com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput newComment ( java.lang.String path , com.google.gerrit.extensions.client.Side side , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput c = new com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( c , path , side , null , line , message ) ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . context = new com.google.gerrit.sshd.SshScope.Context ( session.getAttribute ( SshSession.KEY ) , "" ) ; }

Target:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . context = sshScope.newContext ( session.getAttribute ( SshSession.KEY ) , "" ) ; }
Source:
public java.util.List < com.gitblit.models.UserModel > getAllUsers ( ) { return null ; }

Target:
public java.util.List < com.gitblit.models.UserModel > getAllUsers ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public com.google.gerrit.server.change.CommentInfo apply ( com.google.gerrit.server.change.DraftResource rsrc ) { return new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , null ) ; }

Target:
public com.google.gerrit.server.change.CommentInfo apply ( com.google.gerrit.server.change.DraftResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountInfo.Loader accountLoader = accountLoaderFactory.create ( true ) ; com.google.gerrit.server.change.CommentInfo ci = new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , accountLoader ) ; accountLoader.fill ( ) ; return ci ; }
Source:
static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > cansee ( com.google.gerrit.server.query.account.AccountQueryBuilder.Arguments args , com.google.gerrit.server.notedb.ChangeNotes changeNotes ) { return new com.google.gerrit.server.query.account.CanSeeChangePredicate ( args.db , args.changeControlFactory , args.userFactory , changeNotes ) ; BRANCH ( 354.0F ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > cansee ( com.google.gerrit.server.query.account.AccountQueryBuilder.Arguments args , com.google.gerrit.server.notedb.ChangeNotes changeNotes ) { return new com.google.gerrit.server.query.account.CanSeeChangePredicate ( args.db , args.permissionBackend , args.userFactory , changeNotes ) ; }
Source:
public net.sf.ehcache.config.CacheConfiguration getCacheConfiguration ( ) { return self ( ) . getCacheConfiguration ( ) ; }

Target:
public net.sf.ehcache.config.CacheConfiguration getCacheConfiguration ( ) { if ( ( self ) == null ) { return new net.sf.ehcache.config.CacheConfiguration ( ) ; } return self ( ) . getCacheConfiguration ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { com.google.gerrit.client.Gerrit.postSignIn ( result ) ; hide ( ) ; if ( ac != null ) { ac.onSuccess ( null ) ; } }

Target:
public void execute ( ) { hide ( ) ; com.google.gerrit.client.Gerrit.postSignIn ( result , ac ) ; }
Source:
public T decode ( byte [ ] buf ) { return decode ( com.google.protobuf.CodedInputStream.newInstance ( buf ) ) ; }

Target:
public java.nio.ByteBuffer encodeToByteBuffer ( T obj ) { java.nio.ByteBuffer data = java.nio.ByteBuffer.allocate ( sizeof ( obj ) ) ; encode ( obj , data ) ; data.flip ( ) ; return data ; }
Source:
public void visit ( org.pegdown.ast.ExpImageNode node ) { html.open ( "img" ) . attribute ( "src" , node.url ) . attribute ( "title" , node.title ) . attribute ( "alt" , com.google.gitiles.doc.MarkdownUtil.getInnerText ( node ) ) ; }

Target:
public void visit ( org.pegdown.ast.ExpImageNode node ) { html.open ( "img" ) . attribute ( "src" , resolveImageUrl ( node.url ) ) . attribute ( "title" , node.title ) . attribute ( "alt" , com.google.gitiles.doc.MarkdownUtil.getInnerText ( node ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }
Source:
private com.google.gerrit.server.project.ProjectData toProjectData ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) . toProjectData ( ) ; }

Target:
protected com.google.gerrit.server.project.ProjectData fromDocument ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) . toProjectData ( ) ; }
Source:
public void run ( ) { reindex ( ) ; }

Target:
public void run ( ) { try { reindex ( ) ; } finally { running.set ( false ) ; } }
Source:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publishDraftChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish change" , e ) ; } }

Target:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publishDraftChange.apply ( change , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot publish change" , e ) ; } }
Source:
public void evictAfterRename ( com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) ;

Target:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName , final com.google.gerrit.reviewdb.AccountGroup.NameKey newName ) ;
Source:
static org.eclipse.jgit.lib.ObjectId keyObjectId ( long keyId ) { java.nio.ByteBuffer buf = java.nio.ByteBuffer.wrap ( new byte [ org.eclipse.jgit.lib.Constants.OBJECT_ID_LENGTH ] ) ; buf.putLong ( keyId ) ; return org.eclipse.jgit.lib.ObjectId.fromRaw ( buf.array ( ) ) ; }

Target:
static org.eclipse.jgit.lib.ObjectId keyObjectId ( long keyId ) { byte [ ] buf = new byte [ org.eclipse.jgit.lib.Constants.OBJECT_ID_LENGTH ] ; org.eclipse.jgit.util.NB.encodeInt64 ( buf , 0 , keyId ) ; return org.eclipse.jgit.lib.ObjectId.fromRaw ( buf ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.extensions.common.RevisionInfo info ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.common.ChangeHookApiListener.unwrap ( db.get ( ) ) . patchSets ( ) . get ( PatchSet.Id.fromRef ( info.ref ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes getNotes ( com.google.gerrit.extensions.common.ChangeInfo info ) throws com.google.gwtorm.server.OrmException { try { return changeNotesFactory.createChecked ( new com.google.gerrit.reviewdb.client.Change.Id ( info._number ) ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }
Source:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return "/admin/groups/uuid-" + ( uuid.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return com.google.gerrit.common.PageLinks.toGroup ( uuid ) ; }
Source:
public void setMembers ( java.util.List < com.google.gerrit.reviewdb.client.AccountGroupMember > m ) { members = m ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.AccountGroupById > getIncludes ( ) { return includes ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.AccountGroup.Id result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.HistoryHandler.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.toAccountGroup ( result ) ) ; }
Source:
public com.google.gerrit.server.project.RefControl create ( final com.google.gerrit.server.project.ProjectControl projectControl , final java.lang.String ref ) { return new com.google.gerrit.server.project.RefControl ( projectControl , ref ) ; }

Target:
private com.google.gerrit.server.project.ProjectControl user ( com.google.gerrit.reviewdb.AccountGroup ... memberOf ) { return user ( null , memberOf ) ; }
Source:
public void copySettingsFrom ( final com.google.gerrit.client.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; submitType = update.submitType ; }

Target:
public void copySettingsFrom ( final com.google.gerrit.client.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; submitType = update.submitType ; }
Source:
public static final native net.codemirror.lib.KeyMap cloneKeyMap ( java.lang.String name ) ;

Target:
public static final native net.codemirror.lib.KeyMap getKeyMap ( java.lang.String name ) ;
Source:
public void testDefaultIsMIXED ( ) { org.junit.Assert.assertTrue ( ( ( create ( ) ) instanceof com.google.gerrit.server.mail.FromAddressGeneratorProvider.PatternGen ) ) ; }

Target:
public void testDefaultIsMIXED ( ) { com.google.common.truth.Truth.assertThat ( create ( ) ) . isInstanceOf ( FromAddressGeneratorProvider.PatternGen.class ) ; }
Source:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.NotifyHandling notify , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.Comment > comments ) ;

Target:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.NotifyHandling notify , com.google.common.collect.Multimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.Comment > comments ) ;
Source:
public void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , com.google.gerrit.reviewdb.server.ReviewDb db ) { }

Target:
public void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , java.util.Map < java.lang.String , java.lang.Short > oldApprovals , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
public void setPosition ( int offsetWidth , int offsetHeight ) { popup.setPopupPosition ( 390 , 120 ) ; }

Target:
public void setPosition ( int offsetWidth , int offsetHeight ) { popup.setPopupPosition ( 300 , 120 ) ; }
Source:
protected java.util.Set < com.google.gerrit.client.config.DownloadInfo.DownloadCommandInfo > getCommands ( com.google.gerrit.client.config.DownloadInfo.DownloadSchemeInfo schemeInfo ) { return schemeInfo.cloneCommands ( project ) ; }

Target:
protected java.util.Set < com.google.gerrit.client.info.DownloadInfo.DownloadCommandInfo > getCommands ( com.google.gerrit.client.info.DownloadInfo.DownloadSchemeInfo schemeInfo ) { return schemeInfo.cloneCommands ( project ) ; }
Source:
private java.lang.String link ( final com.google.gerrit.reviewdb.Project item ) { return com.google.gerrit.client.HistoryHandler.toProjectAdmin ( item.getNameKey ( ) , ProjectAdminScreen.INFO_TAB ) ; }

Target:
private java.lang.String link ( final com.google.gerrit.reviewdb.Project item ) { return com.google.gerrit.client.Dispatcher.toProjectAdmin ( item.getNameKey ( ) , ProjectAdminScreen.INFO_TAB ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameTxt.setText ( "" ) ; watches.insertWatch ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameTxt.setText ( "" ) ; watches.insertWatch ( result ) ; }