auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void setFormat ( com.google.gerrit.server.query.change.QueryProcessor.OutputFormat format ) { processor.setOutput ( out , format ) ; }

Target:
void setFormat ( com.google.gerrit.server.query.change.OutputStreamQuery.OutputFormat format ) { processor.setOutput ( out , format ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commitAt ( org.eclipse.jgit.lib.ObjectId expected ) throws java.io.IOException { if ( com.google.common.base.Objects.equal ( src , expected ) ) { return revision ; } return updateRef ( com.google.common.base.Objects.firstNonNull ( expected , org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) , src , getRefName ( ) ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit commitAt ( org.eclipse.jgit.lib.ObjectId expected ) throws java.io.IOException { if ( com.google.common.base.Objects.equal ( src , expected ) ) { return revision ; } return updateRef ( com.google.common.base.MoreObjects.firstNonNull ( expected , org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) , src , getRefName ( ) ) ; }
Source:
public void dirty ( final com.google.gerrit.client.reviewdb.ChangeApproval ap ) { if ( ( modified ) == null ) { modified = new java.util.HashSet < com.google.gerrit.client.reviewdb.ChangeApproval > ( ) ; } modified.add ( ap ) ; }

Target:
public void dirty ( final com.google.gerrit.client.reviewdb.PatchSetApproval ap ) { if ( ( modified ) == null ) { modified = new java.util.HashSet < com.google.gerrit.client.reviewdb.PatchSetApproval > ( ) ; } modified.add ( ap ) ; }
Source:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.client.UserIdentity who ) { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }

Target:
protected void add ( final com.google.gerrit.extensions.api.changes.RecipientType rt , final com.google.gerrit.reviewdb.client.UserIdentity who ) { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }
Source:
private java.lang.String groupOf ( final com.google.gerrit.reviewdb.RefRight r ) { return groups.get ( r.getAccountGroupId ( ) ) . getName ( ) ; }

Target:
private java.lang.String groupOf ( com.google.gerrit.reviewdb.RefRight r ) { return com.google.gerrit.server.util.FutureUtil.get ( want ( r.getAccountGroupId ( ) ) ) . getName ( ) ; }
Source:
public void refresh ( ) { Util.DETAIL_SVC.changeDetail ( changeId , new com.google.gerrit.client.changes.ChangeDetailCache.GerritCallback ( ) ) ; }

Target:
public void refresh ( ) { com.google.gerrit.client.rpc.RestApi call = com.google.gerrit.client.changes.ChangeApi.detail ( changeId.get ( ) ) ; com.google.gerrit.client.changes.ChangeList.addOptions ( call , java.util.EnumSet.of ( ListChangesOption.CURRENT_ACTIONS , ListChangesOption.ALL_REVISIONS , ListChangesOption.ALL_COMMITS ) ) ; call.get ( new com.google.gerrit.client.changes.ChangeDetailCache.NewGerritCallback ( ) ) ; }
Source:
static void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < ? > event ) { com.google.gwtjsonrpc.client.JsonUtil.globalHandlers.fireEvent ( event ) ; event.call = null ; }

Target:
public static void fireEvent ( com.google.gwtjsonrpc.client.event.BaseRpcEvent < ? > event ) { com.google.gwtjsonrpc.client.JsonUtil.globalHandlers.fireEvent ( event ) ; }
Source:
public int getContext ( ) { return settings.getContext ( ) ; }

Target:
public com.google.gerrit.common.data.PatchScriptSettings getSettings ( ) { return settings ; }
Source:
public void stop ( ) { }

Target:
public void stop ( ) { if ( ( scheduledCleanupTask ) != null ) { scheduledCleanupTask.cancel ( true ) ; scheduledCleanupTask = null ; } }
Source:
public boolean canAdministrateServer ( ) { if ( ( canAdministrateServer ) == null ) { canAdministrateServer = ( ( user ) instanceof com.google.gerrit.server.PeerDaemonUser ) || ( matchAny ( capabilities.administrateServer ) ) ; } return canAdministrateServer ; }

Target:
public boolean canAdministrateServer ( ) { if ( ( canAdministrateServer ) == null ) { canAdministrateServer = ( ( user ) instanceof com.google.gerrit.server.PeerDaemonUser ) || ( matchAny ( capabilities.administrateServer , com.google.gerrit.server.account.CapabilityControl.ALLOWED_RULE ) ) ; } return canAdministrateServer ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType , result.canModifyState , result.canModifyMaxObjectSizeLimit ) ; display ( result ) ; }

Target:
public void preDisplay ( com.google.gerrit.client.projects.ConfigInfo result ) { display ( result ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final com.google.gerrit.server.notedb.NoteDbChangeState.PrimaryStorage changePrimaryStorage ( ) { return snapshot.get ( ) . changePrimaryStorage ( ) ; }
Source:
public void stop ( ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; sysInjector = null ; sshInjector = null ; } }

Target:
public void stop ( ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; sysInjector = null ; sshInjector = null ; httpInjector = null ; } }
Source:
public void publish ( com.google.gerrit.extensions.api.changes.PublishChangeEditInput publishChangeEditInput ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publishChangeEdit.apply ( changeResource , publishChangeEditInput ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish change edit" , e ) ; } }

Target:
public void publish ( com.google.gerrit.extensions.api.changes.PublishChangeEditInput publishChangeEditInput ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publishChangeEdit.apply ( changeResource , publishChangeEditInput ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot publish change edit" , e ) ; } }
Source:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , patchSetDetail , parentPatchTable ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , patchSetDetail , parentPatchTable , topView ) ; }
Source:
public com.google.common.collect.ImmutableList < org.eclipse.jgit.diff.Edit > getEdits ( ) { return com.google.gerrit.server.patch.IntraLineDiff.deepCopyEdits ( edits ) ; }

Target:
public com.google.common.collect.ImmutableList < org.eclipse.jgit.diff.Edit > getEdits ( ) { return com.google.gerrit.server.diff.IntraLineDiff.deepCopyEdits ( edits ) ; }
Source:
com.googlesource.gerrit.plugins.quota.PersistentCounter providePushCounter ( @ com.google.inject.name.Named ( value = com.googlesource.gerrit.plugins.quota.PersistentCounter.PUSH ) com.google.common.cache.LoadingCache < com.google.gerrit.reviewdb.client.Project.NameKey , java.util.concurrent.atomic.AtomicLong > counts ) { return new com.googlesource.gerrit.plugins.quota.PersistentCounter ( counts ) ; }

Target:
static com.google.inject.Module module ( ) { return new com.google.gerrit.server.cache.CacheModule ( ) { protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.googlesource.gerrit.plugins.quota.UsageDataEventCreator.class ) . to ( com.googlesource.gerrit.plugins.quota.RepoSizeEventCreator.class ) ; } } ; }
Source:
private boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.api.projects.ProjectState.HIDDEN ) ; }

