auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void autoReindexIfStale ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { if ( autoReindexIfStale ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = reindexIfStale ( uuid ) ; } }

Target:
private com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > reindexIfStaleAsync ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( batchExecutor.submit ( ( ) -> reindexIfStale ( uuid ) ) ) , IndexUtils.MAPPER ) ; }
Source:
void setResult ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.update.NoteDbBatchUpdate.ChangeResult result ) { com.google.gerrit.server.update.NoteDbBatchUpdate.ChangeResult old = results.putIfAbsent ( id , result ) ; com.google.common.base.Preconditions.checkArgument ( ( old == null ) , "result for change %s already set: %s" , id , old ) ; }

Target:
void setResult ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.update.FusedNoteDbBatchUpdate.ChangeResult result ) { com.google.gerrit.server.update.FusedNoteDbBatchUpdate.ChangeResult old = results.putIfAbsent ( id , result ) ; com.google.common.base.Preconditions.checkArgument ( ( old == null ) , "result for change %s already set: %s" , id , old ) ; }
Source:
public com.google.gitiles.GitilesView.Builder setRepositoryName ( java.lang.String repositoryName ) { if ( ( type ) == ( com.google.gitiles.GitilesView.Type.HOST_INDEX ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "cannot set repository name on %s view" , type ) ) ; } this . repositoryName = com.google.common.base.Preconditions.checkNotNull ( repositoryName ) ; return this ; }

Target:
public com.google.gitiles.GitilesView.Builder setRepositoryName ( java.lang.String repositoryName ) { switch ( type ) { case HOST_INDEX : throw new java.lang.IllegalStateException ( java.lang.String.format ( "cannot set repository name on %s view" , type ) ) ; default : this . repositoryName = com.google.common.base.Preconditions.checkNotNull ( repositoryName ) ; return this ; } }
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 ( "Unmark private" ) . setTitle ( "Unmark change as private" ) . setVisible ( rsrc.getControl ( ) . isOwner ( ) ) ; }

Target:
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 ( "Unmark private" ) . setTitle ( "Unmark change as private" ) . setVisible ( ( ( rsrc.getChange ( ) . isPrivate ( ) ) && ( rsrc.isUserOwner ( ) ) ) ) ; }
Source:
public java.lang.String describeForException ( ) { return "label " + ( label ( ) ) ; }

Target:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "labelAs " + ( name ) ; } return "label " + ( name ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { b.setEnabled ( false ) ; Util.MANAGE_SVC.publish ( patchSet.getId ( ) , new com.google.gerrit.client.changes.ChangeDetailCache.GerritWidgetCallback ( b ) ) ; }
Source:
private void fMilliseconds ( final java.lang.String name , final float ms ) { p.println ( java.lang.String.format ( " %1$-12s: %2$6.2f ms" , name , ms ) ) ; }

Target:
private java.lang.String count ( long cnt ) { if ( cnt == 0 ) { return "" ; } return java.lang.String.format ( "%6d" , cnt ) ; }
Source:
public void setAllowRegisterNewEmail ( final boolean r ) { allowRegisterNewEmail = r ; }

Target:
public boolean canEdit ( final com.google.gerrit.client.reviewdb.Account.FieldName f ) { return editableAccountFields.contains ( f ) ; }
Source:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 5 ) ; org.junit.Assert.assertEquals ( 2 , reviewers.size ( ) ) ; }

Target:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }
Source:
public void pushWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }

Target:
public void createChangeWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo info = gApi.changes ( ) . create ( new com.google.gerrit.extensions.common.ChangeInput ( project2.get ( ) , "master" , "empty change" ) ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.isPrivate ) . isNull ( ) ; }
Source:
protected void configure ( ) { factory ( ChangeDetailFactory.Factory.class ) ; factory ( PatchSetDetailFactory.Factory.class ) ; factory ( PatchSetPublishDetailFactory.Factory.class ) ; factory ( SubmitAction.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AbandonChange.Factory.class ) ; factory ( ChangeDetailFactory.Factory.class ) ; factory ( PatchSetDetailFactory.Factory.class ) ; factory ( PatchSetPublishDetailFactory.Factory.class ) ; factory ( SubmitAction.Factory.class ) ; }
Source:
public void postRun ( ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.InitStep step : steps ) { if ( ( step instanceof com.google.gerrit.pgm.init.InitPlugins ) && ( flags.skipPlugins ) ) { continue ; } step.postRun ( ) ; } }

