auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
boolean visibleForReplication ( ) { return ( ( user ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( user ) ) . isEverythingVisible ( ) ) ; }
Source:
public void put ( K key , V value ) { cache.put ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) , new com.google.gerrit.ehcache.SerializableProtobuf < V > ( value , valueCodec ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( final K key , final V value ) { return cache.putAsync ( wrapKey ( key ) , wrapValue ( value ) ) ; }
Source:
protected java.lang.String getName ( ) { return com.google.common.base.Objects.firstNonNull ( name , com.google.gerrit.testutil.ConfigSuite.DEFAULT ) ; }

Target:
protected java.lang.String getName ( ) { return com.google.common.base.MoreObjects.firstNonNull ( name , com.google.gerrit.testutil.ConfigSuite.DEFAULT ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( true ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( true ) ; cancel.setEnabled ( true ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
private java.lang.String getChangeId ( org.eclipse.jgit.revwalk.RevCommit c ) throws java.lang.Exception { return com.google.gerrit.acceptance.GitUtil.getChangeId ( testRepo , c ) . get ( ) ; }

Target:
private org.eclipse.jgit.revwalk.RevCommit parseBody ( org.eclipse.jgit.revwalk.RevCommit c ) throws java.io.IOException { testRepo.getRevWalk ( ) . parseBody ( c ) ; return c ; }
Source:
private static com.google.gerrit.server.index.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( com.google.gerrit.server.index.change.ChangeIndexRewriterTest.CONFIG , start , limit , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }

Target:
private static com.google.gerrit.index.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( com.google.gerrit.server.index.change.ChangeIndexRewriterTest.CONFIG , start , limit , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }
Source:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId ) ; } }

Target:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; } }
Source:
com.google.gerrit.reviewdb.client.Change getChange ( ) { return ins.getChange ( ) ; }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) { change = ctx.getChange ( ) ; return false ; }
Source:
public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } }

Target:
java.lang.Runnable openCloseAll ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } } ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.toggleReviewed ( ) . run ( ) ; }
Source:
com.googlesource.gerrit.plugins.webhooks.PostTask create ( @ com.google.inject.assistedinject.Assisted ( value = "url" ) java.lang.String url , @ com.google.inject.assistedinject.Assisted ( value = "body" ) java.lang.String body ) ;

Target:
com.googlesource.gerrit.plugins.webhooks.PostTask create ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) ;
Source:
public void evictByUsername ( java.lang.String username ) { byName.remove ( username ) ; }

Target:
public void evictByUsername ( java.lang.String username ) { byName.remove ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; }
Source:
public abstract com.google.common.collect.ImmutableList < java.lang.String > cc ( ) ;

Target:
public abstract com.google.common.collect.ImmutableList < com.google.gerrit.server.mail.Address > cc ( ) ;
Source:
private org.eclipse.jgit.lib.ObjectId getCurrentRevisionId ( java.lang.String changeId ) throws com.google.gwtorm.server.OrmException { return org.eclipse.jgit.lib.ObjectId.fromString ( getCurrentPatchSet ( changeId ) . getRevision ( ) . get ( ) ) ; }

Target:
private static void assertAdded ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; org.junit.Assert.assertEquals ( ChangeType.ADDED , e.getChangeType ( ) ) ; }
Source:
void setOpen ( boolean open ) { resizePaddingWidget ( ) ; }

Target:
void setOpen ( boolean open ) { resizePaddingWidget ( ) ; setRangeHighlight ( open ) ; }
Source:
private java.lang.String readFile ( java.io.File f ) throws java.io.IOException { return f.exists ( ) ? com.google.common.io.Files.toString ( f , com.google.common.base.Charsets.UTF_8 ) : null ; }

