auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.google.gerrit.httpd.rpc.project.ReviewProjectAccess create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ com.google.gerrit.common.Nullable java.lang.String message ) ;

Target:
com.google.gerrit.httpd.rpc.project.ReviewProjectAccess create ( @ com.google.inject.assistedinject.Assisted ( value = "projectName" ) com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , @ com.google.gerrit.common.Nullable java.lang.String message ) ;
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.LINK_IDENTIY , null ) . center ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.lang.String to = com.google.gwt.user.client.History.getToken ( ) ; new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.LINK_IDENTIY , to , null ) . center ( ) ; }
Source:
public boolean isInternal ( ) { return ( getGroup ( ) ) instanceof com.google.gerrit.common.data.GroupDescription.Internal ; }

Target:
public com.google.gerrit.reviewdb.client.AccountGroup toAccountGroup ( ) { return com.google.gerrit.common.data.GroupDescriptions.toAccountGroup ( getGroup ( ) ) ; }
Source:
private boolean shouldReplicate ( final com.google.gerrit.reviewdb.client.Project.NameKey project ) { }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return shouldReplicate ( controlFor ( project ) ) ; }
Source:
public void updateSchema ( com.google.gwtorm.server.StatementExecutor e ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public void updateSchema ( com.google.gwtorm.server.StatementExecutor e ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }
Source:
public void removeHandler ( ) { com.google.gwtexpui.globalkey.client.GlobalKey.keys.remove ( set ) ; }

Target:
public void removeHandler ( ) { state.remove ( cmdSet ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( com.google.gerrit.sshd.SshDaemon.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( com.google.gerrit.sshd.SshLog.class ) ; listener ( ) . to ( com.google.gerrit.sshd.SshDaemon.class ) ; }
Source:
public void visibleProjectDetails ( final com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) { visibleProjectDetailsFactory.create ( ) . to ( callback ) ; }

Target:
public void visibleProjectDetails ( final com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) { visibleProjectDetailsFactory.create ( ) . to ( callback ) ; }
Source:
void at ( int line ) { at ( net.codemirror.lib.CodeMirror.pos ( line ) , net.codemirror.lib.CodeMirror.pos ( ( line + 1 ) ) ) ; }

Target:
void at ( int line ) { at ( net.codemirror.lib.Pos.create ( line ) , net.codemirror.lib.Pos.create ( ( line + 1 ) ) ) ; }
Source:
protected com.google.gerrit.client.patches.MyFlexTable createFlexTable ( ) { return new com.google.gerrit.client.patches.AbstractPatchContentTable.DoubleClickFlexTable ( ) ; }

Target:
protected void updateCursor ( final com.google.gerrit.reviewdb.client.PatchLineComment newComment ) { }
Source:
private void assertCanUpload ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . canUpload ( ) ) . named ( ( "can upload " + ref ) ) . isTrue ( ) ; }

Target:
private void assertCreateChange ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { boolean create = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ; com.google.common.truth.Truth.assertThat ( create ) . named ( ( "can create change " + ref ) ) . isTrue ( ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doAddNew ( ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { addTxt.setText ( "" ) ; addTxt.setFocus ( true ) ; }
Source:
protected void onOpenRow ( final int row ) { if ( row > 0 ) { com.google.gerrit.reviewdb.RefRight right = getRowItem ( row ) ; rightEditor.load ( right , groups.get ( right.getAccountGroupId ( ) ) ) ; } }

Target:
protected void onOpenRow ( final int row ) { if ( row > 0 ) { com.google.gerrit.reviewdb.RefRight right = getRowItem ( row ) . getRight ( ) ; rightEditor.load ( right , groups.get ( right.getAccountGroupId ( ) ) ) ; } }
Source:
private static com.google.gwt.user.client.ui.ListBox newInheritedBooleanBox ( ) { com.google.gwt.user.client.ui.ListBox box = new com.google.gwt.user.client.ui.ListBox ( ) ; for ( com.google.gerrit.extensions.common.InheritableBoolean b : com.google.gerrit.extensions.common.InheritableBoolean.values ( ) ) { box.addItem ( b.name ( ) , b.name ( ) ) ; } return box ; }

Target:
private static com.google.gwt.user.client.ui.ListBox newInheritedBooleanBox ( ) { com.google.gwt.user.client.ui.ListBox box = new com.google.gwt.user.client.ui.ListBox ( ) ; for ( com.google.gerrit.extensions.client.InheritableBoolean b : com.google.gerrit.extensions.client.InheritableBoolean.values ( ) ) { box.addItem ( b.name ( ) , b.name ( ) ) ; } return box ; }
Source:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final com.google.gerrit.sshd.CommandName parent , final java.lang.String name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , com.google.gerrit.sshd.Commands.named ( parent , name ) ) ; }

Target:
public static com.google.inject.Key < org.apache.sshd.server.Command > key ( final com.google.gerrit.sshd.CommandName parent , final java.lang.String name ) { return com.google.inject.Key.get ( org.apache.sshd.server.Command.class , com.google.gerrit.sshd.Commands.named ( parent , name ) ) ; }
Source:
public java.lang.String getSshKey ( ) { return ( sshKey ) != null ? ( sshKey.getSshPublicKey ( ) ) + "\n" : null ; }

Target:
public java.lang.String getSshKey ( ) { return ( sshKey ) != null ? ( sshKey.sshPublicKey ( ) ) + "\n" : null ; }
Source:
private void banner ( ) { java.lang.System.err.format ( "Gerrit Code Review %s - Interactive Prolog Shell" , com.google.gerrit.common.Version.getVersion ( ) ) ; java.lang.System.err.println ( ) ; java.lang.System.err.println ( ( "(type Ctrl-D or \"halt.\" to exit," + " \"[\'path/to/file.pl\'].\" to load a file)" ) ) ; java.lang.System.err.println ( ) ; java.lang.System.err.flush ( ) ; }

Target:
private void banner ( ) { java.lang.System.err.format ( "Gerrit Code Review %s - Interactive Prolog Shell" , com.google.gerrit.common.Version.getVersion ( ) ) ; java.lang.System.err.println ( ) ; java.lang.System.err.println ( "(type Ctrl-D or \"halt.\" to exit, \"[\'path/to/file.pl\'].\" to load a file)" ) ; java.lang.System.err.println ( ) ; java.lang.System.err.flush ( ) ; }
Source:
protected void onLoad ( ) { com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { message.setFocus ( true ) ; } } ) ; }

