auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , com.google.common.collect.ImmutableMap.of ( ) , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return com.google.gerrit.server.account.AccountState.forAccount ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account ) ; }
Source:
boolean canAddPatchSet ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( new com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo ( ( - 1 ) , false ) , mapper.lineOnOther ( Side.PARENT , 9 ) ) ; }

Target:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( new com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo ( ( - 1 ) , false ) , mapper.lineOnOther ( DisplaySide.A , 9 ) ) ; }
Source:
com.google.gitiles.doc.Navbar setMarkdown ( byte [ ] md ) { if ( ( md != null ) && ( ( md.length ) > 0 ) ) { parse ( org.eclipse.jgit.util.RawParseUtils.decode ( md ) ) ; } return this ; }

Target:
com.google.gitiles.doc.Navbar setMarkdown ( com.google.gitiles.doc.MarkdownConfig cfg , byte [ ] md ) { if ( ( md != null ) && ( ( md.length ) > 0 ) ) { parse ( cfg , org.eclipse.jgit.util.RawParseUtils.decode ( md ) ) ; } return this ; }
Source:
private static com.google.gerrit.server.query.change.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.IndexRewriterTest.CONFIG , start , limit ) ; }

Target:
private static com.google.gerrit.server.query.change.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.IndexRewriterTest.CONFIG , start , limit , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.ProjectRight > getProjectRights ( final com.google.gerrit.common.data.ApprovalType at ) { return getProjectRights ( com.google.gerrit.server.workflow.FunctionState.id ( at ) ) ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.RefRight > getRefRights ( final com.google.gerrit.common.data.ApprovalType at ) { return getRefRights ( com.google.gerrit.server.workflow.FunctionState.id ( at ) ) ; }
Source:
private void log ( final int rc ) { if ( logged.compareAndSet ( false , true ) ) { log.onExecute ( cmd , rc ) ; } }

Target:
private void log ( final int rc ) { if ( logged.compareAndSet ( false , true ) ) { log.onExecute ( cmd , rc , ctx.getSession ( ) ) ; } }
Source:
protected void doPost ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { this . healthy = true ; rsp.setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }

Target:
protected void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { if ( unhealthyFile.exists ( ) ) { sendError ( rsp , javax.servlet.http.HttpServletResponse.SC_SERVICE_UNAVAILABLE ) ; return ; } rsp.setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }
Source:
private static boolean isNameAlreadyUsed ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NameAlreadyUsedException.MESSAGE ) ) ; }

Target:
private static boolean isNameAlreadyUsed ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . startsWith ( NameAlreadyUsedException.MESSAGE ) ) ; }
Source:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return getWriter ( res ) ; }