Target:
private java.lang.String readFile ( java.io.File f ) throws java.io.IOException { return f.exists ( ) ? com.google.common.io.Files.toString ( f , java.nio.charset.StandardCharsets.UTF_8 ) : null ; }
Source:
public void execute ( ) { deferred = null ; operation ( new java.lang.Runnable ( ) { public void run ( ) { for ( java.lang.Runnable thunk : list ) { thunk.run ( ) ; } } } ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.lib.ModeInjector ( ) . add ( getContentType ( info.meta_a ( ) ) ) . add ( getContentType ( info.meta_b ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }
Source:
public java.io.InputStream getInputStream ( com.google.gerrit.server.plugins.PluginEntry entry ) throws java.io.IOException { throw new java.io.FileNotFoundException ( "Empty plugin" ) ; }

Target:
public java.io.InputStream getInputStream ( com.google.gerrit.server.plugins.PluginEntry entry ) throws java.io.IOException { throw new java.nio.file.NoSuchFileException ( "Empty plugin" ) ; }
Source:
private static java.nio.file.Path getSourseRootOrNull ( ) { try { return com.google.gerrit.launcher.GerritLauncher.resolveInSourceRoot ( "." ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }

Target:
private static java.nio.file.Path getSourceRootOrNull ( ) { try { return com.google.gerrit.launcher.GerritLauncher.resolveInSourceRoot ( "." ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; this . preDisplay ( result , this ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { send.setEnabled ( true ) ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; displayScreen ( ) ; }
Source:
public com.google.gerrit.server.patch.PatchListEntry get ( java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches [ index ] : com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; }

Target:
public com.google.gerrit.server.diff.PatchListEntry get ( java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches [ index ] : com.google.gerrit.server.diff.PatchListEntry.empty ( fileName ) ; }
Source:
public void defaultDashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . dashboard ( "default" ) . get ( ) ; }

Target:
public void defaultDashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . defaultDashboard ( ) . get ( ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }
Source:
public com.google.gerrit.reviewdb.client.Change get ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change get ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
protected java.util.Map < com.google.gerrit.reviewdb.client.Account.Id , com.google.gerrit.server.IdentifiedUser > createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { return com.google.common.collect.Maps.newHashMap ( ) ; }

Target:
protected java.util.Map < com.google.gerrit.reviewdb.client.Account.Id , com.google.gerrit.server.IdentifiedUser > createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { return new java.util.HashMap < > ( ) ; }
Source:
public boolean isEnabled ( ) { return ( enabled ) && ( isVisible ( ) ) ; }

Target:
public com.google.gerrit.extensions.conditions.BooleanCondition getEnabledCondition ( ) { return com.google.gerrit.extensions.conditions.BooleanCondition.and ( enabled , visible ) ; }
Source:
public boolean allRefsAreVisibleExcept ( java.util.Set < java.lang.String > except ) { return ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAllRefs ( Permission.READ , except ) ) ; }

Target:
public boolean allRefsAreVisible ( java.util.Set < java.lang.String > ignore ) { return ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAllRefs ( Permission.READ , ignore ) ) ; }
Source:
public java.lang.Iterable < 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 , StarredChangesUtil.DEFAULT_LABEL ) ; } return starredByUser ; }
Source:
private boolean failAuthentication ( com.google.gerrit.httpd.ProjectBasicAuthFilter.Response rsp , java.lang.String username ) throws java.io.IOException { com.google.gerrit.httpd.ProjectBasicAuthFilter.log.warn ( ( "Authentication failed for {}: password does not match the one" + " stored in Gerrit" ) , username ) ; rsp.sendError ( javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED ) ; return false ; }

Target:
private boolean failAuthentication ( com.google.gerrit.httpd.ProjectBasicAuthFilter.Response rsp , java.lang.String username ) throws java.io.IOException { com.google.gerrit.httpd.ProjectBasicAuthFilter.log.warn ( "Authentication failed for {}: password does not match the one stored in Gerrit" , username ) ; rsp.sendError ( javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED ) ; return false ; }
Source:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderServletModule ( ) ) ; if ( config.websession ( ) . synchronize ( ) ) { install ( new com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebsessionModule ( ) ) ; } }

Target:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderServletModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.health.HealthServletModule ( ) ) ; if ( config.websession ( ) . synchronize ( ) ) { install ( new com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebsessionModule ( ) ) ; } }
Source:
private void renderSubmitType ( java.lang.String action ) { try { com.google.gerrit.extensions.client.SubmitType type = com.google.gerrit.extensions.client.SubmitType.valueOf ( action ) ; submitActionText.setInnerText ( com.google.gerrit.client.admin.Util.toLongString ( type ) ) ; } catch ( java.lang.IllegalArgumentException e ) { submitActionText.setInnerText ( action ) ; } }

