auphong2707/dl4se-code-review-dataset huggingface dataset:
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 ( ) ; password.selectAll ( ) ; password.setFocus ( true ) ; } }

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 ( ) ; password.selectAll ( ) ; password.setFocus ( true ) ; } }
Source:
static void publish ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.publish ( id.get ( ) , revision , com.google.gerrit.client.change.ChangeActions.cs ( id , draftButtons ) ) ; }

Target:
static void unmarkPrivate ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.unmarkPrivate ( project.get ( ) , id.get ( ) , com.google.gerrit.client.change.ChangeActions.cs ( project , id , draftButtons ) ) ; }
Source:
public boolean match ( java.lang.String ref , java.lang.String username ) { return pattern.matcher ( ref ) . matches ( ) ; }

Target:
public boolean match ( java.lang.String ref , com.google.gerrit.server.CurrentUser user ) { return pattern.matcher ( ref ) . matches ( ) ; }
Source:
void newDraftOnGutterClick ( net.codemirror.lib.CodeMirror cm , java.lang.String gutterClass , int line ) { insertNewDraft ( cm.side ( ) , line ) ; }

Target:
void newDraftOnGutterClick ( net.codemirror.lib.CodeMirror cm , java.lang.String gutterClass , int line ) { if ( ! ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ) { signInCallback ( cm ) . run ( ) ; } else { insertNewDraft ( cm.side ( ) , line ) ; } }
Source:
public synchronized void schedule ( int idx , com.googlesrouce.gerrit.plugins.github.git.GitJob pullRequestImportJob ) { jobs.put ( idx , pullRequestImportJob ) ; executor.exec ( pullRequestImportJob ) ; }

Target:
public synchronized void schedule ( int idx , com.googlesource.gerrit.plugins.github.git.GitJob pullRequestImportJob ) { jobs.put ( idx , pullRequestImportJob ) ; executor.exec ( pullRequestImportJob ) ; }
Source:
private static java.lang.String getGerritUrl ( org.eclipse.jgit.lib.Config config ) throws javax.servlet.ServletException { java.lang.String gerritUrl = config.getString ( "gitiles" , null , "gerritUrl" ) ; if ( gerritUrl == null ) { throw new javax.servlet.ServletException ( "gitiles.gerritUrl not set" ) ; } return gerritUrl ; }

Target:
private synchronized com.google.gitiles.Linkifier linkifier ( ) { if ( ( linkifier ) == null ) { com.google.common.base.Preconditions.checkState ( ( ( urls ) != null ) , "GitilesUrls not yet set" ) ; linkifier = new com.google.gitiles.Linkifier ( urls ) ; } return linkifier ; }
Source:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { setApiHeaders ( res , com.google.gitiles.FormatType.TEXT ) ; return res.getWriter ( ) ; }

Target:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return res.getWriter ( ) ; }
Source:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return getProjectControl ( ) . isOwner ( ) ; } return canPerform ( Permission.SUBMIT ) ; }

Target:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return canPerform ( Permission.SUBMIT ) ; }
Source:
com.google.gerrit.client.diff.DraftBox addReplyBox ( ) { com.google.gerrit.client.diff.DraftBox box = getCommentManager ( ) . addDraftBox ( getCommentManager ( ) . createReply ( comment ) , getCm ( ) . side ( ) ) ; registerReplyBox ( box ) ; return box ; }

Target:
void addReplyBox ( ) { getCommentManager ( ) . addDraftBox ( getCm ( ) . side ( ) , com.google.gerrit.client.changes.CommentInfo.createReply ( comment ) ) . setEdit ( true ) ; }
Source:
protected final com.google.gerrit.server.mail.ProjectWatch.Watchers getWatches ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.mail.ProjectWatch watch = new com.google.gerrit.server.mail.ProjectWatch ( args , project , projectState , changeData ) ; return watch.getWatches ( type ) ; }

Target:
protected final com.google.gerrit.server.mail.ProjectWatch.Watchers getWatchers ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.mail.ProjectWatch watch = new com.google.gerrit.server.mail.ProjectWatch ( args , project , projectState , changeData ) ; return watch.getWatchers ( type ) ; }
Source:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box ) { getPanelFromSide ( box.getSide ( ) ) . addFileComment ( box ) ; }