Target:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return newWriter ( res ) ; }
Source:
public void go ( ) { com.google.gerrit.client.HistoryHandler.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , parentPatchTable ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , parentPatchTable ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.rules.PredicateProvider.class ) ; factory ( PrologEnvironment.Factory.class ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.rules.PrologModule.EnviromentModule ( ) ) ; bind ( PrologEnvironment.Args.class ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
private void apply ( com.google.gerrit.server.index.ChangeIndex i , com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { if ( delete ) { i.delete ( cd ) ; } else { i.replace ( cd ) ; } }
Source:
public java.lang.String getName ( ) { return "SSH" ; }

Target:
public boolean isAuthRequired ( ) { return true ; }
Source:
public void review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { review.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post review" , e ) ; } }

Target:
public void review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { review.apply ( revision , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot post review" , e ) ; } }
Source:
public boolean canRemoveGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }

Target:
public boolean canSeeGroup ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return canSeeMembers ( ) ; }
Source:
public void onHeadUpdated ( com.google.gerrit.extensions.events.HeadUpdatedListener.Event event ) { updateHead ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , event.getNewHeadName ( ) ) ; }

Target:
public void onHeadUpdated ( com.google.gerrit.extensions.events.HeadUpdatedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , FilterType.ALL ) ) { updateHead ( uri , event.getNewHeadName ( ) ) ; } }
Source:
public com.google.gerrit.server.notedb.ChangeUpdate load ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gerrit.server.project.NoSuchProjectException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return load ( change , com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.reviewdb.client.Change change ) { return create ( change , serverIdent.getWhen ( ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > byCommitsOnBranchNotMerged ( com.google.gerrit.reviewdb.client.Branch.NameKey branch , java.util.List < java.lang.String > hashes ) throws com.google.gwtorm.server.OrmException { return byCommitsOnBranchNotMerged ( branch , hashes , 100 ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > byCommitsOnBranchNotMerged ( com.google.gerrit.reviewdb.client.Branch.NameKey branch , java.util.List < java.lang.String > hashes ) throws com.google.gwtorm.server.OrmException { return byCommitsOnBranchNotMerged ( branch , hashes , indexConfig.maxPrefixTerms ( ) ) ; }
Source:
public void createDraftChangeWhenDraftsNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = createDraftChange ( ) ; r.assertErrorStatus ( "cannot upload drafts" ) ; }

Target:
public void createDraftChangeWhenDraftsNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = createDraftChange ( ) ; r.assertErrorStatus ( "draft workflow is disabled" ) ; }
Source:
public void onSignIn ( ) { if ( refreshOnSignIn ) { refresh ( ) ; } }

Target:
public void onSignIn ( ) { if ( refreshOnSignIn ) { refresh ( ) ; } if ( ( starChange ) != null ) { starChange.setVisible ( true ) ; } }
Source:
public java.util.Collection < com.google.gerrit.common.data.AccessSection > getAccessSections ( ) { return accessSections.values ( ) ; }

Target:
public static com.google.gerrit.server.git.ProjectConfig read ( com.google.gerrit.server.git.MetaDataUpdate update , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig r = new com.google.gerrit.server.git.ProjectConfig ( update.getProjectName ( ) ) ; r.load ( update , id ) ; return r ; }
Source:
public void getDiffPreferencesOfNonExistingAccount_NotFound ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , adminSession.get ( "/accounts/non-existing/preferences.diff" ) . getStatusCode ( ) ) ; }

Target:
public void getDiffPreferencesOfNonExistingAccount_NotFound ( ) throws java.lang.Exception { adminSession.get ( "/accounts/non-existing/preferences.diff" ) . assertNotFound ( ) ; }
Source:
com.google.gerrit.server.patch.FileList getFileList ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.server.patch.PatchListNotAvailableException ;

Target:
com.google.gerrit.server.patch.DiffSummary getDiffSummary ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.server.patch.PatchListNotAvailableException ;
Source:
public void myAccount ( final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Account > callback ) { callback.onSuccess ( currentUser.get ( ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Account run ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return db.accounts ( ) . get ( currentUser.get ( ) . getAccountId ( ) ) ; }
Source:
private static boolean correctUser ( java.lang.String user , com.google.gerrit.httpd.WebSession session ) { com.google.gerrit.server.account.ExternalId.Key id = session.getLastLoginExternalId ( ) ; return ( id != null ) && ( id.equals ( ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT , user ) ) ) ; }

Target:
private static boolean correctUser ( java.lang.String user , com.google.gerrit.httpd.WebSession session ) { com.google.gerrit.server.account.externalids.ExternalId.Key id = session.getLastLoginExternalId ( ) ; return ( id != null ) && ( id.equals ( ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT , user ) ) ) ; }
Source:
protected void assertBadQuery ( java.lang.Object query ) throws java.lang.Exception { try { newQuery ( query ) . get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }

Target:
protected void assertBadQuery ( com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ) throws java.lang.Exception { try { query.get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.AccountGroup.Id result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( result , AccountGroupScreen.MEMBERS ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.groups.GroupInfo result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( result.getGroupId ( ) , AccountGroupScreen.MEMBERS ) ) ; }
Source:
public static void getHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeString > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "password.http" ) . get ( cb ) ; }

Target:
public static void getHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeString > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "password.http" ) . get ( cb ) ; }
Source:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.ApprovalsUtil.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.ApprovalsUtil.getReviewers ( allApprovals ( db ) ) ; }