Target:
private boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.client.ProjectState.HIDDEN ) ; }
Source:
public java.lang.String getOrganisation ( ) { return gitHubRepository.organisation ; }

Target:
public java.lang.String getRepository ( ) { return gitHubRepository.getRepository ( ) ; }
Source:
private final native java.lang.String intraline_statusRaw ( ) ;

Target:
private final native java.lang.String intralineStatusRaw ( ) ;
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > starredBy ( ) throws com.google.gwtorm.server.OrmException { if ( ( starredByUser ) == null ) { starredByUser = starredChangesUtil.byChange ( legacyId ) ; } return starredByUser ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > starredBy ( ) throws com.google.gwtorm.server.OrmException { if ( ( starredByUser ) == null ) { starredByUser = com.google.common.base.Preconditions.checkNotNull ( starredChangesUtil ) . byChange ( legacyId ) ; } return starredByUser ; }
Source:
public java.util.List < com.googlesrouce.gerrit.plugins.github.git.GHContent > getDirectoryContent ( java.lang.String path , java.lang.String ref ) throws java.io.IOException { return ghRepository.getDirectoryContent ( path , ref ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.github.git.GHContent > getDirectoryContent ( java.lang.String path , java.lang.String ref ) throws java.io.IOException { return ghRepository.getDirectoryContent ( path , ref ) ; }
Source:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( dbInjector.getInstance ( com.google.gerrit.server.git.WorkQueue.class ) . createQueue ( threads , "RebuildChange" ) ) ; } else { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; } }

Target:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( workQueue.createQueue ( threads , "RebuildChange" ) ) ; } else { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; } }
Source:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;

