auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.server.change.PatchSetInserter setValidateForReceiveCommits ( boolean validate ) { this . validateForReceiveCommits = validate ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setValidatePolicy ( com.google.gerrit.server.change.PatchSetInserter.ValidatePolicy validate ) { this . validatePolicy = com.google.common.base.Preconditions.checkNotNull ( validate ) ; return this ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onExpandAll ( null ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
private boolean can ( com.google.gerrit.extensions.api.access.GlobalOrPluginPermission perm ) throws com.google.gerrit.server.permissions.PermissionBackendException { return user.getCapabilities ( ) . doCanForDefaultPermissionBackend ( perm ) ; }

Target:
private boolean can ( com.google.gerrit.extensions.api.access.GlobalOrPluginPermission perm ) throws com.google.gerrit.server.permissions.PermissionBackendException { if ( ( cap ) == null ) { cap = capabilityFactory.create ( user ) ; } return cap.doCanForDefaultPermissionBackend ( perm ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user during ChangeIndexer" ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user during ChangeIndexer" ) ; }
Source:
public void setBranch ( final java.lang.String pattern ) { branch = pattern ; }

Target:
public void setBranch ( java.lang.String str ) { branch = str ; }
Source:
protected void configureServlets ( ) { serve ( "/say-hello/*" ) . with ( com.googlesource.gerrit.plugins.cookbook.HelloWorldServlet.class ) ; }

Target:
protected void configureServlets ( ) { serve ( "/say-hello/*" ) . with ( com.googlesource.gerrit.plugins.cookbook.HelloWorldServlet.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.JavaScriptPlugin ( "hello.js" ) ) ; }
Source:
public void addReviewerToReviewableChangeInNoteDbByOwnerCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
private void addReviewerToReviewableChangeInNoteDbByOwnerCcingSelfNotifyOwner ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void onLoad ( ) { setTitleText ( ( "Change " + ( changeId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( isAttached ( ) ) { display ( r ) ; } }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; message.setFocus ( true ) ; }

Target:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; message.setFocus ( true ) ; }
Source:
public void cleanupIndex ( ) { com.google.gerrit.elasticsearch.ElasticQueryChangesTest.node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.INDEX_NAME ) . execute ( ) ; com.google.gerrit.elasticsearch.ElasticQueryChangesTest.createIndexes ( ) ; }

Target:
public void cleanupIndex ( ) { if ( ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo ) != null ) { com.google.gerrit.elasticsearch.ElasticTestUtils.deleteIndexes ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo.node , com.google.gerrit.elasticsearch.ElasticQueryChangesTest.INDEX_NAME ) ; com.google.gerrit.elasticsearch.ElasticQueryChangesTest.createIndexes ( ) ; } }
Source:
public com.google.gerrit.server.group.AddIncludedGroups.PutIncludedGroup create ( final com.google.gerrit.server.group.GroupResource group , final java.lang.String id ) { return new com.google.gerrit.server.group.AddIncludedGroups.PutIncludedGroup ( put , com.google.gerrit.server.util.Url.decode ( id ) ) ; }

Target:
public com.google.gerrit.server.group.AddIncludedGroups.PutIncludedGroup create ( final com.google.gerrit.server.group.GroupResource group , final java.lang.String id ) { return new com.google.gerrit.server.group.AddIncludedGroups.PutIncludedGroup ( put , com.google.gerrit.extensions.restapi.Url.decode ( id ) ) ; }
Source:
public boolean isEnabled ( com.google.gerrit.server.change.RevisionResource resource ) { return resource.getControl ( ) . getProjectControl ( ) . canUpload ( ) ; }

Target:
public UiAction.Description getDescription ( com.google.gerrit.server.change.RevisionResource resource ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Cherry Pick" ) . setTitle ( "Cherry pick change to a different branch" ) . setVisible ( resource.getControl ( ) . getProjectControl ( ) . canUpload ( ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.ProjectDetail > event ) { display ( event.getValue ( ) ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.util.HashSet < com.google.gerrit.reviewdb.RefRight.Key > refRightIds = rights.getRefRightIdsChecked ( ) ; doDeleteRefRights ( refRightIds ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupType ( ) ; initMemberList ( ) ; initExternal ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; initMemberList ( ) ; initIncludeList ( ) ; initExternal ( ) ; }
Source:
protected java.util.List < com.google.gerrit.extensions.common.ChangeInfo > query ( java.lang.Object query ) throws java.lang.Exception { return query ( newQuery ( query ) ) ; }

Target:
protected java.util.List < java.lang.Integer > query ( java.lang.Object query ) throws java.lang.Exception { return com.google.gerrit.server.query.change.AbstractQueryChangesTest.query ( newQuery ( query ) ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }

Target:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < com.google.gwt.user.client.ui.SuggestOracle.Suggestion > event ) { if ( submitOnSelection ) { submitOnSelection = false ; doAddNew ( ) ; } }
Source:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , c ) . load ( ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes newChange ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , c ) . load ( ) ; }
Source:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; manager.start ( ) ; }