Target:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.ApprovalsUtil.getReviewers ( allApprovals ( ) ) ; }
Source:
public void delete ( int id ) throws java.io.IOException { }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
protected void setDateText ( final java.lang.String dateText ) { header.setText ( 0 , 2 , dateText ) ; }

Target:
protected void setDateText ( final java.lang.String dateText ) { header.setText ( 0 , 3 , dateText ) ; }
Source:
public void update ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { upsert ( instances ) ; }

Target:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } }
Source:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > replace ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
private void initChangeUrl ( ) throws javax.mail.MessagingException { msg.setHeader ( "X-Gerrit-ChangeURL" , changeUrl ( ) ) ; }

Target:
public void addReviewers ( final java.util.Collection < com.google.gerrit.client.reviewdb.Account.Id > cc ) { reviewers.addAll ( cc ) ; }
Source:
public final native java.lang.String reply_tooltip ( ) ;

Target:
public final native boolean allowDrafts ( ) ;
Source:
public void setReadyForReview ( java.lang.String message ) throws com.google.gerrit.extensions.restapi.RestApiException { try { setReady.apply ( change , new com.google.gerrit.server.change.WorkInProgressOp.Input ( message ) ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set ready for review state" , e ) ; } }

Target:
public void setReadyForReview ( java.lang.String message ) throws com.google.gerrit.extensions.restapi.RestApiException { try { setReady.apply ( change , new com.google.gerrit.server.change.WorkInProgressOp.Input ( message ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set ready for review state" , e ) ; } }
Source:
private static java.util.Date parseDate ( java.lang.String str ) throws java.lang.Exception { return new java.text.SimpleDateFormat ( "YYYY-MM-dd HH:mm:ss Z" ) . parse ( str ) ; }

Target:
private static java.util.Date parseDate ( java.lang.String str ) throws java.lang.Exception { return new java.text.SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss Z" ) . parse ( str ) ; }
Source:
public java.util.Set < com.googlesrouce.gerrit.plugins.github.git.GHTeam > getTeams ( ) throws java.io.IOException { return ghRepository.getTeams ( ) ; }

Target:
public java.util.Set < com.googlesource.gerrit.plugins.github.git.GHTeam > getTeams ( ) throws java.io.IOException { return ghRepository.getTeams ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; if ( InvalidUserNameException.MESSAGE.equals ( caught.getMessage ( ) ) ) { invalidUserName ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onOk ( ) { doSetUserName ( ) ; }
Source:
private static com.google.gerrit.common.data.PermissionRule grant ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.common.data.PermissionRule rule , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , rule , ref , false ) ; }

Target:
private static com.google.gerrit.common.data.PermissionRule grant ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.common.data.PermissionRule rule , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , rule , ref , false ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > members ( boolean recursive ) throws com.google.gerrit.extensions.restapi.RestApiException { listMembers.setRecursive ( recursive ) ; try { return listMembers.apply ( rsrc ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list group members" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > members ( boolean recursive ) throws com.google.gerrit.extensions.restapi.RestApiException { listMembers.setRecursive ( recursive ) ; try { return listMembers.apply ( rsrc ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot list group members" , e ) ; } }
Source:
public void getNamePartsExtractsParts ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.index.SchemaUtil.getNameParts ( "" ) ) . isEmpty ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.index.SchemaUtil.getNameParts ( "foO-bAr_Baz a.b@c/d" ) ) . containsExactly ( "foo" , "bar" , "baz" , "a" , "b" , "c" , "d" ) ; }

Target:
public void getNamePartsExtractsParts ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.index.SchemaUtil.getNameParts ( "" ) ) . isEmpty ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.index.SchemaUtil.getNameParts ( "foO-bAr_Baz a.b@c/d" ) ) . containsExactly ( "foo" , "bar" , "baz" , "a" , "b" , "c" , "d" ) ; }
Source:
public static void throwIfNotStaleFileHandle ( java.io.IOException e ) throws java.io.IOException { if ( ! ( com.googlesource.gerrit.plugins.events.fsstore.Nfs.isStaleFileHandle ( e ) ) ) { throw e ; } }

Target:
public static < T extends java.lang.Throwable > void throwIfNotStaleFileHandle ( T e ) throws T { if ( ! ( com.googlesource.gerrit.plugins.events.fsstore.Nfs.isStaleFileHandleInCausalChain ( e ) ) ) { throw e ; } }
Source:
public void testCreateSchema_DefaultAccess_AnonymousUsers ( ) throws com.google.gwtorm.client.OrmException { db.create ( ) ; final com.google.gerrit.reviewdb.SystemConfig config = db.getSystemConfig ( ) ; assertDefaultRight ( config.anonymousGroupId , ApprovalCategory.READ , 1 , 1 ) ; }

Target:
public void testCreateSchema_DefaultAccess_AnonymousUsers ( ) throws com.google.gwtorm.client.OrmException { db.create ( ) ; final com.google.gerrit.reviewdb.SystemConfig config = db.getSystemConfig ( ) ; assertDefaultRight ( "refs/*" , config.anonymousGroupId , ApprovalCategory.READ , 1 , 1 ) ; }
Source:
protected void loadPrev ( ) { com.google.gerrit.client.changes.ChangeList.prev ( query , pageSize , pos , loadCallback ( ) ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.changes.ChangeList.next ( query , start , pageSize , loadCallback ( ) ) ; }
Source:
private void writeError ( java.lang.String msg ) { try { err.write ( msg.getBytes ( com.googlesource.gerrit.plugins.verifystatus.commands.ENC ) ) ; } catch ( java.io.IOException e ) { } }

Target:
private void writeError ( java.lang.String msg ) { try { err.write ( msg.getBytes ( com.googlesource.gerrit.plugins.verifystatus.ENC ) ) ; } catch ( java.io.IOException e ) { } }
Source:
public abstract java.util.concurrent.Callable < ? > deleteTask ( com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
protected abstract java.util.concurrent.Callable < ? > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) ;
Source:
private static org.eclipse.jgit.transport.RemoteSession connect ( org.eclipse.jgit.transport.URIish uri ) throws org.eclipse.jgit.errors.TransportException { return org.eclipse.jgit.transport.SshSessionFactory.getInstance ( ) . getSession ( uri , null , FS.DETECTED , 0 ) ; }

Target:
private org.eclipse.jgit.transport.RemoteSession connect ( org.eclipse.jgit.transport.URIish uri ) throws org.eclipse.jgit.errors.TransportException { return sshSessionFactoryProvider.get ( ) . getSession ( uri , null , FS.DETECTED , com.googlesource.gerrit.plugins.replication.ReplicationQueue.SSH_REMOTE_TIMEOUT ) ; }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getChunkManager ( ) . diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
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.gerrit.util.http.testutil.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 ( ) , ( vs ) -> vs.toArray ( new java.lang.String [ 0 ] ) ) ) ; }
Source:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { return org.kohsuke.github.GitHub.connectUsingOAuth ( this . token.accessToken ) ; }