Target:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;
Source:
public void evictGroups ( ) throws java.io.IOException , javax.servlet.ServletException { configureMocksFor ( Constants.GROUPS ) ; servlet.doPost ( request , response ) ; verifyAll ( ) ; }

Target:
public void evictGroups ( ) throws java.lang.Exception { configureMocksFor ( Constants.GROUPS ) ; verifyResponseIsOK ( ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.update.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { assigneeChanged.fire ( change , ctx.getAccount ( ) , deletedAssignee , ctx.getWhen ( ) ) ; }

Target:
public void postUpdate ( com.google.gerrit.server.update.Context ctx ) throws com.google.gwtorm.server.OrmException { assigneeChanged.fire ( change , ctx.getAccount ( ) , deletedAssignee , ctx.getWhen ( ) ) ; }
Source:
public void deleteBranchByUserWithForcePushPermission ( ) throws java.lang.Exception { grantForcePush ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByProjectOwnerForcePushBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockForcePush ( ) ; setApiUser ( user ) ; assertDeleteForbidden ( testBranch ) ; }
Source:
public boolean yesno ( boolean def , java.lang.String msg ) { return false ; }

Target:
public boolean yesno ( boolean defaultValue , java.lang.String message ) { return defaultValue ; }
Source:
public com.google.gerrit.server.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.server.query.Predicate < T > > children ) { if ( ! ( children.isEmpty ( ) ) ) { throw new java.lang.IllegalArgumentException ( "Expected 0 children" ) ; } return this ; }

Target:
public com.google.gerrit.index.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.index.query.Predicate < T > > children ) { if ( ! ( children.isEmpty ( ) ) ) { throw new java.lang.IllegalArgumentException ( "Expected 0 children" ) ; } return this ; }
Source:
public T decode ( com.google.protobuf.ByteString buf ) { return decode ( buf.newCodedInput ( ) ) ; }

Target:
public T decode ( com.google.protobuf.ByteString buf ) { try { return decode ( buf.newCodedInput ( ) ) ; } catch ( java.io.IOException err ) { throw new java.lang.RuntimeException ( "Cannot decode message" , err ) ; } }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHCommitStatus createCommitStatus ( java.lang.String sha1 , com.googlesrouce.gerrit.plugins.github.git.GHCommitState state , java.lang.String targetUrl , java.lang.String description ) throws java.io.IOException { return ghRepository.createCommitStatus ( sha1 , state , targetUrl , description ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHCommitStatus createCommitStatus ( java.lang.String sha1 , com.googlesource.gerrit.plugins.github.git.GHCommitState state , java.lang.String targetUrl , java.lang.String description ) throws java.io.IOException { return ghRepository.createCommitStatus ( sha1 , state , targetUrl , description ) ; }
Source:
public void run ( ) { int v = prefs.tabSize ( ) ; view.getCmFromSide ( DisplaySide.A ) . setOption ( "tabSize" , v ) ; view.getCmFromSide ( DisplaySide.B ) . setOption ( "tabSize" , v ) ; }

Target:
void onIntralineDifference ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.intralineDifference ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.setShowIntraline ( prefs.intralineDifference ( ) ) ; } }
Source:
private void checkPath ( ) { com.google.common.base.Preconditions.checkState ( ( ( path ) != null ) , "missing path on %s view" , type ) ; checkRevision ( ) ; }

Target:
private void checkPath ( ) { checkView ( ( ( path ) != null ) , "missing path on %s view" , type ) ; checkRevision ( ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.ChangeScreen s = ( ( com.google.gerrit.client.changes.ChangeScreen ) ( newScreen ) ) ; changeId = s.changeId ; changeInfo = s.changeInfo ; return this ; }

Target:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.ChangeScreen s = ( ( com.google.gerrit.client.changes.ChangeScreen ) ( newScreen ) ) ; changeId = s.changeId ; changeInfo = s.changeInfo ; starred = s.starred ; return this ; }
Source:
public void evictInclude ( com.google.gerrit.reviewdb.AccountGroup.Id groupId ) { byInclude.remove ( groupId ) ; }