Target:
public void doFilter ( javax.servlet.ServletRequest req , javax.servlet.ServletResponse res , javax.servlet.FilterChain chain ) throws java.io.IOException , javax.servlet.ServletException { filter.doFilter ( req , res , chain ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.client.PatchSetApproval audit ) { if ( audit != null ) { return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; } return myIdent ; }

Target:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( ) throws com.google.gerrit.server.git.MergeException { return submitStrategyFactory.create ( destProject.getSubmitType ( ) , db , repo , rw , inserter , CAN_MERGE , alreadyAccepted , destBranch , destProject.isUseContentMerge ( ) ) ; }
Source:
protected void configureServlets ( ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertAuthFilter.class ) ; serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertLoginServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertAuthFilter.class ) ; serve ( "/login" , "/login/*" ) . with ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertLoginServlet.class ) ; }
Source:
public static com.google.gerrit.server.index.FieldDef.Builder < java.lang.String > exact ( java.lang.String name ) { return new com.google.gerrit.server.index.FieldDef.Builder ( FieldType.EXACT , name ) ; }

Target:
public static com.google.gerrit.index.FieldDef.Builder < java.lang.String > exact ( java.lang.String name ) { return new com.google.gerrit.index.FieldDef.Builder ( FieldType.EXACT , name ) ; }
Source:
public java.lang.String getPluginName ( java.io.File srcFile ) { java.lang.String srcFileName = srcFile.getName ( ) ; return srcFileName.substring ( 0 , ( ( srcFileName.length ( ) ) - ( com.googlesource.gerrit.plugins.cookbook.pluginprovider.HelloSshPluginProvider.SSH_EXT.length ( ) ) ) ) ; }

Target:
public java.lang.String getPluginName ( java.nio.file.Path srcPath ) { java.lang.String name = srcPath.getFileName ( ) . toString ( ) ; return name.substring ( 0 , ( ( name.length ( ) ) - ( com.googlesource.gerrit.plugins.cookbook.pluginprovider.HelloSshPluginProvider.SSH_EXT.length ( ) ) ) ) ; }
Source:
public void set ( F1 field1 , V value ) { com.google.gerrit.metrics.dropwizard.CallbackMetricImpl1.Impl1.getOrCreate ( field1 ) . value = value ; }

Target:
public void set ( F1 field1 , V value ) { BucketedCallback < V > . ValueGauge cell = com.google.gerrit.metrics.dropwizard.CallbackMetricImpl1.Impl1.getOrCreate ( field1 ) ; cell.value = value ; cell.set = true ; }
Source:
protected boolean onSave ( org.eclipse.jgit.lib.CommitBuilder commit ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected boolean onSave ( org.eclipse.jgit.lib.CommitBuilder commit ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { saveConfig ( ProjectConfig.PROJECT_CONFIG , cfg ) ; saveGroupList ( ) ; return true ; }
Source:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( changeId ) ; }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision , publish , deleteRevision , deleteChange ) ; } }
Source:
private java.lang.String urlDelete ( com.google.gerrit.reviewdb.client.Change c ) { return ( ( ( ( "/changes/" + ( c.getChangeId ( ) ) ) + "/edits/" ) + 0 ) + "/files/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }

Target:
private java.lang.String urlEdit2 ( ) { return ( "/changes/" + ( change2.getChangeId ( ) ) ) + "/edit/" ; }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( action ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }
Source:
public final boolean siteHasUsernames ( ) { if ( ( ( isCustomExtension ( ) ) && ( ( httpPasswordUrl ( ) ) != null ) ) && ( ! ( canEdit ( FieldName.USER_NAME ) ) ) ) { return false ; } return true ; }

Target:
public final boolean siteHasUsernames ( ) { if ( ( ( isCustomExtension ( ) ) && ( ( httpPasswordUrl ( ) ) != null ) ) && ( ! ( canEdit ( AccountFieldName.USER_NAME ) ) ) ) { return false ; } return true ; }
Source:
public void isEnabledForSingleRef ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + ( " ref = refs/heads/anyref\n" + " blockedFileExtension = jar" ) ) ) ; assertThat ( config.isEnabledForRef ( projectName , "refs/heads/anyref" ) ) . isTrue ( ) ; }