Target:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box ) { getPanelFromSide ( box.getCm ( ) . side ( ) ) . addFileComment ( box ) ; }
Source:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter ) ;

Target:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter , com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notifyHandling ) ;
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.query.change.ChangeData cd = newChangeData ( db , project , changeId ) ; index ( cd ) ; com.google.gerrit.server.index.change.ChangeIndexer.reindexAfterIndexUpdate ( cd ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.query.change.ChangeData cd = newChangeData ( db , project , changeId ) ; index ( cd ) ; com.google.gerrit.server.index.change.ChangeIndexer.autoReindexIfStale ( cd ) ; }
Source:
public java.util.List < com.googlesrouce.gerrit.plugins.github.git.GHContent > getDirectoryContent ( java.lang.String path ) throws java.io.IOException { return ghRepository.getDirectoryContent ( path ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.github.git.GHContent > getDirectoryContent ( java.lang.String path ) throws java.io.IOException { return ghRepository.getDirectoryContent ( path ) ; }
Source:
public java.util.Map < java.lang.String , java.util.Map > getBranches ( ) { return ( ( java.util.Map < java.lang.String , java.util.Map > ) ( config.get ( "branches" ) ) ) ; }

Target:
public java.util.Map < java.lang.String , java.util.Map > getBranches ( ) { return ( ( java.util.Map < java.lang.String , java.util.Map > ) ( config.getOrDefault ( "branches" , java.util.Collections.emptyMap ( ) ) ) ) ; }
Source:
public static java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > parse ( java.lang.String str ) { try { return java.util.Optional.of ( new com.google.gerrit.reviewdb.client.Account.Id ( java.lang.Integer.parseInt ( str ) ) ) ; } catch ( java.lang.NumberFormatException e ) { return java.util.Optional.empty ( ) ; } }

Target:
public static java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > tryParse ( java.lang.String str ) { try { return java.util.Optional.of ( new com.google.gerrit.reviewdb.client.Account.Id ( java.lang.Integer.parseInt ( str ) ) ) ; } catch ( java.lang.NumberFormatException e ) { return java.util.Optional.empty ( ) ; } }
Source:
protected boolean hasDifferences ( final com.google.gerrit.common.data.PatchScript script ) { boolean hasEdits = ! ( script.getEdits ( ) . isEmpty ( ) ) ; boolean hasMeta = ! ( script.getPatchHeader ( ) . isEmpty ( ) ) ; return hasEdits || hasMeta ; }

Target:
private boolean hasMeta ( com.google.gerrit.common.data.PatchScript script ) { return ! ( script.getPatchHeader ( ) . isEmpty ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.groups.MemberInfo result ) { cb.onSuccess ( com.google.gerrit.client.rpc.Natives.arrayOf ( result ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountInfo result ) { cb.onSuccess ( com.google.gerrit.client.rpc.Natives.arrayOf ( result ) ) ; }
Source:
public void listOneGroupMember ( ) throws java.io.IOException { org.junit.Assert.assertEquals ( GET_ONE ( "/groups/Administrators/members/admin" ) . name , "admin" ) ; }

Target:
public void listOneGroupMember ( ) throws java.io.IOException { org.junit.Assert.assertEquals ( GET_ONE ( "/groups/Administrators/members/admin" ) . name , admin.fullName ) ; }
Source:
public void submitToEmptyRepo ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result change = createChange ( ) ; submit ( change.getChangeId ( ) ) ; com.google.common.truth.Truth.assertThat ( getRemoteHead ( ) . getId ( ) ) . isEqualTo ( change.getCommitId ( ) ) ; }

Target:
public void submitToEmptyRepo ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result change = createChange ( ) ; submit ( change.getChangeId ( ) ) ; com.google.common.truth.Truth.assertThat ( getRemoteHead ( ) . getId ( ) ) . isEqualTo ( change.getCommit ( ) ) ; }
Source:
public void visit ( org.pegdown.ast.TableRowNode node ) { com.google.common.base.Preconditions.checkState ( ( ( table ) != null ) , "%s must be in table" , node ) ; table.startRow ( ) ; wrapChildren ( "tr" , node ) ; }

Target:
public void visit ( org.pegdown.ast.TableRowNode node ) { mustBeInsideTable ( node ) ; table.startRow ( ) ; wrapChildren ( "tr" , node ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.changes.ChangeListServiceImpl ( ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.ChangeListServiceImpl ( ) ; }
Source:
public void addReviewerToReviewableChangeInReviewDb ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerToReviewableChangeInNoteDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
public void onBrowserEvent ( final com.google.gwt.user.client.Event event ) { if ( ( ( com.google.gwt.user.client.DOM.eventGetType ( event ) ) == ( com.google.gwt.user.client.Event.ONCLICK ) ) && ( com.google.gerrit.client.ui.LinkMenuItem.impl.handleAsClick ( event ) ) ) { onClick ( event ) ; } }

Target:
public void onBrowserEvent ( final com.google.gwt.user.client.Event event ) { if ( ( ( com.google.gwt.user.client.DOM.eventGetType ( event ) ) == ( com.google.gwt.user.client.Event.ONCLICK ) ) && ( com.google.gerrit.client.ui.LinkMenuItem.impl.handleAsClick ( event ) ) ) { com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; go ( ) ; } }
Source:
public void onCreateAccount ( final com.google.gerrit.server.account.AuthRequest who , final com.google.gerrit.reviewdb.Account account ) { usernameCache.put ( who.getLocalUser ( ) , account.getId ( ) ) ; }

Target:
public void onCreateAccount ( final com.google.gerrit.server.account.AuthRequest who , final com.google.gerrit.reviewdb.Account account ) { java.lang.String name = who.getLocalUser ( ) ; com.google.gerrit.server.util.FutureUtil.waitFor ( usernameCache.putAsync ( name , account.getId ( ) ) ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; refresh ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; detailCache.refresh ( ) ; }
Source:
public boolean canForceUpdate ( ) { return ( canPushWithForce ( ) ) || ( canDelete ( ) ) ; }

Target:
public boolean canForceUpdate ( ) { return ( ( canPushWithForce ( ) ) || ( canDelete ( ) ) ) && ( canWrite ( ) ) ; }
Source:
public final Change.Id legacy_id ( ) { return new com.google.gerrit.reviewdb.client.Change.Id ( _number ( ) ) ; }

Target:
public final Change.Id legacyId ( ) { return new com.google.gerrit.reviewdb.client.Change.Id ( _number ( ) ) ; }
Source:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line ) { map ( side ) . remove ( line ) ; }

Target:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) { java.util.SortedMap < java.lang.Integer , com.google.gerrit.client.diff.CommentGroup > map = map ( side ) ; if ( ( map.get ( line ) ) == group ) { map.remove ( line ) ; } }
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; repoView.getCommands ( ) . add ( cmd ) ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { getRepoView ( ) . getCommands ( ) . add ( cmd ) ; }
Source:
private com.google.gerrit.acceptance.GerritServer startImpl ( ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path ) ; }

Target:
private com.google.gerrit.acceptance.GerritServer startImpl ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path , testSysModule ) ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return com.google.gerrit.server.project.FileResource.create ( repoManager , parent.getControl ( ) , org.eclipse.jgit.lib.ObjectId.fromString ( parent.getRevision ( ) ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return com.google.gerrit.server.project.FileResource.create ( repoManager , parent.getProjectState ( ) , org.eclipse.jgit.lib.ObjectId.fromString ( parent.getRevision ( ) ) , id.get ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "AuditEvent UUID:%s, SID:%s, TS:%d, who:%s, what:%s" , uuid.get ( ) , sessionId , when , who , what ) ; }

Target:
public int hashCode ( ) { return uuid.hashCode ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { generation = g ; save.setEnabled ( ( ! ( cm.isClean ( g ) ) ) ) ; }

Target:
private void setClean ( boolean clean ) { save.setEnabled ( ( ! clean ) ) ; dirty.getStyle ( ) . setVisibility ( ( ! clean ? com.google.gwt.dom.client.Style.Visibility.VISIBLE : com.google.gwt.dom.client.Style.Visibility.HIDDEN ) ) ; }
Source:
public static void drop ( final com.google.gerrit.testutil.TestDatabase db ) { if ( db != null ) { db.drop ( ) ; } }

Target:
public static void drop ( final com.google.gerrit.testutil.InMemoryDatabase db ) { if ( db != null ) { db.drop ( ) ; } }
Source:
public void deleteBranchByUserWithDeletePermission ( ) throws java.lang.Exception { grantDelete ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByRestWithFullName ( ) throws java.lang.Exception { grantDelete ( ) ; assertDeleteByRestSucceeds ( testBranch , testBranch.get ( ) ) ; }
Source:
private java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( req.getCharacterEncoding ( ) , "UTF-8" ) ; }

Target:
private static java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( req.getCharacterEncoding ( ) , java.nio.charset.StandardCharsets.UTF_8.name ( ) ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.git.gpg.TestKey in ) { return com.google.common.io.BaseEncoding.base16 ( ) . encode ( in.getPublicKey ( ) . getFingerprint ( ) ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.gpg.testutil.TestKey in ) { return com.google.common.io.BaseEncoding.base16 ( ) . encode ( in.getPublicKey ( ) . getFingerprint ( ) ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( ) { if ( isSpecialWildProject ( ) ) { return java.util.Collections.emptyList ( ) ; } return inheritedRights.get ( ) ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id action ) { if ( action.canInheritFromWildProject ( ) ) { return com.google.gerrit.server.project.ProjectState.filter ( getInheritedRights ( ) , action ) ; } return java.util.Collections.emptyList ( ) ; }
Source:
private static native < T extends com.google.gwt.core.client.JavaScriptObject > T parse0 ( com.google.gwt.core.client.JavaScriptObject p , java.lang.String s ) ;

Target:
private static native < T extends com.google.gwt.core.client.JavaScriptObject > T parseObject ( com.google.gwt.core.client.JavaScriptObject p , java.lang.String s ) ;
Source:
public void testEvictGroupsMembersOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS_MEMBERS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS_MEMBERS , createMock ( AccountGroup.UUID.class ) ) ) . isTrue ( ) ; }

Target:
public void testEvictGroupsByIncludeOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS_BYINCLUDE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS_BYINCLUDE , org.mockito.Mockito.mock ( AccountGroup.UUID.class ) ) ) . isTrue ( ) ; }
Source:
public com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { try { return byId.get ( accountId ) . orElse ( null ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.AccountCacheImpl.log.warn ( ( "Cannot load AccountState for ID " + accountId ) , e ) ; return null ; } }

Target:
public java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { try { return byId.get ( accountId ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.AccountCacheImpl.log.warn ( ( "Cannot load AccountState for ID " + accountId ) , e ) ; return null ; } }
Source:
public com.google.gerrit.reviewdb.AccountDiffPreference getAccountDiffPreference ( ) { com.google.gerrit.reviewdb.AccountDiffPreference diffPref = accountDiffPreferencesCache.get ( getAccountId ( ) ) ; if ( diffPref == null ) { diffPref = com.google.gerrit.reviewdb.AccountDiffPreference.createDefault ( getAccountId ( ) ) ; } return diffPref ; }

Target:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { if ( ( emailAddresses ) == null ) { emailAddresses = getAccountState ( ) . getEmailAddresses ( ) ; } return emailAddresses ; }
Source:
public java.lang.Runnable getRunnable ( ) { return runnable ; }

Target:
public int getTaskId ( ) { return taskId ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , allUsersProvider , change ) ; }
Source:
HEAD ( com.google.gerrit.extensions.api.changes.b3f1de dev ) { }

Target:
public com.google.gerrit.extensions.api.changes.ChangeApi create ( com.google.gerrit.extensions.common.ChangeInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void setUseContentMerge ( final boolean cm ) { useContentMerge = cm ; }

Target:
public void setUseContentMerge ( final com.google.gerrit.reviewdb.client.Project.InheritedBoolean cm ) { useContentMerge = cm ; }
Source:
protected void configure ( ) { factory ( ReviewerResource.Factory.class ) ; factory ( AccountInfo.Loader.Factory.class ) ; factory ( EmailReviewComments.Factory.class ) ; factory ( PatchSetInserter.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ReviewerResource.Factory.class ) ; factory ( AccountInfo.Loader.Factory.class ) ; factory ( EmailReviewComments.Factory.class ) ; factory ( ChangeInserter.Factory.class ) ; factory ( PatchSetInserter.Factory.class ) ; }
Source:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { com.google.gerrit.client.Gerrit.doSignIn ( null ) ; }

Target:
public void execute ( ) { com.google.gerrit.client.Gerrit.doSignIn ( null ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; session = new com.google.gerrit.acceptance.RestSession ( admin ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; }
Source:
boolean isCurrent ( ) { return ( path.lastModified ( ) ) == ( modified ) ; }

Target:
boolean isCurrent ( ) { return ( modified ) == ( com.google.gerrit.common.FileUtil.lastModified ( path ) ) ; }
Source:
public final java.lang.String getUrl ( java.lang.String project ) { return url ( ) . replace ( "${project}" , project ) ; }

Target:
public final java.lang.String getUrl ( java.lang.String project ) { return url ( ) . replaceAll ( "\\$\\{project\\}" , project ) ; }
Source:
public void refsDraftComments ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( accountId , changeId ) ) . isEqualTo ( "refs/draft-comments/23/1011123-67473" ) ; }

Target:
public void refsDraftComments ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( accountId , changeId ) ) . isEqualTo ( "refs/draft-comments/23/1011123/67473" ) ; }
Source:
public final native java.lang.String inherited_value ( ) ;

Target:
public final native java.lang.String inheritedValue ( ) ;
Source:
private void doList ( ) { for ( final java.lang.String name : cacheNames ( ) ) { stderr.print ( name ) ; stderr.print ( '\n' ) ; } stderr.flush ( ) ; }

Target:
private void doList ( ) throws com.google.gerrit.sshd.commands.UnloggedFailure { for ( java.lang.String name : cacheNames ( ) ) { stderr.print ( name ) ; stderr.print ( '\n' ) ; } stderr.flush ( ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { saveButton.setEnabled ( false ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { saveButton.setEnabled ( false ) ; onSave ( ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected final java.lang.String getConfiguredSecureStoreClass ( ) { return com.google.gerrit.server.config.GerritServerConfigModule.getSecureStoreClassName ( sitePath ) ; }
Source:
protected com.google.gson.GsonBuilder createGsonBuilder ( ) { final com.google.gson.GsonBuilder g = super . createGsonBuilder ( ) ; g.registerTypeAdapter ( org.spearce.jgit.diff.Edit.class , new com.google.gerrit.server.rpc.EditDeserializer ( ) ) ; return g ; }

Target:
protected com.google.gson.GsonBuilder createGsonBuilder ( ) { final com.google.gson.GsonBuilder g = super . createGsonBuilder ( ) ; g.registerTypeAdapter ( org.spearce.jgit.diff.Edit.class , new com.google.gerrit.server.http.EditDeserializer ( ) ) ; return g ; }
Source:
private boolean isSuccessful ( org.apache.http.HttpResponse response ) { return ( response.getStatusLine ( ) . getStatusCode ( ) ) == ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }

Target:
private boolean isSuccessful ( org.apache.http.HttpResponse response ) { int sc = response.getStatusLine ( ) . getStatusCode ( ) ; return ( sc == ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ) || ( sc == ( javax.servlet.http.HttpServletResponse.SC_OK ) ) ; }
Source:
private org.eclipse.jgit.lib.Config buildConfig ( org.eclipse.jgit.lib.Config baseConfig ) { if ( ( ( configs ( ) ) != null ) && ( ( config ( ) ) != null ) ) { throw new java.lang.IllegalStateException ( "Use either @GerritConfigs or @GerritConfig not both" ) ; } if ( ( configs ( ) ) != null ) { return com.google.gerrit.acceptance.ConfigAnnotationParser.parse ( baseConfig , configs ( ) ) ; } else if ( ( config ( ) ) != null ) { return com.google.gerrit.acceptance.ConfigAnnotationParser.parse ( baseConfig , config ( ) ) ; } else { return baseConfig ; } }

Target:
private void checkValidAnnotations ( ) { if ( ( ( configs ( ) ) != null ) && ( ( config ( ) ) != null ) ) { throw new java.lang.IllegalStateException ( "Use either @GerritConfigs or @GerritConfig not both" ) ; } }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; }
Source:
private void display ( final com.google.gerrit.client.data.UnifiedPatchDetail detail ) { diffTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; diffTable.display ( detail.getLines ( ) ) ; }

Target:
private void display ( final com.google.gerrit.client.data.UnifiedPatchDetail detail ) { diffTable.setPatchKey ( detail.getPatch ( ) . getKey ( ) ) ; diffTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; diffTable.display ( detail.getLines ( ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Branch > result ) { enableForm ( true ) ; branches.display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ListBranchesResult result ) { enableForm ( true ) ; display ( result.getBranches ( ) ) ; addPanel.setVisible ( result.getCanAdd ( ) ) ; }
Source:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServlet.class ) ; }

Target:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.highavailability.SyncIndexRestApiServlet.class ) ; }
Source:
public void run ( ) { lastFocused = cm ; }

Target:
public void run ( ) { lastFocused = cm ; updateActiveLine ( cm ) . run ( ) ; }
Source:
public void put ( com.google.gerrit.server.account.AccountInfo info ) { if ( detailed ) { info._account_id = info._id.get ( ) ; } provided.add ( info ) ; }

Target:
public void put ( com.google.gerrit.server.account.AccountInfo info ) { if ( detailed ) { info._accountId = info._id.get ( ) ; } provided.add ( info ) ; }
Source:
protected abstract java.lang.String getStyleName ( ) ;

Target:
abstract boolean isModified ( com.google.gerrit.prettify.common.EditList.Hunk hunk ) ;
Source:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws java.sql.SQLException { try ( java.sql.Statement stmt = newStatement ( db ) ) { stmt.execute ( ( "CREATE INDEX patch_sets_byRevision" + " ON patch_sets (revision)" ) ) ; } }

Target:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws java.sql.SQLException { try ( java.sql.Statement stmt = newStatement ( db ) ) { stmt.execute ( "CREATE INDEX patch_sets_byRevision ON patch_sets (revision)" ) ; } }
Source:
public void testEvictAccountsOK ( ) throws java.lang.Exception { setupMocks ( Constants.ACCOUNTS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.ID_RESPONSE , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.ACCOUNTS , createMock ( Account.Id.class ) ) ) . isTrue ( ) ; }

Target:
public void testEvictCacheOK ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isTrue ( ) ; }
Source:
protected int getPermittedLimit ( ) { return java.lang.Integer.MAX_VALUE ; }

Target:
private int getPermittedLimit ( ) { if ( enforceVisibility ) { return userProvider.get ( ) . getCapabilities ( ) . getRange ( GlobalCapability.QUERY_LIMIT ) . getMax ( ) ; } return java.lang.Integer.MAX_VALUE ; }
Source:
public void generatePreparedStatementSet ( final com.google.gwtorm.jdbc.gen.CodeGenSupport cgs ) { cgs.pushSqlHandle ( ) ; cgs.pushColumnIndex ( ) ; cgs.pushFieldValue ( ) ; cgs.invokePreparedStatementSet ( getJavaSqlTypeAlias ( ) ) ; }

Target:
public void generatePreparedStatementSet ( final com.google.gwtorm.server.CodeGenSupport cgs ) { cgs.pushSqlHandle ( ) ; cgs.pushColumnIndex ( ) ; cgs.pushFieldValue ( ) ; cgs.invokePreparedStatementSet ( getJavaSqlTypeAlias ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ListBranchesResult result ) { branches = result.getBranches ( ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > result ) { branches = com.google.gerrit.client.rpc.Natives.asList ( result ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onReply ( null ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public void commentOnReviewableChangeByOwnerNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnReviewableChangeByOwnerNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_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 ( ) ; }
Source:
public void selectHttpUrl ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { selectProtocol ( Protocol.HTTP ) ; }

Target:
public void selectHttpUrl ( ) throws java.io.IOException , java.net.URISyntaxException , org.eclipse.jgit.api.errors.GitAPIException { org.eclipse.jgit.transport.CredentialsProvider.setDefault ( new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider ( admin.username , admin.httpPassword ) ) ; selectProtocol ( Protocol.HTTP ) ; }
Source:
public static java.lang.String mediumFormat ( final java.util.Date dt ) { return com.google.gerrit.client.FormatUtil.dtfmt.format ( dt ) ; }

Target:
public static java.lang.String mediumFormat ( final java.util.Date dt ) { return dt != null ? com.google.gerrit.client.FormatUtil.dtfmt.format ( dt ) : "" ; }
Source:
public void testDeleteOneNotExisting ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 0 ) ; try { createClassUnderTest ( ) . delete ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; org.junit.Assert.fail ( "missing OrmConcurrencyException" ) ; } catch ( com.google.gwtorm.client.OrmConcurrencyException e ) { } }

Target:
public void testDeleteOneExisting ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement delete = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 1 ) ; createClassUnderTest ( ) . delete ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( delete ) ; }
Source:
public void testChangeDeletedFromIndexOK ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.DELETE_OP , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.SUCCESSFUL , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.EMPTY_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( eventForwarder.deleteChangeFromIndex ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.CHANGE_NUMBER ) ) . isTrue ( ) ; }

