auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getMessage ( ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; return message ( refUpdate ) ; }

Target:
public java.lang.String getMessage ( ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( refUpdate ) . isNotNull ( ) ; return message ( refUpdate ) ; }
Source:
public java.lang.String getName ( java.lang.String anonymousCowardName ) { if ( ( fullName ) != null ) { return fullName ; } if ( ( preferredEmail ) != null ) { return preferredEmail ; } return getNameEmail ( anonymousCowardName ) ; }

Target:
public java.lang.String getName ( ) { if ( ( fullName ) != null ) { return fullName ; } if ( ( preferredEmail ) != null ) { return preferredEmail ; } return "GerritAccount #" + ( accountId.get ( ) ) ; }
Source:
public java.lang.String getPluginName ( java.io.File srcFile ) { return providerOf ( srcFile ) . getPluginName ( srcFile ) ; }

Target:
public java.lang.String getPluginName ( java.nio.file.Path srcPath ) { return providerOf ( srcPath ) . getPluginName ( srcPath ) ; }
Source:
void setContext ( com.google.gerrit.reviewdb.server.ReviewDb db , java.sql.Timestamp ts , com.google.gerrit.server.IdentifiedUser caller ) { this . db = db ; this . ts = ts ; this . caller = caller ; }

Target:
void setContext ( com.google.gerrit.reviewdb.server.ReviewDb db , java.sql.Timestamp ts , com.google.gerrit.server.IdentifiedUser caller , java.lang.String submissionId ) { this . db = db ; this . ts = ts ; this . caller = caller ; this . submissionId = submissionId ; }
Source:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig , notesMigration ) ) ; }

Target:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testing.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testing.InMemoryModule ( luceneConfig , notesMigration ) ) ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) ;

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { return create ( refControl , notesFactory.create ( db , project , changeId ) ) ; }
Source:
private void doReplay ( ) { org.easymock.EasyMock.replay ( schemaFactory , schema , subscriptions , urlProvider , repoManager , replication ) ; }

Target:
private void doReplay ( ) { org.easymock.EasyMock.replay ( schemaFactory , schema , subscriptions , urlProvider , sshProvider , repoManager , replication ) ; }
Source:
com.google.gerrit.server.change.SetAssigneeOp create ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) ;

Target:
com.google.gerrit.server.change.SetAssigneeOp create ( java.lang.String assignee ) ;
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = object.change ( ) ; return ( change != null ) && ( status.equals ( change.getStatus ( ) ) ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = object.change ( ) ; return ( change != null ) && ( java.util.Objects.equals ( status , change.getStatus ( ) ) ) ; }
Source:
protected void assertBadQuery ( java.lang.Object query ) throws java.lang.Exception { try { query ( query ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }

Target:
protected void assertBadQuery ( java.lang.Object query ) throws java.lang.Exception { try { newQuery ( query ) . get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }
Source:
public void deleteEmailEventually ( java.lang.String messageId ) { synchronized ( pendingDeletion ) { pendingDeletion.add ( messageId ) ; } }

Target:
public void requestDeletion ( java.lang.String messageId ) { pendingDeletion.add ( messageId ) ; }
Source:
public boolean isVisible ( ) { return ( ( visibleForReplication ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , new com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client.ExampleChangeScreenExtension.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , new com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client.ExampleChangeScreenExtension.Factory ( ) , "first" ) ; com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , new com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client.ExampleChangeScreenExtensionTwo.Factory ( ) , "second" ) ; }
Source:
public int run ( ) throws java.lang.Exception { com.google.inject.Injector sysInjector = com.google.gerrit.server.config.GerritGlobalModule.createInjector ( ) ; com.google.inject.Injector sshInjector = createSshInjector ( sysInjector ) ; com.google.gerrit.server.Lifecycle.start ( sysInjector , sshInjector ) ; return never ( ) ; }

Target:
private com.google.inject.Injector createWebInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( sshInjector.getInstance ( com.google.gerrit.httpd.WebModule.class ) ) ; return sysInjector.createChildInjector ( modules ) ; }
Source:
private static boolean isJson ( byte [ ] raw , int offset ) { return ( ( raw [ offset ] ) == '{' ) || ( ( raw [ offset ] ) == '[' ) ; }

Target:
protected abstract java.util.List < T > parse ( byte [ ] raw , int offset ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public final native double defaultCharWidth ( ) ;

Target:
public final native com.google.gwt.dom.client.Element getMeasureElement ( ) ;
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) . toList ( ) ; }

Target:
public java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( com.google.gerrit.client.rpc.Common.getAccountId ( ) ) . toList ( ) ; }
Source:
public com.google.gerrit.sshd.SshScope.Context get ( ) { return com.google.gerrit.sshd.SshScope.getContext ( ) ; }