Target:
public void isEnabledForSingleRef ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + ( " ref = refs/heads/anyref\n" + " blockedFileExtension = jar" ) ) ) ; com.google.common.truth.Truth.assertThat ( config.isEnabledForRef ( projectName , "refs/heads/anyref" , "blockedFileExtension" ) ) . isTrue ( ) ; }
Source:
public void createMergeChange_Conflicts ( ) throws java.lang.Exception { changeInTwoBranches ( "shared.txt" , "shared.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "master" , "branchA" , ChangeStatus.NEW ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.RestApiException.class , "merge conflict" ) ; }

Target:
public void createMergeChange_Conflicts ( ) throws java.lang.Exception { changeInTwoBranches ( "branchA" , "shared.txt" , "branchB" , "shared.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "branchA" , "branchB" , "" ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.RestApiException.class , "merge conflict" ) ; }
Source:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Timestamp o ) { sb.append ( '"' ) ; sb.append ( o ) ; sb.append ( '"' ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Timestamp o ) { sb.append ( '"' ) ; sb.append ( com.google.gwtjsonrpc.client.JavaSqlTimestamp_JsonSerializer.toString ( o ) ) ; sb.append ( '"' ) ; }
Source:
public void nonexistentEmail ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; exception.expectMessage ( "cannot find account doesnotexist@invalid.com" ) ; gApi.projects ( ) . name ( normalProject.get ( ) ) . checkAccess ( new com.google.gerrit.extensions.api.config.AccessCheckInput ( "doesnotexist@invalid.com" , null ) ) ; }

Target:
public void nonexistentEmail ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; exception.expectMessage ( "cannot find account doesnotexist@invalid.com" ) ; com.google.gerrit.extensions.api.config.AccessCheckInput in = new com.google.gerrit.extensions.api.config.AccessCheckInput ( ) ; in.account = "doesnotexist@invalid.com" ; in.permission = "rebase" ; in.ref = "refs/heads/master" ; gApi.projects ( ) . name ( normalProject.get ( ) ) . checkAccess ( in ) ; }
Source:
public void setNew_MethodNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.server.account.PutUsername.Input in = new com.google.gerrit.server.account.PutUsername.Input ( ) ; in.username = "newUsername" ; adminSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) , in ) . assertMethodNotAllowed ( ) ; }

Target:
public void setNew_MethodNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.server.account.PutUsername.Input in = new com.google.gerrit.server.account.PutUsername.Input ( ) ; in.username = "newUsername" ; adminRestSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) , in ) . assertMethodNotAllowed ( ) ; }
Source:
protected void setDateText ( final java.lang.String dateText ) { header.setText ( 0 , 2 , dateText ) ; }

Target:
public void setAuthorNameText ( final java.lang.String authorEmail , final java.lang.String nameText ) { header.setWidget ( 0 , 0 , new com.google.gerrit.client.AvatarImage ( authorEmail , 26 ) ) ; header.setText ( 0 , 1 , nameText ) ; }
Source:
static java.lang.String editRefName ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { return java.lang.String.format ( "%s/edit-%d" , com.google.gerrit.reviewdb.client.RefNames.refsUsers ( accountId ) , changeId.get ( ) ) ; }

Target:
static java.lang.String editRefPrefix ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { return java.lang.String.format ( "%s/edit-%d/" , com.google.gerrit.reviewdb.client.RefNames.refsUsers ( accountId ) , changeId.get ( ) ) ; }
Source:
public com.googlesource.gerrit.plugins.oauth.Verb getAccessTokenVerb ( ) { return Verb.POST ; }

Target:
public org.scribe.model.Verb getAccessTokenVerb ( ) { return org.scribe.model.Verb.POST ; }
Source:
public boolean execute ( ) { editArea.setCursorPos ( msg.length ( ) ) ; return false ; }