Target:
private static int toParentNum ( java.lang.String parentToken ) { try { int n = java.lang.Integer.parseInt ( parentToken ) ; if ( n < 0 ) { return - n ; } return 0 ; } catch ( java.lang.NumberFormatException e ) { return 0 ; } }
Source:
public com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy getCommentVisibilityStrategy ( ) { if ( ( commentVisibilityStrategy ) == null ) { return com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy.EXPAND_MOST_RECENT ; } return com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy.valueOf ( commentVisibilityStrategy ) ; }

Target:
public com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy getCommentVisibilityStrategy ( ) { if ( ( commentVisibilityStrategy ) == null ) { return com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy.EXPAND_RECENT ; } return com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy.valueOf ( commentVisibilityStrategy ) ; }
Source:
void setWidget ( net.codemirror.lib.LineWidget widget ) { this . widget = widget ; }

Target:
void setWidget ( net.codemirror.lib.LineWidget widget ) { this . widget = widget ; addStyleName ( style.isLineWidget ( ) ) ; }
Source:
public void setHeader ( java.lang.String name , java.lang.String value ) { headers.removeAll ( name ) ; addHeader ( name , value ) ; }

Target:
public void setHeader ( java.lang.String name , java.lang.String value ) { headers.removeAll ( name.toLowerCase ( ) ) ; addHeader ( name , value ) ; }
Source:
java.lang.String needApproval ( java.lang.String categoryName ) ;

Target:
java.lang.String needApproval ( java.lang.String categoryName , java.lang.String value , java.lang.String valueName ) ;
Source:
public void setUp ( ) throws java.lang.Exception { java.lang.String name = name ( "user42" ) ; user42 = accounts.create ( name , ( name + "@example.com" ) , "User 42" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { java.lang.String name = name ( "user42" ) ; user42 = accountCreator.create ( name , ( name + "@example.com" ) , "User 42" ) ; }
Source:
public com.google.gerrit.server.WebLinks get ( ) { com.google.gerrit.server.WebLinks webLinks = new com.google.gerrit.server.WebLinks ( patchSetLinks , projectLinks ) ; return webLinks ; }

Target:
public com.google.gerrit.server.WebLinks get ( ) { com.google.gerrit.server.WebLinks webLinks = new com.google.gerrit.server.WebLinks ( patchSetLinks , projectLinks , branchLinks ) ; return webLinks ; }
Source:
public final native com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.ConfigInfo.ConfigParameterInfo > > pluginConfigParameters ( ) ;

Target:
public final native com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.projects.ConfigInfo.ConfigParameterInfo > > pluginConfig ( ) ;
Source:
private static native java.lang.String toString ( java.sql.Timestamp ts ) ;

Target:
private static native java.lang.String toString ( double utcMilli ) ;
Source:
private com.google.gerrit.httpd.resources.Resource getAsHtmlResource ( byte [ ] html , int lastModified ) { return new com.google.gerrit.httpd.resources.SmallResource ( html ) . setContentType ( "text/html" ) . setCharacterEncoding ( java.nio.charset.StandardCharsets.UTF_8.name ( ) ) . setLastModified ( lastModified ) ; }

Target:
private com.google.gerrit.httpd.resources.Resource getAsHtmlResource ( java.lang.String html , int lastModified ) { return new com.google.gerrit.httpd.resources.SmallResource ( html.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) . setContentType ( "text/html" ) . setCharacterEncoding ( java.nio.charset.StandardCharsets.UTF_8.name ( ) ) . setLastModified ( lastModified ) ; }
Source:
public static < T extends com.google.gwt.core.client.JavaScriptObject , M extends com.google.gerrit.client.rpc.NativeMap < T > > com.google.gwtjsonrpc.common.AsyncCallback < M > copyKeysIntoChildren ( com.google.gwtjsonrpc.common.AsyncCallback < M > callback ) { return com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( "name" , callback ) ; }

Target:
public static < T extends com.google.gwt.core.client.JavaScriptObject , M extends com.google.gerrit.client.rpc.NativeMap < T > > com.google.gwt.user.client.rpc.AsyncCallback < M > copyKeysIntoChildren ( com.google.gwt.user.client.rpc.AsyncCallback < M > callback ) { return com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( "name" , callback ) ; }
Source:
private static void assertName ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { org.junit.Assert.assertEquals ( expectedNewName , e.getNewName ( ) ) ; org.junit.Assert.assertNull ( e.getOldName ( ) ) ; }

Target:
private static void assertName ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.common.truth.Truth.assertThat ( e.getNewName ( ) ) . isEqualTo ( expectedNewName ) ; com.google.common.truth.Truth.assertThat ( e.getOldName ( ) ) . isNull ( ) ; }
Source:
private java.lang.String getReplyCommentName ( ) { return "savedReplyComment-" + ( changeId.toString ( ) ) ; }

Target:
private java.lang.String getReplyCommentName ( ) { return "savedReplyComment-" + ( com.google.gerrit.common.PageLinks.toChangeId ( project , changeId ) ) ; }
Source:
public final void setConfiguredValue ( com.google.gerrit.reviewdb.client.Project.InheritableBoolean v ) { setConfiguredValueRaw ( v.name ( ) ) ; }

Target:
public final void setConfiguredValue ( com.google.gerrit.extensions.common.InheritableBoolean v ) { setConfiguredValueRaw ( v.name ( ) ) ; }
Source:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toInstance ( new org.eclipse.jgit.lib.Config ( ) ) ; bind ( com.google.gerrit.reviewdb.SystemConfig.class ) . toInstance ( systemConfig ) ; bind ( com.google.gerrit.server.config.AuthConfig.class ) ; }

Target:
public com.google.gerrit.server.project.ProjectState getAllProjects ( ) { return get ( allProjectsName ) ; }
Source:
private void assertCanUpdate ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . canUpdate ( ) ) . named ( ( "can update " + ref ) ) . isTrue ( ) ; }

Target:
private void assertCanUpdate ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { boolean update = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.UPDATE ) ; com.google.common.truth.Truth.assertThat ( update ) . named ( ( "can update " + ref ) ) . isTrue ( ) ; }
Source:
private static java.lang.String status ( com.google.gerrit.reviewdb.client.Change.Status status ) { switch ( status ) { case ABANDONED : return "status:abandoned" ; case MERGED : return "status:merged" ; case NEW : default : return "status:open" ; } }

Target:
private static java.lang.String status ( com.google.gerrit.reviewdb.client.Change.Status status ) { switch ( status ) { case ABANDONED : return "status:abandoned" ; case MERGED : return "status:merged" ; case DRAFT : case NEW : default : return "status:open" ; } }
Source:
public void addOption ( com.google.gerrit.common.groups.ListGroupsOption o ) { options.add ( o ) ; }

Target:
public void addOption ( com.google.gerrit.extensions.client.ListGroupsOption o ) { options.add ( o ) ; }
Source:
public com.google.gerrit.server.change.CommentInfo apply ( com.google.gerrit.server.change.CommentResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountInfo.Loader accountLoader = accountLoaderFactory.create ( true ) ; com.google.gerrit.server.change.CommentInfo ci = new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , accountLoader ) ; accountLoader.fill ( ) ; return ci ; }

Target:
public com.google.gerrit.server.change.CommentInfo apply ( com.google.gerrit.server.change.CommentResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountLoader accountLoader = accountLoaderFactory.create ( true ) ; com.google.gerrit.server.change.CommentInfo ci = new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , accountLoader ) ; accountLoader.fill ( ) ; return ci ; }
Source:
public void createTempDirectory ( ) throws java.lang.Exception { sitePath = com.google.gerrit.acceptance.TempFileUtil.createTempDirectory ( ) ; }

Target:
public void createTempDirectory ( ) throws java.lang.Exception { sitePath = com.google.gerrit.testutil.TempFileUtil.createTempDirectory ( ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.events.GitReferenceUpdatedListener.class ) . to ( com.googlesource.gerrit.plugins.refprotection.RefUpdateListener.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.events.GitReferenceUpdatedListener.class ) . to ( com.googlesource.gerrit.plugins.refprotection.RefUpdateListener.class ) ; requestStaticInjection ( com.googlesource.gerrit.plugins.refprotection.BackupRef.class ) ; }
Source:
public final void dateFormat ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DateFormat f ) { dateFormatRaw ( ( f != null ? f.toString ( ) : null ) ) ; }

Target:
public final void dateFormat ( com.google.gerrit.extensions.client.GeneralPreferencesInfo.DateFormat f ) { dateFormatRaw ( ( f != null ? f.toString ( ) : null ) ) ; }
Source:
public void setPatchSets ( java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ) { this . patchSets = patchSets ; }

Target:
public void setPatchSets ( java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ) { this . currentPatchSet = null ; this . patchSets = patchSets ; }
Source:
public void getDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = gApi.config ( ) . server ( ) . getDefaultDiffPreferences ( ) ; assertPrefsEqual ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }

Target:
public void getDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = gApi.config ( ) . server ( ) . getDefaultDiffPreferences ( ) ; com.google.gerrit.acceptance.AssertUtil.assertPrefs ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }
Source:
public abstract java.util.concurrent.Callable < ? > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { indexAsync ( cd ) . checkedGet ( ) ; }
Source:
void setProjectState ( com.google.gerrit.server.project.ProjectState projectState ) { this . projectState = projectState ; }

Target:
void initProjectState ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.server.project.ProjectCache projectCache ) throws com.google.gwtorm.client.OrmException { if ( ( projectState ) == null ) { projectState = projectCache.get ( change ( db ) . getProject ( ) ) ; } }
Source:
private void popup ( com.google.gerrit.client.account.AccountInfo account , boolean addPopup ) { if ( addPopup ) { com.google.gerrit.client.AvatarImage.PopupHandler popupHandler = new com.google.gerrit.client.AvatarImage.PopupHandler ( account , this ) ; addMouseOverHandler ( popupHandler ) ; addMouseOutHandler ( popupHandler ) ; } }

Target:
private void popup ( com.google.gerrit.client.info.AccountInfo account , boolean addPopup ) { if ( addPopup ) { com.google.gerrit.client.AvatarImage.PopupHandler popupHandler = new com.google.gerrit.client.AvatarImage.PopupHandler ( account , this ) ; addMouseOverHandler ( popupHandler ) ; addMouseOutHandler ( popupHandler ) ; } }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { for ( com.googlesource.gerrit.plugins.rabbitmq.message.Publisher publisher : publishers ) { publisher.onEvent ( event ) ; } }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { for ( com.googlesource.gerrit.plugins.rabbitmq.message.Publisher publisher : publishers ) { publisher.getEventListener ( ) . onEvent ( event ) ; } }
Source:
final void download_scheme ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DownloadScheme s ) { download_scheme0 ( s.name ( ) ) ; }

Target:
final void downloadScheme ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DownloadScheme s ) { downloadScheme0 ( s.name ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , java.lang.String reviewer ) throws java.lang.Exception { com.google.gerrit.extensions.api.changes.AddReviewerInput in = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; in.reviewer = reviewer ; return addReviewer ( changeId , in ) ; }

Target:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , java.lang.String reviewer , int expectedStatus ) throws java.lang.Exception { com.google.gerrit.extensions.api.changes.AddReviewerInput in = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; in.reviewer = reviewer ; return addReviewer ( changeId , in , expectedStatus ) ; }
Source:
public com.google.gerrit.server.permissions.PermissionBackend.ForRef user ( com.google.gerrit.server.CurrentUser user ) { return forUser ( user ) . asForRef ( ) ; }