Target:
public boolean execute ( ) { java.lang.String t = message.getText ( ) ; if ( t != null ) { message.setCursorPos ( t.length ( ) ) ; } return false ; }
Source:
protected void configure ( ) { filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }

Target:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; bind ( com.googlesource.gerrit.plugins.manager.repository.PluginsRepository.class ) . to ( com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }
Source:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( server.getGerritConfig ( ) ) ; }

Target:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( com.google.gerrit.client.rpc.Common.getGerritConfig ( ) ) ; }
Source:
public int getCardinality ( ) { return source.getCardinality ( ) ; }

Target:
public int getCardinality ( ) { return ( source ) != null ? source.getCardinality ( ) : limit ( ) ; }
Source:
void addRight ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , java.lang.String groupName , short min , short max , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void addRight ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , java.lang.String groupName , java.lang.String refName , short min , short max , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;
Source:
default com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > keyPredicate ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return com.google.gerrit.server.query.project.ProjectPredicates.name ( nameKey ) ; }

Target:
default com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > keyPredicate ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return new com.google.gerrit.index.project.ProjectPredicate ( ProjectField.NAME , nameKey.get ( ) ) ; }
Source:
private static void checkCounterDescription ( com.google.gerrit.metrics.Description desc ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( desc.isGauge ( ) ) ) , "counters must not be gauge" ) ; }