Target:
public com.google.gerrit.sshd.SshScope.Context get ( ) { return com.google.gerrit.sshd.SshScope.requireContext ( ) ; }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( account , com.google.common.collect.ImmutableSet.of ( ) , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) ) ; }
Source:
void addLine ( int line ) { dst.addLine ( line , src.getLine ( line ) ) ; }

Target:
void addLine ( int line ) { dst.addLine ( line , src.getString ( line ) ) ; }
Source:
protected void set ( int newValue ) { seq = newValue ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( accountId , seq ) ; }
Source:
public void commentOnReview ( java.lang.String project , int number , java.lang.String commentTemplate ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.project.NoSuchChangeException , com.google.gerrit.server.update.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput comment = createComment ( commentTemplate ) ; applyComment ( project , number , comment ) ; }

Target:
public void setMinusOne ( java.lang.String project , int number , java.lang.String comment ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput message = createComment ( comment ) . label ( "Code-Review" , ( - 1 ) ) ; applyComment ( project , number , message ) ; }
Source:
public void testOne ( ) { com.google.common.truth.Truth.assertThat ( cfg.getString ( "x" , null , "y" ) ) . isEqualTo ( "z" ) ; }

Target:
public void testOne ( ) { com.google.common.truth.Truth.assertThat ( cfg.getString ( "section" , null , "name" ) ) . isEqualTo ( "value" ) ; }
Source:
public boolean login ( javax.servlet.ServletRequest request , javax.servlet.ServletResponse response , com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope ... scopes ) throws java.io.IOException { return login ( ( ( javax.servlet.http.HttpServletRequest ) ( request ) ) , ( ( javax.servlet.http.HttpServletResponse ) ( response ) ) , scopes ) ; }

Target:
public org.kohsuke.github.GitHub login ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken authToken ) throws java.io.IOException { com.googlesource.gerrit.plugins.github.oauth.GitHubLogin.log.debug ( "Logging in using access token {}" , authToken.accessToken ) ; this . token = authToken ; return getHub ( ) ; }
Source:
public void flushCache_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.post ( "/config/server/caches/accounts/flush" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }

Target:
public void flushCache_Forbidden ( ) throws java.lang.Exception { userSession.post ( "/config/server/caches/accounts/flush" ) . assertForbidden ( ) ; }
Source:
public void exec ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { executor.schedule ( requestScopePropagator.wrap ( job ) , getRandomExecutionDelay ( job ) , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void exec ( com.googlesource.gerrit.plugins.github.git.GitJob job ) { executor.schedule ( requestScopePropagator.wrap ( job ) , getRandomExecutionDelay ( job ) , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( userPopup.isShowing ( ) ) && ( userPopup.isVisible ( ) ) ) { userPopup.hide ( ) ; } else { userPopup.showRelativeTo ( l ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { showHidePopup ( ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getOldId ( ) { return oldId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getOldId ( ) { if ( ( ( oldId ) == null ) && ( ( oldIdName ) != null ) ) { oldId = org.eclipse.jgit.lib.ObjectId.fromString ( oldIdName ) ; } return oldId ; }
Source:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) . isNotEqualTo ( NoteDbMode.CHECK ) ; }

Target:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testing.NoteDbMode.get ( ) ) . isNotEqualTo ( NoteDbMode.CHECK ) ; }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { popup.setVisible ( false ) ; popup.clear ( ) ; }

Target:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { popup.setVisible ( false ) ; popup.clear ( ) ; hideFullScreenIcon ( ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.reviewdb.client.AccountProjectWatch in ) { return in.getProjectNameKey ( ) . get ( ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.account.WatchConfig.ProjectWatchKey in ) { return in.project ( ) . get ( ) ; }
Source:
protected void setupSoyContext ( ) { super . setupSoyContext ( ) ; soyContext.put ( "inlineCommentGroups" , getCommentGroupsTemplateData ( ) ) ; }

Target:
protected void setupSoyContext ( ) { super . setupSoyContext ( ) ; soyContext.put ( "commentFiles" , getCommentGroupsTemplateData ( ) ) ; }
Source:
public void deleteAll ( ) throws java.io.IOException { openIndex.deleteAll ( ) ; }

Target:
public void deleteAll ( ) throws java.io.IOException { openIndex.deleteAll ( ) ; closedIndex.deleteAll ( ) ; }
Source:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { declaredOwner = user.memberOfAny ( state.getAllOwners ( ) ) ; } return declaredOwner ; }

Target:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { com.google.gerrit.server.account.GroupMembership effectiveGroups = user.getEffectiveGroups ( ) ; declaredOwner = effectiveGroups.containsAnyOf ( state.getAllOwners ( ) ) ; } return declaredOwner ; }
Source:
public void maybeFossilCollectIndexRow ( long now , byte [ ] key , com.google.gwtorm.nosql.IndexRow r ) throws com.google.gwtorm.client.OrmException { if ( ( ( r.getTimestamp ( ) ) + ( db.getMaxFossilAge ( ) ) ) <= now ) { delete ( key ) ; } }

Target:
public void maybeFossilCollectIndexRow ( long now , byte [ ] key , com.google.gwtorm.nosql.IndexRow row ) { if ( ( ( row.getTimestamp ( ) ) + ( db.getMaxFossilAge ( ) ) ) <= now ) { fossilCollectIndexRow ( key , row ) ; } }
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { getBatchRefUpdate ( ) . addCommand ( cmd ) ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; commands.add ( cmd ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > published ( com.google.gerrit.reviewdb.Patch.Key patch ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > publishedByPatch ( com.google.gerrit.reviewdb.Patch.Key patch ) throws com.google.gwtorm.client.OrmException ;
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } else { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeQuery ( "status:open" ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.displayLastChangeList ( ) ; }
Source:
com.google.gerrit.server.schema.Schema_77.LegacyLabelType byId ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId id ) { return byId.get ( id.get ( ) ) ; }

Target:
com.google.gerrit.server.schema.Schema_77.LegacyLabelType byId ( com.google.gerrit.reviewdb.client.LabelId id ) { return byId.get ( id.get ( ) ) ; }
Source:
int getHeaderHeight ( ) { int h = patchSetSelectBoxA.getOffsetHeight ( ) ; if ( header ) { h += diffHeaderRow.getOffsetHeight ( ) ; } return h ; }

Target:
abstract com.google.gerrit.client.diff.DiffScreen getDiffScreen ( ) ;
Source:
public final java.lang.String cloneCommand ( java.lang.String commandName , java.lang.String project ) { return cloneCommand ( commandName ) . replaceAll ( "\\$\\{project\\}" , project ) ; }

Target:
public final java.lang.String cloneCommand ( java.lang.String commandName , java.lang.String project ) { return cloneCommand ( commandName ) . replaceAll ( "\\$\\{project\\}" , project ) . replaceAll ( "\\$\\{project-base-name\\}" , projectBaseName ( project ) ) ; }
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; branch ( ) . delete ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( branch ( ) . get ( ) . canDelete ) . isNull ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; branch ( ) . delete ( ) ; }
Source:
public int run ( ) throws java.lang.Exception { com.google.inject.Injector sysInjector = com.google.gerrit.server.config.GerritGlobalModule.createInjector ( ) ; com.google.inject.Injector sshInjector = createSshInjector ( sysInjector ) ; com.google.gerrit.server.Lifecycle.start ( sysInjector , sshInjector ) ; return never ( ) ; }

Target:
void setDisableSshd ( final boolean arg ) { sshd = false ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > allExternalMembers ( ) { try { return external.get ( com.google.gerrit.server.account.GroupIncludeCacheImpl.EXTERNAL_NAME ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.GroupIncludeCacheImpl.log.warn ( "Cannot load set of non-internal groups" , e ) ; return java.util.Collections.emptySet ( ) ; } }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.client.AccountGroup.UUID > allExternalMembers ( ) { try { return external.get ( com.google.gerrit.server.account.GroupIncludeCacheImpl.EXTERNAL_NAME ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.GroupIncludeCacheImpl.log.warn ( "Cannot load set of non-internal groups" , e ) ; return com.google.common.collect.ImmutableList.of ( ) ; } }
Source:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }

Target:
public boolean isInternalAccount ( java.lang.String username ) { return false ; }
Source:
public void setFunctionName ( java.lang.String functionName ) { this . functionName = functionName ; }

Target:
public void setFunction ( @ com.google.gerrit.common.Nullable com.google.gerrit.common.data.LabelFunction function ) { this . functionName = ( function != null ) ? function.getFunctionName ( ) : null ; }
Source:
public void putApproval ( java.lang.String label , short value ) { putApprovalFor ( getUser ( ) . getAccountId ( ) , label , value ) ; }

Target:
public void removeApproval ( java.lang.String label ) { removeApprovalFor ( getAccountId ( ) , label ) ; }
Source:
public com.google.gerrit.server.git.receive.ReceiveCommits getReceiveCommits ( ) { return rc ; }

Target:
public org.eclipse.jgit.transport.ReceivePack getReceivePack ( ) { return rp ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { 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 , c , com.google.gerrit.server.util.TimeUtil.nowTs ( ) , 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 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 ( ) ) ; }
Source:
private void initDisplayControls ( ) { final com.google.gwt.user.client.ui.FlowPanel displayControls = new com.google.gwt.user.client.ui.FlowPanel ( ) ; displayControls.setStyleName ( "gerrit-PatchScreen-DisplayControls" ) ; add ( displayControls ) ; displayControls.add ( createShowFullFiles ( ) ) ; displayControls.add ( createIgnoreWhitespace ( ) ) ; }

Target:
private void initDisplayControls ( ) { final com.google.gwt.user.client.ui.Grid displayControls = new com.google.gwt.user.client.ui.Grid ( 0 , 4 ) ; displayControls.setStyleName ( "gerrit-PatchScreen-DisplayControls" ) ; add ( displayControls ) ; createIgnoreWhitespace ( displayControls , 0 , 0 ) ; createContext ( displayControls , 0 , 2 ) ; }
Source:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.ChangeActions.publish ( changeId , revision , publish , deleteRevision ) ; }

Target:
void onPublishEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.publishEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
public static com.google.gerrit.server.index.FieldDef.Builder < byte [ ] > storedOnly ( java.lang.String name ) { return new com.google.gerrit.server.index.FieldDef.Builder ( FieldType.STORED_ONLY , name ) . stored ( ) ; }

Target:
public static com.google.gerrit.index.FieldDef.Builder < byte [ ] > storedOnly ( java.lang.String name ) { return new com.google.gerrit.index.FieldDef.Builder ( FieldType.STORED_ONLY , name ) . stored ( ) ; }
Source:
private com.google.gerrit.server.account.WatchConfig.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) { return com.google.gerrit.server.account.WatchConfig.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue , this ) ; }

Target:
private com.google.gerrit.server.account.ProjectWatches.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) { return com.google.gerrit.server.account.ProjectWatches.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue , this ) ; }
Source:
private void merge ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { revision ( r ) . review ( com.google.gerrit.extensions.api.changes.ReviewInput.approve ( ) ) ; revision ( r ) . submit ( ) ; }

Target:
private com.google.gerrit.extensions.api.changes.RevisionApi current ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { com.google.gerrit.client.change.RelatedChangesTab tab = tabs.get ( com.google.gerrit.client.change.RelatedChanges.RELATED_CHANGES ) ; tab.setTitle ( Resources.M.relatedChanges ( "na" ) ) ; tab.setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; relatedChangesTab.setError ( err.getMessage ( ) ) ; }
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) { commands.add ( cmd ) ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; commands.add ( cmd ) ; }
Source:
protected void assertBadQuery ( com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.BadRequestException.class ) ; query.get ( ) ; }