Target:
public void execute ( ) { editArea.setFocus ( true ) ; if ( len > 0 ) { editArea.setCursorPos ( len ) ; } }
Source:
public void check ( com.google.gerrit.server.permissions.RefPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " not permitted" ) ) ; } }

Target:
public void check ( com.google.gerrit.server.permissions.RefPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( ( perm.describeForException ( ) ) + " not permitted for " ) + ( getRefName ( ) ) ) ) ; } }
Source:
private static synchronized com.google.gerrit.git.WorkQueue.Executor getDefaultQueue ( ) { if ( ( com.google.gerrit.git.WorkQueue.defaultQueue ) == null ) { com.google.gerrit.git.WorkQueue.defaultQueue = com.google.gerrit.git.WorkQueue.createQueue ( 1 , "WorkQueue" ) ; } return com.google.gerrit.git.WorkQueue.defaultQueue ; }

Target:
public synchronized com.google.gerrit.git.WorkQueue.Executor getDefaultQueue ( ) { if ( ( defaultQueue ) == null ) { defaultQueue = createQueue ( 1 , "WorkQueue" ) ; } return defaultQueue ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.DataSourceType.class ) . toInstance ( dst ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { if ( getCurrentUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( formatter , project , resource , revId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( formatter , project , resource , revId , metaConfigRevId ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setShowSiteHeader ( val ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { save.setEnabled ( true ) ; }
Source:
private java.util.Collection < com.google.gerrit.server.index.account.AccountIndex > getWriteIndexes ( ) { return ( indexes ) != null ? indexes.getWriteIndexes ( ) : java.util.Collections.singleton ( index ) ; }

Target:
private java.util.Collection < com.google.gerrit.server.index.account.AccountIndex > getWriteIndexes ( ) { if ( ( indexes ) != null ) { return indexes.getWriteIndexes ( ) ; } return ( index ) != null ? java.util.Collections.singleton ( index ) : com.google.common.collect.ImmutableSet.< com.google.gerrit.server.index.account.AccountIndex > of ( ) ; }
Source:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.reviewdb.Account.Id acct ) { return "dashboard," + ( acct.toString ( ) ) ; }

Target:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.reviewdb.Account.Id acct ) { return "/dashboard/" + ( acct.toString ( ) ) ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.reviewdb.AccountGroup item ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Link.toAccountGroup ( item.getId ( ) ) ) ; }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Link.toAccountGroup ( getRowItem ( row ) . getId ( ) ) ) ; }
Source:
public com.google.gerrit.extensions.common.GroupInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getGroup.apply ( rsrc ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve group" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.GroupInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getGroup.apply ( rsrc ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve group" , e ) ; } }
Source:
private java.lang.String urlPublishEdit ( ) { return ( urlDeleteEdit ( ) ) + "/publish/" ; }

Target:
private java.lang.String urlEditFile ( ) { return ( ( urlEdit ( ) ) + "/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }
Source:
com.googlesrouce.gerrit.plugins.github.git.GitClone create ( @ com.google.inject.assistedinject.Assisted ( value = "organisation" ) java.lang.String organisation , @ com.google.inject.assistedinject.Assisted ( value = "name" ) java.lang.String repository ) ;

Target:
com.googlesrouce.gerrit.plugins.github.git.GitClone create ( @ com.google.inject.assistedinject.Assisted ( value = "organisation" ) java.lang.String organisation , @ com.google.inject.assistedinject.Assisted ( value = "name" ) java.lang.String repository , @ com.google.inject.assistedinject.Assisted ( value = "description" ) java.lang.String description , @ com.google.inject.assistedinject.Assisted ( value = "username" ) java.lang.String username ) ;
Source:
public void setTitleText ( final java.lang.String text ) { com.google.gwt.user.client.DOM.setInnerText ( headerElem , text ) ; }

Target:
public void setTitleText ( final java.lang.String text ) { com.google.gwt.user.client.DOM.setInnerText ( headerText , text ) ; }
Source:
public com.google.gerrit.server.change.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Unignore" ) . setTitle ( "Unignore the change" ) . setVisible ( ( ( ! ( rsrc.isUserOwner ( ) ) ) && ( isIgnored ( rsrc ) ) ) ) ; }

Target:
private boolean canUnignore ( com.google.gerrit.server.change.ChangeResource rsrc ) { return ( ! ( rsrc.isUserOwner ( ) ) ) && ( isIgnored ( rsrc ) ) ; }
Source:
public java.lang.String getCookie ( com.gitblit.models.UserModel model ) { return null ; }

Target:
public java.lang.String getCookie ( com.gitblit.models.UserModel model ) { return model.cookie ; }
Source:
void visit ( com.google.gitiles.doc.DivNode node ) ;

Target:
public void setName ( java.lang.String name ) { this . name = name ; }
Source:
int getHeaderHeight ( ) { int h = patchSetSelectBoxA.getOffsetHeight ( ) ; if ( header ) { h += diffHeaderRow.getOffsetHeight ( ) ; } return h ; }

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:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.CurrentUser user ) ;

Target:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) ;
Source:
public < K , V > com.google.common.cache.Cache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def ) { return create ( def , false ) . build ( ) ; }

Target:
public < K , V > com.google.common.cache.Cache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def ) { return com.github.benmanes.caffeine.guava.CaffeinatedGuava.build ( create ( def , false ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
public com.google.common.collect.ImmutableSortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { return com.google.common.collect.ImmutableSortedSet.of ( ) ; }
Source:
public void setNotifyAllComments ( final boolean a ) { notifyAllComments = a ; }

Target:
public void setNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.NotifyType type , final boolean v ) { switch ( type ) { case NEW_CHANGES : notifyNewChanges = v ; break ; case ALL_COMMENTS : notifyAllComments = v ; break ; case SUBMITTED_CHANGES : notifySubmittedChanges = v ; break ; } }
Source:
public Change.Key getChangeKey ( ) { return null ; }

Target:
public Project.NameKey getProjectNameKey ( ) { return null ; }
Source:
void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) throws java.io.IOException ;

Target:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId ) ;
Source:
public com.google.gerrit.server.update.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.update.BatchUpdate.Op op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.update.BatchUpdate.InsertChangeOp ) ) , "use insertChange" ) ; com.google.common.base.Preconditions.checkNotNull ( op ) ; ops.put ( id , op ) ; return this ; }

Target:
public com.google.gerrit.server.update.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.update.BatchUpdateOp op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.update.InsertChangeOp ) ) , "use insertChange" ) ; com.google.common.base.Preconditions.checkNotNull ( op ) ; ops.put ( id , op ) ; return this ; }
Source:
private static PatchSet.Id str2PatchSetId ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String ps ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id , java.lang.Integer.parseInt ( ps.replaceFirst ( "\\+$" , "" ) ) , ps.endsWith ( "+" ) ) ; }

Target:
private static PatchSet.Id toPsId ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String psIdStr ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id , ( psIdStr.equals ( "edit" ) ? 0 : java.lang.Integer.parseInt ( psIdStr ) ) ) ; }
Source:
abstract void setShowLineNumbers ( boolean b ) ;

Target:
abstract boolean isSideBySide ( ) ;
Source:
protected org.eclipse.jgit.lfs.server.LargeFileRepository getLargeFileRepository ( ) { return repository ; }

Target:
protected org.eclipse.jgit.lfs.server.LargeFileRepository getRepository ( ) { return repository ; }
Source:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; downloadUrl = null ; downloadCommand = null ; }

Target:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; copySelfOnEmail = false ; downloadUrl = null ; downloadCommand = null ; }
Source:
public void visit ( org.pegdown.ast.TableRowNode node ) { com.google.common.base.Preconditions.checkState ( ( ( table ) != null ) , "%s must be in table" , node ) ; table.startRow ( ) ; wrapChildren ( "tr" , node ) ; }

Target:
private void mustBeInsideTable ( org.pegdown.ast.Node node ) { com.google.common.base.Preconditions.checkState ( ( ( table ) != null ) , "%s must be in table" , node ) ; }
Source:
protected com.google.inject.Injector createInjector ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; luceneConfig.setInt ( "index" , "lucene" , "testVersion" , 14 ) ; return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle , luceneConfig ) ; }

Target:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; luceneConfig.setInt ( "index" , "lucene" , "testVersion" , 14 ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig ) ) ; }
Source:
private boolean canRunUploadPack ( ) { for ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group : uploadGroups ) { if ( match ( group ) ) { return true ; } } return false ; }