Target:
private static void checkCounterDescription ( com.google.gerrit.metrics.Description desc ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( desc.isConstant ( ) ) ) , "counters must not be constant" ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( desc.isGauge ( ) ) ) , "counters must not be gauge" ) ; }
Source:
public void createMergeChange ( ) throws java.lang.Exception { changeInTwoBranches ( "a.txt" , "b.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "master" , "branchA" , ChangeStatus.NEW ) ; assertCreateSucceeds ( in ) ; }

Target:
public void createMergeChange_Conflicts_Ours ( ) throws java.lang.Exception { changeInTwoBranches ( "branchA" , "shared.txt" , "branchB" , "shared.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "branchA" , "branchB" , "ours" ) ; assertCreateSucceeds ( in ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.PatchLineComment > result ) { if ( ! ( result.isEmpty ( ) ) ) { bindDrafts ( result ) ; } }

Target:
public void onSignIn ( ) { }
Source:
public void removeCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self.removeCacheUsageListener ( cacheUsageListener ) ; }

Target:
public net.sf.ehcache.statistics.LiveCacheStatistics getLiveCacheStatistics ( ) throws java.lang.IllegalStateException { return self ( ) . getLiveCacheStatistics ( ) ; }
Source:
com.google.gerrit.server.query.change.ChangeData createOnlyWhenNotedbDisabled ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id id ) ;

Target:
com.google.gerrit.server.query.change.ChangeData createOnlyWhenNoteDbDisabled ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( isAdmin ( ) ) ; }

Target:
boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( controlForRef ( "refs/*" ) . canPerform ( Permission.OWNER ) ) ) || ( isAdmin ( ) ) ; }
Source:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy legacyItsAssociationPolicy = gerritConfig.getEnum ( "commentLink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; return getPluginConfigEnum ( "association" , legacyItsAssociationPolicy ) ; }

Target:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy legacyItsAssociationPolicy = gerritConfig.getEnum ( "commentlink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; return getPluginConfigEnum ( "association" , legacyItsAssociationPolicy ) ; }
Source:
public com.google.common.collect.ImmutableList < com.google.gerrit.reviewdb.client.AccountGroup > getAll ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.ImmutableList.copyOf ( db.accountGroups ( ) . all ( ) ) ; }

Target:
public java.util.stream.Stream < com.google.gerrit.reviewdb.client.AccountGroup > getAll ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Streams.stream ( db.accountGroups ( ) . all ( ) ) ; }
Source:
private void setPaddingHeight ( int height ) { com.google.gerrit.client.diff.SideBySide2.setHeightInPx ( wrapper.element , height ) ; wrapper.widget.changed ( ) ; }

Target:
private void setPaddingHeight ( int height ) { wrapper.element.getStyle ( ) . setHeight ( ( ( double ) ( height ) ) , Unit.PX ) ; wrapper.widget.changed ( ) ; }
Source:
public void onCallStart ( ) ;

Target:
public void onRpcStart ( com.google.gwtjsonrpc.client.RpcStartEvent event ) ;
Source:
void replicate ( java.lang.String ref ) { replication.fire ( projectName , ref ) ; }

Target:
void replicate ( org.eclipse.jgit.lib.RefUpdate ru ) { replication.fire ( projectName , ru ) ; }
Source:
private java.lang.String getPassword ( ) { final java.lang.String pass = gerritConfig.getString ( com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.ITS_NAME_BUGZILLA , null , com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.GERRIT_CONFIG_PASSWORD ) ; return pass ; }

Target:
private java.lang.String getPassword ( ) { final java.lang.String pass = gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.GERRIT_CONFIG_PASSWORD ) ; return pass ; }
Source:
public void setFocus ( boolean focused ) { suggestBox.setFocus ( focused ) ; }