Target:
protected void assertBadQuery ( com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ) throws java.lang.Exception { try { query.get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }
Source:
public com.google.common.truth.ComparableSubject < ? , java.sql.Timestamp > creationDate ( ) { isNotNull ( ) ; com.google.gerrit.extensions.common.GitPerson gitPerson = actual ( ) ; return com.google.common.truth.Truth.assertThat ( gitPerson.date ) . named ( "creationDate" ) ; }

Target:
public com.google.common.truth.ComparableSubject < ? , java.sql.Timestamp > date ( ) { isNotNull ( ) ; com.google.gerrit.extensions.common.GitPerson gitPerson = actual ( ) ; return com.google.common.truth.Truth.assertThat ( gitPerson.date ) . named ( "creationDate" ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForCommit ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { return newChange ( repo , commit , null , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , topic ) ; }
Source:
public final short changesPerPage ( ) { short changesPerPage = get ( "changes_per_page" , AccountGeneralPreferences.DEFAULT_PAGESIZE ) ; return 0 < changesPerPage ? changesPerPage : com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DEFAULT_PAGESIZE ; }

Target:
public final int changesPerPage ( ) { int changesPerPage = get ( "changes_per_page" , GeneralPreferencesInfo.DEFAULT_PAGESIZE ) ; return 0 < changesPerPage ? changesPerPage : com.google.gerrit.extensions.client.GeneralPreferencesInfo.DEFAULT_PAGESIZE ; }
Source:
public void insertItem ( final com.google.gerrit.client.ui.LinkMenuItem i , int beforeIndex ) { insert ( i , beforeIndex ) ; }

Target:
public void insertItem ( final com.google.gerrit.client.ui.LinkMenuItem i , int beforeIndex ) { i.setMenuBar ( this ) ; insert ( i , beforeIndex ) ; }
Source:
protected void configure ( ) { bind ( com.googlesource.gerrit.plugins.replication.Destination.class ) . toInstance ( this ) ; bind ( org.eclipse.jgit.transport.RemoteConfig.class ) . toInstance ( remote ) ; install ( new com.google.inject.assistedinject.FactoryModuleBuilder ( ) . build ( PushOne.Factory.class ) ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return controlFor ( project ) . isVisible ( ) ; }
Source:
public boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT , isChangeOwner ) ) && ( canWrite ( ) ) ; }

Target:
public boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT , isChangeOwner ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
void setMaxHeight ( int height ) { maxHeight = height ; if ( ( view ) != null ) { view.setHeight ( ( height + "px" ) ) ; view.movePointerTo ( view.selectedRow , true ) ; } }

Target:
void setMaxHeight ( int height ) { maxHeight = height ; if ( ( view ) != null ) { view.setHeight ( ( height + "px" ) ) ; view.ensureRowMeasurements ( ) ; view.movePointerTo ( view.selectedRow , true ) ; } }
Source:
public void setStatus ( com.google.gerrit.reviewdb.client.Change.Status status ) { com.google.common.base.Preconditions.checkArgument ( ( status != ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.SUBMITTED ) ) , "use submit(Iterable<PatchSetApproval>)" ) ; this . status = status ; }

Target:
public void setStatus ( com.google.gerrit.reviewdb.client.Change.Status status ) { com.google.common.base.Preconditions.checkArgument ( ( status != ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.MERGED ) ) , "use submit(Iterable<PatchSetApproval>)" ) ; this . status = status ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( name , id , type , peeledId , peeledType ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( name , id , type , peeledId , peeledType ) ; }
Source:
public void sendError ( int sc ) { status = sc ; }

Target:
public synchronized void setStatus ( int sc ) { status = sc ; committed = true ; }
Source:
public long getElapsed ( ) { return ( java.lang.System.currentTimeMillis ( ) ) - ( when ) ; }

Target:
public long getElapsed ( ) { return ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) - ( when ) ; }
Source:
public Change.Key getChangeKey ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change.get ( ) . id ) ; }

Target:
public Project.NameKey getProjectNameKey ( ) { return projectNameKey ; }
Source:
public void removeApprovalFor ( com.google.gerrit.reviewdb.client.Account.Id reviewer , java.lang.String label ) { approvals.put ( label , reviewer , com.google.common.base.Optional.< java.lang.Short > absent ( ) ) ; }

Target:
public void removeApprovalFor ( com.google.gerrit.reviewdb.client.Account.Id reviewer , java.lang.String label ) { approvals.put ( label , reviewer , java.util.Optional.empty ( ) ) ; }
Source:
public com.google.common.base.Optional < com.google.gerrit.server.query.change.ChangeData.ChangedLines > changedLines ( ) throws com.google.gwtorm.server.OrmException { if ( ( changedLines ) == null ) { changedLines = computeChangedLines ( ) ; } return changedLines ; }