Target:
public void postRun ( ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.api.InitStep step : steps ) { if ( ( step instanceof com.google.gerrit.pgm.init.InitPlugins ) && ( flags.skipPlugins ) ) { continue ; } step.postRun ( ) ; } }
Source:
public boolean isSubmit ( ) { return com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId.SUBMIT.get ( ) . equals ( getLabelId ( ) . get ( ) ) ; }

Target:
public boolean isSubmit ( ) { return com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId.SUBMIT.get ( ) . equals ( getLabel ( ) ) ; }
Source:
HEAD ( ) { }

Target:
com.google.gerrit.reviewdb.TrackingIdAccess trackingIds ( ) ;
Source:
public java.util.List < com.googlesource.gerrit.plugins.gitblit.MenuEntry > getEntries ( ) { return java.util.Arrays.asList ( ( ( userProvider.get ( ) ) instanceof com.google.gerrit.server.AnonymousUser ? restrictedMenuEntries : fullMenuEntries ) ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.gitblit.MenuEntry > getEntries ( ) { return java.util.Arrays.asList ( ( userProvider.get ( ) . isIdentifiedUser ( ) ? fullMenuEntries : restrictedMenuEntries ) , extraProjectEntries ) ; }
Source:
public com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData ( classData.className , classData.annotationValue , classData.interfaces ) ; }

Target:
public com.google.gerrit.server.plugins.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.ExtensionMetaData ( classData.className , classData.annotationValue ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.POST , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.POST , cb ) ; }
Source:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.account.AccountCapabilities > cb , java.lang.String ... filter ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/self/capabilities" ) . addParameter ( "q" , filter ) . get ( cb ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.AccountCapabilities > cb , java.lang.String ... filter ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/self/capabilities" ) . addParameter ( "q" , filter ) . get ( cb ) ; }
Source:
public void run ( ) { if ( cm.hasActiveLine ( ) ) { newDraft ( cm ) ; } }

Target:
public void run ( ) { if ( cm.extras ( ) . hasActiveLine ( ) ) { newDraft ( cm , ( ( cm.getLineNumber ( cm.extras ( ) . activeLine ( ) ) ) + 1 ) ) ; } }
Source:
default java.lang.String describeForException ( ) { return toString ( ) . toLowerCase ( java.util.Locale.US ) . replace ( '_' , ' ' ) ; }

Target:
static java.lang.String describeEnumValue ( java.lang.Enum < ? > value ) { return value.name ( ) . toLowerCase ( java.util.Locale.US ) . replace ( '_' , ' ' ) ; }
Source:
public void run ( ) { ( header.hasPrev ( ) ? header.prev : header.up ) . go ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.toggleReviewed ( ) . run ( ) ; }
Source:
private void initUserAuth ( final com.google.gerrit.server.GerritServer srv ) { setUserAuthFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.server.UserAuth > > asList ( new org.apache.sshd.server.auth.UserAuthPublicKey.Factory ( ) ) ) ; setPublickeyAuthenticator ( new com.google.gerrit.server.ssh.DatabasePubKeyAuth ( srv ) ) ; }

Target:
private void initUserAuth ( final org.apache.sshd.server.PublickeyAuthenticator pubkey ) { setUserAuthFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.server.UserAuth > > asList ( new org.apache.sshd.server.auth.UserAuthPublicKey.Factory ( ) ) ) ; setPublickeyAuthenticator ( pubkey ) ; }
Source:
public void afterTest ( ) { }

Target:
public void afterTest ( ) { notesMigration.resetFromEnv ( ) ; }
Source:
public com.google.gerrit.client.rpc.RestApi data ( java.lang.String data ) { contentType = "text/plain; charset=utf-8" ; contentData = data ; return this ; }

Target:
public com.google.gerrit.client.rpc.RestApi data ( com.google.gwt.json.client.JSONObject obj ) { contentType = ( com.google.gerrit.client.rpc.RestApi.JSON_TYPE ) + "; charset=utf-8" ; contentData = obj.toString ( ) ; return this ; }
Source:
private void publishMessageOnly ( ) throws com.google.gwtorm.client.OrmException { message ( null ) ; }

Target:
private void publishMessageOnly ( ) throws com.google.gwtorm.client.OrmException { java.lang.StringBuilder msgbuf = new java.lang.StringBuilder ( ) ; summarizeInlineComments ( msgbuf ) ; message ( msgbuf.toString ( ) ) ; }
Source:
public final java.lang.String id_abbreviated ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( id ( ) ) . abbreviate ( ) ; }

Target:
public final java.lang.String id_abbreviated ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change_id ( ) ) . abbreviate ( ) ; }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) ;

Target:
com.google.gerrit.server.CurrentUser getUser ( ) ;
Source:
public boolean hasTeamAccess ( java.lang.String repositoryName ) { for ( com.gitblit.models.TeamModel team : teams ) { if ( team.hasRepository ( repositoryName ) ) { return true ; } } return false ; }

Target:
public boolean hasTeamAccess ( java.lang.String repositoryName ) { for ( com.gitblit.models.TeamModel team : teams ) { if ( team.hasRepositoryPermission ( repositoryName ) ) { return true ; } } return false ; }
Source:
void onRevert ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.RevertAction.call ( cherrypick , changeId , revision , project , subject ) ; }

Target:
void onRevert ( com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.RevertAction.call ( revert , changeId , revision , project , subject ) ; }
Source:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; manager.start ( ) ; }

Target:
public void init ( javax.servlet.FilterConfig cfg ) throws javax.servlet.ServletException { contextInitialized ( new javax.servlet.ServletContextEvent ( cfg.getServletContext ( ) ) ) ; init ( ) ; manager.start ( ) ; }
Source:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( context.get ( ) , "0" , "LOGOUT" ) ; }

Target:
void onLogout ( ) { org.apache.log4j.spi.LoggingEvent entry = log ( "LOGOUT" ) ; if ( ( async ) != null ) { async.append ( entry ) ; } audit ( context.get ( ) , "0" , "LOGOUT" ) ; }
Source:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.git.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( c.getChangeId ( ) ) ) ) . currentPatchSetId ( ) ; }

Target:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( c.getChangeId ( ) ) ) ) . currentPatchSetId ( ) ; }
Source:
public void negativeStartLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( ( - 1 ) , 2 , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void negativeStartLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( ( - 1 ) , 2 , 19 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public java.lang.Object createEntry ( final java.lang.Object key ) throws java.lang.Exception { return lookup ( ( ( java.lang.String ) ( key ) ) ) ; }

Target:
protected java.util.Set < com.google.gerrit.client.reviewdb.Account.Id > createEntry ( final java.lang.String key ) throws java.lang.Exception { return lookup ( key ) ; }
Source:
public void setAuthorNameText ( final java.lang.String nameText ) { header.setText ( 0 , 0 , nameText ) ; }

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:
void submit ( com.googlesource.gerrit.plugins.hooks.HookArgs args ) { queue.submit ( path , args ) ; }

Target:
com.googlesource.gerrit.plugins.hooks.HookResult execute ( com.googlesource.gerrit.plugins.hooks.HookArgs args ) { queue.submit ( path , args ) ; return null ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enable ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
protected void configure ( ) { install ( new com.google.inject.servlet.ServletModule ( ) { @ java.lang.Override protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.httpd.RequestCleanupFilter.class ) ; } } ) ; bind ( com.google.gerrit.server.util.RequestScopePropagator.class ) . to ( com.google.gerrit.server.util.GuiceRequestScopePropagator.class ) ; if ( wantSSL ) { install ( new com.google.gerrit.httpd.RequireSslFilter.Module ( ) ) ; } switch ( authConfig.getAuthType ( ) ) { case HTTP : case HTTP_LDAP : install ( new com.google.gerrit.httpd.auth.container.HttpAuthModule ( ) ) ; break ; case CLIENT_SSL_CERT_LDAP : install ( new com.google.gerrit.httpd.auth.container.HttpsClientSslCertModule ( ) ) ; break ; case LDAP : case LDAP_BIND : install ( new com.google.gerrit.httpd.auth.ldap.LdapAuthModule ( ) ) ; break ; case DEVELOPMENT_BECOME_ANY_ACCOUNT : install ( new com.google.inject.servlet.ServletModule ( ) { @ java.lang.Override protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.httpd.auth.become.BecomeAnyAccountLoginServlet.class ) ; } } ) ; break ; case OPENID : case CUSTOM_EXTENSION : break ; default : throw new com.google.inject.ProvisionException ( ( "Unsupported loginType: " + ( authConfig.getAuthType ( ) ) ) ) ; } install ( new com.google.gerrit.httpd.UrlModule ( urlConfig ) ) ; install ( new com.google.gerrit.httpd.rpc.UiRpcModule ( ) ) ; install ( new com.google.gerrit.server.config.GerritRequestModule ( ) ) ; install ( new com.google.gerrit.httpd.GitOverHttpServlet.Module ( ) ) ; bind ( com.google.gerrit.httpd.GitWebConfig.class ) . toInstance ( gitWebConfig ) ; if ( ( gitWebConfig.getGitwebCGI ( ) ) != null ) { install ( new com.google.gerrit.httpd.gitweb.GitWebModule ( ) ) ; } bind ( com.google.gerrit.server.contact.ContactStore.class ) . toProvider ( com.google.gerrit.server.contact.ContactStoreProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.httpd.GerritConfigProvider.class ) ; bind ( com.google.gerrit.common.data.GerritConfig.class ) . toProvider ( com.google.gerrit.httpd.GerritConfigProvider.class ) ; bind ( com.google.gerrit.server.account.AccountManager.class ) ; bind ( com.google.gerrit.server.CurrentUser.class ) ; factory ( ChangeUserName.Factory.class ) ; factory ( ClearPassword.Factory.class ) ; factory ( CmdLineParser.Factory.class ) ; factory ( GeneratePassword.Factory.class ) ; bind ( java.net.SocketAddress.class ) . annotatedWith ( com.google.gerrit.server.RemotePeer.class ) . toProvider ( com.google.gerrit.httpd.HttpRemotePeerProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toProvider ( com.google.gerrit.httpd.HttpCurrentUserProvider.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.httpd.HttpIdentifiedUserProvider.class ) ; }