Target:
public void testChangeDeletedFromIndexOK ( ) throws java.lang.Exception { setUpMocksForIndex ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.DELETE_OP , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.SUCCESSFUL , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.EMPTY_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( eventForwarder.deleteChangeFromIndex ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderTest.CHANGE_NUMBER ) ) . isTrue ( ) ; }
Source:
public void deleteBranchByProjectOwnerForcePushBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockForcePush ( ) ; setApiUser ( user ) ; assertDeleteForbidden ( ) ; }

Target:
public void deleteBranchByProjectOwnerForcePushBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockForcePush ( ) ; setApiUser ( user ) ; assertDeleteForbidden ( testBranch ) ; }
Source:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.HistoryHandler.toAccountGroup ( getRowItem ( row ) . getId ( ) ) ) ; }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toAccountGroup ( getRowItem ( row ) . getId ( ) ) ) ; }
Source:
public void addMembers ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.util.Collection < ? extends com.google.gerrit.reviewdb.client.Account.Id > newMemberIds ) throws com.google.gwtorm.server.OrmException , java.io.IOException { groupsUpdateProvider.get ( ) . addGroupMembers ( db.get ( ) , groupId , com.google.common.collect.ImmutableSet.copyOf ( newMemberIds ) ) ; }

Target:
public void addMembers ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , java.util.Collection < ? extends com.google.gerrit.reviewdb.client.Account.Id > newMemberIds ) throws com.google.gwtorm.server.OrmException , java.io.IOException { groupsUpdateProvider.get ( ) . addGroupMembers ( db.get ( ) , groupUuid , com.google.common.collect.ImmutableSet.copyOf ( newMemberIds ) ) ; }
Source:
public void setGranted ( java.sql.Timestamp ts ) { granted = ts ; }

