auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gerrit.server.events.ProjectEvent event ) { fireEvent ( projectName , event ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( updated ( ) ) && ( fireEvent ) ) { hashtagsEdited.fire ( change , ctx.getAccountId ( ) , updatedHashtags , toAdd , toRemove , ctx.getWhen ( ) ) ; } }

Target:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( updated ( ) ) && ( fireEvent ) ) { hashtagsEdited.fire ( change , ctx.getAccount ( ) , updatedHashtags , toAdd , toRemove , ctx.getWhen ( ) ) ; } }
Source:
public org.eclipse.jgit.lib.Config getProjectPluginConfig ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( pluginName ) . get ( ) ; }

Target:
public org.eclipse.jgit.lib.Config getProjectPluginConfig ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( ( pluginName + ( com.google.gerrit.server.config.PluginConfigFactory.EXTENSION ) ) ) . get ( ) ; }
Source:
private com.google.gerrit.server.query.change.ChangeData changeData ( com.google.gerrit.reviewdb.server.ReviewDb db , @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd ) { return cd != null ? cd : changeDataFactory.create ( db , this ) ; }

Target:
private com.google.gerrit.server.query.change.ChangeData changeData ( com.google.gerrit.reviewdb.server.ReviewDb db , @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd ) { return cd != null ? cd : changeDataFactory.create ( db , getNotes ( ) ) ; }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > submitRecords ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return cd.submitRecords ( com.google.gerrit.server.change.ChangeJson.SUBMIT_RULE_OPTIONS ) ; }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > submitRecords ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return cd.submitRecords ( com.google.gerrit.server.change.ChangeJson.SUBMIT_RULE_OPTIONS_LENIENT ) ; }
Source:
public com.google.gerrit.reviewdb.server.PatchSetAccess patchSets ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public com.google.gerrit.reviewdb.server.PatchSetAccess patchSets ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public void addReviewerToReviewableChangeInNoteDbByOwnerCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
public void addReviewerToWipChangeInReviewDbNotifyAllBatch ( ) throws java.lang.Exception { addReviewerToWipChangeInReviewDbNotifyAll ( batch ( ) ) ; }
Source:
private java.lang.String buildIndexEndpoint ( int changeId ) { return com.google.common.base.Joiner.on ( "/" ) . join ( pluginRelativePath , "index" , changeId ) ; }

Target:
private java.lang.String buildIndexEndpoint ( int changeId ) { return com.google.common.base.Joiner.on ( "/" ) . join ( pluginRelativePath , "index/change" , changeId ) ; }
Source:
public com.google.gerrit.server.index.FieldType < ? > getType ( ) { return type ; }

Target:
public com.google.gerrit.index.FieldType < ? > getType ( ) { return type ; }
Source:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName ) ; } }

Target:
com.google.gerrit.server.notedb.NoteDbUpdateManager.OpenRepo getCodeRepo ( ) throws java.io.IOException { initCodeRepo ( ) ; return codeRepo ; }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.server.config.ListCapabilities.CapabilityInfo > apply ( com.google.gerrit.server.config.ConfigResource resource ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { java.util.Map < java.lang.String , com.google.gerrit.server.config.ListCapabilities.CapabilityInfo > output = com.google.common.collect.Maps.newTreeMap ( ) ; collectCoreCapabilities ( output ) ; collectPluginCapabilities ( output ) ; return output ; }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.server.config.ListCapabilities.CapabilityInfo > apply ( com.google.gerrit.server.config.ConfigResource resource ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { java.util.Map < java.lang.String , com.google.gerrit.server.config.ListCapabilities.CapabilityInfo > output = new java.util.TreeMap < > ( ) ; collectCoreCapabilities ( output ) ; collectPluginCapabilities ( output ) ; return output ; }
Source:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi actions ( int id , java.lang.String revision ) { if ( ( revision == null ) || ( revision.equals ( "" ) ) ) { revision = "current" ; } return com.google.gerrit.client.changes.ChangeApi.call ( id , revision , "actions" ) ; }
Source:
public java.lang.String get ( ) { return com.google.gerrit.reviewdb.SchemaVersion.Key.VALUE ; }

Target:
public java.lang.String get ( ) { return com.google.gerrit.reviewdb.CurrentSchemaVersion.Key.VALUE ; }
Source:
public void onSuccess ( java.lang.String result ) { textArea.setText ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.HttpResponse < com.google.gerrit.client.rpc.NativeString > result ) { textArea.setText ( result.getResult ( ) . asString ( ) ) ; }
Source:
public int compare ( java.lang.String o1 , java.lang.String o2 ) { return com.google.gerrit.server.patch.PatchList.comparePaths ( o1 , o2 ) ; }

Target:
public int compare ( java.lang.String o1 , java.lang.String o2 ) { return com.google.gerrit.server.diff.PatchList.comparePaths ( o1 , o2 ) ; }
Source:
public void setPrivate ( boolean value ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public void setWorkInProgress ( java.lang.String message ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
private void initChannels ( ) { setChannelFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Channel > > asList ( new org.apache.sshd.server.channel.ChannelSession.Factory ( ) , new org.apache.sshd.server.channel.ChannelDirectTcpip.Factory ( ) ) ) ; }

Target:
private void initChannels ( ) { setChannelFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Channel > > asList ( new org.apache.sshd.server.channel.ChannelSession.Factory ( ) , new org.apache.sshd.common.forward.TcpipServerChannel.DirectTcpipFactory ( ) ) ) ; }
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.Getter < I , T > getter ) { return build ( ( in , a ) -> getter.get ( in ) ) ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.server.index.FieldDef.Getter < I , java.lang.Iterable < T > > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , true , getter ) ; }
Source:
private java.lang.String url ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edits" ; }

Target:
private java.lang.String urlEdit ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit" ; }
Source:
private com.google.gerrit.server.account.AccountState state ( ) { if ( ( state ) == null ) { state = accountCache.get ( getAccountId ( ) ) ; } return state ; }

Target:
public com.google.gerrit.server.account.AccountState getAccountState ( ) { if ( ( state ) == null ) { state = com.google.gerrit.server.util.FutureUtil.get ( accountCache.get ( getAccountId ( ) ) ) ; } return state ; }
Source:
public com.googlesource.gerrit.plugins.hooks.HookArgs createArgs ( ) { return new com.googlesource.gerrit.plugins.hooks.HookArgs ( anonymousCowardName , urlProvider , metrics ) ; }