Target:
public int getTabIndex ( ) { return suggestBox.getTabIndex ( ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { if ( actionId.canInheritFromWildProject ( ) ) { return filter ( projectControl.getProjectState ( ) . getInheritedRights ( ) , actionId ) ; } else { return java.util.Collections.emptyList ( ) ; } }

Target:
private com.google.gerrit.server.project.ProjectState getProjectState ( ) { return projectControl.getProjectState ( ) ; }
Source:
public void listTagsOfNonVisibleBranch ( ) throws java.lang.Exception { grant ( Permission.SUBMIT , project , "refs/for/refs/heads/master" ) ; grant ( Permission.SUBMIT , project , "refs/for/refs/heads/hidden" ) ; grant ( Permission.CREATE , project , "refs/tags/*" ) ; grant ( Permission.PUSH , project , "refs/tags/*" ) ; com.google.gerrit.acceptance.PushOneCommit.Tag tag1 = new com.google.gerrit.acceptance.PushOneCommit.Tag ( "v1.0" ) ; com.google.gerrit.acceptance.PushOneCommit push1 = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; push1.setTag ( tag1 ) ; com.google.gerrit.acceptance.PushOneCommit.Result r1 = push1.to ( "refs/for/master%submit" ) ; r1.assertOkStatus ( ) ; pushTo ( "refs/heads/hidden" ) ; com.google.gerrit.acceptance.PushOneCommit.Tag tag2 = new com.google.gerrit.acceptance.PushOneCommit.Tag ( "v2.0" ) ; com.google.gerrit.acceptance.PushOneCommit push2 = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; push2.setTag ( tag2 ) ; com.google.gerrit.acceptance.PushOneCommit.Result r2 = push2.to ( "refs/for/hidden%submit" ) ; r2.assertOkStatus ( ) ; java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > result = getTags ( ) ; com.google.common.truth.Truth.assertThat ( result ) . hasSize ( 2 ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag1.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . revision ) . isEqualTo ( r1.getCommitId ( ) . getName ( ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 1 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag2.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 1 ) . revision ) . isEqualTo ( r2.getCommitId ( ) . getName ( ) ) ; blockRead ( project , "refs/heads/hidden" ) ; result = getTags ( ) ; com.google.common.truth.Truth.assertThat ( result ) . hasSize ( 1 ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag1.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . revision ) . isEqualTo ( r1.getCommitId ( ) . getName ( ) ) ; }

Target:
public void listTagsWithStartOption ( ) throws java.lang.Exception { createTags ( ) ; java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > result = getTags ( ) . withStart ( 1 ) . get ( ) ; assertTagList ( com.google.common.collect.FluentIterable.from ( com.google.gerrit.acceptance.rest.project.TagsIT.testTags ) . skip ( 1 ) , result ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.update ( result ) ; }

Target:
public void onSend ( ) { Util.MANAGE_SVC.abandonChange ( getPatchSetId ( ) , getMessageText ( ) , createCallback ( ) ) ; }
Source:
public java.io.PrintWriter getWriter ( ) throws java.io.IOException { return new java.io.PrintWriter ( outputStream ) ; }

Target:
public java.io.PrintWriter getWriter ( ) throws java.io.IOException { return new java.io.PrintWriter ( new java.io.OutputStreamWriter ( outputStream , characterEncoding ) ) ; }
Source:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { deleteTask ( cd ) . call ( ) ; } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.index.ChangeIndexer.MAPPER.apply ( e ) ; } }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
protected com.google.gerrit.pgm.CmdLineParser newCmdLineParserInstance ( java.lang.Object bean ) { return new com.google.gerrit.pgm.CmdLineParser ( bean ) ; }

Target:
protected com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { return new com.google.gerrit.pgm.CmdLineParser ( this ) ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) ;

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) { return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , refControl , notes ) ; }
Source:
public void addReviewerToReviewableChangeInNoteDbByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
public void addReviewerToReviewableChangeInNoteDbByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }
Source:
public abstract int getCost ( ) ;

Target:
public int estimateCost ( ) { if ( ! ( isMatchable ( ) ) ) { return 1 ; } return asMatchable ( ) . getCost ( ) ; }
Source:
public com.google.gerrit.server.query.change.QueryOptions withStart ( int newStart ) { return com.google.gerrit.server.query.change.QueryOptions.create ( config ( ) , newStart , limit ( ) ) ; }

Target:
public com.google.gerrit.server.query.change.QueryOptions withStart ( int newStart ) { return com.google.gerrit.server.query.change.QueryOptions.create ( config ( ) , newStart , limit ( ) , fields ( ) ) ; }
Source:
public com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getUserInfo ( com.google.gerrit.extensions.auth.oauth.OAuthToken token ) throws java.io.IOException { return getAsOAuthUserInfo ( uaaClient.toAccessToken ( token.getToken ( ) ) ) ; }

Target:
public com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getUserInfo ( com.google.gerrit.extensions.auth.oauth.OAuthToken token ) throws java.io.IOException { com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken = uaaClient.toAccessToken ( token.getToken ( ) ) ; java.lang.String displayName = uaaClient.getDisplayName ( token.getToken ( ) ) ; return getAsOAuthUserInfo ( accessToken , displayName ) ; }
Source:
private void stubExecuteBatchException ( java.lang.String command , java.sql.SQLException e ) throws java.sql.SQLException { java.sql.PreparedStatement ps = setupPreparedStatementException ( e ) ; org.mockito.Mockito.stub ( conn.prepareStatement ( command ) ) . toReturn ( ps ) ; }

