auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; engine.areg2 = this . areg2 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; engine.r2 = this . r2 ; engine.r3 = this . r3 ; }
Source:
public boolean isVisible ( ) { return ( visibleForReplication ( ) ) || ( canPerformOnAnyRef ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ) ; }

Target:
public boolean isVisible ( ) { return ( visibleForReplication ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ; }
Source:
public void build ( com.google.gerrit.httpd.raw.Label l ) throws com.google.gerrit.httpd.raw.BuildFailureException , java.io.IOException { throw new com.google.gerrit.httpd.raw.BuildFailureException ( "not implemented yet." . getBytes ( ) ) ; }

Target:
protected java.lang.ProcessBuilder newBuildProcess ( com.google.gerrit.httpd.raw.Label label ) throws java.io.IOException { java.lang.ProcessBuilder proc = new java.lang.ProcessBuilder ( "bazel" , "build" , label.fullName ( ) ) ; return proc ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , classOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.Class < T > classOfT , java.lang.String path , java.lang.String queryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , queryString ) , classOfT ) ; }
Source:
public static synchronized void cleanup ( ) throws java.io.IOException { for ( java.io.File dir : com.google.gerrit.testutil.TempFileUtil.allDirsCreated ) { com.google.gerrit.testutil.TempFileUtil.recursivelyDelete ( dir ) ; } com.google.gerrit.testutil.TempFileUtil.allDirsCreated.clear ( ) ; }

Target:
public static synchronized void cleanup ( ) throws java.io.IOException { for ( java.io.File dir : com.google.gerrit.testing.TempFileUtil.allDirsCreated ) { com.google.gerrit.testing.TempFileUtil.recursivelyDelete ( dir ) ; } com.google.gerrit.testing.TempFileUtil.allDirsCreated.clear ( ) ; }
Source:
protected com.google.gerrit.client.api.ExtensionPanel createExtensionPoint ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint ) { com.google.gerrit.client.api.ExtensionPanel extensionPanel = new com.google.gerrit.client.api.ExtensionPanel ( extensionPoint ) ; extensionPanel.putObject ( GerritUiExtensionPoint.Key.ACCOUNT_INFO , com.google.gerrit.client.Gerrit.getUserAccountInfo ( ) ) ; return extensionPanel ; }

Target:
protected com.google.gerrit.client.api.ExtensionPanel createExtensionPoint ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint ) { com.google.gerrit.client.api.ExtensionPanel extensionPanel = new com.google.gerrit.client.api.ExtensionPanel ( extensionPoint ) ; extensionPanel.putObject ( GerritUiExtensionPoint.Key.ACCOUNT_INFO , com.google.gerrit.client.Gerrit.getUserAccount ( ) ) ; return extensionPanel ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.data.ChangeInfo c ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Link.toChange ( c ) , new com.google.gerrit.client.changes.ChangeScreen ( c ) ) ; }

Target:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.data.ChangeInfo c = getRowItem ( row ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Link.toChange ( c ) , new com.google.gerrit.client.changes.ChangeScreen ( c ) ) ; }
Source:
private void parseComments ( ) throws java.io.IOException , java.text.ParseException , org.eclipse.jgit.errors.ConfigInvalidException { commentNoteMap = com.google.gerrit.server.notedb.CommentsInNotesUtil.parseCommentsFromNotes ( repo , com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( changeId ) , walk , changeId , commentsForBase , commentsForPs ) ; }

Target:
private void parseComments ( ) throws java.io.IOException , java.text.ParseException , org.eclipse.jgit.errors.ConfigInvalidException { commentNoteMap = com.google.gerrit.server.notedb.CommentsInNotesUtil.parseCommentsFromNotes ( repo , com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( changeId ) , walk , changeId , commentsForBase , commentsForPs , Status.PUBLISHED ) ; }
Source:
int getCookieAge ( ) { return ( ( int ) ( ( ( refreshCookieAt ) - ( java.lang.System.currentTimeMillis ( ) ) ) / 1000L ) ) ; }