Target:
public com.google.gerrit.server.permissions.PermissionBackend.ForRef user ( com.google.gerrit.server.CurrentUser user ) { return forUser ( user ) . asForRef ( ) . database ( db ) ; }
Source:
public void removed ( final com.google.gerrit.reviewdb.client.Account.Id deleter ) { removedBy = deleter ; removedOn = com.google.gerrit.reviewdb.client.AccountGroupIncludeByUuidAudit.now ( ) ; }

Target:
public void removed ( final com.google.gerrit.reviewdb.client.Account.Id deleter ) { removedBy = deleter ; removedOn = com.google.gerrit.reviewdb.client.AccountGroupByIdAud.now ( ) ; }
Source:
public static void myOwned ( java.lang.String groupName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupMap > cb ) { com.google.gerrit.client.groups.GroupMap.myOwnedGroups ( ) . addParameter ( "q" , groupName ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( cb ) ) ; }

Target:
public static void myOwned ( java.lang.String groupName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupMap > cb ) { com.google.gerrit.client.groups.GroupMap.myOwnedGroups ( ) . addParameter ( "g" , groupName ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( cb ) ) ; }
Source:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return com.google.gerrit.server.git.MergeUtil.canFastForward ( args.mergeSorter , mergeTip , args.rw , toMerge ) ; }

Target:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return args.mergeUtil.canFastForward ( args.mergeSorter , mergeTip , args.rw , toMerge ) ; }
Source:
public static com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ( java.lang.String orgName ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( ( ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.UUID_PREFIX ) + orgName ) ) ; }

Target:
public static com.google.gerrit.common.data.GroupReference groupReference ( java.lang.String orgName ) { return new com.google.gerrit.common.data.GroupReference ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.uuid ( orgName ) , ( ( NAME_PREFIX ) + orgName ) ) ; }
Source:
public long getTail ( ) throws java.io.IOException { if ( ( getHead ( ) ) == 0 ) { return 0 ; } long tail = stores.tail.spinGet ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.MAX_GET_SPINS ) ; return tail < 1 ? 1 : tail ; }

Target:
public long getTail ( ) throws java.io.IOException { if ( cachedHead.isZero ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.MAX_GET_SPINS ) ) { return 0 ; } long tail = cachedTail.spinGet ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.MAX_GET_SPINS ) ; return tail < 1 ? 1 : tail ; }
Source:
public boolean isValid ( com.google.gerrit.reviewdb.client.Patch patch ) { return ! ( patch.isReviewedByCurrentUser ( ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { final boolean isReviewed = ! ( reviewedPanels.getValue ( ) ) ; reviewedPanels.setValue ( isReviewed ) ; reviewedPanels.setReviewedByCurrentUser ( isReviewed ) ; }
Source:
com.googlesource.gerrit.plugins.findowners.OwnersDb get ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return get ( repo , changeData , changeData.currentPatchSet ( ) . getId ( ) . get ( ) ) ; }

Target:
com.googlesource.gerrit.plugins.findowners.OwnersDb get ( com.google.gerrit.server.account.AccountCache accountCache , com.google.gerrit.server.account.Accounts accounts , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return get ( accountCache , accounts , repo , changeData , changeData.currentPatchSet ( ) . getId ( ) . get ( ) ) ; }
Source:
public void evictAll ( ) { byName.removeAll ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAllAsync ( ) { return byName.removeAllAsync ( ) ; }
Source:
protected static com.google.gerrit.server.query.PredicateTest.TestPredicate f ( java.lang.String name , java.lang.String value ) { return new com.google.gerrit.server.query.PredicateTest.TestPredicate ( name , value ) ; }

Target:
protected static com.google.gerrit.index.query.PredicateTest.TestPredicate f ( java.lang.String name , java.lang.String value ) { return new com.google.gerrit.index.query.PredicateTest.TestPredicate ( name , value ) ; }
Source:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return "/admin/groups/" + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }
Source:
public java.lang.String getUrl ( ) { java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:mariadb://" ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.hostname ( dbs.optional ( "hostname" ) ) ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.port ( dbs.optional ( "port" ) ) ) ; b.append ( "/" ) ; b.append ( dbs.required ( "database" ) ) ; return b.toString ( ) ; }

Target:
public java.lang.String getUrl ( ) { java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:mariadb://" ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.hostname ( dbs.optional ( "hostname" ) ) ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.port ( dbs.optional ( "port" ) ) ) ; b.append ( "/" ) ; b.append ( dbs.required ( "database" ) ) ; b.append ( "?useBulkStmts=false" ) ; return b.toString ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.ChangeMessage get ( com.google.gerrit.reviewdb.client.ChangeMessage.Key id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gerrit.reviewdb.client.ChangeMessage get ( com.google.gerrit.reviewdb.client.ChangeMessage.Key id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
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.owner , 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 ( ) ; 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 final com.google.gerrit.common.changes.Side side ( ) { java.lang.String s = sideRaw ( ) ; return s != null ? com.google.gerrit.common.changes.Side.valueOf ( s ) : com.google.gerrit.common.changes.Side.REVISION ; }

Target:
public final com.google.gerrit.extensions.common.Side side ( ) { java.lang.String s = sideRaw ( ) ; return s != null ? com.google.gerrit.extensions.common.Side.valueOf ( s ) : com.google.gerrit.extensions.common.Side.REVISION ; }
Source:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , parentPatchTable ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , patchSetDetail , parentPatchTable ) ; }
Source:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( ( - 1 ) , mapper.lineOnOther ( Side.PARENT , 9 ) ) ; }

Target:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( new com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo ( ( - 1 ) , false ) , mapper.lineOnOther ( Side.PARENT , 9 ) ) ; }
Source:
public void deleteWatchedProjects ( java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteWatchedProjects.apply ( account , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete watched projects" , e ) ; } }

Target:
public void deleteWatchedProjects ( java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteWatchedProjects.apply ( account , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete watched projects" , e ) ; } }
Source:
public void onSuccess ( java.util.List < com.google.gerrit.reviewdb.client.Change > changes ) { for ( com.google.gerrit.reviewdb.client.Change c : changes ) { executor.submit ( new com.google.gerrit.server.index.change.ReindexAfterUpdate.Index ( event , c.getId ( ) ) ) ; } }

Target:
public void onSuccess ( java.util.List < com.google.gerrit.reviewdb.client.Change > changes ) { for ( com.google.gerrit.reviewdb.client.Change c : changes ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = executor.submit ( new com.google.gerrit.server.index.change.ReindexAfterUpdate.Index ( event , c.getId ( ) ) ) ; } }
Source:
void test ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception ;

Target:
private void addReviewerToReviewableChangeInNoteDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReplyBox ( getOriginal ( ) , "" , true ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }

Target:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReply ( getOriginal ( ) , "" , false ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , accountProjectWatchCache , remotePeerProvider , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , accountProjectWatchCache , accountDiffPreferencesCache , remotePeerProvider , null , id ) ; }
Source:
public java.lang.String toString ( ) { return ( "CurrentUser[" + ( getAccountId ( ) ) ) + "]" ; }

Target:
public java.util.Set < com.google.gerrit.client.reviewdb.AccountGroup.Id > getEffectiveGroups ( ) { if ( ( effectiveGroups ) == null ) { effectiveGroups = com.google.gerrit.client.rpc.Common.getGroupCache ( ) . getEffectiveGroups ( getAccountId ( ) ) ; } return effectiveGroups ; }
Source:
private static boolean isPluginNameSane ( java.lang.String pluginName ) { return com.google.common.base.CharMatcher.JAVA_LETTER_OR_DIGIT.or ( com.google.common.base.CharMatcher.is ( '-' ) ) . matchesAllOf ( pluginName ) ; }

Target:
private static boolean isPluginNameSane ( java.lang.String pluginName ) { return com.google.common.base.CharMatcher.javaLetterOrDigit ( ) . or ( com.google.common.base.CharMatcher.is ( '-' ) ) . matchesAllOf ( pluginName ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > andActive ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > p ) { return com.google.gerrit.server.query.Predicate.and ( p , com.google.gerrit.server.query.account.AccountPredicates.isActive ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > andActive ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > p ) { return com.google.gerrit.index.query.Predicate.and ( p , com.google.gerrit.server.query.account.AccountPredicates.isActive ( ) ) ; }
Source:
private static synchronized com.google.gerrit.git.WorkQueue.Executor getDefaultQueue ( ) { if ( ( com.google.gerrit.git.WorkQueue.defaultQueue ) == null ) { com.google.gerrit.git.WorkQueue.defaultQueue = com.google.gerrit.git.WorkQueue.createQueue ( 1 ) ; } return com.google.gerrit.git.WorkQueue.defaultQueue ; }

Target:
private static synchronized com.google.gerrit.git.WorkQueue.Executor getDefaultQueue ( ) { if ( ( com.google.gerrit.git.WorkQueue.defaultQueue ) == null ) { com.google.gerrit.git.WorkQueue.defaultQueue = com.google.gerrit.git.WorkQueue.createQueue ( 1 , "WorkQueue" ) ; } return com.google.gerrit.git.WorkQueue.defaultQueue ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; } }

Target:
void onClose ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { upToChange ( ) ; } }
Source:
void expandBefore ( int cnt ) { expandSideBefore ( cnt ) ; otherBar.expandSideBefore ( cnt ) ; }

Target:
void expandBefore ( int cnt ) { expandSideBefore ( cnt ) ; otherBar.expandSideBefore ( cnt ) ; manager.getOverviewBar ( ) . refresh ( ) ; }
Source:
public void createNewDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInput ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createNewPrivateChange ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput input = newChangeInput ( ChangeStatus.NEW ) ; input.isPrivate = true ; assertCreateSucceeds ( input ) ; }
Source:
public void close ( ) { if ( ( reader ) != null ) { reader.close ( ) ; reader = null ; notes = null ; } }

Target:
private void reset ( ) { if ( ( reader ) != null ) { reader.close ( ) ; reader = null ; notes = null ; } }
Source:
public void testUpdateOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement update = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( update ) ; }

Target:
public void testUpdateOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement update = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.UPDATE , 1 ) ; classUnderTest.update ( oneRow ) ; assertCorrectUpdating ( update , 1 ) ; }
Source:
private java.util.Collection < com.google.gerrit.reviewdb.RefRight > getWildProjectRights ( ) { final com.google.gerrit.server.project.ProjectState s = projectCache.get ( wildProject ) ; return s != null ? s.getLocalRights ( ) : java.util.Collections.< com.google.gerrit.reviewdb.RefRight > emptyList ( ) ; }

Target:
public java.util.Collection < com.google.gerrit.common.data.AccessSection > getAllAccessSections ( ) { java.util.List < com.google.gerrit.common.data.AccessSection > all = new java.util.ArrayList < com.google.gerrit.common.data.AccessSection > ( ) ; all.addAll ( getLocalAccessSections ( ) ) ; all.addAll ( getInheritedAccessSections ( ) ) ; return all ; }
Source:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) ; }

Target:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = com.google.gerrit.testutil.NoteDbMode.newNotesMigrationFromEnv ( ) ; }
Source:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps != null ) { files.put ( ps.getPatchSetId ( ) , com.google.common.collect.ImmutableList.copyOf ( filePaths ) ) ; } }

Target:
private java.util.Map < java.lang.Integer , java.util.List < java.lang.String > > initFiles ( ) { if ( ( files ) == null ) { files = new java.util.HashMap < > ( ) ; } return files ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . session = session ; }

Target:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . ctx = new com.google.gerrit.sshd.SshScope.Context ( session.getAttribute ( SshSession.KEY ) ) ; }
Source:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( com.google.common.collect.Iterables.transform ( getUnwrappedDb ( ) . changes ( ) . all ( ) , com.google.gerrit.reviewdb.server.ReviewDbUtil.changeIdFunction ( ) ) ) ; }

Target:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( getUnwrappedDb ( ) . changes ( ) . all ( ) . toList ( ) . stream ( ) . map ( Change :: getId ) ) ; }