auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.sql.Timestamp getWhen ( ) { return when ; }

Target:
public static com.google.inject.Module module ( ) { return new com.google.gerrit.extensions.config.FactoryModule ( ) { @ java.lang.Override public void configure ( ) { factory ( ReviewDbBatchUpdate.AssistedFactory.class ) ; } } ; }
Source:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( final com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }

Target:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( com.google.gerrit.extensions.common.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.client.Account.Id authorId , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;

Target:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.client.Account.Id authorId , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;
Source:
protected com.google.gerrit.extensions.common.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.extensions.common.ListChangesOption ... options ) throws java.io.IOException { return getChange ( adminSession , changeId , options ) ; }

Target:
protected org.eclipse.jgit.api.Git git ( ) { return testRepo.git ( ) ; }
Source:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , views ) ; }

Target:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , views ) ; }
Source:
public void pushWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }

Target:
public void pushWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isFalse ( ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( new com.google.gerrit.server.query.change.ChangeData ( change ) , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { index ( changeDataFactory.create ( db , change ) ) ; }
Source:
public static final native void defineVimEx ( java.lang.String name , java.lang.String prefix , java.lang.Runnable thunk ) ;

Target:
public final native void on ( java.lang.String event , net.codemirror.lib.CodeMirror.RenderLineHandler handler ) ;
Source:
public void addNonExistingMember_NotFound ( ) throws java.lang.Exception { int status = adminSession.put ( "/groups/Administrators/members/non-existing" ) . getStatusCode ( ) ; com.google.common.truth.Truth.assertThat ( status ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void addNonExistingMember_NotFound ( ) throws java.lang.Exception { adminSession.put ( "/groups/Administrators/members/non-existing" ) . assertNotFound ( ) ; }
Source:
private final native java.lang.String downloadSchemeRaw ( ) ;

Target:
public final native java.lang.String downloadScheme ( ) ;
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }

Target:
private void init ( net.codemirror.lib.Pos anchor ) { bubble = new com.google.gerrit.client.diff.InsertCommentBubble ( getCommentManager ( ) , cm ) ; add ( bubble ) ; cm.addWidget ( anchor , bubble.getElement ( ) ) ; }
Source:
public long getLongParameter ( java.lang.String name , long defaultValue ) { return config.getLong ( RTCItsFacade.ITS_NAME_RTC , null , getParamName ( name ) , defaultValue ) ; }

Target:
public long getLongParameter ( java.lang.String name , long defaultValue ) { return config.getLong ( pluginName , null , getParamName ( name ) , defaultValue ) ; }
Source:
public void warning ( java.lang.String msg ) { info ( msg ) ; }

Target:
public void message ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.reviewdb.client.Project item ) { return item.getNameKey ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.projects.ProjectInfo item ) { return item.name ( ) ; }
Source:
public boolean contains ( int idx ) ;

Target:
boolean hasTrailingEdit ( int idx ) ;
Source:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision ) ; }

Target:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision , publish , deleteRevision , deleteChange ) ; }
Source:
public boolean containsHeader ( java.lang.String name ) { return false ; }

Target:
public void setCharacterEncoding ( java.lang.String name ) { com.google.common.base.Preconditions.checkArgument ( com.google.common.base.Charsets.UTF_8.equals ( java.nio.charset.Charset.forName ( name ) ) , "unsupported charset: %s" , name ) ; }
Source:
public com.google.gerrit.extensions.common.DiffInfo diff ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiff.apply ( file ) . value ( ) ; } catch ( java.io.IOException | com.google.gerrit.server.project.InvalidChangeOperationException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve diff" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.DiffInfo diff ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiff.apply ( file ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve diff" , e ) ; } }
Source:
HEAD ( com.google.gerrit.server.change.c40c5c Merge ) { }

Target:
public com.google.gerrit.server.change.ListRevisionComments list ( ) { return list ; }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , getRefControl ( ) . forUser ( who ) , notes ) ; }
Source:
public void restoreFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; modifyTree ( repository , edit , new com.google.gerrit.server.edit.tree.RestoreFileModification ( editCommit , file ) ) ; }

Target:
public void restoreFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String file ) 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.RestoreFileModification ( file ) ) ; }
Source:
void setFocus ( final boolean take ) { text.setFocus ( take ) ; }

Target:
void setFocus ( final boolean take ) { if ( text.isVisible ( ) ) { text.setFocus ( take ) ; } else if ( take ) { edit ( ) ; } }
Source:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.adminconsole.ShowAccountCommand.class ) ; alias ( "show-account" , com.googlesource.gerrit.plugins.adminconsole.ShowAccountCommand.class ) ; alias ( "show-repo-account-access" , com.googlesource.gerrit.plugins.adminconsole.ShowRepoAccountAccessCommand.class ) ; alias ( "show-repo-access" , com.googlesource.gerrit.plugins.adminconsole.ShowRepoAccessCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.adminconsole.ShowAccountCommand.class ) ; command ( com.googlesource.gerrit.plugins.adminconsole.ListUsersCommand.class ) ; alias ( "show-account" , com.googlesource.gerrit.plugins.adminconsole.ShowAccountCommand.class ) ; alias ( "show-repo-account-access" , com.googlesource.gerrit.plugins.adminconsole.ShowRepoAccountAccessCommand.class ) ; alias ( "show-repo-access" , com.googlesource.gerrit.plugins.adminconsole.ShowRepoAccessCommand.class ) ; }
Source:
public java.lang.String [ ] apply ( java.util.Collection < java.lang.String > values ) { return values.toArray ( new java.lang.String [ 0 ] ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String [ ] > getParameterMap ( ) { return java.util.Collections.unmodifiableMap ( com.google.common.collect.Maps.transformValues ( parameters.asMap ( ) , ( vs ) -> vs.toArray ( new java.lang.String [ 0 ] ) ) ) ; }
Source:
public void addTreeModification ( com.google.gerrit.server.edit.tree.TreeModification treeModification ) { com.google.common.base.Preconditions.checkNotNull ( treeModification , "treeModification must not be null" ) ; treeModifications.add ( treeModification ) ; }

Target:
public void addTreeModifications ( java.util.List < com.google.gerrit.server.edit.tree.TreeModification > treeModifications ) { com.google.common.base.Preconditions.checkNotNull ( treeModifications , "treeModifications must not be null" ) ; this . treeModifications.addAll ( treeModifications ) ; }
Source:
public static void submit ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.SubmitInfo > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "submit" ) . post ( in , cb ) ; }

Target:
public static void includedIn ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( project , id , "in" ) . get ( cb ) ; }
Source:
private com.google.gerrit.extensions.client.ChangeKind getChangeKind ( java.lang.String changeId ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo c = gApi.changes ( ) . id ( changeId ) . get ( java.util.EnumSet.of ( ListChangesOption.CURRENT_REVISION ) ) ; return c.revisions.get ( c.currentRevision ) . kind ; }

Target:
private com.google.gerrit.extensions.client.ChangeKind getChangeKind ( java.lang.String changeId ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo c = gApi.changes ( ) . id ( changeId ) . get ( com.google.gerrit.extensions.client.ListChangesOption.CURRENT_REVISION ) ; return c.revisions.get ( c.currentRevision ) . kind ; }
Source:
private void assertCannotUpdate ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { boolean update = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.UPDATE ) ; com.google.common.truth.Truth.assertThat ( update ) . named ( ( "cannot update " + ref ) ) . isFalse ( ) ; }

Target:
private void assertCannotUpdate ( java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { boolean update = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.UPDATE ) ; com.google.common.truth.Truth.assertThat ( update ) . named ( ( "cannot update " + ref ) ) . isFalse ( ) ; }
Source:
public ServiceUserResource.SshKey parse ( com.googlesource.gerrit.plugins.serviceuser.ServiceUserResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }

Target:
public ServiceUserResource.SshKey parse ( com.googlesource.gerrit.plugins.serviceuser.ServiceUserResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException { return new com.googlesource.gerrit.plugins.serviceuser.ServiceUserResource.SshKey ( sshKeys.get ( ) . parse ( parent.getUser ( ) , id ) ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setDraft ( ) { change.setStatus ( Change.Status.DRAFT ) ; patchSet.setDraft ( true ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setDraft ( boolean draft ) { change.setStatus ( ( draft ? Change.Status.DRAFT : Change.Status.NEW ) ) ; patchSet.setDraft ( draft ) ; return this ; }
Source:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { return ! ( label ( perm.permissionName ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { return ! ( label ( com.google.gerrit.server.permissions.DefaultPermissionMappings.labelPermissionName ( perm ) ) . isEmpty ( ) ) ; }
Source:
public com.google.gerrit.extensions.api.changes.ReviewResult review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) { }

Target:
public com.google.gerrit.extensions.api.changes.ReviewResult review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void defaultGpgCertificationMatchesEmail ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; assertProblems ( com.google.gerrit.server.git.gpg.TestKey.key5 ( ) , ( "Key must contain a valid certification for one of the following " + ( ( "identities:\n" + " gerrit:user\n" ) + " username:user" ) ) ) ; addExternalId ( "test" , "test" , "test5@example.com" ) ; assertNoProblems ( key ) ; }

Target:
public void defaultGpgCertificationMatchesEmail ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ; assertProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) , ( "Key must contain a valid certification for one of the following " + ( ( "identities:\n" + " gerrit:user\n" ) + " username:user" ) ) ) ; addExternalId ( "test" , "test" , "test5@example.com" ) ; assertNoProblems ( key ) ; }
Source:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . addParameterTrue ( "download-commands" ) ; }
Source:
public void advertiseRefs ( org.eclipse.jgit.transport.BaseReceivePack rp ) throws org.eclipse.jgit.transport.ServiceMayNotContinueException { com.google.gerrit.server.git.receive.ReceiveCommitsAdvertiseRefsHook.Result r = advertiseRefs ( com.google.gerrit.server.git.receive.HookUtil.ensureAllRefsAdvertised ( rp ) ) ; rp.setAdvertisedRefs ( r.allRefs ( ) , r.additionalHaves ( ) ) ; }

Target:
public void advertiseRefs ( org.eclipse.jgit.transport.BaseReceivePack rp ) throws org.eclipse.jgit.transport.ServiceMayNotContinueException { com.google.gerrit.server.git.receive.ReceiveCommitsAdvertiseRefsHook.Result r = advertiseRefs ( com.google.gerrit.server.git.HookUtil.ensureAllRefsAdvertised ( rp ) ) ; rp.setAdvertisedRefs ( r.allRefs ( ) , r.additionalHaves ( ) ) ; }
Source:
private boolean refUpdated ( org.eclipse.jgit.lib.RefUpdate.Result result ) { return ( result == ( RefUpdate.Result.NEW ) ) || ( result == ( RefUpdate.Result.FORCED ) ) ; }

Target:
private boolean refUpdated ( org.eclipse.jgit.lib.RefUpdate.Result result ) { return ( result == ( org.eclipse.jgit.lib.RefUpdate.Result.NEW ) ) || ( result == ( org.eclipse.jgit.lib.RefUpdate.Result.FORCED ) ) ; }
Source:
public void testAcrossMultipleLines ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 10 ) ) ; }

Target:
public void testAcrossMultipleLines ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 10 ) ) ; }
Source:
public void includeNonExistingGroup ( ) throws java.lang.Exception { java.lang.String gx = group ( "gx" ) ; try { gApi.groups ( ) . id ( gx ) . addGroups ( "non-existing" ) ; } catch ( com.google.gerrit.extensions.restapi.UnprocessableEntityException expecetd ) { } }

Target:
public void includeNonExistingGroup ( ) throws java.lang.Exception { java.lang.String gx = createGroup ( "gx" ) ; try { gApi.groups ( ) . id ( gx ) . addGroups ( "non-existing" ) ; } catch ( com.google.gerrit.extensions.restapi.UnprocessableEntityException expecetd ) { } }
Source:
protected void onResize ( final int width , final int height ) { center ( ) ; }