Target:
java.lang.Iterable < com.google.gwtorm.jdbc.TestJdbcAccess.Data > createIterable ( com.google.gwtorm.jdbc.TestJdbcAccess.Data ... data ) { java.util.List < com.google.gwtorm.jdbc.TestJdbcAccess.Data > list = java.util.Arrays.asList ( data ) ; return java.util.Collections.unmodifiableList ( list ) ; }
Source:
public final com.google.common.collect.ImmutableMap < java.lang.String , com.google.gerrit.server.index.FieldDef < T , ? > > getFields ( ) { return fields ; }

Target:
public final com.google.common.collect.ImmutableMap < java.lang.String , com.google.gerrit.index.FieldDef < T , ? > > getFields ( ) { return fields ; }
Source:
public boolean supportsCookies ( ) { return false ; }

Target:
public boolean supportsTeamMembershipChanges ( com.gitblit.models.TeamModel team ) { return false ; }
Source:
public void log ( final org.eclipse.jetty.server.Request req , final org.eclipse.jetty.server.Response rsp ) { com.google.inject.servlet.GuiceHelper.runInContext ( req , rsp , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { doLog ( req , rsp ) ; } } ) ; }

Target:
public void log ( final org.eclipse.jetty.server.Request req , final org.eclipse.jetty.server.Response rsp ) { com.google.gerrit.server.CurrentUser user = ( ( com.google.gerrit.server.CurrentUser ) ( req.getAttribute ( GetUserFilter.REQ_ATTR_KEY ) ) ) ; doLog ( req , rsp , user ) ; }
Source:
public void emptyResultIfInvalid ( ) { java.util.Collection < com.google.gerrit.common.data.SubmitRecord > submitRecords = new java.util.ArrayList < > ( ) ; submitRecords.add ( com.google.gerrit.common.data.SubmitRecordTest.NOT_READY_RECORD ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.common.data.SubmitRecord.findOkRecord ( submitRecords ) . isPresent ( ) ) . isFalse ( ) ; }

Target:
public void okWhenEmpty ( ) { java.util.Collection < com.google.gerrit.common.data.SubmitRecord > submitRecords = new java.util.ArrayList < > ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.common.data.SubmitRecord.allRecordsOK ( submitRecords ) ) . isTrue ( ) ; }
Source:
public com.google.gerrit.server.query.change.ListChanges setFormat ( com.google.gerrit.server.OutputFormat fmt ) { this . format = fmt ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeJson addOptions ( java.util.Collection < com.google.gerrit.common.changes.ListChangesOption > o ) { options.addAll ( o ) ; return this ; }
Source:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexRestApiServlet.class ) ; }

Target:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexRestApiServlet.class ) ; serve ( "/event" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServlet.class ) ; }
Source:
public void putRobotComment ( com.google.gerrit.reviewdb.client.RobotComment c ) { verifyComment ( c ) ; createRobotCommentUpdateIfNull ( ) ; robotCommentUpdate.putComment ( c ) ; }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; createDraftUpdateIfNull ( ) . deleteComment ( c ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; }

Target:
public void finishDisplay ( ) { super . finishDisplay ( ) ; display ( ) ; }
Source:
private org.eclipse.jgit.lib.ObjectInserter getInseter ( ) { if ( ( inserter ) == null ) { inserter = git.newObjectInserter ( ) ; } return inserter ; }