Target:
static long now ( ) { return java.lang.System.currentTimeMillis ( ) ; }
Source:
public static void ensureConsistentWithGroupNameNotes ( org.eclipse.jgit.lib.Repository allUsersRepo , com.google.gerrit.server.group.InternalGroup group ) throws java.io.IOException { java.util.List < com.google.gerrit.extensions.api.config.ConsistencyCheckInfo.ConsistencyProblemInfo > problems = com.google.gerrit.server.group.db.GroupsNoteDbConsistencyChecker.checkWithGroupNameNotes ( allUsersRepo , group.getName ( ) , group.getGroupUUID ( ) ) ; problems.forEach ( com.google.gerrit.server.group.db.GroupsNoteDbConsistencyChecker :: logConsistencyProblem ) ; }

Target:
public static void ensureConsistentWithGroupNameNotes ( org.eclipse.jgit.lib.Repository allUsersRepo , com.google.gerrit.server.group.InternalGroup group ) throws java.io.IOException { java.util.List < com.google.gerrit.extensions.api.config.ConsistencyCheckInfo.ConsistencyProblemInfo > problems = com.google.gerrit.server.group.db.GroupsNoteDbConsistencyChecker.checkWithGroupNameNotes ( allUsersRepo , group.getNameKey ( ) , group.getGroupUUID ( ) ) ; problems.forEach ( com.google.gerrit.server.group.db.GroupsNoteDbConsistencyChecker :: logConsistencyProblem ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }
Source:
public static void store ( final com.google.gerrit.client.reviewdb.Account account , final com.google.gerrit.client.reviewdb.ContactInformation info ) throws com.google.gerrit.client.rpc.ContactInformationStoreException { com.google.gerrit.server.EncryptedContactStore.getInstance ( ) . storeImpl ( account , info ) ; }

Target:
public void store ( com.google.gerrit.client.reviewdb.Account account , com.google.gerrit.client.reviewdb.ContactInformation info ) throws com.google.gerrit.client.rpc.ContactInformationStoreException { throw initError ; }
Source:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }

Target:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "list" ) . get ( cb ) ; }
Source:
public void current ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testutil.IndexVersions.CURRENT ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getLatest ( ) . getVersion ( ) ) ; }

Target:
public void current ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.CURRENT ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getLatest ( ) . getVersion ( ) ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final boolean fuseUpdates ( ) { return snapshot.get ( ) . fuseUpdates ( ) ; }
Source:
public void start ( ) { consoleReporter.start ( 1 , java.util.concurrent.TimeUnit.MINUTES ) ; }

Target:
public void start ( ) { if ( enabled ) { consoleReporter.start ( 1 , java.util.concurrent.TimeUnit.MINUTES ) ; } }
Source:
org.eclipse.jgit.lib.Repository getChangeRepo ( ) throws java.io.IOException { initChangeRepo ( ) ; return changeRepo.repo ; }

Target:
public com.google.gerrit.server.notedb.NoteDbUpdateManager setCodeRepo ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevWalk rw ) { com.google.common.base.Preconditions.checkState ( ( ( codeRepo ) == null ) , "code repo already initialized" ) ; codeRepo = new com.google.gerrit.server.notedb.NoteDbUpdateManager.OpenRepo ( repo , rw , null , null , false ) ; return this ; }
Source:
public com.google.gerrit.server.project.ProjectState get ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) ;

Target:
com.google.gerrit.server.project.ProjectState checkedGet ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) throws java.io.IOException ;
Source:
public void visit ( org.pegdown.ast.HtmlBlockNode node ) { }

Target:
public void visit ( org.commonmark.node.ThematicBreak thematicBreak ) { html.open ( "hr" ) ; }
Source:
public void close ( ) { for ( com.google.gerrit.server.git.MergeOpRepoManager.OpenRepo repo : openRepos.values ( ) ) { repo.close ( ) ; } }

Target:
public void close ( ) { for ( com.google.gerrit.server.git.MergeOpRepoManager.OpenRepo repo : openRepos.values ( ) ) { repo.close ( ) ; } openRepos.clear ( ) ; }
Source:
private com.google.gerrit.extensions.api.changes.ReviewInput createComment ( final java.lang.String commentTemplate ) { return new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . message ( getCommentFromFile ( commentTemplate ) ) ; }