Target:
private boolean canRunReceivePack ( ) { for ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group : receiveGroups ) { if ( match ( group ) ) { return true ; } } return false ; }
Source:
private void grant ( com.google.gerrit.reviewdb.Project.NameKey project , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , com.google.gerrit.reviewdb.AccountGroup.Id group , java.lang.String ref , int maxValue ) { grant ( project , categoryId , group , ref , maxValue , maxValue ) ; }

Target:
private void grant ( com.google.gerrit.reviewdb.Project.NameKey project , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , com.google.gerrit.reviewdb.AccountGroup.UUID group , java.lang.String ref , int maxValue ) { grant ( project , categoryId , group , ref , maxValue , maxValue ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForUser ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Account.Id owner ) throws java.lang.Exception { return newChange ( repo , null , owner , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeForBranch ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String branch ) throws java.lang.Exception { return newChange ( repo , null , branch , null , null ) ; }
Source:
protected static java.lang.String textFooterForChange ( java.lang.String changeId , java.lang.String timestamp ) { return ( ( ( ( ( ( "Gerrit-Change-Id: " + changeId ) + "\n" ) + "Gerrit-PatchSet: 1\n" ) + "Gerrit-MessageType: comment\n" ) + "Gerrit-Comment-Date: " ) + timestamp ) + "\n" ; }

Target:
protected static java.lang.String textFooterForChange ( int changeNumber , java.lang.String timestamp ) { return ( ( ( ( ( ( "Gerrit-Change-Number: " + changeNumber ) + "\n" ) + "Gerrit-PatchSet: 1\n" ) + "Gerrit-MessageType: comment\n" ) + "Gerrit-Comment-Date: " ) + timestamp ) + "\n" ; }
Source:
com.google.gerrit.extensions.common.CommentInfo format ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { return format ( c , true ) ; }

Target:
com.google.gerrit.server.change.CommentJson setFillAccounts ( boolean fillAccounts ) { this . fillAccounts = fillAccounts ; return this ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { addRight.setEnabled ( true ) ; nameTxt.setText ( "" ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { addRight.setEnabled ( true ) ; nameTxt.setText ( "" ) ; referenceTxt.setText ( "" ) ; display ( result ) ; }
Source:
public java.util.List < org.eclipse.jgit.dircache.DirCacheEditor.PathEdit > getPathEdits ( org.eclipse.jgit.lib.Repository repository ) { org.eclipse.jgit.dircache.DirCacheEditor.PathEdit changeContentEdit = new com.google.gerrit.server.edit.tree.ChangeFileContentModification.ChangeContent ( filePath , newContent , repository ) ; return java.util.Collections.singletonList ( changeContentEdit ) ; }

Target:
public java.util.List < org.eclipse.jgit.dircache.DirCacheEditor.PathEdit > getPathEdits ( org.eclipse.jgit.lib.Repository repository , org.eclipse.jgit.revwalk.RevCommit baseCommit ) { org.eclipse.jgit.dircache.DirCacheEditor.PathEdit changeContentEdit = new com.google.gerrit.server.edit.tree.ChangeFileContentModification.ChangeContent ( filePath , newContent , repository ) ; return java.util.Collections.singletonList ( changeContentEdit ) ; }
Source:
public static void main ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException , java.net.SocketException { com.google.gerrit.server.ssh.GerritSshDaemon.startSshd ( ) ; }

Target:
public int run ( ) throws java.lang.Exception { com.google.gerrit.server.ssh.GerritSshDaemon.startSshd ( ) ; return never ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.changes.ChangeInfo item ) { return item.legacy_id ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.changes.ChangeInfo item ) { return item.legacyId ( ) ; }
Source:
public final native int large_change ( ) ;

Target:
public final native java.lang.String replyTooltip ( ) ;
Source:
public void testLinkify_TrailingComma ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A http://go.here/, B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( "A <a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>, B" ) ; }

Target:
public void testLinkify_TrailingComma ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A http://go.here/, B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( ( "A <a href=\"http://go.here/\" target=\"_blank\" rel=\"nofollow\"" + ">http://go.here/</a>, B" ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; com.google.gerrit.client.Gerrit.doSignIn ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; com.google.gerrit.client.Gerrit.doSignIn ( com.google.gwt.user.client.History.getToken ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeResource > list ( ) { throw new java.lang.IllegalStateException ( "not yet implemented" ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeResource > list ( ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void copyStoredValues ( com.google.gerrit.rules.PrologEnvironment child ) { storedValues.putAll ( child.storedValues ) ; }

Target:
public void copyStoredValues ( com.google.gerrit.rules.PrologEnvironment child ) { storedValues.putAll ( child.storedValues ) ; setCleanup ( child.cleanup ) ; }
Source:
protected abstract java.lang.String parseCommandLine ( java.lang.String [ ] args ) throws com.google.gerrit.server.ssh.Failure ;

Target:
protected void preRun ( ) throws com.google.gerrit.server.ssh.Failure { super . preRun ( ) ; db = openReviewDb ( ) ; }
Source:
boolean yesno ( boolean def , java.lang.String msg ) ;

Target:
boolean yesno ( boolean defaultValue , java.lang.String message ) ;
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getEffectiveGroups ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership getEffectiveGroups ( ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; }
Source:
public static java.lang.String getSecureStoreClassName ( final java.io.File sitePath ) { if ( sitePath != null ) { return com.google.gerrit.server.config.GerritServerConfigModule.getSecureStoreFromGerritConfig ( sitePath ) ; } java.lang.String secureStoreProperty = java.lang.System.getProperty ( "gerrit.secure_store_class" ) ; return com.google.gerrit.server.config.GerritServerConfigModule.nullToDefault ( secureStoreProperty ) ; }

Target:
public static java.lang.String getSecureStoreClassName ( final java.nio.file.Path sitePath ) { if ( sitePath != null ) { return com.google.gerrit.server.config.GerritServerConfigModule.getSecureStoreFromGerritConfig ( sitePath ) ; } java.lang.String secureStoreProperty = java.lang.System.getProperty ( "gerrit.secure_store_class" ) ; return com.google.gerrit.server.config.GerritServerConfigModule.nullToDefault ( secureStoreProperty ) ; }
Source:
public void flush ( ) { synchronized ( byAccount ) { byAccount.clear ( ) ; } }

Target:
public void flush ( ) { synchronized ( byAccount ) { byAccount.clear ( ) ; } synchronized ( this ) { trustedIds = null ; } }
Source:
void finish ( ) throws java.io.UnsupportedEncodingException { id = java.net.URLEncoder.encode ( name , "UTF-8" ) ; }

Target:
void finish ( ) { id = com.google.gerrit.server.util.Url.encode ( name ) ; }
Source:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.server.project.ProjectControl ctl , com.google.gerrit.reviewdb.client.Change c , org.eclipse.jgit.revwalk.RevCommit rc ) ;

Target:
com.google.gerrit.server.change.ChangeInserter create ( org.eclipse.jgit.lib.Repository git , org.eclipse.jgit.revwalk.RevWalk revWalk , com.google.gerrit.server.project.ProjectControl ctl , com.google.gerrit.reviewdb.client.Change c , org.eclipse.jgit.revwalk.RevCommit rc ) ;
Source:
public final boolean isRepeatable ( ) { return false ; }

Target:
public static com.google.gerrit.server.index.FieldDef.Builder < java.sql.Timestamp > timestamp ( java.lang.String name ) { return new com.google.gerrit.server.index.FieldDef.Builder ( FieldType.TIMESTAMP , name ) ; }
Source:
public void run ( ) { openIndex.close ( ) ; }

Target:
public void markReady ( boolean ready ) throws java.io.IOException { openIndex.markReady ( ready ) ; }
Source:
public void contextDestroyed ( final javax.servlet.ServletContextEvent event ) { com.google.gerrit.server.Lifecycle.stop ( dbInjector , sysInjector , sshInjector , webInjector ) ; super . contextDestroyed ( event ) ; }

Target:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; manager.start ( ) ; }
Source:
com.google.gerrit.client.account.DiffPreferences getPrefs ( ) { return prefs ; }

Target:
void setStartSide ( com.google.gerrit.client.diff.DisplaySide startSide ) { this . startSide = startSide ; }
Source:
public static void capabilities ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.config.CapabilityInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "config/server/capabilities" ) . get ( cb ) ; }

Target:
public static void capabilities ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.config.CapabilityInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/config/server/capabilities/" ) . get ( cb ) ; }
Source:
protected com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) { return new com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall ( session.get ( ) , req , rsp ) ; }