Target:
public com.googlesource.gerrit.plugins.hooks.HookArgs createArgs ( ) { return new com.googlesource.gerrit.plugins.hooks.HookArgs ( anonymousCowardName , urlProvider , metrics , gitManager , sitePaths ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ProjectApi create ( com.google.gerrit.extensions.api.projects.ProjectInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { return name ( in.name ) . create ( in ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ProjectApi create ( com.google.gerrit.extensions.api.projects.ProjectInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( in.name ) == null ) { throw new com.google.gerrit.extensions.restapi.BadRequestException ( "input.name is required" ) ; } return name ( in.name ) . create ( in ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return change.getControl ( ) ; }

Target:
public com.google.gerrit.server.change.ChangeResource getChangeResource ( ) { return change ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return new com.google.gerrit.server.notedb.ChangeUpdate ( com.google.gerrit.server.notedb.ChangeNotesTest.SERVER_IDENT , repoManager , com.google.gerrit.server.notedb.NotesMigration.allEnabled ( ) , accountCache , null , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , stubChangeControl ( c , user ) , com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return new com.google.gerrit.server.notedb.ChangeUpdate ( serverIdent , repoManager , com.google.gerrit.server.notedb.NotesMigration.allEnabled ( ) , accountCache , null , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , stubChangeControl ( c , user ) , com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; }
Source:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return projectJson.format ( project ) ; }

Target:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return projectJson.format ( project.getControl ( ) ) ; }
Source:
public void remove ( K key ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAsync ( K key ) ;
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; hasDraftComments = ! ( result.isEmpty ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { hasDraftComments = ( result.length ( ) ) > 0 ; }
Source:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.mode.ModeInjector ( ) . add ( getContentType ( info.metaA ( ) ) ) . add ( getContentType ( info.metaB ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }

Target:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; updateRenderEntireFile ( ) ; }
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.overview.adjustGutters ( cmB ) ; }

Target:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.overview.refresh ( ) ; }
Source:
public void flushAll_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL , java.util.Arrays.asList ( "projects" ) ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; }

Target:
public void flushAll_BadRequest ( ) throws java.lang.Exception { adminSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL , java.util.Arrays.asList ( "projects" ) ) ) . assertBadRequest ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { showSiteHeader.setValue ( ( ! val ) ) ; super . onFailure ( caught ) ; }

Target:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }
Source:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( testRepo.getRepository ( ) , ctl.getChange ( ) . currentPatchSetId ( ) ) ; }

Target:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( testRepo.getRepository ( ) , notes.getChange ( ) . currentPatchSetId ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( java.lang.String path ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.setPath ( path ) . apply ( revision ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get patch" , e ) ; } }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( java.lang.String path ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.setPath ( path ) . apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get patch" , e ) ; } }
Source:
com.google.gerrit.server.git.BatchUpdate newBatchUpdate ( java.sql.Timestamp when ) { return batchUpdateFactory.create ( db , destBranch.getParentKey ( ) , when ) . setRepository ( repo , rw , inserter ) ; }

Target:
com.google.gerrit.server.git.BatchUpdate newBatchUpdate ( java.sql.Timestamp when ) { return batchUpdateFactory.create ( db , destBranch.getParentKey ( ) , caller , when ) . setRepository ( repo , rw , inserter ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.reviewdb.client.AccountGroup > i : getWriteIndexes ( ) ) { i.replace ( groupCache.get ( uuid ) ) ; } fireGroupIndexedEvent ( uuid.get ( ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) throws java.io.IOException { for ( com.google.gerrit.index.Index < ? , com.google.gerrit.reviewdb.client.AccountGroup > i : getWriteIndexes ( ) ) { i.replace ( groupCache.get ( uuid ) ) ; } fireGroupIndexedEvent ( uuid.get ( ) ) ; }
Source:
void sync ( ) { dst.scrollToY ( align ( src.getScrollInfo ( ) . getTop ( ) ) ) ; }

Target:
void sync ( ) { dst.scrollToY ( align ( src.getScrollInfo ( ) . top ( ) ) ) ; }
Source:
public void before ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.enabled ( ) ) . isTrue ( ) ; }

Target:
public void before ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.client.Account.Id accountId ) throws java.io.IOException { if ( accountId != null ) { byId.invalidate ( accountId ) ; index ( accountId ) ; } }

Target:
public void evict ( com.google.gerrit.reviewdb.client.Account.Id accountId ) throws java.io.IOException { if ( accountId != null ) { byId.invalidate ( accountId ) ; indexer.get ( ) . index ( accountId ) ; } }
Source:
public void unblockMoreSpecificRef_Fails ( ) { com.google.gerrit.server.project.Util.block ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.Util.DEVS , "refs/heads/master" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.Util.DEVS ) ; assertCannotUpdate ( "refs/heads/master" , u ) ; }

Target:
public void unblockMoreSpecificRefInLocal_Fails ( ) { com.google.gerrit.server.project.testing.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.testing.Util.DEVS , "refs/heads/master" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.testing.Util.DEVS ) ; assertCannotUpdate ( "refs/heads/master" , u ) ; }
Source:
com.google.gerrit.client.GerritCssResource css ( ) ;

Target:
com.google.gerrit.client.GerritCss css ( ) ;
Source:
public void listTagsOfNonExistingProjectWithApi ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( "does-not-exist" ) . tags ( ) . get ( ) ; }

Target:
public void listTagsOfNonExistingProject ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( "does-not-exist" ) . tags ( ) . get ( ) ; }
Source:
private java.util.List < com.google.gerrit.client.WebLinkInfo > getWebLinks ( com.google.gerrit.client.diff.DiffInfo diffInfo ) { return diffInfo.unified_web_links ( ) ; }