Target:
protected void onResize ( final int width , final int height ) { if ( isAttached ( ) ) { center ( ) ; } }
Source:
public com.google.gerrit.extensions.common.SshKeyInfo apply ( com.google.gerrit.reviewdb.client.AccountSshKey key ) { return com.google.gerrit.server.account.GetSshKeys.newSshKeyInfo ( key ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.SshKeyInfo > apply ( com.google.gerrit.server.IdentifiedUser user ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException , org.eclipse.jgit.errors.RepositoryNotFoundException { return com.google.common.collect.Lists.transform ( authorizedKeys.getKeys ( user.getAccountId ( ) ) , com.google.gerrit.server.account.GetSshKeys :: newSshKeyInfo ) ; }
Source:
abstract void createFileCommentEitorOnSideB ( ) ;

Target:
abstract void createFileCommentEditorOnSideB ( ) ;
Source:
public void refsDraftCommentsPrefix ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftCommentsPrefix ( accountId ) ) . isEqualTo ( "refs/draft-comments/23/1011123/" ) ; }

Target:
public void refsDraftCommentsPrefix ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftCommentsPrefix ( changeId ) ) . isEqualTo ( "refs/draft-comments/73/67473/" ) ; }
Source:
public com.google.gerrit.reviewdb.Project getProject ( ) { return getProjectState ( ) . getProject ( ) ; }

Target:
public com.google.gerrit.reviewdb.Project getProject ( ) { return state.getProject ( ) ; }
Source:
private java.lang.String urlPublishEdit ( ) { return ( ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edits/" ) + 0 ) + "/publish/" ; }

Target:
private java.lang.String urlEdit ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit" ; }
Source:
public void matchingNames ( ) { matches ( "a.1234567890123.deleted" ) ; matches ( "aa.1234567890123.deleted" ) ; matches ( "a.b.c.1234567890123.deleted" ) ; }

Target:
public void matchingNames ( ) { matches ( "a.1234567890123.deleted" ) ; matches ( "aa.1234567890123.deleted" ) ; matches ( "a.b.c.1234567890123.deleted" ) ; matches ( "a.1234567890123.%deleted%.git" ) ; matches ( "aa.1234567890123.%deleted%.git" ) ; matches ( "a.b.c.1234567890123.%deleted%.git" ) ; }
Source:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( link ( getRowItem ( row ) ) ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.projects.ProjectMap result ) { if ( ( ( subname ) == null ) || ( "" . equals ( subname ) ) ) { display ( result ) ; } }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNew ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showAddKeyBlock ( false ) ; }
Source:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy legacyItsAssociationPolicy = gerritConfig.getEnum ( "commentLink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; return getPluginConfigEnum ( "association" , legacyItsAssociationPolicy ) ; }
Source:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS ACCOUNT_PATCH_REVIEWS (" + ( ( ( ( ( ( "ACCOUNT_ID INTEGER DEFAULT 0 NOT NULL, " + "CHANGE_ID INTEGER DEFAULT 0 NOT NULL, " ) + "PATCH_SET_ID INTEGER DEFAULT 0 NOT NULL, " ) + "FILE_NAME VARCHAR(255) DEFAULT '' NOT NULL, " ) + "CONSTRAINT PRIMARY_KEY_ACCOUNT_PATCH_REVIEWS " ) + "PRIMARY KEY (ACCOUNT_ID, CHANGE_ID, PATCH_SET_ID, FILE_NAME)" ) + ")" ) ) ) ; }

Target:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS account_patch_reviews (" + ( ( ( ( ( ( "account_id INTEGER DEFAULT 0 NOT NULL, " + "change_id INTEGER DEFAULT 0 NOT NULL, " ) + "patch_set_id INTEGER DEFAULT 0 NOT NULL, " ) + "file_name VARCHAR(255) DEFAULT '' NOT NULL, " ) + "CONSTRAINT primary_key_account_patch_reviews " ) + "PRIMARY KEY (account_id, change_id, patch_set_id, file_name)" ) + ")" ) ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }
Source:
public static void updated ( final com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( new java.sql.Timestamp ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }

Target:
public static void updated ( final com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }
Source:
public static com.google.gerrit.client.change.Hashtags.Input create ( java.lang.String hashtag ) { com.google.gerrit.client.change.Hashtags.Input input = createObject ( ) . cast ( ) ; input.init ( hashtag ) ; return input ; }

Target:
public static com.google.gerrit.client.change.Hashtags.PostInput create ( java.lang.String add , java.lang.String remove ) { com.google.gerrit.client.change.Hashtags.PostInput input = createObject ( ) . cast ( ) ; input.init ( com.google.gerrit.client.change.Hashtags.PostInput.toJsArrayString ( add ) , com.google.gerrit.client.change.Hashtags.PostInput.toJsArrayString ( remove ) ) ; return input ; }
Source:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( ( ( ( "Cannot replicate to " + ( uri ) ) + "." ) + " It was canceled while running" ) , e ) ; }

Target:
private void logCanceledWhileRunningException ( org.eclipse.jgit.errors.TransportException e ) { com.googlesource.gerrit.plugins.replication.ReplicationQueue.repLog.info ( ( ( "Cannot replicate to " + ( uri ) ) + ". It was canceled while running" ) , e ) ; }
Source:
public void doChangeRestoreHook ( com.google.gerrit.reviewdb.Change change , com.google.gerrit.reviewdb.Account account , java.lang.String reason , com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException ;

Target:
public void doChangeAbandonedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
public void setFieldReference ( final com.google.gwtorm.schema.ColumnModel cm ) { col = cm ; ( columnIdx ) ++ ; }

Target:
public void setFieldReference ( final com.google.gwtorm.schema.ColumnModel cm ) { col = cm ; dupOnSet = - 1 ; ( columnIdx ) ++ ; }
Source:
private com.google.gerrit.acceptance.RestResponse publishChange ( java.lang.String changeId ) throws java.lang.Exception { return adminSession.post ( ( ( "/changes/" + changeId ) + "/publish" ) ) ; }

Target:
private com.google.gerrit.acceptance.RestResponse publishChange ( java.lang.String changeId ) throws java.lang.Exception { return adminRestSession.post ( ( ( "/changes/" + changeId ) + "/publish" ) ) ; }
Source:
public void testCreateProjectHttpWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { adminSession.put ( ( "/projects/" + ( allProjects.get ( ) ) ) ) . assertConflict ( ) ; }

Target:
public void testCreateProjectHttpWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { adminRestSession.put ( ( "/projects/" + ( allProjects.get ( ) ) ) ) . assertConflict ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser getUser ( ) { return ctl.getUser ( ) . asIdentifiedUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return ctl.getUser ( ) ; }
Source:
public static void refreshMenuBar ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( true ) ; }

Target:
public static com.google.gerrit.client.info.AccountPreferencesInfo getUserPreferences ( ) { return com.google.gerrit.client.Gerrit.myPrefs ; }
Source:
void setName ( java.lang.String name ) { try { this . name = name ; id = java.net.URLEncoder.encode ( name , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { com.google.gerrit.server.project.ListProjects.log.warn ( "Cannot UTF-8 encode project id" , e ) ; } }

Target:
void setName ( java.lang.String n ) { name = n ; id = com.google.gerrit.server.util.Url.encode ( n ) ; }
Source:
public com.google.gerrit.extensions.webui.UiAction.Description setVisible ( boolean visible ) { this . visible = visible ; return this ; }

Target:
public com.google.gerrit.extensions.webui.UiAction.Description setVisible ( boolean visible ) { return setVisible ( com.google.gerrit.extensions.conditions.BooleanCondition.valueOf ( visible ) ) ; }
Source:
public void close ( ) throws java.io.IOException { out.write ( html.substring ( ( gt + 1 ) ) . getBytes ( com.google.common.base.Charsets.UTF_8 ) ) ; out.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { out.write ( html.substring ( ( gt + 1 ) ) . getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ; out.close ( ) ; }
Source:
public void preDisplay ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watchesTab.display ( result ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { display ( ) ; watchesTab.display ( watchedProjects ) ; }
Source:
void onExpandAfter ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAfter ( ) ; otherBar.expandAfter ( ) ; cm.focus ( ) ; }

Target:
void onExpandAfter ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAfter ( ) ; otherBar.expandAfter ( ) ; manager.getOverviewBar ( ) . refresh ( ) ; cm.focus ( ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.AccountProjectWatch.Key key ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.AccountProjectWatch.Key key ) ;
Source:
public int hashCode ( ) { return java.util.Objects.hash ( status , labels , errorMessage ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( status , labels , errorMessage , requirements ) ; }
Source:
public static synchronized void useSystemTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; }

Target:
public static synchronized void useSystemTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; org.eclipse.jgit.util.SystemReader.setInstance ( null ) ; }
Source:
protected abstract void onLoad ( org.eclipse.jgit.revwalk.RevWalk walk ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract void onLoad ( com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle handle ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public final native boolean isDisabled ( ) ;

Target:
public final native java.lang.String indexUrl ( ) ;
Source:
public static com.google.gerrit.server.index.FieldDef.Builder < java.lang.Integer > intRange ( java.lang.String name ) { return new com.google.gerrit.server.index.FieldDef.Builder ( FieldType.INTEGER_RANGE , name ) . stored ( ) ; }

Target:
public static com.google.gerrit.index.FieldDef.Builder < java.lang.Integer > intRange ( java.lang.String name ) { return new com.google.gerrit.index.FieldDef.Builder ( FieldType.INTEGER_RANGE , name ) . stored ( ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setTitleText ( Util.C.allOpenChanges ( ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setWindowTitle ( Gerrit.C.menuAllOpen ( ) ) ; setPageTitle ( Util.C.allOpenChanges ( ) ) ; }
Source:
public void execute ( ) { final java.lang.String base = com.google.gwt.core.client.GWT.getHostPageBaseURL ( ) ; Window.Location.assign ( ( base + "__BecomeAnyAccount" ) ) ; }

Target:
public void execute ( ) { Window.Location.assign ( ( ( com.google.gwt.core.client.GWT.getHostPageBaseURL ( ) ) + "become" ) ) ; }
Source:
public void clear ( ) { waitForEmails ( ) ; synchronized ( messages ) { messages.clear ( ) ; } }

Target:
public void clear ( ) { waitForEmails ( ) ; synchronized ( messages ) { messages.clear ( ) ; messagesRead = 0 ; } }
Source:
private void display ( final com.google.gerrit.client.reviewdb.AccountGeneralPreferences p ) { showSiteHeader.setValue ( p.isShowSiteHeader ( ) ) ; displayDefaultContext ( p.getDefaultContext ( ) ) ; }

Target:
private void display ( final com.google.gerrit.client.reviewdb.AccountGeneralPreferences p ) { showSiteHeader.setValue ( p.isShowSiteHeader ( ) ) ; useFlashClipboard.setValue ( p.isUseFlashClipboard ( ) ) ; displayDefaultContext ( p.getDefaultContext ( ) ) ; }
Source:
private void addComment ( com.google.gerrit.server.data.ChangeAttribute change , java.lang.String comment ) throws java.io.IOException { java.lang.String gitComment = change.subject ; java.lang.String [ ] issues = getIssueIds ( gitComment ) ; for ( java.lang.String issue : issues ) { its.addComment ( issue , comment ) ; } }

Target:
private void addComment ( com.google.gerrit.server.data.ChangeAttribute change , java.lang.String comment ) throws java.io.IOException { java.lang.String gitComment = change.subject ; java.lang.String [ ] issues = issueExtractor.getIssueIds ( gitComment ) ; for ( java.lang.String issue : issues ) { its.addComment ( issue , comment ) ; } }
Source:
private java.lang.String path ( java.io.File file ) { try { return file.getCanonicalPath ( ) ; } catch ( java.io.IOException err ) { return file.getAbsolutePath ( ) ; } }

Target:
private static int nullToZero ( java.lang.Integer i ) { return i != null ? i : 0 ; }
Source:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.server.change.ChangeJson.ChangeInfo c = getChange ( changeId ) ; org.junit.Assert.assertNull ( c.current_revision ) ; org.junit.Assert.assertNull ( c.revisions ) ; }

Target:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.server.change.ChangeJson.ChangeInfo c = getChange ( changeId ) ; org.junit.Assert.assertNull ( c.currentRevision ) ; org.junit.Assert.assertNull ( c.revisions ) ; }
Source:
public void testlinkifyMessageUrlAndChangeId ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) ; }

Target:
public void linkifyMessageUrlAndChangeId ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) ; }
Source:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static void markPrivate ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "private" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > queryChanges ( java.lang.String projectName ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.io.IOException ;

Target:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > queryChanges ( java.lang.String projectName , int start , int limit ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.io.IOException ;
Source:
public com.google.gerrit.reviewdb.AccountGroup get ( final com.google.gerrit.reviewdb.AccountGroup.NameKey name ) { return byName.get ( name ) ; }

Target:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) { byName.remove ( oldName ) ; }
Source:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; com.google.gerrit.server.Lifecycle.start ( dbInjector , sysInjector , sshInjector , webInjector ) ; }

Target:
protected void configure ( ) { bind ( com.google.inject.Key.get ( javax.sql.DataSource.class , com.google.inject.name.Names.named ( "ReviewDb" ) ) ) . toProvider ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; listener ( ) . to ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { if ( ( event.getNativeKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) ) { suggestBox.setText ( "" ) ; com.google.gwt.event.logical.shared.CloseEvent.fire ( this , this ) ; } }

Target:
public com.google.gerrit.common.data.GroupReference getValue ( ) { return toValue ( suggestBox.getText ( ) ) ; }
Source:
public final void update ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doUpdate ( instances , null ) ; }

Target:
public final void delete ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doDelete ( instances ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; enable ( true ) ; display ( prefs ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.GeneralPreferences prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; enable ( true ) ; display ( prefs ) ; }
Source:
private java.lang.String urlDelete ( com.google.gerrit.reviewdb.client.Change c ) { return ( ( ( ( "/changes/" + ( c.getChangeId ( ) ) ) + "/edits/" ) + 0 ) + "/files/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }

Target:
private java.lang.String urlEditFile ( ) { return ( ( urlEdit ( ) ) + "/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }
Source:
private static void initLogSystem ( final java.io.File logdir ) { final org.apache.log4j.Logger root = org.apache.log4j.LogManager.getRootLogger ( ) ; root.removeAllAppenders ( ) ; root.addAppender ( com.google.gerrit.server.util.SystemLog.createAppender ( logdir , com.google.gerrit.pgm.util.ErrorLogFile.LOG_NAME , new org.apache.log4j.PatternLayout ( "[%d] %-5p %c %x: %m%n" ) ) ) ; }

Target:
private static void initLogSystem ( java.nio.file.Path logdir ) { final org.apache.log4j.Logger root = org.apache.log4j.LogManager.getRootLogger ( ) ; root.removeAllAppenders ( ) ; root.addAppender ( com.google.gerrit.server.util.SystemLog.createAppender ( logdir , com.google.gerrit.pgm.util.ErrorLogFile.LOG_NAME , new org.apache.log4j.PatternLayout ( "[%d] %-5p %c %x: %m%n" ) ) ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { patchSetInserter.updateChange ( ctx ) ; rebasedPatchSet = patchSetInserter.getPatchSet ( ) ; }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { boolean ret = patchSetInserter.updateChange ( ctx ) ; rebasedPatchSet = patchSetInserter.getPatchSet ( ) ; return ret ; }
Source:
private java.lang.String comparePattern ( ) { if ( getRefPattern ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getRefPattern ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getRefPattern ( ) ; }

Target:
public java.lang.String toString ( ) { return ( "AccessSection[" + ( getName ( ) ) ) + "]" ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info , initCurrentRevision ( info ) ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { loadConfigInfo ( info , base ) ; }
Source:
public boolean execute ( ) { if ( ( prefs.syntaxHighlighting ( ) ) && ( isAttached ( ) ) ) { setSyntaxHighlighting ( prefs.syntaxHighlighting ( ) ) ; } return false ; }

Target:
public void run ( ) { renderSkips ( context ) ; }
Source:
public java.lang.String getString ( java.lang.String fieldName ) { return getOptionalString ( fieldName ) . orElse ( "" ) ; }

Target:
public java.lang.String getString ( java.lang.String fieldName ) { return getOptionalString ( fieldName ) . or ( "" ) ; }
Source:
public void testValidateBadRefPatternDanglingCharacter ( ) throws java.lang.Exception { com.google.gerrit.server.project.RefControl.validateRefPattern ( "^refs/heads/tmp/sdk/[0-9]{3,3}_R[1-9][A-Z][0-9]{3,3}*" ) ; }

Target:
public void testValidateBadRefPatternDanglingCharacter ( ) throws java.lang.Exception { com.google.gerrit.server.project.RefPattern.validate ( "^refs/heads/tmp/sdk/[0-9]{3,3}_R[1-9][A-Z][0-9]{3,3}*" ) ; }
Source:
void onExpandBefore ( com.google.gwt.event.dom.client.ClickEvent e ) { otherBar.expandBefore ( ) ; expandBefore ( ) ; cm.focus ( ) ; }

Target:
void onExpandBefore ( com.google.gwt.event.dom.client.ClickEvent e ) { expandBefore ( com.google.gerrit.client.diff.SkipBar.NUM_ROWS_TO_EXPAND ) ; cm.focus ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.GroupDetail groupDetail ) { saveName.setEnabled ( false ) ; setPageTitle ( Util.M.group ( groupDetail.group.getName ( ) ) ) ; display ( groupDetail ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.com.google.gerrit.client.VoidResult result ) { saveName.setEnabled ( false ) ; setPageTitle ( Util.M.group ( newName ) ) ; groupNameTxt.setText ( newName ) ; }
Source:
public void testDefaultValue ( ) { com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.doCheckBlockedKeywords ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.getEmptyPluginConfig ( ) ) ) . isFalse ( ) ; }

Target:
public void validatorInactiveWhenConfigEmpty ( ) { com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.isActive ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.EMPTY_PLUGIN_CONFIG ) ) . isFalse ( ) ; }
Source:
public void run ( ) { switch ( getIntraLineStatus ( ) ) { case OFF : case OK : toggleShowIntraline ( ) ; break ; default : break ; } }

Target:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; clearActiveLine ( cm ) ; clearActiveLine ( otherCm ( cm ) ) ; }
Source:
private void addGroup ( ) { com.google.gerrit.common.data.GroupReference ref = groupToAdd.getValue ( ) ; if ( ref != null ) { addGroup ( ref ) ; } else { groupToAdd.setFocus ( true ) ; } }

Target:
void onAddGroupByClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.common.data.GroupReference ref = groupToAdd.getValue ( ) ; if ( ref != null ) { addGroup ( ref ) ; } else { groupToAdd.setFocus ( true ) ; } }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onCollapseAll ( null ) ; }
Source:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final com.google.gerrit.sshd.CommandName name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , name ) ; }

Target:
public static com.google.inject.Key < org.apache.sshd.server.Command > key ( final com.google.gerrit.sshd.CommandName name ) { return com.google.inject.Key.get ( org.apache.sshd.server.Command.class , name ) ; }
Source:
private void setNew ( com.google.gerrit.reviewdb.Change c , com.google.gerrit.reviewdb.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { new com.google.gerrit.testutil.InMemoryModule ( ) . inject ( this ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { lifecycle = new com.google.gerrit.lifecycle.LifecycleManager ( ) ; com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle ) . injectMembers ( this ) ; lifecycle.start ( ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.account.AccountState > i : getWriteIndexes ( ) ) { i.replace ( byIdCache.get ( id ) ) ; } }

Target:
public void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.account.AccountState > i : getWriteIndexes ( ) ) { i.replace ( byIdCache.get ( id ) ) ; } fireAccountIndexedEvent ( id.get ( ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.PatchLineComment result ) { enableButtons ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.client.PatchLineComment result ) { enableButtons ( true ) ; notifyDraftDelta ( 1 ) ; findOrCreateEditor ( result , true ) . setOpen ( false ) ; }
Source:
public com.google.gerrit.client.account.AgreementInfo run ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.client.account.AgreementInfo i = new com.google.gerrit.client.account.AgreementInfo ( ) ; i.load ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) , db ) ; return i ; }

Target:
public com.google.gerrit.client.account.AgreementInfo run ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.client.account.AgreementInfo i = new com.google.gerrit.client.account.AgreementInfo ( ) ; i.load ( com.google.gerrit.client.rpc.Common.getAccountId ( ) , db ) ; return i ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; initCurrentRevision ( info ) ; loadConfigInfo ( info , base ) ; }
Source:
public void onDraftPublished ( com.google.gerrit.extensions.events.DraftPublishedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) . email ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return identifiedUserFactory.create ( change.getOwner ( ) ) ; }