Target:
private com.google.gerrit.extensions.api.changes.ReviewInput createComment ( java.lang.String comment ) { return new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . message ( ( ( com.criteo.gerrit.plugins.automerge.ReviewUpdater.commentsPrefix ) + comment ) ) ; }
Source:
public void testUpsertTwoSecondExistsing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 0 , 1 ) ; java.sql.PreparedStatement insert = stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . upsert ( com.google.gwtorm.jdbc.TestJdbcAccess.TWO_ROWS ) ; verifyIds ( insert , 1 ) ; }

Target:
public void testUpdateOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement update = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( update ) ; }
Source:
static java.io.File getDir ( com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return new java.io.File ( sitePaths.index_dir , java.lang.String.format ( "%s%04d" , com.google.gerrit.lucene.LuceneVersionManager.CHANGES_PREFIX , schema.getVersion ( ) ) ) ; }

Target:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s%04d" , com.google.gerrit.lucene.LuceneVersionManager.CHANGES_PREFIX , schema.getVersion ( ) ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.PublishCommentScreen.ReviewInput result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( submit ) ; } }
Source:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH ) ; }

Target:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return ( canPerform ( Permission.PUSH ) ) && ( canWrite ( ) ) ; }
Source:
com.google.gerrit.server.CurrentUser getUser ( ) { return getControl ( ) . getUser ( ) ; }

Target:
com.google.gerrit.server.CurrentUser getUser ( ) { return getChangeResource ( ) . getUser ( ) ; }
Source:
public void onMouseUp ( final com.google.gwt.event.dom.client.MouseUpEvent e ) { on ( e ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent e ) { on ( e ) ; }
Source:
org.pegdown.ast.ReferenceNode get ( org.pegdown.ast.SuperNode keyNode , java.lang.String text ) { java.lang.String id = ( keyNode != null ) ? com.google.gitiles.doc.MarkdownHelper.getInnerText ( keyNode ) : text ; return references.get ( com.google.gitiles.doc.ReferenceMap.key ( id ) ) ; }

Target:
org.pegdown.ast.ReferenceNode get ( org.pegdown.ast.SuperNode keyNode , java.lang.String text ) { java.lang.String id = ( keyNode != null ) ? com.google.gitiles.doc.MarkdownUtil.getInnerText ( keyNode ) : text ; return references.get ( com.google.gitiles.doc.ReferenceMap.key ( id ) ) ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , change.currentPatchSetId ( ) , db , txn ) ; }

Target:
public void addReviewers ( final com.google.gerrit.client.reviewdb.Change.Id id , final java.util.List < java.lang.String > reviewers , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.patches.AddReviewerResult > callback ) { addReviewerFactory.create ( id , reviewers ) . to ( callback ) ; }
Source:
DiffInfo.IntraLineStatus getIntraLineStatus ( ) { return diff.intraline_status ( ) ; }

Target:
DiffInfo.IntraLineStatus getIntraLineStatus ( ) { return diff.intralineStatus ( ) ; }
Source:
private static native java.lang.String showTrailingWhitespace ( java.lang.String src ) ;

