auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
boolean canAddPatchSet ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
boolean canAddPatchSet ( ) { return projectControl.controlForRef ( ( ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) + ( refName ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ; }
Source:
public void display ( final com.google.gerrit.client.groups.GroupMap groups ) { display ( groups , null ) ; }

Target:
public void display ( com.google.gerrit.client.groups.GroupMap groups , java.lang.String toHighlight ) { display ( groups.values ( ) . asList ( ) , toHighlight ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.AccountExternalId result ) { display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString newPassword ) { id.setPassword ( newPassword.asString ( ) ) ; display ( id ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { upLink.go ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setReviewedByCurrentUser ( true ) ; reviewedLink.go ( ) ; }
Source:
private final native java.lang.String getRaw ( ) ;

Target:
public final boolean isCustomExtension ( ) { return ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.CUSTOM_EXTENSION ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Project > result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ProjectList result ) { projectsTab.display ( result.getProjects ( ) ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }
Source:
private E getLast ( ) { return get ( ( ( size ( ) ) - 1 ) ) ; }

Target:
void add ( E e ) { list.add ( e ) ; }
Source:
public static com.google.gerrit.client.ui.PagingHyperlink createPrev ( ) { return new com.google.gerrit.client.ui.PagingHyperlink ( Util.C.pagedListPrev ( ) ) ; }

Target:
public static com.google.gerrit.client.ui.PagingHyperlink createPrev ( ) { return new com.google.gerrit.client.ui.PagingHyperlink ( AdminConstants.I.pagedListPrev ( ) ) ; }
Source:
public com.google.gerrit.server.cache.h2.H2CacheImpl.DiskStats diskStats ( ) { return store.diskStats ( ) ; }

Target:
public com.google.gerrit.server.cache.h2.DiskStats diskStats ( ) { return store.diskStats ( ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; display ( diff ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; display ( comments ) ; }
Source:
void visit ( com.google.gitiles.doc.DivNode node ) ;

Target:
public void setClassName ( java.lang.String clazz ) { this . clazz = clazz ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.PublishCommentScreen.ReviewInput result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.changes.SubmitInfo result ) { saveStateOnUnload = false ; goChange ( ) ; }
Source:
public void testEvictGroupsByIncludeOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS_BYINCLUDE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS_BYINCLUDE , createMock ( AccountGroup.UUID.class ) ) ) . isTrue ( ) ; }

Target:
public void testEvictGroupsOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.ID_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS , org.mockito.Mockito.mock ( AccountGroup.Id.class ) ) ) . isTrue ( ) ; }
Source:
void deleteGroupIncludes ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.util.Set < com.google.gerrit.reviewdb.client.AccountGroupInclude.Key > keys , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;

Target:
void deleteGroupMembers ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.util.Set < com.google.gerrit.reviewdb.client.AccountGroupMember.Key > keys , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;
Source:
public static void setHeaderVisible ( boolean visible ) { com.google.gerrit.client.Gerrit.topMenu.setVisible ( visible ) ; com.google.gerrit.client.Gerrit.siteHeader.setVisible ( ( visible && ( ( com.google.gerrit.client.Gerrit.myAccount ) != null ? com.google.gerrit.client.Gerrit.myAccount.getGeneralPreferences ( ) . isShowSiteHeader ( ) : true ) ) ) ; }

Target:
public static void setHeaderVisible ( boolean visible ) { com.google.gerrit.client.Gerrit.topMenu.setVisible ( visible ) ; com.google.gerrit.client.Gerrit.siteHeader.setVisible ( ( visible && ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) . showSiteHeader ( ) ) ) ) ; }
Source:
private boolean hasUpToDateCachedResource ( com.google.gerrit.httpd.plugins.Resource cachedResource , long lastUpdateTime ) { return ( cachedResource != null ) && ( cachedResource.isUnchanged ( lastUpdateTime ) ) ; }

Target:
private boolean hasUpToDateCachedResource ( com.google.gerrit.httpd.resources.Resource cachedResource , long lastUpdateTime ) { return ( cachedResource != null ) && ( cachedResource.isUnchanged ( lastUpdateTime ) ) ; }
Source:
public void setAction ( com.google.gerrit.common.data.PermissionRule.Action action ) { if ( action == null ) { throw new java.lang.NullPointerException ( "action" ) ; } setDeny ( ( action == ( com.google.gerrit.common.data.PermissionRule.Action.DENY ) ) ) ; }

Target:
public boolean getDeny ( ) { return ( action ) == ( com.google.gerrit.common.data.PermissionRule.Action.DENY ) ; }
Source:
public boolean equals ( final java.lang.Object obj ) { return ( obj instanceof com.google.gerrit.sshd.CommandName ) && ( value ( ) . equals ( ( ( com.google.gerrit.sshd.CommandName ) ( obj ) ) . value ( ) ) ) ; }

Target:
public static com.google.gerrit.sshd.CommandName named ( final java.lang.String value ) { return new com.google.gerrit.sshd.AutoAnnotation_Commands_named ( value ) ; }
Source:
public java.util.List < org.eclipse.jgit.dircache.DirCacheEditor.PathEdit > getPathEdits ( org.eclipse.jgit.lib.Repository repository ) { org.eclipse.jgit.dircache.DirCacheEditor.DeletePath deletePathEdit = new org.eclipse.jgit.dircache.DirCacheEditor.DeletePath ( filePath ) ; return java.util.Collections.singletonList ( deletePathEdit ) ; }

Target:
public java.util.List < org.eclipse.jgit.dircache.DirCacheEditor.PathEdit > getPathEdits ( org.eclipse.jgit.lib.Repository repository , org.eclipse.jgit.revwalk.RevCommit baseCommit ) { org.eclipse.jgit.dircache.DirCacheEditor.DeletePath deletePathEdit = new org.eclipse.jgit.dircache.DirCacheEditor.DeletePath ( filePath ) ; return java.util.Collections.singletonList ( deletePathEdit ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result restoreFile ( 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 { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.RESTORE_ENTRY , edit , file , null , null ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( edit , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( file , content ) ) ; }
Source:
private void doAdd ( ) { addMember.fireEvent ( new com.google.gwt.event.dom.client.ClickEvent ( ) { } ) ; }

Target:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < java.lang.String > event ) { addMember.fireEvent ( new com.google.gwt.event.dom.client.ClickEvent ( ) { } ) ; }
Source:
private void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; BRANCH ( 6 ) ; com.ericsson.gerrit.plugins.eventslog.sql.cf0c7 Update ; com.ericsson.gerrit.plugins.eventslog.sql.to latest = ( stable ) - 2.14 ; com.ericsson.gerrit.plugins.eventslog.sql.to use ; }

Target:
public void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE IF EXISTS " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; store.stop ( ) ; }
Source:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.revwalk.RevCommit commit ) ;

Target:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.revwalk.RevCommit commit ) ;
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForBranch ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String branch ) throws java.lang.Exception { return newChange ( repo , null , null , branch , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeForCommit ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { return newChange ( repo , commit , null , null , null ) ; }
Source:
protected void assertSubmittedTogether ( java.lang.String chId , java.lang.String ... expected ) throws java.lang.Exception { java.util.EnumSet < com.google.gerrit.extensions.client.SubmittedTogetherOption > o = java.util.EnumSet.noneOf ( com.google.gerrit.extensions.client.SubmittedTogetherOption.class ) ; assertSubmittedTogether ( chId , o , expected ) ; }

Target:
public void closeEventRecorder ( ) { eventRecorder.close ( ) ; }
Source:
public void linkifyAmpersand ( ) 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?a&b" , "url" , "http://my/url?a&b" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url?a&b" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://weird/htmlified/?url" , "url" , "http://weird/htmlified/?url" ) , com.google.common.collect.ImmutableMap.of ( "text" , "&lt;p&rt;" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://weird/htmlified/?url&lt;p&rt;" ) ) ; }

Target:
public void linkifyAmpersand ( ) throws java.lang.Exception { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS , config ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url?a&b" , "url" , "http://my/url?a&b" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url?a&b" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://weird/htmlified/?url" , "url" , "http://weird/htmlified/?url" ) , com.google.common.collect.ImmutableMap.of ( "text" , "&lt;p&rt;" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://weird/htmlified/?url&lt;p&rt;" ) ) ; }
Source:
private static com.google.gerrit.server.git.CodeReviewCommit error ( com.google.gerrit.server.git.CommitMergeStatus s ) { com.google.gerrit.server.git.CodeReviewCommit r = new com.google.gerrit.server.git.CodeReviewCommit ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) ; r.statusCode = s ; return r ; }

Target:
private static com.google.gerrit.server.git.CodeReviewCommit error ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.server.git.CommitMergeStatus s ) { com.google.gerrit.server.git.CodeReviewCommit r = new com.google.gerrit.server.git.CodeReviewCommit ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) ; r.setControl ( ctl ) ; r.statusCode = s ; return r ; }
Source:
public void currentPatchSetMissing ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , userId ) ; db.changes ( ) . insert ( java.util.Collections.singleton ( c ) ) ; com.google.common.truth.Truth.assertThat ( checker.check ( c ) ) . containsExactly ( "Current patch set 1 not found" ) ; }

Target:
public void currentPatchSetMissing ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , userId ) ; db.changes ( ) . insert ( java.util.Collections.singleton ( c ) ) ; assertProblems ( c , "Current patch set 1 not found" ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.projectNameKey ( ) , result.legacyId ( ) ) ) ; hide ( ) ; }
Source:
private static java.lang.String findId ( java.util.Collection < com.google.gerrit.server.account.ExternalId > extIds ) { for ( com.google.gerrit.server.account.ExternalId extId : extIds ) { if ( extId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { return extId.key ( ) . id ( ) ; } } return null ; }

Target:
private static java.lang.String findId ( java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extIds ) { for ( com.google.gerrit.server.account.externalids.ExternalId extId : extIds ) { if ( extId.isScheme ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT ) ) { return extId.key ( ) . id ( ) ; } } return null ; }
Source:
public com.google.gerrit.server.change.MergeabilityChecker.Check addBranch ( com.google.gerrit.reviewdb.client.Branch.NameKey branch ) { branches.add ( branch ) ; return this ; }

Target:
public com.google.gerrit.server.change.MergeabilityChecker.Check addBranch ( com.google.gerrit.reviewdb.client.Branch.NameKey branch ) { branches.add ( branch ) ; interactive = false ; return this ; }
Source:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return json.addOption ( com.google.gerrit.common.groups.ListGroupsOption.OWNER ) . format ( rsrc.getMemberDescription ( ) ) ; }

Target:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException { return json.format ( rsrc.getMemberDescription ( ) ) ; }
Source:
public void setUseContributorAgreements ( final com.google.gerrit.reviewdb.client.Project.InheritableBoolean u ) { useContributorAgreements = u ; }

Target:
public void setUseContributorAgreements ( final com.google.gerrit.extensions.common.InheritableBoolean u ) { useContributorAgreements = u ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . < T > fromJson ( buildJsonRaw ( path ) , typeOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . < T > fromJson ( buildJsonRaw ( path , "" ) , typeOfT ) ; }
Source:
com.google.gerrit.httpd.rpc.changedetail.PatchSetDetailFactory create ( @ com.google.inject.assistedinject.Assisted ( value = "psIdNew" ) com.google.gerrit.reviewdb.PatchSet.Id psIdA , @ com.google.inject.assistedinject.Assisted ( value = "psIdOld" ) com.google.gerrit.reviewdb.PatchSet.Id psIdB , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs ) ;

Target:
com.google.gerrit.httpd.rpc.changedetail.PatchSetDetailFactory create ( @ com.google.inject.assistedinject.Assisted ( value = "psIdBase" ) com.google.gerrit.reviewdb.PatchSet.Id psIdBase , @ com.google.inject.assistedinject.Assisted ( value = "psIdNew" ) com.google.gerrit.reviewdb.PatchSet.Id psIdNew , @ javax.annotation.Nullable com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs ) ;
Source:
public java.lang.Object getScreenCacheToken ( ) { return this ; }

Target:
public java.lang.Object getScreenCacheToken ( ) { return getClass ( ) ; }
Source:
protected void configure ( ) { factory ( ProjectControl.Factory.class ) ; bind ( ChangeControl.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ProjectControl.Factory.class ) ; factory ( DefaultRefFilter.Factory.class ) ; bind ( ChangeControl.Factory.class ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; }

Target:
public void onChangeEvent ( com.google.gerrit.server.events.ChangeEvent event ) { if ( event instanceof com.google.gerrit.server.events.ChangeMergedEvent ) { com.google.gerrit.server.events.ChangeMergedEvent cMEvent = ( ( com.google.gerrit.server.events.ChangeMergedEvent ) ( event ) ) ; mergeResults.put ( cMEvent.change.number , cMEvent.newRev ) ; } }
Source:
private static void addCommand ( com.google.gerrit.extensions.common.FetchInfo fetchInfo , java.lang.String commandName , java.lang.String c ) { if ( ( fetchInfo.commands ) == null ) { fetchInfo.commands = com.google.common.collect.Maps.newTreeMap ( ) ; } fetchInfo.commands.put ( commandName , c ) ; }

Target:
private static void addCommand ( com.google.gerrit.extensions.common.FetchInfo fetchInfo , java.lang.String commandName , java.lang.String c ) { if ( ( fetchInfo.commands ) == null ) { fetchInfo.commands = new java.util.TreeMap < > ( ) ; } fetchInfo.commands.put ( commandName , c ) ; }
Source:
public void testCreateProjectWithEmptyCommit ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.server.project.CreateProject.Input in = new com.google.gerrit.server.project.CreateProject.Input ( ) ; in.createEmptyCommit = true ; adminSession.put ( ( "/projects/" + newProjectName ) , in ) ; assertEmptyCommit ( newProjectName , "refs/heads/master" ) ; }

Target:
public void testCreateProjectWithEmptyCommit ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.createEmptyCommit = true ; adminSession.put ( ( "/projects/" + newProjectName ) , in ) ; assertEmptyCommit ( newProjectName , "refs/heads/master" ) ; }
Source:
private com.google.gerrit.reviewdb.SystemConfig getSystemConfig ( ) { return new com.google.gerrit.server.config.SystemConfigProvider ( db ) . get ( ) ; }

Target:
public void testCreateSchema_DefaultAccess_Administrators ( ) throws com.google.gwtorm.client.OrmException { db.create ( ) ; final com.google.gerrit.reviewdb.SystemConfig config = db.getSystemConfig ( ) ; assertDefaultRight ( config.adminGroupId , ApprovalCategory.READ , 1 , 1 ) ; }
Source:
public java.util.List < com.google.gerrit.client.reviewdb.AccountExternalId > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.client.reviewdb.Account.Id me = com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ; return db.accountExternalIds ( ) . byAccount ( me ) . toList ( ) ; }

Target:
public java.util.List < com.google.gerrit.client.reviewdb.AccountExternalId > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.client.reviewdb.Account.Id me = com.google.gerrit.client.rpc.Common.getAccountId ( ) ; return db.accountExternalIds ( ) . byAccount ( me ) . toList ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , null , id ) ; }
Source:
private void assertNotOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isOwner ( ) ) . named ( ( "NOT OWN " + ref ) ) . isFalse ( ) ; }

Target:
private void assertNotOwner ( java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isOwner ( ) ) . named ( ( "NOT OWN " + ref ) ) . isFalse ( ) ; }
Source:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return ( ( "q," + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + "," ) + ( com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toChangeQuery ( java.lang.String query , java.lang.String page ) { query = com.google.gwtorm.client.KeyUtil.encode ( query ) . replaceAll ( "%3[Aa]" , ":" ) ; return ( ( "/q/" + query ) + "," ) + page ; }
Source:
com.google.gerrit.server.change.RebaseChangeOp create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet originalPatchSet , org.eclipse.jgit.lib.ObjectId baseCommitId ) ;

Target:
com.google.gerrit.server.change.RebaseChangeOp create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet originalPatchSet , org.eclipse.jgit.lib.ObjectId baseCommitId ) ;
Source:
public java.lang.Object getScreenCacheToken ( ) { return new com.google.gerrit.client.changes.PublishCommentScreen.ScreenCacheToken ( patchSetId ) ; }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; if ( saveStateOnUnload ) { com.google.gerrit.client.changes.PublishCommentScreen.lastState = new com.google.gerrit.client.changes.PublishCommentScreen.SavedState ( this ) ; } }
Source:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , false ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { chunkManager.diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
void add ( com.google.gwt.user.client.ui.Widget widget ) { ( ( com.google.gwt.user.client.ui.HTMLPanel ) ( getWidget ( ) ) ) . add ( widget ) ; }

Target:
void add ( com.google.gwt.user.client.ui.Widget widget ) { widgets.add ( widget ) ; }
Source:
public final native void setSelection ( net.codemirror.lib.LineCharacter anchor , net.codemirror.lib.LineCharacter head ) ;

Target:
public final native void activeLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;
Source:
protected void configureServlets ( ) { }

Target:
protected void configureServlets ( ) { serveRegex ( ( ( "^" + ( XDocServlet.PATH_PREFIX ) ) + "(.+)?$" ) ) . with ( com.googlesource.gerrit.plugins.xdocs.XDocServlet.class ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { upToChange ( ) ; }

Target:
public void handle ( net.codemirror.lib.CodeMirror cm ) { setClean ( cm.isClean ( generation ) ) ; }
Source:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderServletModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebsessionModule ( ) ) ; }

Target:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderServletModule ( ) ) ; if ( config.websession ( ) . synchronize ( ) ) { install ( new com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebsessionModule ( ) ) ; } }
Source:
private static boolean isControlBlockStart ( com.google.gerrit.server.patch.Text a , int idx ) { final java.lang.String l = a.getLine ( idx ) ; return com.google.gerrit.server.patch.PatchListCacheImpl.CONTROL_BLOCK_START_RE.matcher ( l ) . find ( ) ; }

Target:
private static boolean isControlBlockStart ( com.google.gerrit.server.patch.Text a , int idx ) { final java.lang.String l = a.getString ( idx ) ; return com.google.gerrit.server.patch.PatchListCacheImpl.CONTROL_BLOCK_START_RE.matcher ( l ) . find ( ) ; }
Source:
protected java.util.Set < com.google.gerrit.reviewdb.AccountGroup.UUID > getProjectOwners ( ) { final com.google.gerrit.server.project.ProjectState r ; r = args.projectCache.get ( change.getProject ( ) ) ; return r != null ? r.getOwners ( ) : java.util.Collections.< com.google.gerrit.reviewdb.AccountGroup.UUID > emptySet ( ) ; }

Target:
protected java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getProjectOwners ( ) { final com.google.gerrit.server.project.ProjectState r ; r = args.projectCache.get ( change.getProject ( ) ) ; return r != null ? r.getOwners ( ) : java.util.Collections.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > emptySet ( ) ; }
Source:
public boolean isMatchable ( ) { return ( this ) instanceof com.google.gerrit.server.query.Matchable ; }

Target:
public boolean isMatchable ( ) { return ( this ) instanceof com.google.gerrit.index.query.Matchable ; }
Source:
public com.google.common.base.Optional < com.google.gerrit.server.plugins.PluginEntry > getEntry ( java.lang.String resourcePath ) throws java.io.IOException { return com.google.common.base.Optional.absent ( ) ; }

Target:
public java.util.Optional < com.google.gerrit.server.plugins.PluginEntry > getEntry ( java.lang.String resourcePath ) { return java.util.Optional.empty ( ) ; }
Source:
static java.lang.String computeCanonicalPath ( java.lang.String canonicalURL ) throws java.net.URISyntaxException { java.net.URI uri = new java.net.URI ( canonicalURL ) ; return uri.getPath ( ) . replaceAll ( "/$" , "" ) ; }

Target:
static java.lang.String computeCanonicalPath ( java.lang.String canonicalURL ) throws java.net.URISyntaxException { if ( com.google.common.base.Strings.isNullOrEmpty ( canonicalURL ) ) { return "" ; } java.net.URI uri = new java.net.URI ( canonicalURL ) ; return uri.getPath ( ) . replaceAll ( "/$" , "" ) ; }
Source:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; assertNoProblems ( com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ) ; }

Target:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; assertNoProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ) ; }
Source:
private void fireEvent ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.events.ProjectEvent event ) { for ( com.google.gerrit.common.ChangeHookRunner.EventListenerHolder holder : listeners.values ( ) ) { if ( isVisibleTo ( project , holder.user ) ) { holder.listener.onEvent ( event ) ; } } fireEventForUnrestrictedListeners ( event ) ; }

Target:
private void fireEvent ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.events.ProjectEvent event ) { for ( com.google.gerrit.common.UserScopedEventListener listener : listeners ) { if ( isVisibleTo ( project , listener.getUser ( ) ) ) { listener.onEvent ( event ) ; } } fireEventForUnrestrictedListeners ( event ) ; }
Source:
public void apply ( org.eclipse.jgit.dircache.DirCacheEntry ent ) { ent.setFileMode ( mode ) ; ent.setObjectId ( oid ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result restoreFile ( 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 ( ) ; return modify ( edit , new com.google.gerrit.server.edit.tree.RestoreFileModification ( editCommit , file ) ) ; }
Source:
abstract java.lang.Runnable toggleOpenBox ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
java.lang.Runnable toggleOpenBox ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } } } ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.AccountDashboardInfo r ) { display ( r ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.changes.ChangeList > result ) { display ( result ) ; }
Source:
public void stop ( ) { consoleReporter.stop ( ) ; }

Target:
public void stop ( ) { if ( enabled ) { consoleReporter.stop ( ) ; } }
Source:
private static boolean isRecognizedScheme ( com.google.gerrit.extensions.config.DownloadScheme scheme ) { return ( ( ( scheme instanceof com.googlesource.gerrit.plugins.download.scheme.SshScheme ) || ( scheme instanceof com.googlesource.gerrit.plugins.download.scheme.HttpScheme ) ) || ( scheme instanceof com.googlesource.gerrit.plugins.download.scheme.AnonymousHttpScheme ) ) || ( scheme instanceof com.googlesource.gerrit.plugins.download.scheme.GitScheme ) ; }

Target:
private static boolean isRecognizedScheme ( com.google.gerrit.extensions.config.DownloadScheme scheme ) { return ! ( scheme instanceof com.googlesource.gerrit.plugins.download.scheme.RepoScheme ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ServerInfo getServerConfig ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.get ( "/config/server/info/" ) ; r.assertOK ( ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.server.config.GetServerInfo.ServerInfo.class ) ; }

Target:
private com.google.gerrit.extensions.common.ServerInfo getServerConfig ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.get ( "/config/server/info/" ) ; r.assertOK ( ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.extensions.common.ServerInfo.class ) ; }
Source:
public void evict ( final com.google.gerrit.reviewdb.Account.Id accountId ) { byId.remove ( accountId ) ; }

Target:
public com.google.gerrit.server.account.AccountState get ( final com.google.gerrit.reviewdb.Account.Id accountId ) { return byId.get ( accountId ) ; }
Source:
private static java.lang.String my ( org.eclipse.jgit.lib.Config cfg , java.lang.String subsection , java.lang.String key , java.lang.String defaultValue ) { java.lang.String value = cfg.getString ( com.google.gerrit.server.account.GetPreferences.MY , subsection , key ) ; return value != null ? value : defaultValue ; }

Target:
private static java.lang.String my ( org.eclipse.jgit.lib.Config cfg , java.lang.String subsection , java.lang.String key , java.lang.String defaultValue ) { java.lang.String val = cfg.getString ( com.google.gerrit.server.account.GetPreferences.MY , subsection , key ) ; return ! ( com.google.common.base.Strings.isNullOrEmpty ( val ) ) ? val : defaultValue ; }
Source:
public void setStatus ( java.lang.String status ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.server.account.PutStatus.Input in = new com.google.gerrit.server.account.PutStatus.Input ( status ) ; try { putStatus.apply ( account , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set status" , e ) ; } }

Target:
public void setStatus ( java.lang.String status ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.accounts.StatusInput in = new com.google.gerrit.extensions.api.accounts.StatusInput ( status ) ; try { putStatus.apply ( account , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set status" , e ) ; } }
Source:
public boolean isExpandAllComments ( ) { return diffPrefs.isExpandAllComments ( ) ; }

Target:
public boolean isExpandAllComments ( ) { return diffPrefs.expandAllComments ; }
Source:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { return newId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getNewId ( ) { if ( ( newId ) == null ) { newId = org.eclipse.jgit.lib.ObjectId.fromString ( newIdName ) ; } return newId ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { addComments ( revisionNumber , result ) ; update ( revisionNumber ) ; }

Target:
void load ( int revisionNumber ) { if ( ( revisionNumber > 0 ) && ( loaded.add ( revisionNumber ) ) ) { toLoad.add ( revisionNumber ) ; start ( ) ; } }
Source:
void setOptionFlagsHex ( java.lang.String hex ) { json.addOptions ( com.google.gerrit.extensions.common.ListChangesOption.fromBits ( java.lang.Integer.parseInt ( hex , 16 ) ) ) ; }

Target:
void setOptionFlagsHex ( java.lang.String hex ) { json.addOptions ( com.google.gerrit.extensions.client.ListChangesOption.fromBits ( java.lang.Integer.parseInt ( hex , 16 ) ) ) ; }
Source:
public com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > r00_ageToSortKey ( @ com.google.inject.name.Named ( value = "A" ) com.google.gerrit.server.query.change.AgePredicate a ) { java.lang.String cut = com.google.gerrit.server.ChangeUtil.sortKey ( a.getCut ( ) , java.lang.Integer.MAX_VALUE ) ; return and ( new com.google.gerrit.server.query.change.SortKeyPredicate.Before ( dbProvider , cut ) , a ) ; }

Target:
public com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > r00_ageToSortKey ( @ com.google.inject.name.Named ( value = "A" ) com.google.gerrit.server.query.change.AgePredicate a ) { java.lang.String cut = com.google.gerrit.server.ChangeUtil.sortKey ( a.getCut ( ) , java.lang.Integer.MAX_VALUE ) ; return and ( new com.google.gerrit.server.query.change.SortKeyPredicate.Before ( com.google.gerrit.server.query.change.BasicChangeRewrites.schema ( indexes ) , dbProvider , cut ) , a ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.DELETE , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gerrit.client.rpc.HttpCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }
Source:
public java.lang.String Key ( ) { return ( ( name ) + "=" ) + ( remote ) ; }

Target:
public java.lang.String Key ( ) { return ( ( name ) + "=" ) + ( org.apache.commons.lang.StringUtils.strip ( remote , "/" ) ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.AccountInfo > run ( final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return suggestAccount ( db , query , active , limit ) ; }

Target:
public boolean isVisible ( com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException { return accountControlFactory.get ( ) . canSee ( account ) ; }
Source:
public void addColumn ( java.lang.String content ) { if ( ! ( firstColumn ) ) { out.print ( columnSeparator ) ; } out.print ( com.google.gerrit.server.StringUtil.escapeString ( content ) ) ; firstColumn = false ; }

Target:
public void addColumn ( java.lang.String content ) { if ( ! ( firstColumn ) ) { out.print ( columnSeparator ) ; } out.print ( com.google.gerrit.server.ioutil.StringUtil.escapeString ( content ) ) ; firstColumn = false ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { commentLinkProcessor = new com.google.gerrit.client.ui.CommentLinkProcessor ( result.commentlinks ( ) ) ; contentTable.setCommentLinkProcessor ( commentLinkProcessor ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; contentTable.setCommentLinkProcessor ( commentLinkProcessor ) ; }
Source:
public static java.lang.String linkify ( final java.lang.String in ) { return com.google.gerrit.client.ui.DomUtil.INSTANCE.linkify ( in ) ; }

Target:
public static java.lang.String linkify ( final java.lang.String in ) { return in.replaceAll ( "(https?://[^ \n\r\t]*)" , "<a href=\"$1\">$1</a>" ) ; }
Source:
public void addListener ( com.google.gerrit.client.rpc.CallbackGroup group ) { addListener ( group.add ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ) ; }

Target:
public < T > com.google.gerrit.client.rpc.CallbackGroup.Callback < T > addEmpty ( ) { com.google.gerrit.client.rpc.CallbackGroup.Callback < T > cb = com.google.gerrit.client.rpc.CallbackGroup.emptyCallback ( ) ; return add ( cb ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.AccountDashboardInfo r ) { display ( r ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.data.AccountDashboardInfo r ) { if ( isAttached ( ) ) { display ( r ) ; } }
Source:
public com.google.gerrit.server.account.AccountIdSet get ( final java.lang.String email ) { return cache.get ( email ) ; }

Target:
public com.google.gerrit.server.account.AccountIdSet get ( final java.lang.String email ) { return cache.get ( new com.google.gerrit.reviewdb.Account.Email ( email ) ) ; }
Source:
public com.google.gerrit.server.account.AccountState state ( ) { if ( ( state ) == null ) { state = accountCache.get ( getAccountId ( ) ) ; } return state ; }

Target:
public com.google.gerrit.server.account.AccountState state ( ) { if ( ( state ) == null ) { state = accountCache.getEvenIfMissing ( getAccountId ( ) ) ; } return state ; }
Source:
public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; impl.display ( out ) ; }

Target:
protected void parseCommandLine ( ) throws com.google.gerrit.sshd.commands.UnloggedFailure { parseCommandLine ( impl ) ; }
Source:
public void setStatisticsEnabled ( boolean enableStatistics ) { self.setStatisticsEnabled ( enableStatistics ) ; }

Target:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self ( ) . getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.httpd.RequestCleanupFilter.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GitWebConfig.class ) ; }
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:
void setUserAccountId ( com.google.gerrit.reviewdb.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null ) ; }

Target:
void setUserAccountId ( com.google.gerrit.reviewdb.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , "" ) ; }
Source:
private static boolean isJsPlugin ( java.lang.String name ) { return com.google.gerrit.server.plugins.PluginLoader.isPlugin ( name , "js" ) ; }

Target:
private static boolean isUiPlugin ( java.lang.String name ) { return ( com.google.gerrit.server.plugins.PluginLoader.isPlugin ( name , "js" ) ) || ( com.google.gerrit.server.plugins.PluginLoader.isPlugin ( name , "html" ) ) ; }
Source:
static com.google.gerrit.client.account.AccountApi.GpgKeysInput add ( java.lang.String key ) { return com.google.gerrit.client.account.AccountApi.GpgKeysInput.createAdd ( com.google.gerrit.client.rpc.Natives.arrayOf ( key ) ) ; }

Target:
static com.google.gerrit.client.account.AccountApi.GpgKeysInput add ( java.lang.String key ) { return com.google.gerrit.client.account.AccountApi.GpgKeysInput.createWithAdd ( com.google.gerrit.client.rpc.Natives.arrayOf ( key ) ) ; }
Source:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } maybeFlush ( ) ; }

Target:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } db.flush ( ) ; }
Source:
public static java.lang.Boolean isForwardedEvent ( ) { return com.ericsson.gerrit.plugins.highavailability.forwarder.Context.FORWARDED_EVENT.get ( ) ; }

Target:
public static java.lang.Boolean isForwardedEvent ( ) { return com.ericsson.gerrit.plugins.highavailability.forwarder.Context.forwardedEvent.get ( ) ; }
Source:
public com.google.gerrit.sshd.SshKeyCacheEntryIterable missing ( java.lang.String username ) { return SshKeyCacheEntryIterable.EMPTY ; }

Target:
public com.google.gerrit.sshd.SshKeyCacheEntryCollection missing ( com.google.gerrit.reviewdb.Account.Username username ) { return new com.google.gerrit.sshd.SshKeyCacheEntryCollection ( SshKeyCacheEntryCollection.Type.INVALID_USER ) ; }
Source:
public void abandonReviewableChangeNotifyOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void abandonReviewableChangeByOtherCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( other ) . noOneElse ( ) ; }
Source:
public static org.eclipse.jgit.transport.ReceiveCommand getCommand ( org.eclipse.jgit.lib.RefUpdate update , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { return new org.eclipse.jgit.transport.ReceiveCommand ( update.getOldObjectId ( ) , update.getNewObjectId ( ) , update.getName ( ) , type ) ; }

Target:
public static org.eclipse.jgit.transport.ReceiveCommand getCommand ( org.eclipse.jgit.lib.RefUpdate update , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { return new org.eclipse.jgit.transport.ReceiveCommand ( update.getExpectedOldObjectId ( ) , update.getNewObjectId ( ) , update.getName ( ) , type ) ; }
Source:
private com.google.gerrit.reviewdb.client.Change getChange ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( c.getChangeId ( ) ) ) ) ; }

Target:
private com.google.gerrit.server.query.change.ChangeData getChange ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( c.getChangeId ( ) ) ) ; }
Source:
private void display ( final com.google.gerrit.client.projects.ProjectMap result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }

Target:
private void display ( final com.google.gerrit.client.projects.ProjectMap result ) { projectsTab.display ( result , subname ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }
Source:
private static void assertEquals ( byte [ ] exp , com.google.gwtorm.nosql.IndexKeyBuilder ic ) { com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEquals ( com.google.gwtorm.nosql.IndexKeyBuilderTest.toString ( exp ) , com.google.gwtorm.nosql.IndexKeyBuilderTest.toString ( ic.toByteArray ( ) ) ) ; }

Target:
private static void assertEqualToBuilderResult ( byte [ ] exp , com.google.gwtorm.nosql.IndexKeyBuilder ic ) { org.junit.Assert.assertEquals ( com.google.gwtorm.nosql.IndexKeyBuilderTest.toString ( exp ) , com.google.gwtorm.nosql.IndexKeyBuilderTest.toString ( ic.toByteArray ( ) ) ) ; }
Source:
static void replyError ( javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { res.setStatus ( statusCode ) ; com.google.gerrit.httpd.restapi.RestApiServlet.replyText ( null , res , msg ) ; }

Target:
public static void replyError ( javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { res.setStatus ( statusCode ) ; com.google.gwtexpui.server.CacheHeaders.setNotCacheable ( res ) ; com.google.gerrit.httpd.restapi.RestApiServlet.replyText ( null , res , msg ) ; }
Source:
public com.google.gerrit.extensions.registration.DynamicMap < com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.account.AccountResource.GpgKey > > views ( ) { return views ; }

Target:
public com.google.gerrit.extensions.registration.DynamicMap < com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.gpg.server.GpgKey > > views ( ) { return views ; }
Source:
private void parseDelete ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { com.google.gerrit.server.project.RefControl ctl = projectControl.controlForRef ( cmd.getRefName ( ) ) ; if ( ctl.canDelete ( ) ) { } else { com.google.gerrit.server.git.ReceiveCommits.reject ( cmd ) ; } }

Target:
private void parseDelete ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { com.google.gerrit.server.project.RefControl ctl = projectControl.controlForRef ( cmd.getRefName ( ) ) ; if ( ctl.canDelete ( ) ) { } else { com.google.gerrit.server.git.ReceiveCommits.reject ( cmd , "can not delete references" ) ; } }