Target:
public void setGranted ( java.util.Date when ) { if ( when instanceof java.sql.Timestamp ) { granted = ( ( java.sql.Timestamp ) ( when ) ) ; } else { granted = new java.sql.Timestamp ( when.getTime ( ) ) ; } }
Source:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.server.index.SiteIndexer.log.error ( ( "Failed to index " + ( desc ) ) , t ) ; ok.set ( false ) ; }

Target:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.index.SiteIndexer.log.error ( ( "Failed to index " + ( desc ) ) , t ) ; ok.set ( false ) ; }
Source:
protected com.google.gson.GsonBuilder createGsonBuilder ( ) { final com.google.gson.GsonBuilder g = super . createGsonBuilder ( ) ; g.registerTypeAdapter ( org.eclipse.jgit.diff.Edit.class , new com.google.gerrit.httpd.rpc.EditDeserializer ( ) ) ; return g ; }

Target:
private static com.google.gson.GsonBuilder gerritDefaultGsonBuilder ( ) { final com.google.gson.GsonBuilder g = defaultGsonBuilder ( ) ; g.registerTypeAdapter ( org.eclipse.jgit.diff.Edit.class , new com.google.gerrit.httpd.rpc.EditDeserializer ( ) ) ; return g ; }
Source:
com.google.gerrit.server.notedb.RobotCommentUpdate create ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when ) ;