Target:
public void evictInclude ( com.google.gerrit.reviewdb.AccountGroup.UUID groupId ) { byInclude.remove ( groupId ) ; }
Source:
public boolean canRemoveGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return isOwner ( ) ; }

Target:
public boolean canRemoveGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return isOwner ( ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.common.base.Objects.firstNonNull ( accountCache.get ( accountId ) . getAccount ( ) . getPreferredEmail ( ) , "n/a" ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.common.base.MoreObjects.firstNonNull ( accountCache.get ( accountId ) . getAccount ( ) . getPreferredEmail ( ) , "n/a" ) ; }
Source:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException { prior = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; next = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; strategyName = in.readUTF ( ) ; }

Target:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException { prior = org.eclipse.jgit.lib.ObjectIdSerializer.readWithoutMarker ( in ) ; next = org.eclipse.jgit.lib.ObjectIdSerializer.readWithoutMarker ( in ) ; strategyName = in.readUTF ( ) ; }
Source:
public void formatFooter ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "CommentFooter" ) ) ; }

Target:
public void formatFooter ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "CommentFooter" ) ) ; if ( useHtml ( ) ) { appendHtml ( soyHtmlTemplate ( "CommentFooterHtml" ) ) ; } }
Source:
public void visit ( org.pegdown.ast.DefinitionListNode node ) { wrapChildren ( "dl" , node ) ; }

Target:
public void visit ( org.commonmark.node.BlockQuote node ) { wrapChildren ( "blockquote" , node ) ; }
Source:
public void load ( org.eclipse.jgit.lib.Repository git ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.common.base.Preconditions.checkState ( ( ( this . git ) == null ) ) ; this . git = git ; super . load ( git ) ; }

Target:
public void setProjectWatches ( java.util.Map < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , java.util.Set < com.google.gerrit.server.account.WatchConfig.NotifyType > > projectWatches ) { this . projectWatches = projectWatches ; }
Source:
java.util.Map < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , java.util.Set < com.google.gerrit.server.account.WatchConfig.NotifyType > > getProjectWatches ( ) { checkLoaded ( ) ; return projectWatches ; }

Target:
public java.util.Map < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , java.util.Set < com.google.gerrit.server.account.WatchConfig.NotifyType > > getProjectWatches ( ) { if ( ( projectWatches ) == null ) { parse ( ) ; } return projectWatches ; }
Source:
private boolean isPatchSet ( com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.Event e ) { return e instanceof com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.PatchSetEvent ; }

Target:
private boolean isPatchSet ( com.google.gerrit.server.notedb.rebuild.Event e ) { return e instanceof com.google.gerrit.server.notedb.rebuild.PatchSetEvent ; }
Source:
void moveDown ( int row ) { swap ( row , ( row + 1 ) ) ; }