Target:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { return org.kohsuke.github.GitHub.connectUsingOAuth ( config.gitHubApiUrl , token.accessToken ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return ctl.getNotes ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { com.google.gerrit.server.notedb.ChangeNotes n = ctl.getNotes ( ) ; com.google.common.base.Preconditions.checkNotNull ( n ) ; return n ; }
Source:
public java.lang.String getSqlType ( final com.google.gwtorm.schema.ColumnModel column ) { return "SMALLINT DEFAULT 0 NOT NULL" ; }

Target:
public java.lang.String getSqlType ( final com.google.gwtorm.schema.ColumnModel column , final com.google.gwtorm.schema.sql.SqlDialect dialect ) { return ( dialect.getSqlTypeName ( getSqlTypeConstant ( ) ) ) + " DEFAULT 0 NOT NULL" ; }
Source:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "fatal: user does not have \"runGC\" capability." , s.getError ( ) ) ; }

Target:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "Capability runGC is required to access this resource" , s.getError ( ) ) ; }
Source:
public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { topic.onEdit ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getCharCode ( ) ) == 0 ) { Window.Location.reload ( ) ; return ; } topic.onEdit ( ) ; }
Source:
private com.google.gerrit.server.query.change.InternalChangeQuery query ( ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) ) ; return queryProvider.get ( ) . setRequestedFields ( fields ) ; }