Target:
public com.google.common.base.Optional < com.google.gerrit.server.query.change.ChangeData.ChangedLines > changedLines ( ) throws com.google.gwtorm.server.OrmException { if ( ( changedLines ) == null ) { if ( ! ( lazyLoad ) ) { return com.google.common.base.Optional.absent ( ) ; } changedLines = computeChangedLines ( ) ; } return changedLines ; }
Source:
private com.google.gerrit.server.project.ProjectState newProjectState ( com.google.gerrit.server.git.ProjectConfig local ) { add ( local ) ; return all.get ( local.getProject ( ) . getNameKey ( ) ) ; }

Target:
private com.google.gerrit.server.project.ProjectState newProjectState ( com.google.gerrit.server.project.ProjectConfig local ) { add ( local ) ; return all.get ( local.getProject ( ) . getNameKey ( ) ) ; }
Source:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) throws org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) . getInitialDelay ( ) ; }

Target:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) throws org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.config.ScheduleConfig ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" , "subsection" , com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . getInitialDelay ( ) ; }
Source:
private static boolean isTextBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , "text/plain" ) ; }

Target:
private static boolean isTextBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , com.google.gerrit.client.rpc.RestApi.TEXT_TYPE ) ; }
Source:
private void fireEvent ( final com.google.gerrit.reviewdb.Change change , final com.google.gerrit.server.events.ChangeEvent event ) { for ( com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder holder : listeners.values ( ) ) { if ( isVisibleTo ( change , holder.user ) ) { holder.listener.onChangeEvent ( event ) ; } } }

Target:
private void fireEvent ( com.google.gerrit.reviewdb.Branch.NameKey branchName , final com.google.gerrit.server.events.ChangeEvent event ) { for ( com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder holder : listeners.values ( ) ) { if ( isVisibleTo ( branchName , holder.user ) ) { holder.listener.onChangeEvent ( event ) ; } } }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.server.index.change.FakeChangeIndex.Source ( p ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.server.index.change.FakeChangeIndex.Source ( p ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountGroup > result ) { if ( isAttached ( ) ) { groups.display ( result ) ; groups.finishDisplay ( true ) ; } }

Target:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.AccountGroup > result ) { groups.display ( result ) ; groups.finishDisplay ( true ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setTitleText ( Gerrit.C.notFoundTitle ( ) ) ; add ( new com.google.gwt.user.client.ui.Label ( Gerrit.C.notFoundBody ( ) ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Gerrit.C.notFoundTitle ( ) ) ; add ( new com.google.gwt.user.client.ui.Label ( Gerrit.C.notFoundBody ( ) ) ) ; }
Source:
protected boolean isPatchSet ( ) { return false ; }

Target:
private boolean isPatchSet ( ) { return ( this ) instanceof com.google.gerrit.server.notedb.rebuild.PatchSetEvent ; }
Source:
public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } }

Target:
java.lang.Runnable toggleOpenBox ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } } ; }
Source:
private static java.lang.String name ( java.nio.file.Path dir ) { return dir.getFileName ( ) . toString ( ) ; }

Target:
public static java.nio.file.Path getDeveloperBuckOut ( ) throws java.io.FileNotFoundException { return com.google.gerrit.launcher.GerritLauncher.resolveInSourceRoot ( "buck-out" ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( domain ) , culprit } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.IllegalDomainException.DOMAIN_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( domain ) , culprit } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.IllegalDomainException.DOMAIN_ERROR , args ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { isOwner = result.isOwner ( ) ; enableForm ( ) ; saveProject.setVisible ( isOwner ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { isOwner = result.isOwner ( ) ; configVisible = result.configVisible ( ) ; enableForm ( ) ; saveProject.setVisible ( isOwner ) ; }
Source:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.change.ChangeIndex i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } fireChangeIndexedEvent ( cd ) ; }

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.query.change.ChangeData > i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } fireChangeIndexedEvent ( cd ) ; }
Source:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter.MARKDOWN.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter.PLAIN_TEXT.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }

Target:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }
Source:
public void modifyFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.edit.ChangeEdit changeEdit , java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { modifyTree ( repository , changeEdit , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( filePath , newContent ) ) ; }

Target:
public void modifyFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , changeControl , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( filePath , newContent ) ) ; }
Source:
public com.google.gerrit.server.git.ChangeReportFormatter.Input setWorkInProgress ( boolean wip ) { this . wip = wip ; return this ; }

Target:
public abstract com.google.gerrit.server.git.ChangeReportFormatter.Input.Builder setIsPrivate ( java.lang.Boolean val ) ;
Source:
java.lang.String getTitle ( int count ) { }

Target:
java.lang.String getTitle ( int count ) { return Resources.M.sameTopic ( count ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm multiply ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) return t.multiply ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) * ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm multiply ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) return t.multiply ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) * ( t.intValue ( ) ) ) ) ; }
Source:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self.getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }

Target:
public void registerCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self ( ) . registerCacheUsageListener ( cacheUsageListener ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { onSubmitResult ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.display ( result ) ; }
Source:
public void testEndsBeforeNewline ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 3 ) , iter.advance ( 3 ) ) ; }

Target:
public void testEndsBeforeNewline ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 3 ) , iter.advance ( 3 ) ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.IGNORE_SPACE_CHANGE ) ; } else { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.IGNORE_NONE ) ; } refresh ( false ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { final int sel = ws.getSelectedIndex ( ) ; if ( 0 <= sel ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.valueOf ( ws.getValue ( sel ) ) ) ; refresh ( false ) ; } }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) 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.IndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ) . isEqualTo ( query ( in ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) 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 ) ) ; }
Source:
com.googlesource.gerrit.plugins.hooks.HookResult run ( java.lang.String projectName , com.googlesource.gerrit.plugins.hooks.HookArgs args ) { return executor.submit ( projectName , path , args ) ; }

Target:
com.googlesource.gerrit.plugins.hooks.HookResult execute ( java.lang.String projectName , com.googlesource.gerrit.plugins.hooks.HookArgs args ) { return executor.submit ( projectName , path , args ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }
Source:
protected void configure ( ) { bind ( ProjectControl.GenericFactory.class ) ; factory ( ProjectControl.AssistedFactory.class ) ; bind ( ChangeControl.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ProjectControl.Factory.class ) ; bind ( ChangeControl.Factory.class ) ; }
Source:
public int hashCode ( ) { return ( 127 * ( "value" . hashCode ( ) ) ) ^ ( value ( ) . hashCode ( ) ) ; }

Target:
public static com.google.gerrit.sshd.CommandName named ( final java.lang.String value ) { return new com.google.gerrit.sshd.AutoAnnotation_Commands_named ( value ) ; }
Source:
public static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) ) ; }

Target:
static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId blobId ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) , blobId ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; project3 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p3" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project3.get ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project2.get ( ) ) ; project3 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p3" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project3.get ( ) ) ; }