Target:
private java.util.List < com.google.gerrit.client.WebLinkInfo > getWebLinks ( com.google.gerrit.client.diff.DiffInfo diffInfo ) { return diffInfo.unifiedWebLinks ( ) ; }
Source:
public void threeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; com.google.common.truth.Truth.assertThat ( rewrite.rewrite ( in , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ) . isEqualTo ( query ( in ) ) ; }

Target:
public void threeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; com.google.common.truth.Truth.assertThat ( rewrite.rewrite ( in , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ) . isEqualTo ( query ( in ) ) ; }
Source:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.client.reviewdb.Project.NameKey projectName ) { return get0 ( projectName ) ; }

Target:
public void evict ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { byName.remove ( p.getNameKey ( ) ) ; } }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { generation = g ; setClean ( cm.isClean ( g ) ) ; }
Source:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteChange ( id.get ( ) , com.google.gerrit.client.change.DraftActions.mine ( draftButtons ) ) ; }

Target:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteChange ( id.get ( ) , com.google.gerrit.client.change.ChangeActions.mine ( draftButtons ) ) ; }
Source:
public void negativeStartCharacterResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , ( - 1 ) , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void negativeStartCharacterResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , ( - 1 ) , 19 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public static com.google.gerrit.testutil.InMemoryDatabase newDatabase ( ) { return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( ) ) . getInstance ( com.google.gerrit.testutil.InMemoryDatabase.class ) ; }

Target:
public static com.google.gerrit.testutil.InMemoryDatabase newDatabase ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle ) . getInstance ( com.google.gerrit.testutil.InMemoryDatabase.class ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.createGroupTitle ( ) ) ; addCreateGroupPanel ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( AdminConstants.I.createGroupTitle ( ) ) ; addCreateGroupPanel ( ) ; }
Source:
public com.google.gerrit.reviewdb.AccountGroup lookup ( java.lang.String groupName ) ;

Target:
public com.google.gerrit.reviewdb.AccountGroup get ( com.google.gerrit.reviewdb.AccountGroup.NameKey name ) ;
Source:
public void onSuccess ( T value ) { this . result = value ; remaining.remove ( this ) ; this . applyAllSuccess ( ) ; }

Target:
public void onSuccess ( T value ) { this . result = value ; success ( this ) ; }
Source:
public static boolean hasActive ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > p ) { return ( com.google.gerrit.server.query.QueryBuilder.find ( p , com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate.class , AccountField.ACTIVE.getName ( ) ) ) != null ; }

Target:
public static boolean hasActive ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > p ) { return ( com.google.gerrit.index.query.QueryBuilder.find ( p , com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate.class , AccountField.ACTIVE.getName ( ) ) ) != null ; }
Source:
public static void createEdit ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "create_edit" ) . post ( com.google.gwt.core.client.JavaScriptObject.createObject ( ) , cb ) ; }

Target:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }
Source:
private void initProjectLink ( com.google.gerrit.client.changes.ChangeInfo info ) { projectLink.setText ( info.project ( ) ) ; projectLink.setTargetHistoryToken ( com.google.gerrit.common.PageLinks.toChangeQuery ( com.google.gerrit.common.PageLinks.projectQuery ( info.project_name_key ( ) , info.status ( ) ) ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toProjectDefaultDashboard ( info.project_name_key ( ) ) ) ; }
Source:
void onReviewerAdded ( com.google.gerrit.extensions.events.ReviewerAddedListener.Event event ) ;

Target:
void onReviewersAdded ( com.google.gerrit.extensions.events.ReviewerAddedListener.Event event ) ;
Source:
public java.lang.String getPatchSetUrl ( java.lang.String project , java.lang.String commit ) { return java.lang.String.format ( placeHolderUrlProjectCommit , project , commit ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectCommit , projectName , commit ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult fromResult ( com.google.gwt.core.client.JavaScriptObject responseObject ) { return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }

Target:
public com.google.gwtjsonrpc.common.VoidResult fromResult ( com.google.gwt.core.client.JavaScriptObject responseObject ) { return com.google.gwtjsonrpc.common.VoidResult.INSTANCE ; }
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , c , user ) ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 3 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 3 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 3 ) ; }
Source:
private com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > submit ( java.util.concurrent.Callable < ? > task ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }

Target:
private < T > com.google.common.util.concurrent.CheckedFuture < T , java.io.IOException > submit ( java.util.concurrent.Callable < T > task ) { return com.google.gerrit.server.index.change.ChangeIndexer.submit ( task , executor ) ; }
Source:
void bumpLastUpdatedOn ( boolean bump ) ;

Target:
void dontBumpLastUpdatedOn ( ) ;
Source:
public static synchronized java.net.InetSocketAddress getAddress ( ) { if ( ( ( com.google.gerrit.server.ssh.GerritSshDaemon.sshd ) != null ) && ( ( com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress ) == null ) ) { com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress = com.google.gerrit.server.ssh.GerritSshDaemon.computePreferredAddress ( ) ; } return com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress ; }

Target:
public org.apache.mina.core.service.IoAcceptor getIoAcceptor ( ) { return acceptor ; }
Source:
private java.lang.String parseBranch ( org.eclipse.jgit.revwalk.RevCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String branch = parseOneFooter ( commit , com.google.gerrit.server.notedb.ChangeNoteUtil.FOOTER_BRANCH ) ; return branch != null ? com.google.gerrit.reviewdb.client.RefNames.fullName ( branch ) : null ; }

Target:
private java.lang.String parseBranch ( com.google.gerrit.server.notedb.ChangeNotesCommit commit ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String branch = parseOneFooter ( commit , com.google.gerrit.server.notedb.ChangeNoteUtil.FOOTER_BRANCH ) ; return branch != null ? com.google.gerrit.reviewdb.client.RefNames.fullName ( branch ) : null ; }
Source:
private com.google.gerrit.acceptance.server.mail.StagedChange stageReviewableChange ( ) throws java.lang.Exception { return stageChange ( this :: stageReviewableChange ) ; }

Target:
protected com.google.gerrit.acceptance.server.mail.StagedChange stageWipChange ( ) throws java.lang.Exception { return stageChange ( ( ) -> super . stageWipChange ( ) ) ; }
Source:
public void start ( ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; display ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; display ( ) ; } } ) ; }
Source:
private com.google.gerrit.common.ChangeHookRunner.AuthorAttribute getAuthorAttribute ( final com.google.gerrit.reviewdb.Account account ) { com.google.gerrit.common.ChangeHookRunner.AuthorAttribute author = new com.google.gerrit.common.ChangeHookRunner.AuthorAttribute ( ) ; author.name = account.getFullName ( ) ; author.email = account.getPreferredEmail ( ) ; return author ; }

Target:
private com.google.gerrit.common.ChangeHookRunner.AuthorAttribute getAccountAttribute ( final com.google.gerrit.reviewdb.Account account ) { com.google.gerrit.common.ChangeHookRunner.AuthorAttribute author = new com.google.gerrit.common.ChangeHookRunner.AuthorAttribute ( ) ; author.name = account.getFullName ( ) ; author.email = account.getPreferredEmail ( ) ; return author ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.group.MemberResource resource , com.google.gerrit.server.group.PutMembers.PutMember.Input input ) { return get.get ( ) . apply ( resource ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.group.MemberResource resource , com.google.gerrit.server.group.AddMembers.PutMember.Input input ) { return get.get ( ) . apply ( resource ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.groups.GroupInfo result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( result.getGroupId ( ) , AccountGroupScreen.MEMBERS ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.info.GroupInfo result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( result.getGroupId ( ) , AccountGroupScreen.MEMBERS ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( org.eclipse.jgit.revwalk.RevCommit commit ) throws java.io.IOException { return toSoyData ( commit , com.google.gitiles.CommitSoyData.KeySet.DEFAULT ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.KeySet.DEFAULT ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check change" , e ) ; } }
Source:
public java.util.Map < java.lang.String , com.googlesrouce.gerrit.plugins.github.git.GHBranch > getBranches ( ) throws java.io.IOException { return ghRepository.getBranches ( ) ; }

Target:
public java.util.Map < java.lang.String , com.googlesource.gerrit.plugins.github.git.GHBranch > getBranches ( ) throws java.io.IOException { return ghRepository.getBranches ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onCollapseAll ( null ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onExpandAll ( null ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > membersOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) ;

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > subgroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) ;
Source:
public void setUseSignedOffBy ( final boolean sbo ) { useSignedOffBy = sbo ; }

Target:
public void setUseContentMerge ( final com.google.gerrit.reviewdb.client.Project.InheritedBoolean cm ) { useContentMerge = cm ; }
Source:
public WorkQueue.Executor getInteractiveQueue ( ) { return interactiveExecutor ; }

Target:
public WorkQueue.Executor getQueue ( com.google.gerrit.sshd.QueueType type ) { switch ( type ) { case INTERACTIVE : return interactiveExecutor ; case BATCH : default : return batchExecutor ; } }
Source:
public void addBranch ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }

Target:
public void addBranch ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }
Source:
public void revokedKeyDueToNoLongerBeingUsed ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey k = add ( com.google.gerrit.gpg.testutil.TestKeys.revokedNoLongerUsedKey ( ) ) ; add ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; save ( ) ; assertProblems ( k , "Key is revoked (retired and no longer valid): test7 not used" ) ; }

Target:
public void revokedKeyDueToNoLongerBeingUsed ( ) throws java.lang.Exception { com.google.gerrit.gpg.testing.TestKey k = add ( com.google.gerrit.gpg.testing.TestKeys.revokedNoLongerUsedKey ( ) ) ; add ( com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) ) ; save ( ) ; assertProblems ( k , "Key is revoked (retired and no longer valid): test7 not used" ) ; }
Source:
public void testPushForMasterWithHashtagsNoteDbDisabled ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { org.junit.Assume.assumeThat ( notesMigration.enabled ( ) , org.hamcrest.Matchers.is ( false ) ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }

Target:
public void testPushForMasterWithHashtagsNoteDbDisabled ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.enabled ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.FakeIndex.Source ( p ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int start , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.FakeIndex.Source ( p ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { }

Target:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameTxt.setText ( "" ) ; watchesTab.insertWatch ( result ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > name ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME , GroupQueryBuilder.FIELD_NAME , name.toLowerCase ( java.util.Locale.US ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > name ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME , GroupQueryBuilder.FIELD_NAME , name.toLowerCase ( java.util.Locale.US ) ) ; }
Source:
public void changeIsDeletedFromIndex ( ) throws java.lang.Exception { setupDeleteMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_IO_EXCEPTION ) ; verifyDelete ( ) ; }

Target:
public void changeIsDeletedFromIndex ( ) throws java.lang.Exception { syncIndexRestApiServlet.doDelete ( req , rsp ) ; org.mockito.Mockito.verify ( indexer , org.mockito.Mockito.times ( 1 ) ) . delete ( id ) ; org.mockito.Mockito.verify ( rsp ) . setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.client.PatchSetApproval audit ) { if ( audit != null ) { return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; } return myIdent ; }

Target:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.client.PatchSetApproval audit ) { if ( audit != null ) { return args.identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , args.myIdent.getTimeZone ( ) ) ; } return args.myIdent ; }
Source:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } return projectCache.get ( getProject ( ) . getParent ( allProjectsName ) ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.server.project.ProjectState > parents ( ) { return com.google.common.collect.Iterables.skip ( tree ( ) , 1 ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities result ) { if ( result.canPerform ( com.google.gerrit.common.data.GlobalCapability.ADMINISTRATE_SERVER ) ) { com.google.gerrit.client.Gerrit.addLink ( menuBar , com.google.gerrit.client.Gerrit.C.menuPlugins ( ) , PageLinks.ADMIN_PLUGINS ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities result ) { if ( result.canPerform ( com.google.gerrit.common.data.GlobalCapability.ADMINISTRATE_SERVER ) ) { com.google.gerrit.client.Gerrit.addLink ( pluginsBar , com.google.gerrit.client.Gerrit.C.menuPluginsInstalled ( ) , PageLinks.ADMIN_PLUGINS ) ; com.google.gerrit.client.Gerrit.menuLeft.add ( pluginsBar , com.google.gerrit.client.Gerrit.C.menuPlugins ( ) ) ; } }
Source:
public static void addSignedInListener ( final com.google.gerrit.client.SignedInListener l ) { if ( ! ( com.google.gerrit.client.Gerrit.signedInListeners.contains ( l ) ) ) { com.google.gerrit.client.Gerrit.signedInListeners.add ( l ) ; } }

Target:
public static void addSignOutHandler ( final com.google.gerrit.client.SignOutHandler l ) { if ( ! ( com.google.gerrit.client.Gerrit.signOutHandlers.contains ( l ) ) ) { com.google.gerrit.client.Gerrit.signOutHandlers.add ( l ) ; } }
Source:
public void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( velocifyFile ( "Comment.vm" ) ) ; }

Target:
public void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "Comment" ) ) ; }
Source:
protected void configure ( ) { install ( com.google.gerrit.server.account.externalids.DisabledExternalIdCache.module ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; factory ( MetaDataUpdate.InternalFactory.class ) ; install ( com.google.gerrit.server.account.externalids.DisabledExternalIdCache.module ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.com.google.gerrit.client.changes.ChangeInfo result ) { changeInfo = result ; display ( event.getValue ( ) ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { display ( event.getValue ( ) ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.plugins.PluginResource resource , com.google.gerrit.server.plugins.InstallPlugin.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , resource.getName ( ) ) . apply ( TopLevelResource.INSTANCE , input ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.plugins.ListPlugins.PluginInfo > apply ( com.google.gerrit.server.plugins.PluginResource resource , com.google.gerrit.server.plugins.InstallPlugin.Input input ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.io.IOException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , resource.getName ( ) , false ) . apply ( TopLevelResource.INSTANCE , input ) ; }
Source:
public final native boolean copySelfOnEmail ( ) ;

Target:
private final native java.lang.String emailStrategyRaw ( ) ;
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return context.getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return context.getUser ( ) ; }
Source:
public void update ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( "do not call update; use ChangeContext#saveChange()" ) ; }

Target:
public void update ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( "do not call update; change is updated automatically" ) ; }
Source:
protected static java.lang.String getAccountNameEmail ( com.google.gerrit.reviewdb.client.Account.Id id ) { return java.lang.String.format ( "%s <%s>" , com.google.gerrit.server.group.db.AbstractGroupTest.getAccountName ( id ) , com.google.gerrit.server.group.db.AbstractGroupTest.getAccountEmail ( id ) ) ; }

Target:
private static java.util.Optional < com.google.gerrit.reviewdb.client.Account > getAccount ( com.google.gerrit.reviewdb.client.Account.Id id ) { com.google.gerrit.reviewdb.client.Account account = new com.google.gerrit.reviewdb.client.Account ( id , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; account.setFullName ( ( "Account " + id ) ) ; return java.util.Optional.of ( account ) ; }
Source:
public void rebuildAndCheckChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { rebuildAndCheckChanges ( java.util.Arrays.stream ( changeIds ) ) ; }

Target:
public void rebuildAndCheckChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { rebuildAndCheckChanges ( java.util.Arrays.stream ( changeIds ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
com.google.gerrit.server.git.MetaDataUpdate create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.Repository db ) ;

Target:
com.google.gerrit.server.git.MetaDataUpdate create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.Repository db , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.BatchRefUpdate batch ) ;
Source:
public void stop ( ) { refreshThread.stop = true ; try { refreshThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.LuceneChangeIndex.log.warn ( "error stopping refresh thread" , e ) ; } openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
void halt ( ) { synchronized ( this ) { stop = true ; notify ( ) ; } try { join ( ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.LuceneChangeIndex.log.warn ( "error stopping refresh thread" , e ) ; } }