Target:
private static com.google.gwtexpui.safehtml.client.SafeHtml showTrailingWhitespace ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { return src.replaceFirst ( "([ \t][ \t]*)(\r?\n?)$" , "<span class=\"gerrit-whitespaceerror\">$1</span>$2" ) ; }
Source:
protected void configure ( ) { factory ( ChangeResource.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ChangeResource.Factory.class ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; }
Source:
public void delete ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( change , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
java.lang.String getPath ( ) { return path ; }

Target:
public void run ( ) { if ( cm.hasSearchHighlight ( ) ) { cm.execCommand ( "findNext" ) ; } else { cm.execCommand ( "clearSearch" ) ; getCommentManager ( ) . toggleOpenBox ( cm ) . run ( ) ; } }
Source:
public void run ( ) { renderSkips ( context ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
public boolean yesno ( boolean def , java.lang.String msg ) { return ui.yesno ( def , msg ) ; }

Target:
public boolean yesno ( boolean defaultValue , java.lang.String message ) { return ui.yesno ( defaultValue , message ) ; }
Source:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) ; r.append ( accountId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsUsers ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.newStringBuilder ( ) . append ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ; return com.google.gerrit.reviewdb.client.RefNames.shard ( accountId.get ( ) , r ) . toString ( ) ; }
Source:
public java.lang.String doProcess ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { return com.googlesource.gerrit.plugins.webhooks.processors.GerritEventProcessor.GSON.toJson ( event ) ; }

Target:
public com.google.common.base.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > doProcess ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { return com.google.common.base.Optional.of ( new com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request ( com.googlesource.gerrit.plugins.webhooks.processors.GerritEventProcessor.GSON.toJson ( event ) ) ) ; }
Source:
public void modifyFile ( java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPut.apply ( changeResource.getControl ( ) , filePath , newContent ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot modify file of change edit" , e ) ; } }

Target:
public void modifyFile ( java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPut.apply ( changeResource.getControl ( ) , filePath , newContent ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot modify file of change edit" , e ) ; } }
Source:
public void stop ( ) { running = false ; int discarded = config.shutdown ( ) ; if ( discarded > 0 ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.warn ( java.lang.String.format ( "Cancelled %d replication events during shutdown" , discarded ) ) ; } }

Target:
public void stop ( ) { running = false ; int discarded = config.shutdown ( ) ; if ( discarded > 0 ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.warn ( java.lang.String.format ( "Canceled %d replication events during shutdown" , discarded ) ) ; } }
Source:
private boolean canCreateCommit ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit commit ) { if ( canUpdate ( ) ) { return true ; } else if ( isMergedIntoBranchOrTag ( repo , commit ) ) { return true ; } return false ; }

Target:
private java.lang.String canCreateCommit ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit commit ) { if ( canUpdate ( ) ) { return null ; } else if ( isMergedIntoBranchOrTag ( repo , commit ) ) { return null ; } return ( "lacks permission " + ( com.google.gerrit.common.data.Permission.PUSH ) ) + " for creating new commit object" ; }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.nextPatchSetId ( ) ; change.setLastSha1MergeTested ( null ) ; return change ; } else { return null ; } }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isClosed ( ) ) { return null ; } change.updateNumberOfPatchSets ( newPatchSet.getPatchSetId ( ) ) ; return change ; }
Source:
public java.lang.String apply ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType notify ) { return notify.name ( ) ; }