Target:
com.google.gerrit.server.notedb.RobotCommentUpdate create ( com.google.gerrit.reviewdb.client.Change change , @ com.google.inject.assistedinject.Assisted ( value = "effective" ) com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.inject.assistedinject.Assisted ( value = "real" ) com.google.gerrit.reviewdb.client.Account.Id realAccountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when ) ;
Source:
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 ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onCollapseAll ( null ) ; }
Source:
public void commentOnReviewableChangeByOther ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( other , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED ) ; assertThat ( sender ) . sent ( "comment" , sc ) . notTo ( other ) . to ( sc.owner ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . bcc ( sc.starrer ) . bcc ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; }

Target:
public void commentOnReviewableChangeByOwnerNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void setChangeScreen ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ChangeScreen ui ) { this . changeScreen = ui ; }

Target:
public void setReplyLabel ( java.lang.String r ) { replyLabel = r ; }
Source:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { return newId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { refreshObjectIds ( ) ; return newId ; }
Source:
public void createBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }

Target:
public void createBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
protected void loadNext ( ) { Util.LIST_SVC.allQueryNext ( query , pos , pageSize , loadCallback ( ) ) ; }

Target:
protected void loadNext ( ) { com.google.gerrit.client.changes.ChangeList.next ( query , pageSize , pos , loadCallback ( ) ) ; }
Source:
public com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > allApprovalsMap ( ) throws com.google.gwtorm.server.OrmException { if ( ( allApprovals ) == null ) { allApprovals = approvalsUtil.byChange ( db , notes ( ) ) ; } return allApprovals ; }