Target:
private org.eclipse.jgit.lib.ObjectInserter getInserter ( ) { if ( ( inserter ) == null ) { inserter = git.newObjectInserter ( ) ; } return inserter ; }
Source:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > getChangesByTopic ( java.lang.String topic ) { try { return queryProvider.get ( ) . byTopicOpen ( topic ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gwtorm.server.OrmRuntimeException ( e ) ; } }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > getChangesByTopic ( java.lang.String topic ) { try { return queryProvider.get ( ) . byExactTopicOpen ( topic ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gwtorm.server.OrmRuntimeException ( e ) ; } }
Source:
public final native void setCursor ( net.codemirror.lib.LineCharacter lineCh ) ;

Target:
public final native void setSelection ( net.codemirror.lib.Pos p ) ;
Source:
private void downloadOptionalLibraries ( ) { createDownloader ( ) . setRequired ( false ) . setName ( "Bouncy Castle Crypto v144" ) . setJarUrl ( "http://www.bouncycastle.org/download/bcprov-jdk16-144.jar" ) . setSHA1 ( "6327a5f7a3dc45e0fd735adb5d08c5a74c05c20c" ) . download ( ) ; loadSiteLib ( ) ; }

Target:
private void downloadOptionalLibraries ( ) { libraries.bouncyCastle.downloadOptional ( ) ; loadSiteLib ( ) ; }
Source:
private static java.lang.String changePermissionName ( com.google.gerrit.server.permissions.ChangePermission changePermission ) { return com.google.gerrit.server.permissions.DefaultPermissionMappings.changePermissionName ( changePermission ) . orElseThrow ( ( ) -> new java.lang.IllegalStateException ( ) ) ; }

Target:
private static java.lang.String changePermissionName ( com.google.gerrit.server.permissions.ChangePermission changePermission ) { return com.google.gerrit.server.permissions.DefaultPermissionMappings.changePermissionName ( changePermission ) . orElseThrow ( ( ) -> new java.lang.IllegalStateException ( ( "no name for " + changePermission ) ) ) ; }
Source:
public void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.client.AccountExternalId > result ) { com.google.gerrit.reviewdb.client.AccountExternalId id = null ; for ( com.google.gerrit.reviewdb.client.AccountExternalId i : result ) { if ( i.isScheme ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_USERNAME ) ) { id = i ; break ; } } display ( id ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectOpen ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( projectName ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public com.google.gerrit.server.query.change.InternalChangeQuery enforceVisibility ( boolean enforce ) { qp.enforceVisibility ( enforce ) ; return this ; }
Source:
public static java.lang.String getJarPluginName ( java.io.File srcFile ) throws java.io.IOException { try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( srcFile ) ) { return jarFile.getManifest ( ) . getMainAttributes ( ) . getValue ( "Gerrit-PluginName" ) ; } }

Target:
public static java.lang.String getJarPluginName ( java.nio.file.Path srcPath ) throws java.io.IOException { try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( srcPath.toFile ( ) ) ) { return jarFile.getManifest ( ) . getMainAttributes ( ) . getValue ( "Gerrit-PluginName" ) ; } }
Source:
public static java.lang.String generateRandomKey ( ) { final byte [ ] r = new byte [ 26 ] ; new java.security.SecureRandom ( ) . nextBytes ( r ) ; return com.google.gwtjsonrpc.server.XsrfUtil.encodeBase64 ( r ) ; }

Target:
public static java.lang.String generateRandomKey ( ) { final byte [ ] r = new byte [ 26 ] ; new java.security.SecureRandom ( ) . nextBytes ( r ) ; return com.google.gwtjsonrpc.server.SignedToken.encodeBase64 ( r ) ; }
Source:
public void multipleHashtags ( ) throws java.lang.Exception { java.lang.String commitMessage = "#Subject\n\n#Hashtag\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "Subject" , "Hashtag" ) ) ; }

Target:
public void multipleHashtags ( ) throws java.lang.Exception { java.lang.String commitMessage = "#Subject\n\n#Hashtag\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "Subject" , "Hashtag" ) ) ; }
Source:
protected java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > listComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return db.get ( ) . patchComments ( ) . draftByPatchSetAuthor ( rsrc.getPatchSet ( ) . getId ( ) , rsrc.getAccountId ( ) ) ; }

Target:
protected java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > listComments ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return plcUtil.draftByPatchSetAuthor ( db.get ( ) , rsrc.getPatchSet ( ) . getId ( ) , rsrc.getAccountId ( ) , rsrc.getNotes ( ) ) ; }
Source:
private void openFooter ( ) { body.append ( "--\n" ) ; }

Target:
private void openFooter ( ) { if ( ! ( inFooter ) ) { inFooter = true ; body.append ( "-- \n" ) ; } }
Source:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) { byName.remove ( oldName ) ; }

Target:
public com.google.gerrit.reviewdb.AccountGroup get ( final com.google.gerrit.reviewdb.AccountGroup.NameKey name ) { return byName.get ( name ) ; }
Source:
private com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.StarredChange > starredQuery ( ) throws com.google.gwtorm.server.OrmException { return dbProvider.get ( ) . starredChanges ( ) . byAccount ( getAccountId ( ) ) ; }

Target:
public void asyncStarredChanges ( ) { if ( ( ( starredChanges ) == null ) && ( ( starredChangesUtil ) != null ) ) { starredQuery = starredChangesUtil.query ( accountId ) ; } }
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }
Source:
public static java.lang.String toChangeInEditMode ( com.google.gerrit.reviewdb.client.Change.Id c ) { return ( "/c/" + c ) + ",edit/" ; }