Target:
public static com.google.gerrit.server.account.WatchConfig.NotifyValue create ( @ com.google.gerrit.common.Nullable java.lang.String filter , java.util.Set < com.google.gerrit.server.account.WatchConfig.NotifyType > notifyTypes ) { return new com.google.gerrit.server.account.AutoValue_WatchConfig_NotifyValue ( com.google.common.base.Strings.emptyToNull ( filter ) , com.google.common.collect.Sets.immutableEnumSet ( notifyTypes ) ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String ref , org.eclipse.jgit.lib.ObjectId oldObjectId , org.eclipse.jgit.lib.ObjectId newObjectId , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , ref , oldObjectId , newObjectId , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String ref , org.eclipse.jgit.lib.ObjectId oldObjectId , org.eclipse.jgit.lib.ObjectId newObjectId , com.google.gerrit.server.account.AccountState updater ) { fire ( project , ref , oldObjectId , newObjectId , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }
Source:
com.google.gerrit.server.index.ChangeIndexer create ( com.google.gerrit.server.index.IndexCollection indexes ) ;

Target:
com.google.gerrit.server.index.ChangeIndexer create ( com.google.common.util.concurrent.ListeningExecutorService executor , com.google.gerrit.server.index.IndexCollection indexes ) ;
Source:
public void destroy ( ) { org.apache.sshd.server.Command cmd = atomicCmd.getAndSet ( null ) ; if ( cmd != null ) { cmd.destroy ( ) ; } }

Target:
public void destroy ( ) { org.apache.sshd.server.Command cmd = atomicCmd.getAndSet ( null ) ; if ( cmd != null ) { try { cmd.destroy ( ) ; } catch ( java.lang.Exception e ) { com.google.common.base.Throwables.propagate ( e ) ; } } }
Source:
public void onSignOut ( ) { }

Target:
public void onSignOut ( ) { if ( ( starChange ) != null ) { starChange.setVisible ( false ) ; } }
Source:
public boolean isInGroup ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { if ( ( isAnonymousUsers ( groupId ) ) || ( isRegisteredUsers ( groupId ) ) ) { return true ; } return getGroups ( accountId ) . contains ( groupId ) ; }

Target:
public boolean isInGroup ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { if ( ( isAnonymousUsers ( groupId ) ) || ( isRegisteredUsers ( groupId ) ) ) { return true ; } return getEffectiveGroups ( accountId ) . contains ( groupId ) ; }
Source:
public com.google.common.collect.ImmutableMultimap < com.google.gerrit.reviewdb.client.Change.Id , java.lang.String > getProblems ( ) { return com.google.common.collect.ImmutableMultimap.copyOf ( problems ) ; }

Target:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.Change.Id , java.lang.String > getProblems ( ) { return com.google.common.collect.ImmutableListMultimap.copyOf ( problems ) ; }
Source:
public void changeAssigneeOnReviewableChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; assign ( sc , sc.owner , other ) ; sender.clear ( ) ; assign ( sc , sc.owner , sc.assignee ) ; assertThat ( sender ) . sent ( "setassignee" , sc ) . notTo ( sc.owner , sc.reviewer , sc.ccer , sc.starrer , other ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . to ( sc.assignee ) ; }

Target:
public void changeAssigneeOnReviewableChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; assign ( sc , sc.owner , other ) ; sender.clear ( ) ; assign ( sc , sc.owner , sc.assignee ) ; assertThat ( sender ) . sent ( "setassignee" , sc ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . to ( sc.assignee ) . noOneElse ( ) ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { subname = filterTxt.getValue ( ) ; onLoad ( ) ; }

Target:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { subname = filterTxt.getValue ( ) ; refresh ( ) ; }
Source:
java.util.Set < org.eclipse.jgit.lib.ObjectId > getAlreadyAccepted ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { if ( ( alreadyAccepted ) == null ) { alreadyAccepted = com.google.gerrit.server.git.strategy.SubmitDryRun.getAlreadyAccepted ( repo ) ; } return alreadyAccepted ; }

Target:
java.util.Set < org.eclipse.jgit.lib.ObjectId > getAlreadyAccepted ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { if ( ( alreadyAccepted ) == null ) { alreadyAccepted = com.google.gerrit.server.submit.SubmitDryRun.getAlreadyAccepted ( repo ) ; } return alreadyAccepted ; }
Source:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { out.writeUTF ( token ) ; }

Target:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { com.google.gerrit.server.ioutil.BasicSerialization.writeString ( out , token ) ; }
Source:
public void execute ( ) { commentManager.insertNewDraft ( cm ) . run ( ) ; }

Target:
public void execute ( ) { commentManager.newDraft ( cm , ( line + 1 ) ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.server.securestore.SecureStoreClassName.class ) . toProvider ( com.google.inject.util.Providers.of ( getConfiguredSecureStoreClass ( ) ) ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.server.securestore.SecureStoreClassName.class ) . toProvider ( com.google.inject.util.Providers.of ( getConfiguredSecureStoreClass ( ) ) ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final boolean readChanges ( ) { return snapshot.get ( ) . readChanges ( ) ; }
Source:
public boolean shouldPublish ( ) { return config.isEnabled ( ) ; }

Target:
public boolean shouldPublish ( ) { return ( config.isEnabled ( ) ) && ( config.shouldPublishOnCommentAdded ( ) ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsers , change.getProject ( ) , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsers , changeNoteUtil , commentsUtil , change.getProject ( ) , change ) . load ( ) ; }
Source:
public final short changesPerPage ( ) { short changePerPage = get ( "changes_per_page" , AccountGeneralPreferences.DEFAULT_PAGESIZE ) ; return 0 < changePerPage ? changePerPage : com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DEFAULT_PAGESIZE ; }

Target:
public final short changesPerPage ( ) { short changesPerPage = get ( "changes_per_page" , AccountGeneralPreferences.DEFAULT_PAGESIZE ) ; return 0 < changesPerPage ? changesPerPage : com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DEFAULT_PAGESIZE ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountExternalId > result ) { identites.display ( result ) ; identites.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.account.ExternalIdDetail result ) { identites.display ( result ) ; identites.finishDisplay ( true ) ; }
Source:
public void run ( ) { closedIndex.close ( ) ; }

Target:
public void stop ( ) { com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination ( executor , java.lang.Long.MAX_VALUE , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { return new NrtFuture ( writer.deleteDocuments ( term ) ) ; }

Target:
public java.lang.Long call ( ) throws java.io.IOException , java.lang.InterruptedException { return writer.deleteDocuments ( term ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doChangeUserName ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showAddKeyBlock ( true ) ; }
Source:
public boolean match ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws com.google.gwtorm.server.OrmException { try { return groupControlFactory.controlFor ( user , group.getGroupUUID ( ) ) . isVisible ( ) ; } catch ( com.google.gerrit.common.errors.NoSuchGroupException e ) { return false ; } }

Target:
public boolean match ( com.google.gerrit.server.group.InternalGroup group ) throws com.google.gwtorm.server.OrmException { try { return groupControlFactory.controlFor ( user , group.getGroupUUID ( ) ) . isVisible ( ) ; } catch ( com.google.gerrit.common.errors.NoSuchGroupException e ) { return false ; } }
Source:
void onEditMode ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.EDIT ; refreshFileTable ( ) ; editMode.setVisible ( false ) ; addFile.setVisible ( true ) ; reviewMode.setVisible ( true ) ; }

Target:
void onEditMode ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.EDIT ; refreshFileTable ( ) ; editMode.setVisible ( false ) ; addFile.setVisible ( true ) ; deleteFile.setVisible ( true ) ; reviewMode.setVisible ( true ) ; }
Source:
public void testUsernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = util.user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = util.user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; org.junit.Assert.assertFalse ( "u can't read" , u.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; org.junit.Assert.assertTrue ( "d can read" , d.controlForRef ( "refs/sb/dev@ger-rit.org/heads/foobar" ) . isVisible ( ) ) ; }

Target:
public void testUsernameEmailPatternWithRegex ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.project.Util.DEVS , "^refs/sb/${username}/heads/.*" ) ; com.google.gerrit.server.project.ProjectControl u = util.user ( local , "d.v@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; com.google.gerrit.server.project.ProjectControl d = util.user ( local , "dev@ger-rit.org" , com.google.gerrit.server.project.Util.DEVS ) ; assertCannotRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , u ) ; assertCanRead ( "refs/sb/dev@ger-rit.org/heads/foobar" , d ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return getExternalIds.apply ( account ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getExternalIds.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get external IDs" , e ) ; } }
Source:
private java.lang.String problemsForSubmittingChangeset ( com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.server.git.ChangeSet cs , com.google.gerrit.server.IdentifiedUser identifiedUser ) { BRANCH ( 5.0 ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.query.change.ChangeData cd ) { return java.lang.String.valueOf ( cd.getId ( ) . get ( ) ) ; }
Source:
public void testVerifyAgainstDifferentOperation ( ) throws java.lang.Exception { java.lang.String token = auth.generateToken ( "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) , 1 ) ; com.google.common.truth.Truth.assertThat ( auth.verifyAgainstToken ( token , "p" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) ) ) . isFalse ( ) ; }

Target:
public void testVerifyAgainstDifferentOperation ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo info = auth.generateAuthInfo ( "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) , 1 ) ; com.google.common.truth.Truth.assertThat ( auth.verifyAuthInfo ( info.authToken , "p" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) ) ) . isFalse ( ) ; }
Source:
public void run ( ) { fixScroll ( cmA ) ; }

Target:
public void run ( ) { lastFocused = cm ; updateActiveLine ( cm ) . run ( ) ; }
Source:
public void run ( ) throws com.google.gerrit.plugins.Failure { parseCommandLine ( ) ; final java.io.PrintWriter stdout = toPrintWriter ( out ) ; stdout.println ( "Hello world!" ) ; stdout.flush ( ) ; }

Target:
public void run ( ) throws com.google.gerrit.plugins.Failure , com.google.gerrit.plugins.UnloggedFailure , java.lang.Exception { final java.lang.String greeting = ( french ) ? "Bonjour " : "Hello " ; stdout.print ( ( ( greeting + ( name ) ) + "!\n" ) ) ; }
Source:
protected void rcptToAuthors ( final com.google.gerrit.server.mail.RecipientType rt ) { for ( final com.google.gerrit.reviewdb.client.Account.Id id : authors ) { add ( rt , id ) ; } }

Target:
protected void rcptToAuthors ( final com.google.gerrit.extensions.api.changes.RecipientType rt ) { for ( final com.google.gerrit.reviewdb.client.Account.Id id : authors ) { add ( rt , id ) ; } }
Source:
public com.google.gerrit.server.change.PatchSetInserter setRefControl ( com.google.gerrit.server.project.RefControl refControl ) { this . refControl = refControl ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setSshInfo ( com.google.gerrit.server.ssh.SshInfo sshInfo ) { this . sshInfo = sshInfo ; return this ; }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }

Target:
public static void updateDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > toList ( ) { java.util.List < com.google.gerrit.server.query.change.ChangeData > r = rs.toList ( ) ; for ( com.google.gerrit.server.query.change.ChangeData cd : r ) { cd.cacheFromSource ( source ) ; } return r ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > toList ( ) { java.util.List < com.google.gerrit.server.query.change.ChangeData > r = rs.toList ( ) ; for ( com.google.gerrit.server.query.change.ChangeData cd : r ) { cd.cacheFromSource ( currSource ) ; } return r ; }
Source:
private com.google.gerrit.server.change.ChangeJson.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value ) { com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai = new com.google.gerrit.server.change.ChangeJson.ApprovalInfo ( id ) ; ai.value = value ; accountLoader.put ( ai ) ; return ai ; }

Target:
private com.google.gerrit.server.change.ChangeJson.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai = new com.google.gerrit.server.change.ChangeJson.ApprovalInfo ( id ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }
Source:
public java.util.Map < java.lang.String , com.google.gitiles.RepositoryDescription > listRepositories ( java.util.Set < java.lang.String > branches ) { return java.util.Collections.emptyMap ( ) ; }

Target:
public java.util.Map < java.lang.String , com.google.gitiles.RepositoryDescription > listRepositories ( java.lang.String prefix , java.util.Set < java.lang.String > branches ) { return java.util.Collections.emptyMap ( ) ; }
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; factory ( DraftCommentNotes.Factory.class ) ; factory ( NoteDbUpdateManager.Factory.class ) ; }

Target:
public com.google.gerrit.server.notedb.NoteDbChangeState rebuild ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { return null ; }
Source:
protected java.lang.String getSourceUri ( ) { return gitHubRepository.cloneUrl ; }

Target:
public java.lang.String getOrganisation ( ) { return gitHubRepository.getOrganisation ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; }
Source:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatches ( NotifyType.ALL_COMMENTS ) ; bccWatches ( NotifyType.SUBMITTED_CHANGES ) ; }

Target:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; includeWatchers ( NotifyType.SUBMITTED_CHANGES ) ; }
Source:
private int getRandomExecutionDelay ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( com.googlesrouce.gerrit.plugins.github.git.JobExecutor.MAX_EXEC_TIMEOUT_SECS ) ; }

Target:
private int getRandomExecutionDelay ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( config.getJobExecTimeout ( ) ) ; }
Source:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } update.putComment ( c ) ; }