Target:
public com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > approvalsMap ( ) throws com.google.gwtorm.server.OrmException { if ( ( allApprovals ) == null ) { allApprovals = approvalsUtil.byChange ( db , notes ( ) ) ; } return allApprovals ; }
Source:
com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;

Target:
com.google.gerrit.server.account.AccountState getEvenIfMissing ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;
Source:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return ( "q," + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + ",n,z" ; }

Target:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return ( ( "q," + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + "," ) + ( com.google.gerrit.common.PageLinks.TOP ) ; }
Source:
public void suggestReviewersNoResult3 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }

Target:
public void suggestReviewersNoResult3 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchSet.Id > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchSet.Id > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void addIntHeader ( java.lang.String name , int value ) { headers.put ( name , java.lang.Integer.toString ( value ) ) ; }

Target:
public boolean containsHeader ( java.lang.String name ) { return headers.containsKey ( name.toLowerCase ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { generation = g ; save.setEnabled ( ( ! ( cm.isClean ( g ) ) ) ) ; }
Source:
public void start ( org.apache.sshd.server.Environment env ) throws java.io.IOException { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; impl.display ( out ) ; } } ) ; }

Target:
public void run ( ) throws java.lang.Exception { impl.display ( stdout ) ; }
Source:
public void setUseSignedOffBy ( final com.google.gerrit.reviewdb.client.Project.InheritableBoolean sbo ) { useSignedOffBy = sbo ; }

Target:
public void setUseSignedOffBy ( final com.google.gerrit.extensions.common.InheritableBoolean sbo ) { useSignedOffBy = sbo ; }
Source:
public java.lang.String getName ( ) { return control.getGroup ( ) . getName ( ) ; }

Target:
public GroupDescription.Basic getGroup ( ) { return control.getGroup ( ) ; }
Source:
public static boolean isEnabled ( com.google.inject.Injector injector ) { return injector.getInstance ( com.google.inject.Key.get ( org.eclipse.jgit.lib.Config.class , com.google.gerrit.server.config.GerritServerConfig.class ) ) . getBoolean ( "index" , null , "enabled" , false ) ; }

Target:
public static com.google.gerrit.server.index.IndexModule.IndexType getIndexType ( com.google.inject.Injector injector ) { org.eclipse.jgit.lib.Config cfg = injector.getInstance ( com.google.inject.Key.get ( org.eclipse.jgit.lib.Config.class , com.google.gerrit.server.config.GerritServerConfig.class ) ) ; return cfg.getEnum ( "index" , null , "type" , com.google.gerrit.server.index.IndexModule.IndexType.SQL ) ; }