Target:
protected com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) { final com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall call = new com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall ( session.get ( ) , req , rsp ) ; com.google.gerrit.httpd.rpc.GerritJsonServlet.currentCall.set ( call ) ; return call ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry entry ) { addExtensionPoints ( info , rev , entry ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; loadRevisionInfo ( ) ; }
Source:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInput ( ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = new com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput ( ) ; in.robotId = "happyRobot" ; in.robotRunId = "1" ; in.url = "http://www.happy-robot.com" ; in.line = 1 ; in.message = "nit: trailing whitespace" ; in.path = com.google.gerrit.acceptance.PushOneCommit.FILE_NAME ; return in ; }

Target:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInput ( ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = createRobotCommentInputWithMandatoryFields ( ) ; in.url = "http://www.happy-robot.com" ; in.properties = new java.util.HashMap < > ( ) ; in.properties.put ( "key1" , "value1" ) ; in.properties.put ( "key2" , "value2" ) ; return in ; }
Source:
public void onMouseMove ( com.google.gwt.event.dom.client.MouseMoveEvent event ) { resizePaddingWidget ( ) ; }

Target:
void setOpen ( boolean open ) { com.google.gwt.user.client.ui.UIObject.setVisible ( summary , ( ! open ) ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( p_view , open ) ; super . setOpen ( open ) ; }
Source:
public int compare ( final com.google.gerrit.client.reviewdb.ChangeApproval a , final com.google.gerrit.client.reviewdb.ChangeApproval b ) { return a.getGranted ( ) . compareTo ( b.getGranted ( ) ) ; }

Target:
public int compare ( final com.google.gerrit.client.reviewdb.PatchSetApproval a , final com.google.gerrit.client.reviewdb.PatchSetApproval b ) { return a.getGranted ( ) . compareTo ( b.getGranted ( ) ) ; }
Source:
public void stop ( ) { running = false ; int discarded = config.shutdown ( ) ; if ( discarded > 0 ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.log.warn ( java.lang.String.format ( "Cancelled %d replication events during shutdown" , discarded ) ) ; } }

Target:
public void stop ( ) { running = false ; int discarded = config.shutdown ( ) ; if ( discarded > 0 ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.warn ( java.lang.String.format ( "Cancelled %d replication events during shutdown" , discarded ) ) ; } }
Source:
private com.google.gerrit.server.patch.PatchList listFor ( com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( key , notes.getProjectName ( ) ) ; }

Target:
private com.google.gerrit.server.diff.PatchList listFor ( com.google.gerrit.server.diff.PatchListKey key ) throws com.google.gerrit.server.diff.PatchListNotAvailableException { return patchListCache.get ( key , notes.getProjectName ( ) ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.server.query.change.ChangeData cd ) { return executor.submit ( indexTask ( cd ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? executor.submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public static void addRpcStatusListener ( final com.google.gwtjsonrpc.client.RpcStatusListener l ) { assert ! ( com.google.gwtjsonrpc.client.JsonUtil.listeners.contains ( l ) ) ; com.google.gwtjsonrpc.client.JsonUtil.listeners.add ( l ) ; }

Target:
public static com.google.gwt.event.shared.HandlerRegistration addRpcStartHandler ( com.google.gwtjsonrpc.client.RpcStartHandler h ) { return com.google.gwtjsonrpc.client.JsonUtil.globalHandlers.addHandler ( com.google.gwtjsonrpc.client.RpcStartEvent.getType ( ) , h ) ; }
Source:
public boolean canListen ( org.apache.sshd.common.SshdSocketAddress address , org.apache.sshd.common.Session session ) { return false ; }

Target:
public boolean canConnect ( com.google.gerrit.sshd.Type type , org.apache.sshd.common.util.net.SshdSocketAddress address , org.apache.sshd.common.session.Session session ) { return false ; }
Source:
public void testLinkify_Parens ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A http://go.here/#m() B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "<p>A <a href=\"http://go.here/#m()\" target=\"_blank\">http://go.here/#m()</a> B</p>" , n.asString ( ) ) ; }

Target:
public void testLinkify_Parens1 ( ) { 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 (<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>) B</p>" ) ; }
Source:
public static com.google.gerrit.server.index.IndexConfig fromConfig ( org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.create ( cfg.getInt ( "index" , null , "maxLimit" , java.lang.Integer.MAX_VALUE ) ) ; }

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 void beforeTest ( ) throws java.lang.Exception { notesMigration = com.google.gerrit.testutil.NoteDbMode.newNotesMigrationFromEnv ( ) ; }

Target:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = com.google.gerrit.testing.NoteDbMode.newNotesMigrationFromEnv ( ) ; }