Target:
public static java.lang.String toChangeInEditMode ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id c ) { return ( com.google.gerrit.common.PageLinks.toChangeNoSlash ( project , c ) ) + ",edit/" ; }
Source:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi edit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit" ) ; }
Source:
public java.sql.Timestamp fromJson ( final java.lang.Object o ) { if ( o != null ) { return java.sql.Timestamp.valueOf ( ( ( java.lang.String ) ( o ) ) ) ; } return null ; }

Target:
public java.sql.Timestamp fromJson ( final java.lang.Object o ) { if ( o != null ) { return com.google.gwtjsonrpc.client.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( ( ( java.lang.String ) ( o ) ) ) ; } return null ; }
Source:
private boolean canUnignore ( com.google.gerrit.server.change.ChangeResource rsrc ) { return ( ! ( rsrc.isUserOwner ( ) ) ) && ( isIgnored ( rsrc ) ) ; }

Target:
public com.google.gerrit.server.change.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Unignore" ) . setTitle ( "Unignore the change" ) . setVisible ( isIgnored ( rsrc ) ) ; }
Source:
public void sendErrorThrowsIOException ( ) throws java.lang.Exception { rsp.sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; org.easymock.EasyMock.expectLastCall ( ) . andThrow ( new java.io.IOException ( "someError" ) ) ; setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; verifyPost ( ) ; }

Target:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; }
Source:
private void autoReindexIfStale ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( autoReindexIfStale ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = reindexIfStale ( id ) ; } }

Target:
private com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > reindexIfStaleAsync ( com.google.gerrit.reviewdb.client.Account.Id id ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( batchExecutor.submit ( ( ) -> reindexIfStale ( id ) ) ) , IndexUtils.MAPPER ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > get ( java.lang.String username ) { return cache.get ( username ) . getSshKeyCacheEntries ( ) ; }

Target:
public void evict ( java.lang.String username ) { cache.remove ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; }
Source:
java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > putGpgKeys ( java.util.List < java.lang.String > add ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > putGpgKeys ( java.util.List < java.lang.String > add , java.util.List < java.lang.String > remove ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
com.google.gerrit.server.change.RebaseChangeOp create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet originalPatchSet , @ com.google.gerrit.common.Nullable java.lang.String baseCommitish ) ;

Target:
com.google.gerrit.server.change.RebaseChangeOp create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet originalPatchSet , org.eclipse.jgit.lib.ObjectId baseCommitId ) ;
Source:
public void onSuccess ( com.google.gerrit.client.changes.SubmitInfo result ) { saveStateOnUnload = false ; goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( submit ) ; } }
Source:
public static void fireShowChange ( com.google.gerrit.client.changes.ChangeInfo change , com.google.gerrit.client.changes.ChangeInfo.RevisionInfo rev ) { com.google.gerrit.client.api.ApiGlue.fireEvent ( "showchange" , change , rev ) ; }

Target:
public static void fireShowChange ( com.google.gerrit.client.info.ChangeInfo change , com.google.gerrit.client.info.ChangeInfo.RevisionInfo rev ) { com.google.gerrit.client.api.ApiGlue.fireEvent ( "showchange" , change , rev ) ; }
Source:
private void commit ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys ) throws java.io.IOException { try ( com.google.gerrit.server.git.MetaDataUpdate md = metaDataUpdateFactory.get ( ) . create ( allUsersName , userFactory.create ( authorizedKeys.accountId ) ) ) { authorizedKeys.commit ( md ) ; } }

Target:
private void commit ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys ) throws java.io.IOException { try ( com.google.gerrit.server.git.meta.MetaDataUpdate md = metaDataUpdateFactory.get ( ) . create ( allUsersName , userFactory.create ( authorizedKeys.accountId ) ) ) { authorizedKeys.commit ( md ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }
Source:
HEAD ( com.google.gerrit.prettify.common.f4c716 Gave ) { }

Target:
int getEnd ( com.google.gerrit.prettify.common.BaseEdit edit ) { return edit.getEndA ( ) ; }
Source:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , java.lang.Class < T > type , com.google.inject.name.Named name ) { return com.google.gerrit.extensions.registration.DynamicSet.bind ( binder , com.google.inject.TypeLiteral.get ( type ) ) ; }

Target:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , java.lang.Class < T > type , com.google.inject.name.Named name ) { binder.disableCircularProxies ( ) ; return com.google.gerrit.extensions.registration.DynamicSet.bind ( binder , com.google.inject.TypeLiteral.get ( type ) ) ; }
Source:
public void run ( ) { widget.setVisible ( true ) ; }