Target:
private com.google.gerrit.server.query.change.InternalChangeQuery query ( ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.REVIEWER.getName ( ) ) ; return queryProvider.get ( ) . setRequestedFields ( fields ) ; }
Source:
public void testGetPeopleAccess ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; assertNotNull ( schema.people ( ) ) ; }

Target:
public void testGetPeopleAccess ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; assertNotNull ( schema.people ( ) ) ; assertEquals ( "people" , schema.people ( ) . getRelationName ( ) ) ; }
Source:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisbilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultGitwebRedirect ( ) ; }

Target:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisbilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; }
Source:
public void enable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { enable.apply ( resource , new com.google.gerrit.server.plugins.EnablePlugin.Input ( ) ) ; }

Target:
public void enable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { enable.apply ( resource , new com.google.gerrit.extensions.common.Input ( ) ) ; }
Source:
private com.google.gerrit.server.patch.PatchListKey keyFor ( 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 ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey keyFor ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { if ( ( parentNum ) < 0 ) { return com.google.gerrit.server.patch.PatchListKey.againstCommit ( aId , bId , whitespace ) ; } return com.google.gerrit.server.patch.PatchListKey.againstParentNum ( ( ( parentNum ) + 1 ) , bId , whitespace ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; onDiscoveryFailure ( ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; enableRetryDiscovery ( ) ; }
Source:
private static boolean isConfig ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { return cmd.getRefName ( ) . equals ( GitRepositoryManager.REF_CONFIG ) ; }

Target:
private static boolean isConfig ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { return cmd.getRefName ( ) . equals ( RefNames.REFS_CONFIG ) ; }
Source:
private static com.google.gerrit.server.change.RebaseUtil.Base create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) { if ( ctl == null ) { return null ; } return new com.google.gerrit.server.change.AutoValue_RebaseUtil_Base ( ctl , ps ) ; }

Target:
private static com.google.gerrit.server.change.RebaseUtil.Base create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet ps ) { if ( notes == null ) { return null ; } return new com.google.gerrit.server.change.AutoValue_RebaseUtil_Base ( notes , ps ) ; }
Source:
private com.google.gerrit.gpg.testutil.TestKey add ( com.google.gerrit.gpg.testutil.TestKey k ) { store.add ( k.getPublicKeyRing ( ) ) ; return k ; }

Target:
private com.google.gerrit.gpg.testing.TestKey add ( com.google.gerrit.gpg.testing.TestKey k ) { store.add ( k.getPublicKeyRing ( ) ) ; return k ; }
Source:
private com.google.gerrit.server.account.AuthResult auth ( com.google.gerrit.reviewdb.client.Account account ) { if ( account != null ) { return new com.google.gerrit.server.account.AuthResult ( account.getId ( ) , null , false ) ; } return null ; }

Target:
private com.google.gerrit.server.account.AuthResult auth ( com.google.gerrit.server.account.AccountState account ) { if ( account != null ) { return new com.google.gerrit.server.account.AuthResult ( account.getAccount ( ) . getId ( ) , null , false ) ; } return null ; }
Source:
private static org.eclipse.jgit.lib.Config updateConfig ( org.eclipse.jgit.lib.Config cfg ) { cfg.setInt ( "index" , null , "maxPages" , 10 ) ; return cfg ; }

Target:
public void setUpConfig ( ) throws java.lang.Exception { config.setInt ( "index" , null , "maxPages" , 10 ) ; }
Source:
static void deleteSessionCookie ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.xsrfToken = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.Cookies.removeCookie ( "GerritAccount" ) ; }
Source:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return getRepoView ( ) . getInserter ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return getRepoView ( ) . getInserterWrapper ( ) ; }
Source:
HEAD ( com.google.gerrit.extensions.api.changes.b3f1de dev ) { }