Target:
protected void configure ( ) { listener ( ) . toInstance ( com.google.gerrit.extensions.registration.PrivateInternals_DynamicTypes.registerInParentInjectors ( ) ) ; }
Source:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) ) ; assertProblems ( cert ) ; }

Target:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert ) ; }
Source:
public java.lang.String toString ( ) { return toHeaderString ( ) ; }

Target:
public java.lang.String toString ( ) { try { return toHeaderString ( ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "Cannot encode address" , e ) ; } }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { reviewers.onOpenForm ( ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { star.setValue ( ( ! ( star.getValue ( ) ) ) , true ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public boolean supportsTeamMembershipChanges ( com.gitblit.models.TeamModel team ) { return false ; }

Target:
public boolean supportsCookies ( ) { return false ; }
Source:
public void doClaSignupHook ( com.google.gerrit.reviewdb.Account account , com.google.gerrit.reviewdb.ContributorAgreement cla ) ;

Target:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.common.data.ContributorAgreement cla ) ;
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHContent getFileContent ( java.lang.String path , java.lang.String ref ) throws java.io.IOException { return ghRepository.getFileContent ( path , ref ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHContent getFileContent ( java.lang.String path , java.lang.String ref ) throws java.io.IOException { return ghRepository.getFileContent ( path , ref ) ; }
Source:
public final native void matchBrackets ( boolean m ) ;

Target:
public final native void skipUnchanged ( java.lang.Boolean s ) ;
Source:
protected void bindOneDelete ( java.sql.PreparedStatement ps , com.google.gwtorm.jdbc.TestJdbcAccess.Data entity ) throws java.sql.SQLException { ps.setInt ( 1 , entity.id ) ; }

Target:
protected void bindOneInsert ( java.sql.PreparedStatement ps , com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data entity ) throws java.sql.SQLException { ps.setInt ( 1 , entity.id ) ; }
Source:
protected void onUnload ( ) { super . onUnload ( ) ; closePopup ( ) ; }

Target:
protected void openRow ( java.lang.String projectName ) { nameBox.setText ( projectName ) ; doAddNew ( ) ; }
Source:
public void addCollaborators ( com.googlesrouce.gerrit.plugins.github.git.GHUser ... users ) throws java.io.IOException { ghRepository.addCollaborators ( users ) ; }

Target:
public void addCollaborators ( com.googlesource.gerrit.plugins.github.git.GHUser ... users ) throws java.io.IOException { ghRepository.addCollaborators ( users ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.DELETE_ENTRY , edit , file , null , null ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( edit , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }
Source:
public java.lang.String getAvatarUrl ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return getAvatar.apply ( account ) . location ( ) ; }

Target:
public java.lang.String getAvatarUrl ( int size ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.server.account.GetAvatar myGetAvatar = getAvatar.get ( ) ; myGetAvatar.setSize ( size ) ; return myGetAvatar.apply ( account ) . location ( ) ; }
Source:
public boolean enabled ( ) { return ( writeChanges ( ) ) || ( readChanges ( ) ) ; }

Target:
public boolean enabled ( ) { return ( ( ( writeChanges ( ) ) || ( readChanges ( ) ) ) || ( writeAccounts ( ) ) ) || ( readAccounts ( ) ) ; }
Source:
private void initEditor ( java.lang.String content ) { cm = net.codemirror.lib.CodeMirror.create ( editor , getConfig ( ) ) ; cm.setValue ( content ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { prefs.syntaxHighlighting ( false ) ; }
Source:
public void delete ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public void delete ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { delete ( changeDataFactory.create ( db , change ) ) ; }
Source:
java.lang.String idFromHeader ( org.pegdown.ast.HeaderNode header ) { return ids.get ( header ) ; }

Target:
java.lang.String idFromHeader ( org.commonmark.node.Heading header ) { return ids.get ( header ) ; }
Source:
public void addIntHeader ( java.lang.String name , int value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addIntHeader ( java.lang.String name , int value ) { headers.put ( name , java.lang.Integer.toString ( value ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { done.setEnabled ( true ) ; setOpen ( false ) ; getCommentManager ( ) . addDraftBox ( getCm ( ) . side ( ) , result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { done.setEnabled ( true ) ; setOpen ( false ) ; getCommentManager ( ) . addDraftBox ( displaySide , result ) ; }
Source:
public static void add ( com.google.gerrit.reviewdb.client.Change.Id change , com.google.gerrit.client.changes.ChangeInfo.RevisionInfo info ) { com.google.gerrit.client.changes.RevisionInfoCache.IMPL.psToCommit.put ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( change , info._number ( ) ) , info.name ( ) ) ; }

Target:
public static void add ( com.google.gerrit.reviewdb.client.Change.Id change , com.google.gerrit.client.info.ChangeInfo.RevisionInfo info ) { com.google.gerrit.client.changes.RevisionInfoCache.IMPL.psToCommit.put ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( change , info._number ( ) ) , info.name ( ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; initExternal ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initUUID ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; initExternal ( ) ; }
Source:
void setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; }

Target:
boolean setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; return ( ( maxRetries ) == 0 ) || ( ( retryCount ) <= ( maxRetries ) ) ; }
Source:
private static int getInt ( org.eclipse.jgit.transport.RemoteConfig rc , org.eclipse.jgit.lib.Config cfg , java.lang.String name , int defValue ) { return cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ; }

Target:
public void start ( com.google.gerrit.server.git.WorkQueue workQueue ) { java.lang.String poolName = "ReplicateTo-" + ( config.getRemoteConfig ( ) . getName ( ) ) ; pool = workQueue.createQueue ( config.getPoolThreads ( ) , poolName ) ; }
Source:
public void setup ( com.gitblit.IStoredSettings settings ) { }

Target:
public void setCookie ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response , com.gitblit.models.UserModel user ) { }
Source:
public static boolean isDisabled ( org.eclipse.jgit.lib.Config cfg ) { return ( "" . equals ( cfg.getString ( "gitweb" , null , "url" ) ) ) || ( "" . equals ( cfg.getString ( "gitweb" , null , "cgi" ) ) ) ; }

Target:
public static boolean isDisabled ( org.eclipse.jgit.lib.Config cfg ) { return ( com.google.gerrit.server.config.GitWebConfig.isEmptyString ( cfg , "gitweb" , null , "url" ) ) || ( com.google.gerrit.server.config.GitWebConfig.isEmptyString ( cfg , "gitweb" , null , "cgi" ) ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo apply ( com.google.gerrit.reviewdb.client.Account.Id id ) { return accountLoader.get ( id ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson lazyLoad ( boolean load ) { lazyLoad = load ; return this ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE_STARRED ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeQuery ( "is:starred" ) ) ; }
Source:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { view.getCmB ( ) . focus ( ) ; popup = null ; current = null ; }

Target:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { view.getCmFromSide ( DisplaySide.B ) . focus ( ) ; popup = null ; current = null ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { patchSetInserter.postUpdate ( ctx ) ; }

Target:
public void postUpdate ( com.google.gerrit.server.update.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { patchSetInserter.postUpdate ( ctx ) ; }
Source:
private void subSecondResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( 100 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }

Target:
private void superWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( ( ( ChangeRebuilder.MAX_WINDOW_MS ) * 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }
Source:
private com.google.gerrit.server.patch.PatchListKey keyFor ( final com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { return new com.google.gerrit.server.patch.PatchListKey ( aId , bId , whitespace ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey keyFor ( final com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { if ( ( parentNum ) < 0 ) { return new com.google.gerrit.server.patch.PatchListKey ( aId , bId , whitespace ) ; } return com.google.gerrit.server.patch.PatchListKey.againstParentNum ( ( ( parentNum ) + 1 ) , bId , whitespace ) ; }
Source:
protected Account.Id getAccountId ( ) { return session.getAttribute ( SshUtil.CURRENT_ACCOUNT ) ; }

Target:
protected Account.Id getAccountId ( ) { return currentUser.getAccountId ( ) ; }
Source:
java.util.Collection < com.google.gerrit.reviewdb.client.AccountGroup.UUID > subgroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) ;

Target:
java.util.Collection < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getGroupsWithMember ( com.google.gerrit.reviewdb.client.Account.Id memberId ) ;
Source:
public void cleanupIndex ( ) { com.google.gerrit.elasticsearch.ElasticQueryChangesTest.node.client ( ) . admin ( ) . indices ( ) . prepareDelete ( "gerrit" ) . execute ( ) ; com.google.gerrit.elasticsearch.ElasticQueryChangesTest.createIndexes ( ) ; }

Target:
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 ( ) ; }
Source:
public com.google.gerrit.server.query.Predicate < T > parse ( java.lang.String query ) throws com.google.gerrit.server.query.QueryParseException { if ( com.google.common.base.Strings.isNullOrEmpty ( query ) ) { throw new com.google.gerrit.server.query.QueryParseException ( "query is empty" ) ; } return toPredicate ( com.google.gerrit.server.query.QueryParser.parse ( query ) ) ; }

Target:
public com.google.gerrit.server.query.Predicate < T > parse ( java.lang.String query ) throws com.google.gerrit.index.query.QueryParseException { if ( com.google.common.base.Strings.isNullOrEmpty ( query ) ) { throw new com.google.gerrit.index.query.QueryParseException ( "query is empty" ) ; } return toPredicate ( com.google.gerrit.index.query.QueryParser.parse ( query ) ) ; }
Source:
private void allowTagDeletion ( ) throws java.lang.Exception { removePermission ( Permission.PUSH , project , "refs/tags/*" ) ; grant ( Permission.PUSH , project , "refs/tags/*" , true , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void allowForcePushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( Permission.PUSH , project , "refs/tags/*" , true , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
public void testKeyToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( ( "46328A8C Testuser One <test1@example.com>" + " (04AE A7ED 2F82 1133 E5B1 28D1 ED06 25DC 4632 8A8C)" ) , com.google.gerrit.gpg.PublicKeyStore.keyToString ( key ) ) ; }

Target:
public void testKeyToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( ( "46328A8C Testuser One <test1@example.com>" + " (04AE A7ED 2F82 1133 E5B1 28D1 ED06 25DC 4632 8A8C)" ) , com.google.gerrit.gpg.PublicKeyStore.keyToString ( key ) ) ; }
Source:
public void destroy ( ) { com.googlesource.gerrit.plugins.github.oauth.OAuthFilter.log.info ( "Init" ) ; }

Target:
public void destroy ( ) { com.googlesource.gerrit.plugins.github.oauth.OAuthFilter.log.info ( "Destroy" ) ; gitFilter.destroy ( ) ; webFilter.destroy ( ) ; }
Source:
public com.google.gerrit.server.account.AuthMethod getAuthMethod ( ) ;

Target:
public java.lang.String getAccessToken ( ) ;
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , change ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , change ) ) ; reindexAfterIndexUpdate ( change.getProject ( ) , change.getId ( ) ) ; }
Source:
private static boolean isNotSignedIn ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ; }

Target:
private static boolean isNotSignedIn ( java.lang.Throwable caught ) { return ( com.google.gerrit.client.rpc.RestApi.isNotSignedIn ( caught ) ) || ( ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ) ; }
Source:
private com.google.gerrit.server.change.ChangeJson.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai = new com.google.gerrit.server.change.ChangeJson.ApprovalInfo ( id ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }

Target:
private com.google.gerrit.extensions.common.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.extensions.common.ApprovalInfo ai = new com.google.gerrit.extensions.common.ApprovalInfo ( id.get ( ) ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }
Source:
private void bindSkipLine ( int row , final int skipCnt ) { final com.google.gwt.user.client.ui.FlowPanel skipPanel = new com.google.gwt.user.client.ui.FlowPanel ( ) ; skipPanel.add ( new com.google.gwt.user.client.ui.InlineLabel ( PatchUtil.M.patchSkipRegion ( skipCnt ) ) ) ; table.setWidget ( row , 1 , skipPanel ) ; }

Target:
private void openLine ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m ) { m.openTr ( ) ; m.setAttribute ( "valign" , "top" ) ; m.openTd ( ) ; m.setStyleName ( com.google.gerrit.client.patches.S_ICON_CELL ) ; m.nbsp ( ) ; m.closeTd ( ) ; }
Source:
public boolean setTeamnamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > teamnames ) { return false ; }

Target:
public boolean updateTeamModels ( java.util.Collection < com.gitblit.models.TeamModel > models ) { return false ; }
Source:
private static boolean isTag ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { return cmd.getRefName ( ) . startsWith ( Constants.R_TAGS ) ; }

Target:
private static boolean isConfig ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { return cmd.getRefName ( ) . equals ( GitRepositoryManager.REF_CONFIG ) ; }
Source:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }

Target:
public java.util.List < java.lang.String > getTeamNamesForRepositoryRole ( java.lang.String role ) { return null ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return getProjectControl ( ) . getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return projectControl.getCurrentUser ( ) ; }
Source:
public final AccountGroup.UUID getOwnerUUID ( ) { java.lang.String owner = owner_uuid ( ) ; if ( owner != null ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodePathSegment ( owner ) ) ; } return null ; }

Target:
public final AccountGroup.UUID getOwnerUUID ( ) { java.lang.String owner = owner_id ( ) ; if ( owner != null ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodePathSegment ( owner ) ) ; } return null ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.Event event ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gerrit.server.events.ProjectEvent event ) { }
Source:
void createOrEditFileComment ( com.google.gerrit.client.diff.DisplaySide side ) { getPanelFromSide ( side ) . createOrEditFileComment ( ) ; updateFileCommentVisibility ( false ) ; }

Target:
void createOrEditFileComment ( com.google.gerrit.client.diff.DisplaySide side ) { getPanelFromSide ( side ) . createOrEditFileComment ( ) ; setHeaderVisible ( true ) ; }
Source:
public java.util.List < org.eclipse.jgit.diff.Edit > getEdits ( ) { return edits ; }

Target:
public com.google.common.collect.ImmutableList < org.eclipse.jgit.diff.Edit > getEdits ( ) { return com.google.gerrit.server.patch.IntraLineDiff.deepCopyEdits ( edits ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }

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:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( box.getText ( ) ) ) { box.setText ( Util.C.defaultProjectName ( ) ) ; box.addStyleName ( "gerrit-InputFieldTypeHint" ) ; } }

Target:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( box.getText ( ) ) ) { box.setText ( Util.C.defaultProjectName ( ) ) ; box.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { com.google.gerrit.common.data.SubmitRecord rec = new com.google.gerrit.common.data.SubmitRecord ( ) ; rec.status = SubmitRecord.Status.RULE_ERROR ; rec.errorMessage = err ; return java.util.Collections.singletonList ( rec ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.client.SubmitRecord > ruleError ( java.lang.String err ) { com.google.gerrit.reviewdb.client.SubmitRecord rec = new com.google.gerrit.reviewdb.client.SubmitRecord ( ) ; rec.status = SubmitRecord.Status.RULE_ERROR ; rec.errorMessage = err ; return java.util.Collections.singletonList ( rec ) ; }
Source:
public java.util.Enumeration getInitParameterNames ( ) { return java.util.Collections.enumeration ( java.util.Collections.emptyList ( ) ) ; }

Target:
public java.util.Enumeration < java.lang.String > getInitParameterNames ( ) { return java.util.Collections.emptyEnumeration ( ) ; }
Source:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { movePointerTo ( row ) ; }

Target:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( ( cell != 1 ) && ( ( getRowItem ( row ) ) != null ) ) { movePointerTo ( row ) ; } }
Source:
private static boolean preferUnified ( ) { return ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) && ( DiffView.UNIFIED_DIFF.equals ( com.google.gerrit.client.Gerrit.getUserAccount ( ) . getGeneralPreferences ( ) . getDiffView ( ) ) ) ; }

Target:
private static boolean preferUnified ( ) { return DiffView.UNIFIED_DIFF.equals ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) . diffView ( ) ) ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) ;

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) { return create ( refControl , notesFactory.create ( db , change ) ) ; }
Source:
public com.google.gerrit.server.index.Schema.Builder < T > add ( com.google.gerrit.server.index.Schema < T > schema ) { this . fields.addAll ( schema.getFields ( ) . values ( ) ) ; return this ; }

Target:
public com.google.gerrit.index.Schema.Builder < T > add ( com.google.gerrit.index.Schema < T > schema ) { this . fields.addAll ( schema.getFields ( ) . values ( ) ) ; return this ; }
Source:
public static java.lang.String mediumFormat ( final java.util.Date dt ) { if ( dt == null ) { return "" ; } com.google.gerrit.client.FormatUtil.ensureInited ( ) ; return com.google.gerrit.client.FormatUtil.dtfmt.format ( new java.util.Date ( dt.getTime ( ) ) ) ; }

Target:
public static java.lang.String mediumFormat ( java.util.Date dt ) { com.google.gerrit.client.FormatUtil.ensureInited ( ) ; return com.google.gerrit.client.FormatUtil.dateFormatter.mediumFormat ( dt ) ; }
Source:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeInfo.projectNameKey ( ) , changeId ) ) ; }
Source:
private void indent ( int depth ) { for ( int i = 0 ; i < depth ; i ++ ) { out.print ( " " ) ; } }

Target:
private java.lang.String indent ( int spaces ) { if ( spaces == 0 ) { return "" ; } else { return java.lang.String.format ( ( ( "%" + spaces ) + "s" ) , " " ) ; } }
Source:
static com.google.gerrit.pgm.util.Die die ( java.lang.String why ) { return new com.google.gerrit.pgm.util.Die ( why ) ; }

Target:
static com.google.gerrit.common.Die die ( java.lang.String why ) { return new com.google.gerrit.common.Die ( why ) ; }
Source:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnWipChangeByOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
void addGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { initialGroups.add ( id ) ; }

Target:
void addGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.UUID id ) { initialGroups.add ( id ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watches.display ( result ) ; }

Target:
public void preDisplay ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watches.display ( result ) ; }
Source:
private void clearForm ( ) { usernameTxt.setValue ( "" ) ; sshKeyTxt.setValue ( "" ) ; }

Target:
private void clearForm ( ) { usernameTxt.setValue ( "" ) ; if ( ( emailTxt ) != null ) { emailTxt.setValue ( "" ) ; } sshKeyTxt.setValue ( "" ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int start , int limit ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.server.query.change.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.String [ ] > getParameterMap ( ) { return java.util.Collections.unmodifiableMap ( com.google.common.collect.Maps.transformValues ( parameters.asMap ( ) , com.google.gitiles.FakeHttpServletRequest.STRING_COLLECTION_TO_ARRAY ) ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String [ ] > getParameterMap ( ) { return java.util.Collections.unmodifiableMap ( com.google.common.collect.Maps.transformValues ( parameters.asMap ( ) , ( c ) -> com.google.gitiles.FakeHttpServletRequest.stringCollectionToArray ( c ) ) ) ; }
Source:
abstract java.lang.Runnable toggleOpenBox ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } }
Source:
public com.google.gerrit.extensions.client.InheritableBoolean apply ( com.google.gerrit.reviewdb.client.Project input ) { return input.getRejectImplicitMerges ( ) ; }

Target:
public boolean isRejectImplicitMerges ( ) { return getInheritableBoolean ( Project :: getRejectImplicitMerges ) ; }
Source:
public final native net.codemirror.lib.KeyMap on ( java.lang.String key , boolean b ) ;

Target:
public final native net.codemirror.lib.KeyMap propagate ( java.lang.String key ) ;
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 onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
private final native void commentVisibilityStrategyRaw ( java.lang.String s ) ;

Target:
private final native void reviewCategoryStrategyRaw ( java.lang.String s ) ;
Source:
public com.google.gerrit.sshd.SshSession get ( ) { return com.google.gerrit.sshd.SshScope.getContext ( ) . session ; }

Target:
public com.google.gerrit.sshd.SshSession get ( ) { return com.google.gerrit.sshd.SshScope.getContext ( ) . getSession ( ) ; }
Source:
private static boolean isControlBlockStart ( com.google.gerrit.server.diff.Text a , int idx ) { return com.google.gerrit.server.patch.IntraLineLoader.CONTROL_BLOCK_START_RE.matcher ( a.getString ( idx ) ) . find ( ) ; }

Target:
private static boolean isControlBlockStart ( com.google.gerrit.server.patch.Text a , int idx ) { return com.google.gerrit.server.patch.IntraLineLoader.CONTROL_BLOCK_START_RE.matcher ( a.getString ( idx ) ) . find ( ) ; }