Target:
com.google.gerrit.client.diff.SkipManager getSkipManager ( ) { return skipManager ; }
Source:
public com.google.gerrit.client.account.SshKeyList run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return new com.google.gerrit.client.account.SshKeyList ( db.accountSshKeys ( ) . byAccount ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) . toList ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) . toList ( ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.patch.PatchDetailServiceImpl ( server ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.patch.PatchDetailServiceImpl ( server , registry ) ; }
Source:
public void fooBarSubdirText ( ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildText ( "/foo/bar/" ) ; org.junit.Assert.assertEquals ( "repo\n" , new java.lang.String ( res.getActualBody ( ) , java.nio.charset.StandardCharsets.UTF_8 ) ) ; }

Target:
public void fooSubdirText ( ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildText ( "/foo/" ) ; com.google.common.truth.Truth.assertThat ( new java.lang.String ( res.getActualBody ( ) , java.nio.charset.StandardCharsets.UTF_8 ) ) . isEqualTo ( "bar/repo\n" ) ; }
Source:
public void parse ( ) { generalPreferences = parseGeneralPreferences ( null ) ; diffPreferences = parseDiffPreferences ( null ) ; }

Target:
public void parse ( ) { generalPreferences = parseGeneralPreferences ( null ) ; diffPreferences = parseDiffPreferences ( null ) ; editPreferences = parseEditPreferences ( null ) ; }
Source:
public void setStatus ( com.google.gerrit.reviewdb.client.Change.Status status ) { com.google.common.base.Preconditions.checkArgument ( ( status != ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.MERGED ) ) , "use submit(Iterable<PatchSetApproval>)" ) ; this . status = status ; }

Target:
public void setStatus ( com.google.gerrit.reviewdb.client.Change.Status status ) { com.google.common.base.Preconditions.checkArgument ( ( status != ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.MERGED ) ) , "use merge(Iterable<SubmitRecord>)" ) ; this . status = status ; }
Source:
public void addChange ( java.lang.String id , java.util.Map < com.google.gerrit.reviewdb.client.Change.Id , com.google.gerrit.server.change.ChangeResource > changes , com.google.gerrit.server.project.ProjectControl projectControl ) throws com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.sshd.BaseCommand.UnloggedFailure , com.google.gwtorm.server.OrmException { addChange ( id , changes , projectControl , true ) ; }

Target:
public void addChange ( java.lang.String id , java.util.Map < com.google.gerrit.reviewdb.client.Change.Id , com.google.gerrit.server.change.ChangeResource > changes , com.google.gerrit.server.project.ProjectState projectState ) throws com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.sshd.BaseCommand.UnloggedFailure , com.google.gwtorm.server.OrmException { addChange ( id , changes , projectState , true ) ; }
Source:
public static void replyError ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { com.google.gerrit.httpd.restapi.RestApiServlet.replyError ( req , res , statusCode , msg , CacheControl.NONE ) ; }

Target:
public static void replyError ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg , @ com.google.gerrit.common.Nullable java.lang.Throwable err ) throws java.io.IOException { com.google.gerrit.httpd.restapi.RestApiServlet.replyError ( req , res , statusCode , msg , CacheControl.NONE , err ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.setStatus ( Change.Status.ABANDONED ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; return change ; } else { return null ; } }

Target:
public com.google.gerrit.common.data.ReviewResult call ( ) throws com.google.gerrit.server.mail.EmailException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public com.google.gerrit.server.plugins.ServerPlugin get ( java.io.File srcFile , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot , com.google.gerrit.server.plugins.PluginDescription pluginDescription ) throws com.google.gerrit.server.plugins.InvalidPluginException { return providerOf ( srcFile ) . get ( srcFile , snapshot , pluginDescription ) ; }

Target:
public com.google.gerrit.server.plugins.ServerPlugin get ( java.nio.file.Path srcPath , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot , com.google.gerrit.server.plugins.PluginDescription pluginDescription ) throws com.google.gerrit.server.plugins.InvalidPluginException { return providerOf ( srcPath ) . get ( srcPath , snapshot , pluginDescription ) ; }