Target:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.CommentInfo > > drafts ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void setRefPattern ( java.lang.String refPattern ) { this . refPattern = refPattern ; }

Target:
public void setName ( java.lang.String name ) { this . name = name ; }
Source:
public org.eclipse.jgit.lib.ObjectId insert ( int type , byte [ ] data , int off , int len ) { return insert ( com.google.gerrit.server.notedb.InsertedObject.create ( type , data , off , len ) ) ; }

Target:
public org.eclipse.jgit.lib.ObjectId insert ( int type , byte [ ] data , int off , int len ) { return insert ( com.google.gerrit.server.git.InsertedObject.create ( type , data , off , len ) ) ; }
Source:
long getTimeoutMillis ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( cfg , "receive" , null , "timeout" , java.util.concurrent.TimeUnit.MINUTES.toMillis ( 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
long getTimeoutMillis ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( cfg , "receive" , null , "timeout" , java.util.concurrent.TimeUnit.MINUTES.toMillis ( 4 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { removeUI ( ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { pendingGroup = null ; removeUI ( ) ; }
Source:
public void setSubmitRecords ( java.util.List < com.google.gerrit.common.data.SubmitRecord > records ) { submitRecords = records ; }

Target:
public void setSubmitRecords ( com.google.gerrit.server.project.SubmitRuleOptions options , java.util.List < com.google.gerrit.common.data.SubmitRecord > records ) { submitRecords.put ( options , records ) ; }
Source:
public com.google.gerrit.server.git.ChangeReportFormatter.Input setEdit ( boolean edit ) { this . edit = edit ; return this ; }

Target:
public abstract com.google.gerrit.server.git.ChangeReportFormatter.Input.Builder setIsEdit ( java.lang.Boolean val ) ;
Source:
public void run ( ) throws java.lang.Exception { processor.setOutput ( out , QueryProcessor.OutputFormat.TEXT ) ; parseCommandLine ( ) ; processor.query ( com.google.gerrit.sshd.commands.Query.join ( query , " " ) ) ; }

Target:
public void run ( ) throws java.lang.Exception { processor.setOutput ( out , QueryProcessor.OutputFormat.TEXT ) ; parseCommandLine ( ) ; verifyCommandLine ( ) ; processor.query ( com.google.gerrit.sshd.commands.Query.join ( query , " " ) ) ; }
Source:
public void beforeTest ( ) throws java.lang.Exception { if ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) { com.google.gerrit.server.notedb.NotesMigration.setAllEnabledConfig ( config ) ; } }

Target:
public void beforeTest ( ) throws java.lang.Exception { if ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) { com.google.gerrit.server.notedb.ConfigNotesMigration.setAllEnabledConfig ( config ) ; } }
Source:
public void testSetForwardedEvent ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.syncindex.Context.setForwardedEvent ( true ) ; try { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.syncindex.Context.isForwardedEvent ( ) ) . isTrue ( ) ; } finally { com.ericsson.gerrit.plugins.syncindex.Context.unsetForwardedEvent ( ) ; } }

Target:
public void testSetForwardedEvent ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.multimaster.Context.setForwardedEvent ( true ) ; try { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.Context.isForwardedEvent ( ) ) . isTrue ( ) ; } finally { com.ericsson.gerrit.plugins.multimaster.Context.unsetForwardedEvent ( ) ; } }
Source:
public final native void set_commit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;