Target:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; if ( ( c.revId ) == null ) { com.google.gerrit.server.CommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } update.putComment ( PatchLineComment.Status.PUBLISHED , c ) ; }
Source:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Timestamp o ) { sb.append ( '"' ) ; sb.append ( com.google.gwtjsonrpc.client.JavaSqlTimestamp_JsonSerializer.toString ( o ) ) ; sb.append ( '"' ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Timestamp o ) { sb.append ( '"' ) ; sb.append ( com.google.gwtjsonrpc.client.JavaSqlTimestamp_JsonSerializer.toString ( o.getTime ( ) ) ) ; sb.append ( '"' ) ; }
Source:
com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;

Target:
java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;
Source:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet ( indexerMock ) ; uuid = AccountGroup.UUID.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ; org.mockito.Mockito.when ( requestMock.getPathInfo ( ) ) . thenReturn ( ( "/index/group/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ) ) ; }

Target:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet ( indexerMock ) ; uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ; org.mockito.Mockito.when ( requestMock.getPathInfo ( ) ) . thenReturn ( ( "/index/group/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ) ) ; }
Source:
public < T > T execute ( com.google.gerrit.server.update.RetryHelper.Action < T > action ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return execute ( action , null ) ; }

Target:
public < T > T execute ( com.google.gerrit.server.update.RetryHelper.Action < T > action ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return execute ( action , com.google.gerrit.server.update.RetryHelper.defaults ( ) ) ; }
Source:
public boolean canAbandon ( ) { return ( ( isOwner ( ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean canAbandon ( ) { return ( ( ( isOwner ( ) ) || ( getRefControl ( ) . isOwner ( ) ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
public void emptyExceptSubject ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.setSubject ( "Create change" ) ; update.commit ( ) ; com.google.common.truth.Truth.assertThat ( update.getRevision ( ) ) . isNotNull ( ) ; }

Target:
public void emptyExceptSubject ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.setSubjectForCommit ( "Create change" ) ; update.commit ( ) ; com.google.common.truth.Truth.assertThat ( update.getRevision ( ) ) . isNotNull ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.GerritConfig result ) { com.google.gerrit.client.rpc.Common.setGerritConfig ( result ) ; onModuleLoad2 ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.HostPageData result ) { com.google.gerrit.client.rpc.Common.setGerritConfig ( result.config ) ; if ( ( result.userAccount ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.userAccount ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( ) ; }
Source:
protected void initPatchSetListForTableHeader ( ) { psListOfHeaderA = new com.google.gerrit.client.patches.PatchSetSelectBox ( PatchSetSelectBox.Side.A , PatchScreen.Type.SIDE_BY_SIDE ) ; psListOfHeaderB = new com.google.gerrit.client.patches.PatchSetSelectBox ( PatchSetSelectBox.Side.B , PatchScreen.Type.SIDE_BY_SIDE ) ; }

Target:
protected void destroyCommentRow ( final int row ) { super . destroyCommentRow ( row ) ; if ( row == ( ( R_HEAD ) + 1 ) ) { table.removeRow ( row ) ; isFileCommentBorderRowExist = false ; } }
Source:
public static java.lang.String createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , true , false ) ; }

Target:
public static com.google.gerrit.acceptance.git.GitUtil.Commit createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , null ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { enableEdit ( true ) ; set ( result ) ; setEdit ( false ) ; if ( autoClosed ) { setOpen ( false ) ; } getDiffScreen ( ) . updateUnsaved ( this , false ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { enableEdit ( true ) ; set ( result ) ; setEdit ( false ) ; if ( autoClosed ) { setOpen ( false ) ; } getCommentManager ( ) . setUnsaved ( this , false ) ; }
Source:
public com.google.gerrit.reviewdb.Account get ( final com.google.gerrit.reviewdb.Account.Id id ) { want ( id ) ; return out.get ( id ) ; }

Target:
public void want ( final java.util.Collection < com.google.gerrit.reviewdb.Account.Id > ids ) { wants.addAll ( ids ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) . value ( ) ; } catch ( com.google.gerrit.server.git.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }