auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isVisible ( ) { return canPerform ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ; }

Target:
public com.google.gerrit.server.project.RefControl controlForRef ( com.google.gerrit.reviewdb.Branch.NameKey ref ) { return controlForRef ( ref.get ( ) ) ; }
Source:
private void postEvent ( com.googlesource.gerrit.plugins.replication.PushOne pushOp ) { postEvent ( pushOp , null ) ; }

Target:
private void postReplicationScheduledEvent ( com.googlesource.gerrit.plugins.replication.PushOne pushOp ) { postReplicationScheduledEvent ( pushOp , null ) ; }
Source:
static com.googlesource.gerrit.plugins.verifystatus.commands.VerifyStatusQueryShell.Identity create ( final java.sql.ResultSet rs , final java.lang.String name ) throws java.sql.SQLException { return new com.googlesource.gerrit.plugins.verifystatus.commands.VerifyStatusQueryShell.Identity ( rs.findColumn ( name ) , name ) ; }

Target:
static com.googlesource.gerrit.plugins.verifystatus.VerifyStatusQueryShell.Identity create ( final java.sql.ResultSet rs , final java.lang.String name ) throws java.sql.SQLException { return new com.googlesource.gerrit.plugins.verifystatus.VerifyStatusQueryShell.Identity ( rs.findColumn ( name ) , name ) ; }
Source:
void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException ;

Target:
void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) throws java.io.IOException ;
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , dbProvider , id ) ; }
Source:
protected void onUnload ( ) { if ( ( com.google.gerrit.client.SignInDialog.current ) == ( this ) ) { com.google.gerrit.client.SignInDialog.unexportPostSignIn ( ) ; com.google.gerrit.client.SignInDialog.current = null ; } super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { if ( ( com.google.gerrit.client.SignInDialog.current ) == ( this ) ) { signInCallback.cancel ( ) ; com.google.gerrit.client.SignInDialog.current = null ; } super . onUnload ( ) ; }
Source:
private java.io.File getPluginDataDir ( java.lang.String name ) { return new java.io.File ( dataDir , name ) ; }

Target:
private java.nio.file.Path getPluginDataDir ( java.lang.String name ) { return dataDir.resolve ( name ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.Project > result ) { if ( isAttached ( ) ) { projects.display ( result ) ; projects.finishDisplay ( true ) ; } }

Target:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.Project > result ) { projects.display ( result ) ; projects.finishDisplay ( true ) ; }
Source:
void setTrees ( final org.eclipse.jgit.lib.ObjectId a , final org.eclipse.jgit.lib.ObjectId b ) { aId = a ; bId = b ; }

Target:
void setTrees ( final boolean ap , final org.eclipse.jgit.lib.ObjectId a , final org.eclipse.jgit.lib.ObjectId b ) { againstParent = ap ; aId = a ; bId = b ; }
Source:
public void onChange ( com.google.gwt.user.client.ui.Widget sender ) { save.setEnabled ( true ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { save.setEnabled ( true ) ; registerNewEmail.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( isAttached ( ) ) { display ( r ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( isAttached ( ) ) { setStarred ( r.isStarred ( ) ) ; display ( r ) ; } }
Source:
AccountGroup.UUID parse ( java.lang.String id ) { return AccountGroup.UUID.parse ( id ) ; }

Target:
AccountGroup.UUID parse ( java.lang.String id ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( id ) ; }
Source:
protected java.io.File newSitePath ( ) throws java.io.IOException { return new java.io.File ( createWorkRepository ( ) . getWorkDir ( ) , "test_site" ) ; }

Target:
protected java.io.File newSitePath ( ) throws java.io.IOException { return new java.io.File ( createWorkRepository ( ) . getWorkTree ( ) , "test_site" ) ; }
Source:
public void testWithSectionOfNonexistingProject ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( "\n" + ( ( ( "[submodule \"a\"]\n" + "path = a\n" ) + "url = ssh://non-localhost/a\n" ) + "branch = .\\n" ) ) ) ; java.lang.String thisServer = com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( projectCache , cfg , thisServer , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }

Target:
public void testWithSectionOfNonexistingProject ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( "\n" + ( ( ( "[submodule \"a\"]\n" + "path = a\n" ) + "url = ssh://non-localhost/a\n" ) + "branch = .\\n" ) ) ) ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( cfg , com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }
Source:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteRevision ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id , draftButtons ) ) ; }

Target:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteRevision ( id.get ( ) , revision , com.google.gerrit.client.change.ChangeActions.cs ( id , draftButtons ) ) ; }
Source:
public void submit ( java.lang.Iterable < com.google.gerrit.common.data.SubmitRecord > submitRecords ) { status = com.google.gerrit.reviewdb.client.PatchLineComment.Status.SUBMITTED ; this . submitRecords = com.google.common.collect.ImmutableList.copyOf ( submitRecords ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( this . submitRecords.isEmpty ( ) ) ) , "no submit records specified at submit time" ) ; }

Target:
public void submit ( java.lang.Iterable < com.google.gerrit.common.data.SubmitRecord > submitRecords ) { this . status = com.google.gerrit.reviewdb.client.PatchLineComment.Status.MERGED ; this . submitRecords = com.google.common.collect.ImmutableList.copyOf ( submitRecords ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( this . submitRecords.isEmpty ( ) ) ) , "no submit records specified at submit time" ) ; }
Source:
private void assertCreateFails ( java.lang.Class < ? extends com.google.gerrit.extensions.restapi.RestApiException > errType ) throws java.lang.Exception { assertCreateFails ( errType , null ) ; }

Target:
private void assertCreateFails ( com.google.gerrit.reviewdb.client.Branch.NameKey branch , java.lang.Class < ? extends com.google.gerrit.extensions.restapi.RestApiException > errType , java.lang.String errMsg ) throws java.lang.Exception { assertCreateFails ( branch , null , errType , errMsg ) ; }
Source:
public void assertStatus ( int status ) throws java.lang.Exception { com.google.common.truth.Truth.assert_ ( ) . withFailureMessage ( java.lang.String.format ( "Expected status code %d" , status ) ) . that ( getStatusCode ( ) ) . isEqualTo ( status ) ; }

Target:
public void assertStatus ( int status ) throws java.lang.Exception { com.google.common.truth.Truth.assert_ ( ) . withMessage ( java.lang.String.format ( "Expected status code %d" , status ) ) . that ( getStatusCode ( ) ) . isEqualTo ( status ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { com.google.gerrit.reviewdb.client.Change c = change ( ) ; notes = notesFactory.create ( db , c.getProject ( ) , c.getId ( ) ) ; } return notes ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , project , legacyId ) ; } return notes ; }
Source:
abstract com.google.gerrit.server.mail.receive.MailMessage.Builder from ( java.lang.String val ) ;

Target:
public abstract com.google.gerrit.server.mail.receive.MailMessage.Builder from ( com.google.gerrit.server.mail.Address val ) ;
Source:
int getHeaderHeight ( ) { int h = patchSetSelectBoxA.getOffsetHeight ( ) ; if ( header ) { h += diffHeaderRow.getOffsetHeight ( ) ; } return h ; }

Target:
boolean hasHeader ( ) { return header ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onCellDoubleClick ( 0 , com.google.gerrit.client.patches.SideBySideTable.B ) ; }

Target:
protected void destroyCommentRow ( final int row ) { super . destroyCommentRow ( row ) ; if ( row == ( ( R_HEAD ) + 1 ) ) { table.removeRow ( row ) ; isFileCommentBorderRowExist = false ; } }
Source:
public abstract java.lang.Iterable < com.google.gerrit.reviewdb.Project.NameKey > byName ( java.lang.String prefix ) ;

Target:
public abstract java.util.SortedSet < com.google.gerrit.reviewdb.Project.NameKey > list ( ) ;
Source:
public void onSuccess ( com.google.gerrit.client.account.Preferences prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listTags ( this ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listTags.request ( this ) . apply ( checkExists ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot list tags" , e ) ; } }
Source:
java.lang.String getRefName ( ) { return refName ; }

Target:
com.google.gerrit.server.project.RefControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl newCtl = projectControl.forUser ( who ) ; if ( relevant.isUserSpecific ( ) ) { return newCtl.controlForRef ( refName ) ; } return new com.google.gerrit.server.project.RefControl ( newCtl , refName , relevant ) ; }
Source:
public com.google.gerrit.server.group.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return new com.google.gerrit.server.group.GroupInfo ( rsrc.getGroup ( ) ) ; }

Target:
public com.google.gerrit.server.group.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return new com.google.gerrit.server.group.GroupInfo ( rsrc.getMemberDescription ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . to ( com.google.gerrit.server.index.ChangeIndexerImpl.class ) ; bind ( com.google.gerrit.server.query.change.IndexRewrite.class ) . to ( com.google.gerrit.server.query.change.IndexRewriteImpl.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . to ( com.google.gerrit.server.index.ChangeIndexerImpl.class ) ; bind ( com.google.gerrit.server.query.change.ChangeQueryRewriter.class ) . to ( com.google.gerrit.server.index.IndexRewriteImpl.class ) ; bind ( IndexRewriteImpl.BasicRewritesImpl.class ) ; }
Source:
public void execute ( ) { commentManager.newDraftCallback ( cm ) . run ( ) ; }

Target:
void setLineNumber ( com.google.gerrit.client.diff.DisplaySide side , int cmLine , int line ) { setLineNumber ( side , cmLine , java.lang.String.valueOf ( line ) , UnifiedTable.style.unifiedLineNumber ( ) ) ; }
Source:
private void subWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }

Target:
private void subWindowResolution ( ) { com.google.gerrit.testing.TestTimeUtil.setClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }
Source:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > commit ( java.lang.String id ) { return new com.google.gerrit.server.query.change.ExactCommitPredicate ( id ) ; }

Target:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > commit ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , java.lang.String id ) { return new com.google.gerrit.server.query.change.CommitPredicate ( schema , id ) ; }
Source:
public void previous ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.PREVIOUS ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) . getVersion ( ) ) ; }

Target:
public void previous ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testing.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.testing.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.PREVIOUS ) ) . containsExactly ( com.google.gerrit.testing.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) . getVersion ( ) ) ; }
Source:
public void nonProjectEventNotPosted ( ) { config.setString ( com.googlesource.gerrit.plugins.webhooks.EventHandlerTest.REMOTE , com.googlesource.gerrit.plugins.webhooks.EventHandlerTest.FOO , com.googlesource.gerrit.plugins.webhooks.EventHandlerTest.URL , com.googlesource.gerrit.plugins.webhooks.EventHandlerTest.FOO_URL ) ; com.google.gerrit.server.events.Event nonProjectEvent = new com.google.gerrit.server.events.Event ( "non-project-event" ) { } ; eventHandler.onEvent ( nonProjectEvent ) ; org.mockito.Mockito.verifyZeroInteractions ( postTask ) ; }

Target:
public void nonProjectEventNotProcessed ( ) { com.google.gerrit.server.events.Event nonProjectEvent = new com.google.gerrit.server.events.Event ( "non-project-event" ) { } ; eventHandler.onEvent ( nonProjectEvent ) ; org.mockito.Mockito.verifyZeroInteractions ( remoteFactory ) ; org.mockito.Mockito.verifyZeroInteractions ( taskFactory ) ; org.mockito.Mockito.verifyZeroInteractions ( postTask ) ; }
Source:
public void testChangeOwner_OwnerACLGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { grantApproveToChangeOwner ( ) ; approve ( sessionOwner , createChange ( ) , HttpStatus.SC_OK ) ; }

Target:
public void testChangeOwner_OwnerACLGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { grantApproveToChangeOwner ( ) ; approve ( sessionOwner , createMyChange ( ) , HttpStatus.SC_OK ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.account.Preferences prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; enable ( true ) ; display ( prefs ) ; }
Source:
public void execute ( ) { com.google.gwt.user.client.Window.scrollTo ( 0 , 0 ) ; message.setFocus ( true ) ; }

Target:
public boolean execute ( ) { java.lang.String t = message.getText ( ) ; if ( t != null ) { message.setCursorPos ( t.length ( ) ) ; } return false ; }
Source:
public final native int groupId ( ) ;

Target:
private final native int group_id ( ) ;
Source:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.conflictingChanges ( Resources.C.notAvailable ( ) ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { setTabTitle ( tabInfo , tabInfo.getTitle ( Resources.C.notAvailable ( ) ) ) ; getTab ( tabInfo ) . setError ( err.getMessage ( ) ) ; onDone ( true ) ; }
Source:
public < T > T getResource ( java.lang.String resourcePath , java.lang.Class < ? extends T > resourceClass ) { return null ; }

Target:
public < T > com.google.common.base.Optional < T > getResource ( java.lang.String resourcePath , java.lang.Class < ? extends T > resourceClass ) { return com.google.common.base.Optional.absent ( ) ; }
Source:
public static com.google.web.bindery.event.shared.HandlerRegistration addHandler ( com.google.gerrit.reviewdb.client.Change.Id source , com.google.gerrit.client.changes.StarredChanges.ChangeStarHandler handler ) { return com.google.gerrit.client.changes.StarredChanges.eventBus.addHandlerToSource ( com.google.gerrit.client.changes.TYPE , source , handler ) ; }

Target:
public static com.google.web.bindery.event.shared.HandlerRegistration addHandler ( com.google.gerrit.reviewdb.client.Change.Id source , com.google.gerrit.client.changes.StarredChanges.ChangeStarHandler handler ) { return Gerrit.EVENT_BUS.addHandlerToSource ( com.google.gerrit.client.changes.TYPE , source , handler ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final boolean disableChangeReviewDb ( ) { return snapshot.get ( ) . disableChangeReviewDb ( ) ; }
Source:
public static void deleteByBranch ( java.lang.String project , java.lang.String branch ) { com.googlesource.gerrit.plugins.repositoryuse.Usage.table.deleteByBranch ( project , branch ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.log.info ( java.lang.String.format ( "Deleting all uses: %s, %s" , project , branch ) ) ; }

Target:
public static void deleteByBranch ( java.lang.String project , java.lang.String branch ) { com.googlesource.gerrit.plugins.repositoryuse.Usage.log.debug ( java.lang.String.format ( "Deleting all uses: %s, %s" , project , branch ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.table.deleteByBranch ( project , branch ) ; }
Source:
void onOneNodeReplicated ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) { }

Target:
void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) { }
Source:
public com.google.gerrit.server.OutputFormat getFormat ( ) { return format ; }

Target:
public com.google.gerrit.server.change.ChangeJson addOption ( com.google.gerrit.common.changes.ListChangesOption o ) { options.add ( o ) ; return this ; }
Source:
public void visit ( org.pegdown.ast.BlockQuoteNode node ) { wrapChildren ( "blockquote" , node ) ; }

Target:
public void visit ( org.commonmark.node.Paragraph node ) { if ( com.google.gitiles.doc.MarkdownToHtml.isInTightList ( node ) ) { visitChildren ( node ) ; } else { wrapChildren ( "p" , node ) ; } }
Source:
public com.google.gerrit.reviewdb.server.AccountGroupByIdAccess accountGroupById ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public com.google.gerrit.reviewdb.server.AccountGroupByIdAccess accountGroupById ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
void changeDefaultContext ( short newSetting , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void changePreferences ( com.google.gerrit.client.reviewdb.AccountGeneralPreferences pref , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > gerritCallback ) ;
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "Evict key '%s' from cache '%s' in target instance" , key , cacheName ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "[%s] Evict key '%s' from cache '%s' in target instance" , pluginName , key , cacheName ) ; }
Source:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.BranchAssert.assertBranches ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "HEAD" , null , false ) , com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( RefNames.REFS_CONFIG , null , false ) ) , list ( ) . get ( ) ) ; }

Target:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.RefAssert.assertRefs ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "HEAD" , null , false ) , com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( RefNames.REFS_CONFIG , null , false ) ) , list ( ) . get ( ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > missing ( java.lang.String username ) { return java.util.Collections.emptyList ( ) ; }

Target:
public com.google.gerrit.sshd.SshKeyCacheEntryIterable missing ( java.lang.String username ) { return SshKeyCacheEntryIterable.EMPTY ; }
Source:
public org.eclipse.jgit.lib.ObjectId getCommitId ( ) { return commit ; }

Target:
public void assertPushOptions ( java.util.List < java.lang.String > pushOptions ) { org.junit.Assert.assertEquals ( pushOptions , getPushOptions ( ) ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.cherryPickChange ( patchSet.getId ( ) , getMessageText ( ) , getDestinationBranch ( ) , createCallback ( ) ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( patchSet.getId ( ) . getParentKey ( ) ) , new com.google.gerrit.client.changes.ChangeScreen ( patchSet.getId ( ) . getParentKey ( ) ) ) ; }
Source:
private void initHttpd ( ) { webInjector = createWebInjector ( ) ; sysInjector.getInstance ( com.google.gerrit.httpd.HttpCanonicalWebUrlProvider.class ) . setHttpServletRequest ( webInjector.getProvider ( javax.servlet.http.HttpServletRequest.class ) ) ; httpdInjector = createHttpdInjector ( ) ; }

Target:
private void initHttpd ( ) { webInjector = createWebInjector ( ) ; sysInjector.getInstance ( com.google.gerrit.httpd.HttpCanonicalWebUrlProvider.class ) . setHttpServletRequest ( webInjector.getProvider ( javax.servlet.http.HttpServletRequest.class ) ) ; httpdInjector = createHttpdInjector ( ) ; manager.add ( webInjector , httpdInjector ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { final com.google.gerrit.reviewdb.PatchSet.Id id = patchKey.getParentKey ( ) ; com.google.gerrit.client.Gerrit.display ( ( "change,publish," + ( id.toString ( ) ) ) , new com.google.gerrit.client.changes.PublishCommentScreen ( id ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { final com.google.gerrit.reviewdb.PatchSet.Id id = patchKey.getParentKey ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toPublish ( id ) ) ; }
Source:
public void start ( ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; com.google.gerrit.sshd.commands.ListProjects.this . display ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; com.google.gerrit.sshd.commands.ListProjects.this . display ( ) ; } } ) ; }
Source:
void deleteDraftChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;

Target:
void revertChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String message , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
void load ( ) throws java.io.IOException { css = com.google.gerrit.httpd.HtmlDomUtil.readFile ( cssFile.path.getParentFile ( ) , cssFile.path.getName ( ) ) ; header = com.google.gerrit.httpd.template.SiteHeaderFooter.Template.readXml ( headerFile ) ; footer = com.google.gerrit.httpd.template.SiteHeaderFooter.Template.readXml ( footerFile ) ; }

Target:
void load ( ) throws java.io.IOException { css = com.google.gerrit.httpd.HtmlDomUtil.readFile ( cssFile.path.getParent ( ) , cssFile.path.getFileName ( ) . toString ( ) ) ; header = com.google.gerrit.httpd.template.SiteHeaderFooter.Template.readXml ( headerFile ) ; footer = com.google.gerrit.httpd.template.SiteHeaderFooter.Template.readXml ( footerFile ) ; }
Source:
public void deleteReviewerFromReviewableChangeByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; setEmailStrategy ( sc.owner , EmailStrategy.CC_ON_OWN_COMMENTS ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void deleteReviewerFromWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChangeWithExtraReviewer ( ) ; removeReviewer ( sc , extraReviewer ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setGroups ( java.lang.Iterable < java.lang.String > groups ) { patchSet.setGroups ( groups ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeInserter setGroups ( java.util.List < java.lang.String > groups ) { com.google.common.base.Preconditions.checkNotNull ( groups , "groups may not be empty" ) ; com.google.common.base.Preconditions.checkState ( ( ( patchSet ) == null ) , "setGroups(Iterable<String>) only valid before creating change" ) ; this . groups = groups ; return this ; }
Source:
void renameGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;

Target:
void createGroup ( java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.AccountGroup.Id > callback ) ;
Source:
public synchronized com.google.gerrit.reviewdb.client.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ; com.google.gerrit.reviewdb.client.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; }

Target:
public synchronized com.google.gerrit.server.account.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ; com.google.gerrit.server.account.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; }
Source:
public void write ( int b ) throws java.io.IOException { actualBody.write ( b ) ; }

Target:
public void write ( int c ) throws java.io.IOException { osWriter.write ( c ) ; osWriter.flush ( ) ; }
Source:
abstract boolean match ( com.google.gerrit.reviewdb.PatchSetApproval p , short value ) ;

Target:
abstract boolean match ( short psValue , short expValue ) ;
Source:
public void sendError ( int sc , java.lang.String msg ) { status = sc ; }

Target:
public synchronized void sendError ( int sc , java.lang.String msg ) { status = sc ; committed = true ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.PagedIterable < com.googlesrouce.gerrit.plugins.github.git.GHMilestone > listMilestones ( com.googlesrouce.gerrit.plugins.github.git.GHIssueState state ) { return ghRepository.listMilestones ( state ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.PagedIterable < com.googlesource.gerrit.plugins.github.git.GHMilestone > listMilestones ( com.googlesource.gerrit.plugins.github.git.GHIssueState state ) { return ghRepository.listMilestones ( state ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.ProjectRight > byApprovalCategory ( com.google.gerrit.client.reviewdb.ApprovalCategory.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.ProjectRight > byCategoryGroup ( com.google.gerrit.client.reviewdb.ApprovalCategory.Id cat , com.google.gerrit.client.reviewdb.AccountGroup.Id group ) throws com.google.gwtorm.client.OrmException ;
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; }

Target:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toInstance ( user ) ; }
Source:
void setNoSignedOffBy ( boolean on ) { signedOffBy = com.google.gerrit.reviewdb.client.Project.InheritedBoolean.FALSE ; }

Target:
void setNoSignedOffBy ( boolean on ) { signedOffBy = com.google.gerrit.reviewdb.client.Project.InheritableBoolean.FALSE ; }
Source:
public java.lang.String getKeyIdString ( ) { return com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( getPublicKey ( ) . getKeyID ( ) ) ; }

Target:
public java.lang.String getKeyIdString ( ) { return com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( getPublicKey ( ) . getKeyID ( ) ) ; }
Source:
public int intValue ( ) { return ( ( int ) ( val ) ) ; }

Target:
public double doubleValue ( ) { return val ; }
Source:
public final native void base_change ( java.lang.String b ) ;

Target:
public final native void baseChange ( java.lang.String b ) ;
Source:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user ) { return user.newRefLogIdent ( com.google.gerrit.server.util.TimeUtil.nowTs ( ) , tz ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user ) { return user.newRefLogIdent ( com.google.gerrit.common.TimeUtil.nowTs ( ) , tz ) ; }
Source:
public void setText ( final java.lang.String t ) { }

Target:
public void onFailure ( java.lang.Throwable caught ) { new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; enableForm ( true ) ; }
Source:
public static org.eclipse.jgit.transport.PushResult pushHead ( org.eclipse.jgit.junit.TestRepository < ? > testRepo , java.lang.String ref , boolean pushTags , boolean force ) throws org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.GitUtil.pushHead ( testRepo , ref , pushTags , force , null ) ; }

Target:
public static org.eclipse.jgit.transport.PushResult pushHead ( org.eclipse.jgit.junit.TestRepository < ? > testRepo , java.lang.String ref , boolean pushTags , boolean force ) throws org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.GitUtil.pushOne ( testRepo , "HEAD" , ref , pushTags , force , null ) ; }
Source:
abstract int getCodeMirrorHeight ( ) ;

Target:
abstract java.lang.String getLineNumberClassName ( ) ;
Source:
public java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSets ) == null ) { patchSets = db.patchSets ( ) . byChange ( legacyId ) . toList ( ) ; } return patchSets ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSet > patchSets ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSets ) == null ) { patchSets = psUtil.byChange ( db , notes ( ) ) ; } return patchSets ; }
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:
public com.googlesource.gerrit.plugins.xdocs.ConfigSection getFormatterConfig ( java.lang.String formatterName ) { return new com.googlesource.gerrit.plugins.xdocs.ConfigSection ( cfg , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , formatterName ) ; }
Source:
public void testMIXED_NoFullNameUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( null , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; org.junit.Assert.assertNotNull ( r ) ; org.junit.Assert.assertEquals ( "Anonymous Coward (Code Review)" , r.name ) ; org.junit.Assert.assertEquals ( ident.getEmailAddress ( ) , r.email ) ; org.easymock.EasyMock.verify ( accountCache ) ; }

Target:
public void testMIXED_FullyConfiguredUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String name = "A U. Thor" ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( name , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; com.google.common.truth.Truth.assertThat ( r ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( r.name ) . isEqualTo ( ( name + " (Code Review)" ) ) ; com.google.common.truth.Truth.assertThat ( r.email ) . isEqualTo ( ident.getEmailAddress ( ) ) ; org.easymock.EasyMock.verify ( accountCache ) ; }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( isSignedIn ( ) ) { return identified.create ( AccessPath.WEB , val.accountId ) ; } return anonymous ; }

Target:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( isSignedIn ( ) ) { return identified.create ( AccessPath.WEB , val.getAccountId ( ) ) ; } return anonymous ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet lookupCurrentPatchSet ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gwtorm.server.OrmException { return patchSetUtil.current ( reviewDb.get ( ) , changeControl.getNotes ( ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSet lookupCurrentPatchSet ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws com.google.gwtorm.server.OrmException { return patchSetUtil.current ( reviewDb.get ( ) , notes ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( admin ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.git.ssh.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.git.ssh.GitUtil.createProject ( sshSession , project.get ( ) ) ; git = com.google.gerrit.acceptance.git.ssh.GitUtil.cloneProject ( ( ( ( sshSession.getUrl ( ) ) + "/" ) + ( project.get ( ) ) ) ) ; db = reviewDbProvider.open ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( admin ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project.get ( ) ) ; java.lang.String url ; switch ( protocol ) { case SSH : url = sshSession.getUrl ( ) ; break ; case HTTP : url = admin.getHttpUrl ( ) ; break ; default : throw new java.lang.IllegalStateException ( ( "unexpected protocol: " + ( protocol ) ) ) ; } git = com.google.gerrit.acceptance.git.GitUtil.cloneProject ( ( ( url + "/" ) + ( project.get ( ) ) ) ) ; sshSession.close ( ) ; db = reviewDbProvider.open ( ) ; }
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > isActive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "1" ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > username ( java.lang.String username ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.USERNAME , AccountQueryBuilder.FIELD_USERNAME , username ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setWindowTitle ( Gerrit.C.menyMyDrafts ( ) ) ; setPageTitle ( Util.C.draftsHeading ( ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setWindowTitle ( Gerrit.C.menuMyDrafts ( ) ) ; setPageTitle ( Util.C.draftsHeading ( ) ) ; }
Source:
public boolean containsComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { if ( containsCommentPublished ( c ) ) { return true ; } loadDraftComments ( c.getAuthor ( ) ) ; return draftCommentNotes.containsComment ( c ) ; }

Target:
public boolean containsCommentPublished ( com.google.gerrit.reviewdb.client.Comment c ) { for ( com.google.gerrit.reviewdb.client.Comment l : getComments ( ) . values ( ) ) { if ( c.key.equals ( l.key ) ) { return true ; } } return false ; }
Source:
public com.google.gerrit.server.query.change.QueryOptions withLimit ( int newLimit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( config ( ) , start ( ) , newLimit ) ; }

Target:
public com.google.gerrit.server.query.change.QueryOptions withLimit ( int newLimit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( config ( ) , start ( ) , newLimit , fields ( ) ) ; }
Source:
public static void deleteAssignee ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.AccountInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "assignee" ) . delete ( 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:
protected void ccExistingReviewers ( ) { ccApprovals ( false ) ; }

Target:
protected void ccAllApprovals ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : getReviewers ( ) . values ( ) ) { add ( RecipientType.CC , id ) ; } } catch ( com.google.gwtorm.server.OrmException err ) { com.google.gerrit.server.mail.ChangeEmail.log.warn ( "Cannot CC users that reviewed updated change" , err ) ; } }
Source:
public void onLoad ( ) { super . onLoad ( ) ; Util.LIST_SVC.myStarredChanges ( new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.data.SingleListChangeInfo > ( ) { public void onSuccess ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; } } ) ; }

Target:
public void onLoad ( ) { super . onLoad ( ) ; Util.LIST_SVC.myStarredChanges ( loadCallback ( ) ) ; }
Source:
public java.util.Map < java.lang.Integer , com.googlesrouce.gerrit.plugins.github.git.GHMilestone > getMilestones ( ) throws java.io.IOException { return ghRepository.getMilestones ( ) ; }

Target:
public java.util.Map < java.lang.Integer , com.googlesource.gerrit.plugins.github.git.GHMilestone > getMilestones ( ) throws java.io.IOException { return ghRepository.getMilestones ( ) ; }
Source:
public void addOtherUsersGpgKey_Conflict ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; }

Target:
public void addOtherUsersGpgKey_Conflict ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKeys.validKeyWithSecondUserId ( ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; }
Source:
public static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( JsonUtil.ERROR_INVALID_XSRF ) ) ; }

Target:
public static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonUtil.ERROR_INVALID_XSRF ) ) ; }
Source:
private com.google.gerrit.extensions.api.projects.TagApi tag ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tag ( TAG ) ; }

Target:
private com.google.gerrit.extensions.api.projects.TagApi tag ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tag ( com.google.gerrit.acceptance.rest.project.DeleteTagIT.TAG ) ; }
Source:
void onAddMe ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String accountId = java.lang.String.valueOf ( com.google.gerrit.client.Gerrit.getUserAccountInfo ( ) . _account_id ( ) ) ; addReviewer ( accountId , false ) ; }

Target:
void onAddMe ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String accountId = java.lang.String.valueOf ( com.google.gerrit.client.Gerrit.getUserAccount ( ) . _accountId ( ) ) ; addReviewer ( accountId , false ) ; }
Source:
public void testInsertNothing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { setup ( ) ; createClassUnderTest ( ) . insert ( com.google.gwtorm.jdbc.TestJdbcAccess.NO_DATA ) ; }

Target:
public void testInsertNothing ( ) throws com.google.gwtorm.server.OrmException { setup ( ) ; createClassUnderTest ( ) . insert ( noData ) ; }
Source:
public final native void setWidth ( java.lang.String w ) ;

Target:
public final native boolean isClean ( int generation ) ;
Source:
void patchSetDetail ( com.google.gerrit.reviewdb.PatchSet.Id key , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) ;

Target:
void patchSetDetail ( com.google.gerrit.reviewdb.PatchSet.Id keyA , com.google.gerrit.reviewdb.PatchSet.Id keyB , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) ;
Source:
public java.lang.String getAlgorithm ( ) { return getPublicKeyPart ( 0 , "none" ) ; }

Target:
public java.lang.String algorithm ( ) { return publicKeyPart ( 0 , "none" ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHIssueBuilder createIssue ( java.lang.String title ) { return ghRepository.createIssue ( title ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHIssueBuilder createIssue ( java.lang.String title ) { return ghRepository.createIssue ( title ) ; }
Source:
com.google.gerrit.server.update.BatchUpdate create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.sql.Timestamp when ) ;

Target:
public com.google.gerrit.server.update.BatchUpdate create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.sql.Timestamp when ) { return reviewDbBatchUpdateFactory.create ( db , project , user , when ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s" , baseUrl , projectName ) , Target.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s" , baseUrl , projectName ) , target ) ; }
Source:
protected void onCellSingleClick ( int row , int column ) { super . onCellSingleClick ( row , column ) ; if ( ( column == 1 ) || ( column == 4 ) ) { onCellDoubleClick ( row , column ) ; } }

Target:
protected void onCellSingleClick ( com.google.gwt.user.client.Event event , int row , int column ) { super . onCellSingleClick ( event , row , column ) ; if ( ( column == 1 ) || ( column == 4 ) ) { onCellDoubleClick ( row , column ) ; } }