Target:
public final native java.lang.String set_name ( java.lang.String n ) ;
Source:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { widget.setVisible ( true ) ; copyLabel.setText ( ( "git pull " + ( link.urlData ) ) ) ; }

Target:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { widget.setVisible ( true ) ; copyLabel.setText ( ( "git pull " + ( link.getUrlData ( ) ) ) ) ; }
Source:
static com.google.gerrit.client.reviewdb.AccountExternalId getInstance ( int rawOldAccountId , java.lang.String rawExternalId ) { return new com.google.gerrit.client.reviewdb.AccountExternalId ( new com.google.gerrit.client.reviewdb.Account.Id ( rawOldAccountId ) , new com.google.gerrit.client.reviewdb.AccountExternalId.Key ( rawExternalId ) ) ; }

Target:
static com.google.gerrit.client.reviewdb.AccountExternalId newInstance ( int rawOldAccountId , java.lang.String rawExternalId ) { return new com.google.gerrit.client.reviewdb.AccountExternalId ( new com.google.gerrit.client.reviewdb.Account.Id ( rawOldAccountId ) , new com.google.gerrit.client.reviewdb.AccountExternalId.Key ( rawExternalId ) ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( user , repositoryName , objectId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( user , repositoryName , objectId ) ; }
Source:
public static java.lang.String stripAndaddCharsAtEnd ( java.lang.String str , java.lang.String chs ) { org.apache.commons.lang.StringUtils.stripEnd ( str , chs ) ; return str + chs ; }

Target:
public static java.lang.String stripAndAddCharsAtEnd ( java.lang.String str , java.lang.String chs ) { return ( org.apache.commons.lang.StringUtils.stripEnd ( str , chs ) ) + chs ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.myAccount = result ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; } com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; showInitialScreen ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.myAccount = result ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; } onModuleLoad3 ( ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > email ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > emailIncludingSecondaryEmails ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email.toLowerCase ( ) ) ; }
Source:
private java.lang.String urlDeleteEdit ( ) { return ( urlGet ( ) ) + "/0" ; }

Target:
private java.lang.String urlEdit2 ( ) { return ( "/changes/" + ( change2.getChangeId ( ) ) ) + "/edit/" ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { event.preventDefault ( ) ; form.submit ( ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { event.preventDefault ( ) ; form.submit ( ) ; } }
Source:
public void cancel ( ) { if ( ( status.getStatus ( ) ) != ( com.googlesrouce.gerrit.plugins.github.git.GitJobStatus.Code.SYNC ) ) { return ; } cancelled = true ; status.update ( GitJobStatus.Code.CANCELLED , "Cancelled" , "Cancelled" ) ; rollback ( ) ; }

Target:
public void cancel ( ) { if ( ( status.getStatus ( ) ) != ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code.SYNC ) ) { return ; } cancelled = true ; status.update ( GitJobStatus.Code.CANCELLED , "Cancelled" , "Cancelled" ) ; rollback ( ) ; }
Source:
static java.lang.String get ( ) { return com.google.gwt.core.client.GWT.< com.google.gerrit.client.api.PluginName > create ( com.google.gerrit.client.api.PluginName.class ) . guessName ( ) ; }

Target:
static java.lang.String getCallerUrl ( ) { return com.google.gwt.core.client.GWT.< com.google.gerrit.client.api.PluginName > create ( com.google.gerrit.client.api.PluginName.class ) . findCallerUrl ( ) ; }
Source:
public void httpLink ( ) { com.google.gitiles.doc.MarkdownToHtml md = new com.google.gitiles.doc.MarkdownToHtml ( view , config ) ; java.lang.String url ; url = "http://example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; url = "https://example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; url = "//example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; }

Target:
public void httpLink ( ) { com.google.gitiles.doc.MarkdownToHtml md = new com.google.gitiles.doc.MarkdownToHtml ( view , config , "index.md" ) ; java.lang.String url ; url = "http://example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; url = "https://example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; url = "//example.com/foo.html" ; com.google.common.truth.Truth.assertThat ( md.href ( url ) ) . isEqualTo ( url ) ; }
Source:
public void visit ( org.pegdown.ast.AbbreviationNode node ) { }

Target:
private void wrapChildren ( java.lang.String tag , org.commonmark.node.Node node ) { html.open ( tag ) ; visitChildren ( node ) ; html.close ( tag ) ; }
Source:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }

Target:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { keys.deleteChecked ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { keys.deleteChecked ( ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.PREVIEW , getImageUrl ( ) , getFileUrl ( projectName , revision , fileName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { java.lang.String url = getFileUrl ( projectName , revision , fileName , false ) ; return url == null ? null : new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.PREVIEW , getImageUrl ( ) , url , Target.BLANK ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.Account result ) { display ( result.getGeneralPreferences ( ) ) ; enable ( true ) ; }

Target:
public void preDisplay ( final com.google.gerrit.reviewdb.Account result ) { display ( result.getGeneralPreferences ( ) ) ; }
Source:
public abstract com.google.gerrit.server.plugins.PluginContentScanner getScanner ( ) ;

Target:
public abstract com.google.gerrit.server.plugins.PluginContentScanner getContentScanner ( ) ;
Source:
com.google.gerrit.server.project.ProjectControl getProjectControl ( ) { return projectControl ; }

Target:
com.google.gerrit.server.permissions.ProjectControl getProjectControl ( ) { return projectControl ; }
Source:
public void visit ( org.pegdown.ast.ExpImageNode node ) { html.open ( "img" ) . attribute ( "src" , node.url ) . attribute ( "title" , node.title ) . attribute ( "alt" , com.google.gitiles.doc.MarkdownHelper.getInnerText ( node ) ) ; }

Target:
public void visit ( org.pegdown.ast.ExpImageNode node ) { html.open ( "img" ) . attribute ( "src" , node.url ) . attribute ( "title" , node.title ) . attribute ( "alt" , com.google.gitiles.doc.MarkdownUtil.getInnerText ( node ) ) ; }
Source:
private void initUI ( ) { initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }
Source:
public com.google.gerrit.server.ParamertizedString.Builder replace ( final java.lang.String name , final java.lang.String value ) { params.put ( name , value ) ; return this ; }

Target:
public com.google.gerrit.common.data.ParamertizedString.Builder replace ( final java.lang.String name , final java.lang.String value ) { params.put ( name , value ) ; return this ; }
Source:
public void flush_Forbidden ( ) throws java.lang.Exception { userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH , java.util.Arrays.asList ( "projects" ) ) ) . assertForbidden ( ) ; }

Target:
public void flush_Forbidden ( ) throws java.lang.Exception { userRestSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH , java.util.Arrays.asList ( "projects" ) ) ) . assertForbidden ( ) ; }
Source:
public java.lang.String getCommentLinkName ( ) { java.lang.String ret ; ret = gerritConfig.getString ( pluginName , null , "commentlink" ) ; if ( ret == null ) { ret = pluginName ; } return ret ; }

Target:
public java.lang.String getCommentLinkName ( ) { java.lang.String ret ; ret = getPluginConfigString ( "commentlink" ) ; if ( ret == null ) { ret = pluginName ; } return ret ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; setPageTitle ( Util.C.plugins ( ) ) ; display ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; setPageTitle ( AdminConstants.I.plugins ( ) ) ; display ( ) ; }