Target:
void moveDown ( int row ) { if ( row < ( ( table.getRowCount ( ) ) - 1 ) ) { swap ( row , ( row + 1 ) ) ; } }
Source:
protected com.google.gwtorm.client.ResultSet scanIndex ( com.google.gwtorm.nosql.IndexFunction index , byte [ ] fromKey , byte [ ] toKey , int limit ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected com.google.gwtorm.client.ResultSet scanIndex ( com.google.gwtorm.nosql.IndexFunction index , byte [ ] fromKey , byte [ ] toKey , int limit , boolean order ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { if ( ! ( Util.C.addPermission ( ) . equals ( event.getValue ( ) ) ) ) { onAddPermission ( event.getValue ( ) ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { if ( ! ( AdminConstants.I.addPermission ( ) . equals ( event.getValue ( ) ) ) ) { onAddPermission ( event.getValue ( ) ) ; } }
Source:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , pluginName , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , getCommentLinkName ( ) , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.DELETE , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { get ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }

Target:
public void run ( ) { updateActiveLine ( cm ) . run ( ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GitCloneStatus getStatus ( ) { return GitCloneStatus.FAILED ; }

Target:
public com.googlesrouce.gerrit.plugins.github.git.GitJobStatus getStatus ( ) { return GitJobStatus.FAILED ; }
Source:
public void onCreateAccount ( final com.google.gerrit.server.account.AuthRequest who , final com.google.gerrit.reviewdb.client.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.client.Account account ) { usernameCache.put ( who.getLocalUser ( ) , com.google.common.base.Optional.of ( account.getId ( ) ) ) ; }
Source:
public static java.lang.String toChange ( com.google.gerrit.reviewdb.client.Change.Id c , java.lang.String b , java.lang.String p ) { java.lang.String u = ( "/c/" + c ) + "/" ; if ( b != null ) { u += b + ".." ; } u += p ; return u ; }

Target:
private static java.lang.String toChangeNoSlash ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id c ) { if ( project != null ) { return ( ( "/c/" + ( project.get ( ) ) ) + ( com.google.gerrit.common.PageLinks.PROJECT_CHANGE_DELIMITER ) ) + c ; } return "/c/" + c ; }
Source:
public com.google.gerrit.client.reviewdb.Account.Id getId ( ) { return accountId ; }

Target:
int getRawOldAccountId ( ) { return oldAccountId.get ( ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.AccountSshKey > run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( getAccountId ( ) ) . toList ( ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.AccountSshKey > run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { com.google.gerrit.server.IdentifiedUser u = user.get ( ) ; return db.accountSshKeys ( ) . byAccount ( u.getAccountId ( ) ) . toList ( ) ; }
Source:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 ) , iter.advance ( 0 ) ) ; }

Target:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 0 ) , iter.advance ( 0 ) ) ; }
Source:
public void nameInConfigMustBeDefined ( ) throws java.lang.Exception { populateGroupConfig ( groupUuid , "[group]\n\tid = 42\n\townerGroupUuid = owners\n" ) ; expectedException.expect ( org.eclipse.jgit.errors.ConfigInvalidException.class ) ; expectedException.expectMessage ( "Name of the group users-XYZ" ) ; com.google.gerrit.server.group.db.GroupConfig.loadForGroup ( repository , groupUuid ) ; }

Target:
public void nameInConfigMayBeEmpty ( ) throws java.lang.Exception { populateGroupConfig ( groupUuid , "[group]\n\tname=\n\tid = 42\n\townerGroupUuid = owners\n" ) ; com.google.gerrit.server.group.db.GroupConfig groupConfig = com.google.gerrit.server.group.db.GroupConfig.loadForGroup ( repository , groupUuid ) ; com.google.common.truth.Truth.assertThat ( groupConfig.getLoadedGroup ( ) . get ( ) . getName ( ) ) . isEmpty ( ) ; }
Source:
public void markDeleted ( ) { this . deleted = true ; }

Target:
public void deleteChange ( ) { com.google.common.base.Preconditions.checkState ( ( ! ( saved ) ) , "cannot both save and delete change" ) ; deleted = true ; }
Source:
public void onSuccess ( final com.google.gerrit.client.projects.ProjectMap result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { closePopup ( ) ; }
Source:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , aId ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , bId ) ; }

Target:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , aId ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , bId ) ; out.writeBoolean ( ignoreWhitespace ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.transport.ReceiveCommand cmd ) { fire ( project , cmd.getRefName ( ) , cmd.getOldId ( ) , cmd.getNewId ( ) , cmd.getType ( ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account.Id updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( getUrl ( endPoint ) ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser get ( ) { throw new com.google.inject.OutOfScopeException ( "No user on merge thread" ) ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user on merge thread" ) ; }
Source:
private static java.lang.String getGerritServerAvatarUrl ( ) { return Gerrit.RESOURCES.gerritAvatar ( ) . getSafeUri ( ) . asString ( ) ; }

Target:
public void onLoad ( com.google.gwt.event.dom.client.LoadEvent event ) { setVisible ( true ) ; }
Source:
protected void init ( java.lang.String name , com.google.gerrit.server.query.Predicate < T > ... args ) { this . init = true ; this . name = name ; this . children = java.util.Arrays.asList ( args ) ; }

Target:
protected void init ( java.lang.String name , @ java.lang.SuppressWarnings ( value = "unchecked" ) com.google.gerrit.server.query.Predicate < T > ... args ) { this . init = true ; this . name = name ; this . children = com.google.common.collect.ImmutableList.copyOf ( args ) ; }
Source:
private void showPatch ( final boolean showPatch ) { noDifference.setVisible ( ( ! showPatch ) ) ; patchTable.setVisible ( showPatch ) ; }

Target:
private void showPatch ( final boolean showPatch ) { noDifference.setVisible ( ( ! showPatch ) ) ; patchTable.setVisible ( showPatch ) ; patchTable.setRegisterKeys ( ( ( isCurrentView ( ) ) && showPatch ) ) ; }
Source:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestUpdate maniphestUpdate ( int taskId , java.lang.Iterable < java.lang.String > projects ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestUpdate ( taskId , null , projects ) ; }

Target:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestEdit maniphestEdit ( int taskId , java.lang.String comment ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestEdit ( taskId , comment , null , com.googlesource.gerrit.plugins.its.phabricator.conduit.Conduit.ACTION_COMMENT ) ; }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { change.nextPatchSetId ( ) ; return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setCurrentPatchSet ( patchSetInfoFactory.get ( newCommit , ps.getId ( ) ) ) ; return change ; }
Source:
public boolean isVisible ( ) { return ( getProjectControl ( ) . visibleForReplication ( ) ) || ( canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ) ; }

Target:
public boolean isVisible ( ) { return ( getProjectControl ( ) . visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ; }
Source:
public com.google.gerrit.reviewdb.server.ReviewDb getDb ( ) { return dbWrapper ; }

Target:
public com.google.gerrit.reviewdb.server.ReviewDb getDb ( ) { com.google.common.base.Preconditions.checkNotNull ( dbWrapper ) ; return dbWrapper ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { for ( com.google.gerrit.reviewdb.client.Patch p : detail.getPatches ( ) ) { openWindow ( com.google.gerrit.client.Dispatcher.toPatchUnified ( base , p.getKey ( ) ) ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { for ( com.google.gerrit.reviewdb.client.Patch p : detail.getPatches ( ) ) { openWindow ( com.google.gerrit.client.Dispatcher.toSideBySide ( base , p.getKey ( ) ) ) ; } }
Source:
public final native net.codemirror.lib.LineCharacter getTo ( ) ;

Target:
public final native void from ( net.codemirror.lib.Pos f ) ;
Source:
public org.pegdown.ast.RootNode parse ( org.parboiled.support.StringBuilderVar body ) { return parser.parseMarkdown ( body.getChars ( ) ) ; }

Target:
public java.util.List < org.pegdown.ast.Node > parse ( org.parboiled.support.StringBuilderVar body ) { if ( ( parser ) == null ) { parser = com.google.gitiles.doc.GitilesMarkdown.newParser ( ) ; } return parser.parseMarkdown ( body.getChars ( ) ) . getChildren ( ) ; }
Source:
private boolean isEmpty ( ) { return ( ! ( migration.writeChanges ( ) ) ) || ( changeUpdates.isEmpty ( ) ) ; }

Target:
private boolean isEmpty ( ) { if ( ! ( migration.writeChanges ( ) ) ) { return true ; } return ( changeUpdates.isEmpty ( ) ) && ( draftUpdates.isEmpty ( ) ) ; }
Source:
public java.lang.String getMissingDownstreamsMessage ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String message = getConfig ( ) . getString ( "global" , null , "missingDownstreamsMessage" ) ; if ( message == null ) { message = "Missing downstream branches ${missingDownstreams}. Please recreate the automerges." ; } return message ; }

Target:
public java.lang.String getMissingDownstreamsMessage ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String message = getConfig ( ) . getString ( "global" , null , "missingDownstreamsMessage" ) ; if ( message == null ) { message = "Missing downstream branches ${missingDownstreams}. Please recreate the automerges. " + "If your topic contains quotes or braces, please remove them." ; } return message ; }
Source:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.storage.dfs.DfsRepository > ( new org.eclipse.jgit.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; }
Source:
public void createNewChange ( ) throws java.lang.Exception { assertCreateSucceeds ( newChangeInput ( ChangeStatus.NEW ) ) ; }

Target:
public void createEmptyChange_InvalidSubject ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.NEW ) ; ci.subject = "Change-Id: I1234000000000000000000000000000000000000" ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.ResourceConflictException.class , "missing subject; Change-Id must be in commit message footer" ) ; }
Source:
public void run ( ) { clearSkipBars ( ) ; clearMarkers ( ) ; diffTable.sidePanel.clearDiffGutters ( ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; render ( diff ) ; renderSkips ( prefs.context ( ) ) ; }

Target:
public void run ( ) { skipManager.removeAll ( ) ; clearMarkers ( ) ; diffTable.sidePanel.clearDiffGutters ( ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; render ( diff ) ; skipManager.render ( prefs.context ( ) , diff ) ; }
Source:
public java.util.concurrent.ScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { command.run ( ) ; return null ; }

Target:
public java.util.concurrent.ScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { com.ericsson.gerrit.plugins.eventslog.SQLStoreTest.log.info ( command.toString ( ) ) ; command.run ( ) ; return null ; }
Source:
public java.lang.Object getInternalContext ( ) { return self ( ) . getInternalContext ( ) ; }

Target:
public void registerCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self.registerCacheUsageListener ( cacheUsageListener ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { buttonClicked = true ; if ( callback != null ) { callback.onSuccess ( result ) ; } hide ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { sendButton.setEnabled ( false ) ; cancelButton.setEnabled ( false ) ; onSend ( ) ; }
Source:
private void initSshd ( ) { sshInjector = createSshInjector ( ) ; }

Target:
private void initSshd ( ) { sshInjector = createSshInjector ( ) ; manager.add ( sshInjector ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( projectControl.isReadable ( ) ) && ( ( ! ( projectControl.isHidden ( ) ) ) || ( config.replicateHiddenProjects ( ) ) ) ; }

Target:
private boolean shouldReplicate ( com.google.gerrit.server.project.ProjectControl projectControl ) { return ( projectControl.isReadable ( ) ) && ( ( ! ( projectControl.isHidden ( ) ) ) || ( config.replicateHiddenProjects ( ) ) ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draft ( com.google.gerrit.reviewdb.Patch.Key patch , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draftByPatchAuthor ( com.google.gerrit.reviewdb.Patch.Key patch , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return buildJson ( path , typeOfT , "" ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , com.google.gson.reflect.TypeToken < T > typeOfT ) throws java.lang.Exception { return buildJson ( path , typeOfT , "" ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , id ) ; }

Target:
public static java.lang.String toSideBySide ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , project , diffBase , revision , fileName , null , 0 ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.r1 = this . r1 ; engine.r2 = this . r2 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; engine.r2 = this . r2 ; }
Source:
public com.google.gerrit.reviewdb.client.Project.SubmitType getSubmitType ( ) { com.google.gerrit.server.project.ProjectState projectState = getProjectControl ( ) . getProjectState ( ) ; return projectState.getProject ( ) . getSubmitType ( ) ; }

Target:
private com.google.gerrit.common.data.SubmitTypeRecord typeRuleError ( java.lang.String err ) { com.google.gerrit.common.data.SubmitTypeRecord rec = new com.google.gerrit.common.data.SubmitTypeRecord ( ) ; rec.status = SubmitTypeRecord.Status.RULE_ERROR ; rec.errorMessage = err ; return rec ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }

Target:
public void setStatus ( java.lang.String status ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.server.account.PutStatus.Input in = new com.google.gerrit.server.account.PutStatus.Input ( status ) ; try { putStatus.apply ( account , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set status" , e ) ; } }
Source:
private com.google.gerrit.server.plugins.PluginEntry resourceOf ( java.util.jar.JarEntry jarEntry ) throws java.io.IOException { return new com.google.gerrit.server.plugins.PluginEntry ( jarEntry.getName ( ) , jarEntry.getTime ( ) , com.google.common.base.Optional.of ( jarEntry.getSize ( ) ) , attributesOf ( jarEntry ) ) ; }

Target:
private com.google.gerrit.server.plugins.PluginEntry resourceOf ( java.util.jar.JarEntry jarEntry ) throws java.io.IOException { return new com.google.gerrit.server.plugins.PluginEntry ( jarEntry.getName ( ) , jarEntry.getTime ( ) , java.util.Optional.of ( jarEntry.getSize ( ) ) , attributesOf ( jarEntry ) ) ; }
Source:
public final native double heightAtLine ( int line , java.lang.String mode ) ;

Target:
public final native boolean isScrollSetByOther ( ) ;
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( control , msgTxt , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , msgTxt , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onSaveType ( ) ; }
Source:
com.google.gerrit.httpd.raw.PolyGerritUiIndexServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.PolyGerritUiIndexServlet ( cache , polyGerritBasePath ( ) ) ; }

Target:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , isDev ( ) ) ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.reviewdb.Project item ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Link.toProjectAdmin ( item.getId ( ) ) ) ; }

Target:
protected void onOpenItem ( final com.google.gerrit.client.reviewdb.Project item ) { com.google.gwt.user.client.History.newItem ( link ( item ) ) ; }
Source:
public void testGcNonExistingProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( POST ( "/projects/non-existing/gc" ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void testGcNonExistingProject_NotFound ( ) throws java.lang.Exception { POST ( "/projects/non-existing/gc" ) . assertNotFound ( ) ; }
Source:
private static boolean isStateChange ( javax.servlet.http.HttpServletRequest req ) { java.lang.String method = req.getMethod ( ) ; return ! ( ( "GET" . equals ( method ) ) || ( "HEAD" . equals ( method ) ) ) ; }

Target:
private static boolean isStateChange ( javax.servlet.http.HttpServletRequest req ) { return ! ( com.google.gerrit.httpd.restapi.RestApiServlet.isGetOrHead ( req ) ) ; }
Source:
private PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , admin.getIdent ( ) ) ; return push.to ( git , ref ) ; }

Target:
private PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , ref ) ; }
Source:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; cfg.setBoolean ( "notedb" , "publishedComments" , "read" , true ) ; return cfg ; }

Target:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; cfg.setBoolean ( "notedb" , "comments" , "read" , true ) ; return cfg ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( irevTxtBox.getText ( ) ) ) { irevTxtBox.setText ( Util.C.defaultRevisionSpec ( ) ) ; irevTxtBox.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void execute ( ) { irevTxtBox.selectAll ( ) ; irevTxtBox.setFocus ( true ) ; }
Source:
public void setLimit ( int n ) { limitFromCaller = n ; }

Target:
public com.google.gerrit.server.query.change.QueryProcessor setLimit ( int n ) { limitFromCaller = n ; return this ; }
Source:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final java.lang.String name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , com.google.gerrit.server.ssh.Commands.named ( name ) ) ; }

Target:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final com.google.gerrit.server.ssh.CommandName name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , name ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { java.lang.String username = rsrc.getUser ( ) . state ( ) . getUserName ( ) ; if ( username == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; } return username ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { return rsrc.getUser ( ) . state ( ) . getUserName ( ) . orElseThrow ( ResourceNotFoundException :: new ) ; }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when , com.google.gerrit.common.data.LabelTypes labelTypes ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;
Source:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( cell == ( com.google.gerrit.client.changes.ChangeTable.C_STAR ) ) { onStarClick ( row ) ; } }

Target:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( cell == ( com.google.gerrit.client.changes.ChangeTable.C_STAR ) ) { onStarClick ( row ) ; } else if ( ( getRowItem ( row ) ) != null ) { movePointerTo ( row ) ; } }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final boolean rawWriteChangesSetting ( ) { return snapshot.get ( ) . writeChanges ( ) ; }
Source:
private boolean search ( java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.memberOfAny ( ids ) ; }

Target:
private boolean search ( java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.getEffectiveGroups ( ) . containsAnyOf ( ids ) ; }
Source:
public void commentOnReviewableChangeByOwnerNotifyOwner ( ) 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.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { adjustCodeMirrorHeight ( ) ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; content = null ; }