auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.ReindexIT.runGerrit ( "init" , "-d" , sitePath.toString ( ) , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }

Target:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.ReindexIT.runGerrit ( "init" , "-d" , sitePath.getPath ( ) , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }
Source:
private void configureDefaultSubmitType ( java.lang.String projectFilter , com.google.gerrit.extensions.common.SubmitType submitType ) { cfg.setString ( RepositoryConfig.SECTION_NAME , projectFilter , RepositoryConfig.DEFAULT_SUBMIT_TYPE_NAME , submitType.toString ( ) ) ; }

Target:
private void configureDefaultSubmitType ( java.lang.String projectFilter , com.google.gerrit.extensions.client.SubmitType submitType ) { cfg.setString ( RepositoryConfig.SECTION_NAME , projectFilter , RepositoryConfig.DEFAULT_SUBMIT_TYPE_NAME , submitType.toString ( ) ) ; }
Source:
java.lang.String version ( ) ;

Target:
com.google.gwt.resources.client.TextResource version ( ) ;
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteTag.apply ( resource ( ) , new com.google.gerrit.server.project.DeleteTag.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( e.getMessage ( ) ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteTag.apply ( resource ( ) , new com.google.gerrit.server.project.DeleteTag.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete tag" , e ) ; } }
Source:
public void putReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer , com.google.gerrit.server.notedb.ReviewerState type ) { com.google.common.base.Preconditions.checkArgument ( ( type != ( ReviewerState.REMOVED ) ) , "invalid ReviewerType" ) ; reviewers.put ( reviewer , type ) ; }

Target:
public void setTopic ( java.lang.String topic ) { this . topic = com.google.common.base.Strings.nullToEmpty ( topic ) ; }
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.common.EventListener.class ) . to ( com.googlesource.gerrit.plugins.refprotection.RefUpdateListener.class ) ; requestStaticInjection ( com.googlesource.gerrit.plugins.refprotection.BackupRef.class ) ; }
Source:
public com.google.gerrit.reviewdb.AccountGroup createEntry ( final com.google.gerrit.reviewdb.AccountGroup.Id key ) throws java.lang.Exception { return lookup ( key ) ; }

Target:
public com.google.gerrit.reviewdb.AccountGroup get ( final com.google.gerrit.reviewdb.AccountGroup.Id groupId ) { return byId.get ( groupId ) ; }
Source:
void inc ( ) { mv.visitVarInsn ( com.google.gwtorm.protobuf.ILOAD , sizeVar ) ; mv.visitInsn ( com.google.gwtorm.protobuf.IADD ) ; mv.visitVarInsn ( com.google.gwtorm.protobuf.ISTORE , sizeVar ) ; }

Target:
void preinc ( ) { mv.visitVarInsn ( com.google.gwtorm.protobuf.ILOAD , sizeVar ) ; }
Source:
private java.lang.String urlPut ( com.google.gerrit.reviewdb.client.Change c ) { return ( urlDelete ( c ) ) + "/content" ; }

Target:
private java.lang.String urlRebase ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/rebase_edit" ; }
Source:
public static boolean readWrite ( ) { return com.google.gerrit.testutil.NoteDbMode.get ( ) . readWrite ; }

Target:
public static boolean readWrite ( ) { com.google.gerrit.server.notedb.NotesMigration migration = com.google.gerrit.testutil.NoteDbMode.get ( ) . migration ; return ( migration.rawWriteChangesSetting ( ) ) && ( migration.readChanges ( ) ) ; }
Source:
public java.lang.Object createEntry ( final java.lang.Object key ) throws java.lang.Exception { return lookup ( ( ( com.google.gerrit.client.reviewdb.Account.Id ) ( key ) ) ) ; }

Target:
protected com.google.gerrit.server.account.AccountState missing ( final com.google.gerrit.client.reviewdb.Account.Id key ) { return missingAccount ( key ) ; }
Source:
private static boolean isRejected ( com.google.gerrit.client.changes.ChangeInfo.LabelInfo label , com.google.gerrit.client.changes.ChangeInfo.ApprovalInfo ai ) { return ( ( label.rejected ( ) ) != null ) && ( ( label.rejected ( ) . _account_id ( ) ) == ( ai._account_id ( ) ) ) ; }

Target:
private static boolean isRejected ( com.google.gerrit.client.info.ChangeInfo.LabelInfo label , com.google.gerrit.client.info.ChangeInfo.ApprovalInfo ai ) { return ( ( label.rejected ( ) ) != null ) && ( ( label.rejected ( ) . _accountId ( ) ) == ( ai._accountId ( ) ) ) ; }
Source:
public void setHeader ( java.lang.String name , java.lang.String value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setHeader ( java.lang.String name , java.lang.String value ) { headers.removeAll ( name ) ; addHeader ( name , value ) ; }
Source:
protected void configureServlets ( ) { serveRegex ( ( ( "^" + ( XDocServlet.PATH_PREFIX ) ) + "(.+)?$" ) ) . with ( com.googlesource.gerrit.plugins.xdocs.XDocServlet.class ) ; }

Target:
protected void configureServlets ( ) { serveRegex ( ( ( "^" + ( XDocServlet.PATH_PREFIX ) ) + "(.+)?$" ) ) . with ( com.googlesource.gerrit.plugins.xdocs.XDocServlet.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.GwtPlugin ( "xdocs" ) ) ; }
Source:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacy_id ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }

Target:
void set ( com.google.gerrit.client.info.ChangeInfo info ) { this . changeId = info.legacyId ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }
Source:
public boolean allRefsAreVisible ( ) { return ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAllRefs ( Permission.READ ) ) ; }

Target:
public boolean allRefsAreVisible ( ) { return allRefsAreVisibleExcept ( java.util.Collections.< java.lang.String > emptySet ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.myPrefs = prefs ; onModuleLoad2 ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.GeneralPreferences prefs ) { com.google.gerrit.client.Gerrit.myPrefs = prefs ; onModuleLoad2 ( result ) ; }
Source:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }

Target:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( refUpdate ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }
Source:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; updateRenderEntireFile ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
public void testContainsWithEmpty ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; com.google.common.truth.Truth.assertThat ( ds ) . doesNotContain ( 2 ) ; }

Target:
public void testContainsWithEmpty ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; com.google.common.truth.Truth.assertThat ( ds.contains ( 2 ) ) . isFalse ( ) ; }
Source:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.get ( db , key ) ; } }

Target:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( com.google.gerrit.reviewdb.client.AccountGroup.Id key ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.getGroup ( db , key ) ; } }
Source:
public void testParse_NameEmail4 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A U Thor<author@example.com>" ) ; org.junit.Assert.assertEquals ( "A U Thor" , a.name ) ; org.junit.Assert.assertEquals ( "author@example.com" , a.email ) ; }

Target:
public void testParse_Email2 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "a@b" ) ; com.google.common.truth.Truth.assertThat ( a.name ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( a.email ) . isEqualTo ( "a@b" ) ; }
Source:
public java.lang.String toString ( ) { return "hook " + ( hook.getName ( ) ) ; }

Target:
protected java.lang.String getName ( ) { return hook.getFileName ( ) . toString ( ) ; }
Source:
private static java.lang.String getURLEncoded ( java.lang.String url ) { try { return java.net.URLEncoder.encode ( url , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { return null ; } }

Target:
private static java.lang.String getURLEncoded ( java.lang.String url ) { try { return java.net.URLEncoder.encode ( url , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.IllegalStateException ( "Cannot find UTF-8 encoding" , e ) ; } }
Source:
public void sendBytes ( byte [ ] what ) { rp.sendBytes ( what ) ; }

Target:
public void sendBytes ( byte [ ] what , int off , int len ) { try { rp.getMessageOutputStream ( ) . write ( what , off , len ) ; } catch ( java.io.IOException e ) { } }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.Change > get ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { try { return cache.get ( name ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.git.SearchingChangeCacheImpl.log.warn ( ( "Cannot fetch changes for " + name ) , e ) ; return java.util.Collections.emptyList ( ) ; } }

Target:
public com.google.gerrit.reviewdb.client.Change apply ( com.google.gerrit.server.git.SearchingChangeCacheImpl.CachedChange in ) { return in.change ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , null , db , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , AccessPath.UNKNOWN , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupIncludeCache , null , db , id ) ; }
Source:
public com.google.gerrit.server.update.RetryHelper.Options.Builder timeout ( long timeout , java.util.concurrent.TimeUnit unit ) { return timeoutMs ( unit.toMillis ( timeout ) ) ; }

Target:
public abstract com.google.gerrit.server.update.RetryHelper.Options.Builder timeout ( java.time.Duration timeout ) ;
Source:
public void setPatchKey ( final com.google.gerrit.client.reviewdb.Patch.Key id ) { patchKey = id ; }

Target:
public void display ( final com.google.gerrit.client.reviewdb.Patch.Key k , final com.google.gerrit.client.reviewdb.PatchSet.Id a , final com.google.gerrit.client.reviewdb.PatchSet.Id b , final com.google.gerrit.client.data.PatchScript s ) { patchKey = k ; idSideA = a ; idSideB = b ; render ( s ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.reviewdb.client.Change change ) { return delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void initSshModule ( java.lang.String pluginName ) { command = com.google.gerrit.sshd.Commands.named ( pluginName ) ; }

Target:
void setPluginName ( @ com.google.gerrit.server.plugins.PluginName java.lang.String name ) { this . command = com.google.gerrit.sshd.Commands.named ( name ) ; }
Source:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( new com.google.gerrit.server.index.DummyIndex ( ) ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.IndexConfig.class ) . toInstance ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) ) ; bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( new com.google.gerrit.server.index.DummyIndex ( ) ) ; }
Source:
com.google.gerrit.server.notedb.DraftCommentNotes create ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) ;

Target:
com.google.gerrit.server.notedb.DraftCommentNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) ;
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gerrit.server.events.ProjectEvent event ) { }
Source:
public void remove ( ) { }

Target:
public void remove ( ) { metrics.remove ( name ) ; registry.remove ( name ) ; }
Source:
void createOrEditFileComment ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { getPanelFromSide ( side ) . createOrEditFileComment ( ) ; updateFileCommentVisibility ( false ) ; }

Target:
void createOrEditFileComment ( com.google.gerrit.client.diff.DisplaySide side ) { getPanelFromSide ( side ) . createOrEditFileComment ( ) ; updateFileCommentVisibility ( false ) ; }
Source:
private void checkNotDefined ( java.lang.String name ) { if ( registry.getNames ( ) . contains ( name ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "metric %s already defined" , name ) ) ; } }

Target:
public synchronized com.google.gerrit.metrics.Timer0 newTimer ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { com.google.gerrit.metrics.dropwizard.DropWizardMetricMaker.checkTimerDescription ( desc ) ; define ( name , desc ) ; return newTimerImpl ( name ) ; }
Source:
public com.google.gerrit.extensions.common.MergeableInfo mergeable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return mergeable.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check mergeability" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.MergeableInfo mergeable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return mergeable.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check mergeability" , e ) ; } }
Source:
public static void fireChangeStarEvent ( com.google.gerrit.reviewdb.client.Change.Id id , boolean starred ) { com.google.gerrit.client.changes.StarredChanges.eventBus.fireEventFromSource ( new com.google.gerrit.client.changes.StarredChanges.ChangeStarEvent ( id , starred ) , id ) ; }

Target:
public static void fireChangeStarEvent ( com.google.gerrit.reviewdb.client.Change.Id id , boolean starred ) { Gerrit.EVENT_BUS.fireEventFromSource ( new com.google.gerrit.client.changes.StarredChanges.ChangeStarEvent ( id , starred ) , id ) ; }
Source:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert ) ; }

Target:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertNoProblems ( cert ) ; }
Source:
private void parseUpdate ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { if ( ( com.google.gerrit.server.git.ReceiveCommits.isHead ( cmd ) ) && ( canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD , com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD_UPDATE ) ) ) { } else { com.google.gerrit.server.git.ReceiveCommits.reject ( cmd ) ; } }

Target:
private void parseDelete ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { com.google.gerrit.server.project.RefControl ctl = projectControl.controlForRef ( cmd.getRefName ( ) ) ; if ( ctl.canDelete ( ) ) { } else { com.google.gerrit.server.git.ReceiveCommits.reject ( cmd ) ; } }
Source:
private void index ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException { for ( com.google.gerrit.server.index.group.GroupIndex groupIndex : indexCollection.getWriteIndexes ( ) ) { groupIndex.replace ( group ) ; } }

Target:
private void index ( com.google.gerrit.server.group.InternalGroup group ) throws java.io.IOException { for ( com.google.gerrit.server.index.group.GroupIndex groupIndex : indexCollection.getWriteIndexes ( ) ) { groupIndex.replace ( group ) ; } }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.display ( ( "change,publish," + ( patchSet.getId ( ) . toString ( ) ) ) , new com.google.gerrit.client.changes.PublishCommentScreen ( patchSet.getId ( ) ) ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toPublish ( patchSet.getId ( ) ) ) ; }
Source:
public static void getContent ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String filename , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.String > cb ) { com.google.gerrit.client.changes.ChangeFileApi.contentEditOrPs ( id , filename ) . get ( com.google.gerrit.client.changes.ChangeFileApi.wrapper ( cb ) ) ; }

Target:
public static void getContent ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String filename , com.google.gerrit.client.rpc.HttpCallback < com.google.gerrit.client.rpc.NativeString > cb ) { com.google.gerrit.client.changes.ChangeFileApi.contentEditOrPs ( id , filename ) . get ( cb ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > updateAsync ( com.google.gerrit.reviewdb.client.Change change ) { return updateAsync ( change , false ) ; }

Target:
public com.google.gerrit.server.change.MergeabilityChecker.Check addChange ( com.google.gerrit.reviewdb.client.Change change ) { changes.add ( change ) ; return this ; }
Source:
private static java.lang.String queryIncoming ( java.lang.String who ) { return ( ( ( ( ( "is:open ((reviewer:" + who ) + " -owner:" ) + who ) + " -star:ignore) OR assignee:" ) + who ) + ")" ; }

Target:
private static java.lang.String queryIncoming ( java.lang.String who ) { return ( ( ( ( ( "is:open ((reviewer:" + who ) + " -owner:" ) + who ) + " -is:ignored) OR assignee:" ) + who ) + ")" ; }
Source:
private E getLast ( ) { return get ( ( ( size ( ) ) - 1 ) ) ; }

Target:
private E getLast ( ) { return list.get ( ( ( list.size ( ) ) - 1 ) ) ; }
Source:
public static void invalidate ( final com.google.gerrit.client.reviewdb.Account acct ) { if ( acct != null ) { synchronized ( com.google.gerrit.server.ssh.SshUtil.keys ) { com.google.gerrit.server.ssh.SshUtil.keys.remove ( acct.getPreferredEmail ( ) ) ; } } }

Target:
public static void invalidate ( final com.google.gerrit.client.reviewdb.Account acct ) { if ( acct != null ) { com.google.gerrit.server.ssh.SshUtil.invalidate ( acct.getPreferredEmail ( ) ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( ChangeIndex.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; bind ( com.google.gerrit.server.query.change.IndexRewrite.class ) . toInstance ( IndexRewrite.DISABLED ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( ChangeIndex.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; bind ( com.google.gerrit.server.query.change.ChangeQueryRewriter.class ) . to ( com.google.gerrit.server.query.change.SqlRewriterImpl.class ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { createCommentEditor ( row , column , line , side ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { createCommentEditor ( suggestRow , column , line , side ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return json.format ( rsrc ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }
Source:
public void onHistoryChanged ( final java.lang.String token ) { final com.google.gerrit.client.ui.Screen s = select ( token ) ; if ( s != null ) { com.google.gerrit.client.Gerrit.display ( s ) ; } else { } }

Target:
public void onHistoryChanged ( final java.lang.String token ) { final com.google.gerrit.client.ui.Screen s = select ( token ) ; if ( s != null ) { com.google.gerrit.client.Gerrit.display ( s ) ; } else { com.google.gerrit.client.Gerrit.display ( new com.google.gerrit.client.NotFoundScreen ( ) ) ; } }
Source:
public boolean execute ( ) { java.lang.String t = message.getText ( ) ; if ( t != null ) { message.setCursorPos ( t.length ( ) ) ; } return false ; }

Target:
public void execute ( ) { com.google.gwt.user.client.Window.scrollTo ( 0 , 0 ) ; message.setFocus ( true ) ; }
Source:
void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( uuid ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet.logger.debug ( "Group successfully indexed" , uuid ) ; }

Target:
void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( uuid ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet.logger.debug ( "Group successfully indexed" , uuid ) ; updateIndexTs ( java.time.LocalDateTime.now ( ) ) ; }
Source:
public static com.google.gerrit.elasticsearch.ElasticIndexModule latestVersionWithoutOnlineUpgrade ( ) { return new com.google.gerrit.elasticsearch.ElasticIndexModule ( null , 0 , false ) ; }

Target:
public static com.google.gerrit.elasticsearch.ElasticIndexModule latestVersionWithoutOnlineUpgrade ( boolean slave ) { return new com.google.gerrit.elasticsearch.ElasticIndexModule ( null , 0 , false , slave ) ; }
Source:
static com.google.gerrit.client.download.DownloadUrlLink.KnownScheme get ( java.lang.String name ) { for ( com.google.gerrit.client.download.DownloadUrlLink.KnownScheme s : com.google.gerrit.client.download.DownloadUrlLink.KnownScheme.values ( ) ) { if ( s.name.equals ( name ) ) { return s ; } } return null ; }

Target:
public java.lang.String getSchemeName ( ) { return schemeName ; }
Source:
public void doAction ( com.google.gerrit.server.IdentifiedUser user , com.googlesource.gerrit.plugins.github.oauth.GitHubLogin hubLogin , javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse resp , com.googlesource.gerrit.plugins.github.wizard.ControllerErrors errors ) throws java.io.IOException , javax.servlet.ServletException { }

Target:
public void doAction ( com.google.gerrit.server.IdentifiedUser user , com.googlesource.gerrit.plugins.github.oauth.GitHubLogin hubLogin , javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse resp , com.googlesource.gerrit.plugins.github.wizard.ControllerErrors errors ) throws java.io.IOException , javax.servlet.ServletException { respondWithJobStatusJson ( resp , pullRequestsImporter.get ( ) ) ; }
Source:
public static com.google.gerrit.server.account.AuthRequest forUser ( final java.lang.String username ) { return new com.google.gerrit.server.account.AuthRequest ( ( ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT ) + username ) ) ; }

Target:
public static com.google.gerrit.server.account.AuthRequest forUser ( final java.lang.String username ) { final com.google.gerrit.server.account.AuthRequest r ; r = new com.google.gerrit.server.account.AuthRequest ( ( ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT ) + username ) ) ; r.setSshUserName ( username ) ; return r ; }
Source:
public void testMIXED_FullyConfiguredUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String name = "A U. Thor" ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( name , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; assertNotNull ( r ) ; assertEquals ( ( name + " (Code Review)" ) , r.name ) ; assertEquals ( ident.getEmailAddress ( ) , r.email ) ; org.easymock.EasyMock.verify ( accountCache ) ; }

Target:
public void testMIXED_FullyConfiguredUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String name = "A U. Thor" ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( name , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; org.junit.Assert.assertNotNull ( r ) ; org.junit.Assert.assertEquals ( ( name + " (Code Review)" ) , r.name ) ; org.junit.Assert.assertEquals ( ident.getEmailAddress ( ) , r.email ) ; org.easymock.EasyMock.verify ( accountCache ) ; }
Source:
public void addRemoveMember ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount u = accounts.create ( "user" , "user@example.com" , "Full Name" ) ; com.google.gerrit.acceptance.RestResponse r = PUT ( "/groups/Administrators/members/user" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_CREATED , r.getStatusCode ( ) ) ; com.google.gerrit.acceptance.rest.account.AccountInfo ai = new com.google.gson.Gson ( ) . fromJson ( r.getReader ( ) , new com.google.gson.reflect.TypeToken < com.google.gerrit.acceptance.rest.account.AccountInfo > ( ) { } . getType ( ) ) ; com.google.gerrit.acceptance.rest.account.AccountAssert.assertAccountInfo ( u , ai ) ; assertMembers ( "Administrators" , admin , u ) ; r.consume ( ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_NO_CONTENT , DELETE ( "/groups/Administrators/members/user" ) ) ; assertMembers ( "Administrators" , admin ) ; }

Target:
public void addRemoveMember ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount u = accounts.create ( "user" , "user@example.com" , "Full Name" ) ; com.google.gerrit.acceptance.RestResponse r = PUT ( "/groups/Administrators/members/user" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_CREATED , r.getStatusCode ( ) ) ; com.google.gerrit.server.account.AccountInfo ai = newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.server.account.AccountInfo.class ) ; com.google.gerrit.acceptance.rest.account.AccountAssert.assertAccountInfo ( u , ai ) ; assertMembers ( "Administrators" , admin , u ) ; r.consume ( ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_NO_CONTENT , DELETE ( "/groups/Administrators/members/user" ) ) ; assertMembers ( "Administrators" , admin ) ; }
Source:
public void setDisplayPersonNameInReviewCategory ( final boolean displayPersonNameInReviewCategory ) { this . displayPersonNameInReviewCategory = displayPersonNameInReviewCategory ; }

Target:
public void setShowUsernameInReviewCategory ( final boolean showUsernameInReviewCategory ) { this . showUsernameInReviewCategory = showUsernameInReviewCategory ; }
Source:
public void onSuccess ( com.google.gerrit.client.groups.GroupList result ) { includes.display ( result.asList ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.groups.GroupList result ) { includes.display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; }
Source:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.RobotCommentInfo > > robotComments ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listRobotComments.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve robot comments" , e ) ; } }

Target:
public java.util.Map < java.lang.String , java.util.List < com.google.gerrit.extensions.common.RobotCommentInfo > > robotComments ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listRobotComments.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve robot comments" , e ) ; } }
Source:
public final native boolean allow_drafts ( ) ;

Target:
public final native com.google.gerrit.client.config.ServerInfo.SshdInfo sshd ( ) ;
Source:
public java.lang.String getUrl ( ) { final java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; final com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:mysql://" ) ; 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 ( ) { final java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; final com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:mysql://" ) ; 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 ( "?nullNamePatternMatchesAll=true" ) ; return b.toString ( ) ; }
Source:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ; }

Target:
static boolean dryRun ( com.google.gerrit.server.git.strategy.SubmitDryRun.Arguments args , com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ; }
Source:
protected boolean canPerform ( final com.google.gerrit.client.data.ProjectCache.Entry project , final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return com.google.gerrit.client.rpc.BaseServiceImplementation.canPerform ( getGroups ( ) , project , actionId , val ) ; }

Target:
protected boolean canPerform ( final com.google.gerrit.client.data.ProjectCache.Entry project , final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return com.google.gerrit.server.BaseServiceImplementation.canPerform ( getGroups ( ) , project , actionId , val ) ; }
Source:
public void testUpdateOne ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; }

Target:
private com.google.gwtorm.jdbc.JdbcAccess < com.google.gwtorm.jdbc.TestJdbcAccess.Data , com.google.gwtorm.jdbc.TestJdbcAccess.Data.DataKey > createClassUnderTest ( ) { return createJdbcAccess ( com.google.gwtorm.jdbc.TestJdbcAccess.DIALECT ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { delete ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public long getTimeToIdle ( final java.util.concurrent.TimeUnit unit ) { final long idle = self.getCacheConfiguration ( ) . getTimeToIdleSeconds ( ) ; return unit.convert ( idle , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public long getTimeToLive ( final java.util.concurrent.TimeUnit unit ) { final long maxAge = self.getCacheConfiguration ( ) . getTimeToLiveSeconds ( ) ; return unit.convert ( maxAge , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
private com.google.gerrit.server.change.ChangeJson.ChangeInfo getChange ( com.google.gerrit.acceptance.PushOneCommit.Result pr ) throws java.io.IOException { return getChange ( pr.getChangeId ( ) , com.google.gerrit.common.changes.ListChangesOption.DETAILED_LABELS ) ; }

Target:
private com.google.gerrit.server.change.ChangeJson.ChangeInfo getChange ( com.google.gerrit.acceptance.PushOneCommit.Result pr ) throws java.io.IOException { return getChange ( pr.getChangeId ( ) , com.google.gerrit.extensions.common.ListChangesOption.DETAILED_LABELS ) ; }
Source:
protected com.google.gerrit.client.account.SshKeyPanel createWidget ( ) { return new com.google.gerrit.client.account.SshKeyPanel ( ) ; }

Target:
protected com.google.gerrit.client.account.SshPanel createWidget ( ) { return new com.google.gerrit.client.account.SshPanel ( ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change change ) throws com.google.gerrit.server.project.NoSuchChangeException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( change ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change change ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.client.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( change ) , db.get ( ) ) ; }
Source:
public static com.google.gerrit.server.query.change.QueryOptions oneResult ( ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) , 0 , 1 ) ; }

Target:
public static com.google.gerrit.server.query.change.QueryOptions oneResult ( ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) , 0 , 1 , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }
Source:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.extensions.restapi.RestApiException | com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }

Target:
public void rebase ( com.google.gerrit.extensions.api.changes.RebaseInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { rebase.apply ( change , in ) ; } catch ( com.google.gerrit.common.errors.EmailException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot rebase change" , e ) ; } }
Source:
public void configure ( ) { factory ( OnlineReindexer.Factory.class ) ; }

Target:
public void configure ( ) { factory ( OnlineReindexer.Factory.class ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }
Source:
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 ( "Unmute" ) . setTitle ( "Unmute the change" ) . setVisible ( ( ( ! ( rsrc.isUserOwner ( ) ) ) && ( isUnMuteable ( 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 ( "Unmute" ) . setTitle ( "Unmute the change" ) . setVisible ( isMuted ( rsrc ) ) ; }
Source:
public com.google.gitiles.doc.html.HtmlBuilder space ( ) { finishActiveTag ( ) ; htmlBuf.append ( ' ' ) ; return this ; }

Target:
public void finish ( ) { finishActiveTag ( ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.extensions.restapi.TopLevelResource resource ) { return display ( null ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.extensions.restapi.TopLevelResource resource ) { format = com.google.gerrit.server.OutputFormat.JSON ; return display ( null ) ; }
Source:
protected < F > void factory ( final java.lang.Class < F > factory ) { factory ( com.google.inject.Key.get ( factory ) , factory ) ; }

Target:
protected void factory ( final java.lang.Class < ? > factory ) { install ( new com.google.inject.assistedinject.FactoryModuleBuilder ( ) . build ( factory ) ) ; }
Source:
public < T > T get ( org.eclipse.jgit.lib.Config.SectionParser < T > parser ) { return secureConfig.get ( parser ) ; }

Target:
public < T > T get ( com.googlesource.gerrit.plugins.github.oauth.SectionParser < T > parser ) { return secureConfig.get ( parser ) ; }
Source:
public static java.lang.String toPatchUnified ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , id ) ; }

Target:
public static java.lang.String toUnified ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , id ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initPath ( ) ; setHeaderVisible ( false ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.EditPreferences r ) { prefs = r ; com.google.gerrit.extensions.client.EditPreferencesInfo global = new com.google.gerrit.extensions.client.EditPreferencesInfo ( ) ; r.copyTo ( global ) ; com.google.gerrit.client.Gerrit.setEditPreferences ( global ) ; onLoad2 ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { fetch = result.revision ( revision ) . fetch ( ) ; renderScheme ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { fetch = result.revision ( revision ) . fetch ( ) ; renderScheme ( ) ; }
Source:
public com.google.gson.Gson get ( ) { return new com.google.gson.GsonBuilder ( ) . registerTypeAdapter ( com.google.common.base.Supplier.class , new com.google.gerrit.server.events.SupplierSerializer ( ) ) . create ( ) ; }

Target:
public com.google.gson.Gson get ( ) { return new com.google.gson.GsonBuilder ( ) . registerTypeAdapter ( com.google.common.base.Supplier.class , new com.google.gerrit.server.events.SupplierSerializer ( ) ) . registerTypeAdapter ( Project.NameKey.class , new com.google.gerrit.server.events.ProjectNameKeySerializer ( ) ) . create ( ) ; }
Source:
public void tearDown ( ) { com.google.gerrit.testutil.TestTimeUtil.useSystemTime ( ) ; java.lang.System.setProperty ( "user.timezone" , systemTimeZoneProperty ) ; java.util.TimeZone.setDefault ( systemTimeZone ) ; }

Target:
public void tearDown ( ) { com.google.gerrit.testing.TestTimeUtil.useSystemTime ( ) ; java.lang.System.setProperty ( "user.timezone" , systemTimeZoneProperty ) ; java.util.TimeZone.setDefault ( systemTimeZone ) ; }
Source:
void display ( final com.google.gerrit.client.reviewdb.Account account ) { showSiteHeader.setChecked ( account.isShowSiteHeader ( ) ) ; setDefaultContext ( account.getDefaultContext ( ) ) ; }

Target:
void display ( final com.google.gerrit.client.reviewdb.Account account ) { showSiteHeader.setValue ( account.isShowSiteHeader ( ) ) ; setDefaultContext ( account.getDefaultContext ( ) ) ; }
Source:
private com.google.gerrit.server.edit.tree.TreeModification toTreeModification ( com.google.gerrit.reviewdb.client.FixReplacement ... fixReplacements ) throws java.lang.Exception { return fixReplacementInterpreter.toTreeModification ( repository , projectState , patchSetCommitId , com.google.common.collect.ImmutableList.copyOf ( fixReplacements ) ) ; }

Target:
private java.util.List < com.google.gerrit.server.edit.tree.TreeModification > toTreeModifications ( com.google.gerrit.reviewdb.client.FixReplacement ... fixReplacements ) throws java.lang.Exception { return fixReplacementInterpreter.toTreeModifications ( repository , projectState , patchSetCommitId , com.google.common.collect.ImmutableList.copyOf ( fixReplacements ) ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , project , changeId ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.query.change.ChangeData cd = newChangeData ( db , project , changeId ) ; index ( cd ) ; com.google.gerrit.server.index.change.ChangeIndexer.reindexAfterIndexUpdate ( cd ) ; }
Source:
public static void clearHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "password.http" ) . delete ( cb ) ; }

Target:
public static void deleteExternalIds ( java.util.Set < java.lang.String > ids , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.account.AccountApi.self ( ) . view ( "external.ids:delete" ) . post ( com.google.gerrit.client.rpc.Natives.arrayOf ( ids ) , cb ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse get ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpGet get = new org.apache.http.client.methods.HttpGet ( ( "http://localhost:8080/a" + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( get ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse get ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpGet get = new org.apache.http.client.methods.HttpGet ( ( ( ( url ) + "/a" ) + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( get ) ) ; }
Source:
public final boolean isLdap ( ) { return ( ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.LDAP ) ) || ( ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.LDAP_BIND ) ) ; }

Target:
public final boolean isLdap ( ) { return ( ( authType ( ) ) == ( com.google.gerrit.extensions.client.AuthType.LDAP ) ) || ( ( authType ( ) ) == ( com.google.gerrit.extensions.client.AuthType.LDAP_BIND ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.PatchLineComment > result ) { if ( ! ( result.isEmpty ( ) ) ) { bindDrafts ( result ) ; } }

Target:
public void display ( final com.google.gerrit.client.reviewdb.Patch.Key k , final com.google.gerrit.client.reviewdb.PatchSet.Id a , final com.google.gerrit.client.reviewdb.PatchSet.Id b , final com.google.gerrit.client.data.PatchScript s ) { patchKey = k ; idSideA = a ; idSideB = b ; render ( s ) ; }
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; }

Target:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; bind ( com.google.gerrit.server.config.AllUsersName.class ) . toProvider ( allUsers ) ; }
Source:
public com.google.gerrit.server.project.ProjectControl controlFor ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey , com.google.gerrit.server.CurrentUser user ) throws com.google.gerrit.server.project.NoSuchProjectException { final com.google.gerrit.server.project.ProjectState p = projectCache.get ( nameKey ) ; if ( p == null ) { throw new com.google.gerrit.server.project.NoSuchProjectException ( nameKey ) ; } return p.controlFor ( user ) ; }

Target:
public com.google.gerrit.server.project.ProjectControl controlFor ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey , com.google.gerrit.server.CurrentUser user ) throws com.google.gerrit.server.project.NoSuchProjectException , java.io.IOException { final com.google.gerrit.server.project.ProjectState p = projectCache.checkedGet ( nameKey ) ; if ( p == null ) { throw new com.google.gerrit.server.project.NoSuchProjectException ( nameKey ) ; } return p.controlFor ( user ) ; }
Source:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { }

Target:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { this . ghLoginProvider = new com.googlesource.gerrit.plugins.github.oauth.GitHubLogin.Provider ( ) ; }
Source:
public void setStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setStatisticsEnabled ( enableStatistics ) ; }

Target:
public java.lang.Object getInternalContext ( ) { return self.getInternalContext ( ) ; }
Source:
public static void updated ( com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }

Target:
public static void updated ( com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }