auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void configureServlets ( ) { install ( new com.google.gerrit.extensions.restapi.RestApiModule ( ) { @ java.lang.Override protected void configure ( ) { filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; } } ) ; }

Target:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; bind ( com.googlesource.gerrit.plugins.manager.repository.PluginsRepository.class ) . to ( com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }
Source:
void setRoot ( org.pegdown.ast.RootNode doc ) { root = doc ; hasToc = null ; }

Target:
void setRoot ( org.pegdown.ast.RootNode doc ) { root = doc ; hasToc = null ; ids = com.google.common.collect.HashBiMap.create ( ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( db , repoManager , migration , allUsersProvider , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change.getProject ( ) , change ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commit ( ) throws java.io.IOException { return commit ( com.google.common.base.Preconditions.checkNotNull ( updateFactory , "MetaDataUpdate.Factory" ) . create ( getChange ( ) . getProject ( ) , getUser ( ) ) ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit commit ( com.google.gerrit.server.git.MetaDataUpdate md ) throws java.io.IOException { throw new java.lang.UnsupportedOperationException ( "use commit()" ) ; }
Source:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }

Target:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( com.google.gwt.core.client.GWT.getHostPageBaseURL ( ) , NativeString.TYPE ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.Plugin.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }
Source:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; luceneConfig.setInt ( "index" , "lucene" , "testVersion" , 14 ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig ) ) ; }

Target:
protected com.google.inject.Injector createInjector ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; luceneConfig.setInt ( "index" , "lucene" , "testVersion" , 14 ) ; return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle , luceneConfig ) ; }
Source:
public com.google.gerrit.httpd.raw.ResourceServlet.Resource call ( ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.ResourceServlet.Resource ( java.nio.file.Files.getLastModifiedTime ( p ) , com.google.gerrit.httpd.raw.ResourceServlet.contentType ( p.toString ( ) ) , java.nio.file.Files.readAllBytes ( p ) ) ; }

Target:
public com.google.gerrit.httpd.raw.ResourceServlet.Resource call ( ) throws java.io.IOException { try { return new com.google.gerrit.httpd.raw.ResourceServlet.Resource ( getLastModifiedTime ( p ) , com.google.gerrit.httpd.raw.ResourceServlet.contentType ( p.toString ( ) ) , java.nio.file.Files.readAllBytes ( p ) ) ; } catch ( java.nio.file.NoSuchFileException e ) { return com.google.gerrit.httpd.raw.ResourceServlet.Resource.NOT_FOUND ; } }
Source:
protected void setCacheHeaders ( javax.servlet.http.HttpServletResponse res ) { long now = java.lang.System.currentTimeMillis ( ) ; res.setDateHeader ( "Expires" , now ) ; res.setDateHeader ( "Date" , now ) ; res.setHeader ( "Cache-Control" , "private, max-age=0, must-revalidate" ) ; }

Target:
protected void setCacheHeaders ( javax.servlet.http.HttpServletResponse res ) { long now = java.lang.System.currentTimeMillis ( ) ; res.setDateHeader ( com.google.common.net.HttpHeaders.EXPIRES , now ) ; res.setDateHeader ( com.google.common.net.HttpHeaders.DATE , now ) ; res.setHeader ( com.google.common.net.HttpHeaders.CACHE_CONTROL , "private, max-age=0, must-revalidate" ) ; }
Source:
com.google.gerrit.httpd.rpc.account.CreateGroup create ( java.lang.String newName ) ;

Target:
com.google.gerrit.httpd.rpc.account.CreateGroup create ( java.lang.String groupName ) ;
Source:
private static void assertName ( java.lang.String expectedNewName , com.google.gerrit.server.diff.PatchListEntry e ) { com.google.common.truth.Truth.assertThat ( e.getNewName ( ) ) . isEqualTo ( expectedNewName ) ; com.google.common.truth.Truth.assertThat ( e.getOldName ( ) ) . isNull ( ) ; }

Target:
private static void assertName ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.common.truth.Truth.assertThat ( e.getNewName ( ) ) . isEqualTo ( expectedNewName ) ; com.google.common.truth.Truth.assertThat ( e.getOldName ( ) ) . isNull ( ) ; }
Source:
public java.lang.String getUrl ( ) { final java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; final com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:sap://" ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.hostname ( dbs.required ( "hostname" ) ) ) ; int instance = java.lang.Integer.parseInt ( dbs.required ( "instance" ) ) ; java.lang.String port = ( "3" + ( java.lang.String.format ( "%02d" , instance ) ) ) + "15" ; b.append ( com.google.gerrit.server.schema.JdbcUtil.port ( port ) ) ; return b.toString ( ) ; }

Target:
public java.lang.String getUrl ( ) { final java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; final com.google.gerrit.server.config.ConfigSection dbs = new com.google.gerrit.server.config.ConfigSection ( cfg , "database" ) ; b.append ( "jdbc:sap://" ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.hostname ( dbs.required ( "hostname" ) ) ) ; b.append ( com.google.gerrit.server.schema.JdbcUtil.port ( dbs.optional ( "port" ) ) ) ; java.lang.String database = dbs.optional ( "database" ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( database ) ) ) { b.append ( "?databaseName=" ) . append ( database ) ; } return b.toString ( ) ; }
Source:
public boolean isInternalAccount ( java.lang.String username ) { return false ; }

Target:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }
Source:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }

Target:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
public com.google.gerrit.extensions.api.accounts.GpgKeyApi gpgKey ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return gpgApiAdapter.gpgKey ( account , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( id ) ) ; } catch ( com.google.gerrit.server.GpgException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get PGP key" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.accounts.GpgKeyApi gpgKey ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return gpgApiAdapter.gpgKey ( account , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( id ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get PGP key" , e ) ; } }
Source:
public static java.lang.Integer getLimit ( java.lang.String fieldName , com.google.gerrit.server.query.Predicate < ? > p ) { com.google.gerrit.server.query.IntPredicate < ? > ip = com.google.gerrit.server.query.QueryBuilder.find ( p , com.google.gerrit.server.query.IntPredicate.class , fieldName ) ; return ip != null ? ip.intValue ( ) : null ; }

Target:
public static java.lang.Integer getLimit ( java.lang.String fieldName , com.google.gerrit.index.query.Predicate < ? > p ) { com.google.gerrit.index.query.IntPredicate < ? > ip = com.google.gerrit.index.query.QueryBuilder.find ( p , com.google.gerrit.index.query.IntPredicate.class , fieldName ) ; return ip != null ? ip.intValue ( ) : null ; }
Source:
boolean isReviewed ( ) { return reviewed.getValue ( ) ; }

Target:
public void run ( ) { ( hasPrev ? prev : up ) . go ( ) ; }
Source:
private void closeStatement ( java.sql.Statement stat ) { if ( stat != null ) { try { stat.close ( ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.warn ( "Cannot close statement" , e ) ; } } }

Target:
private void removeOldEvents ( ) { try { sqlClient.removeOldEvents ( ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.warn ( "Cannot remove old entries from database" , e ) ; } }
Source:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.DataSourceType.class ) . toInstance ( dst ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return com.google.common.base.Objects.equal ( input.getAccountId ( ) , accountId ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return java.util.Objects.equals ( input.getAccountId ( ) , accountId ) ; }
Source:
boolean isTokenValid ( final java.lang.String keyIn ) { return ( isSignedIn ( ) ) && ( key ( ) . token.equals ( keyIn ) ) ; }

Target:
java.lang.String getToken ( ) { return isSignedIn ( ) ? key.token : null ; }
Source:
public static void doNotInherit ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , java.lang.String ref ) { project.getAccessSection ( ref , true ) . getPermission ( permissionName , true ) . setExclusiveGroup ( true ) ; }

Target:
public static void doNotInherit ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String permissionName , java.lang.String ref ) { project.getAccessSection ( ref , true ) . getPermission ( permissionName , true ) . setExclusiveGroup ( true ) ; }
Source:
public char getClosingDelimiterChar ( ) { return delim ; }

Target:
public char getClosingCharacter ( ) { return delim ; }
Source:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }

Target:
public boolean supportsRoleChanges ( com.gitblit.models.UserModel user , com.gitblit.Constants.Role role ) { return false ; }
Source:
int getBegin ( org.eclipse.jgit.diff.Edit edit ) { return edit.getBeginB ( ) ; }

Target:
int getBegin ( com.google.gerrit.prettify.common.BaseEdit edit ) { return edit.getBeginB ( ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.rules.PredicateProvider.class ) . to ( com.vmware.gerrit.owners.OwnerPredicateProvider.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.rules.PredicateProvider.class ) . to ( com.vmware.gerrit.owners.OwnerPredicateProvider.class ) . asEagerSingleton ( ) ; }
Source:
public void assertSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { final com.google.gerrit.reviewdb.client.CurrentSchemaVersion act = getSchemaVersion ( ) ; org.junit.Assert.assertEquals ( com.google.gerrit.server.schema.SchemaVersion.getBinaryVersion ( ) , act.versionNbr ) ; }

Target:
public void assertSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { com.google.common.truth.Truth.assertThat ( getSchemaVersion ( ) . versionNbr ) . isEqualTo ( com.google.gerrit.server.schema.SchemaVersion.getBinaryVersion ( ) ) ; }
Source:
public com.google.gerrit.client.admin.PermissionEditor create ( int index ) { com.google.gerrit.client.admin.PermissionEditor subEditor = new com.google.gerrit.client.admin.PermissionEditor ( readOnly , value ) ; permissionContainer.insert ( subEditor , index ) ; return subEditor ; }

Target:
public com.google.gerrit.client.admin.PermissionEditor create ( int index ) { com.google.gerrit.client.admin.PermissionEditor subEditor = new com.google.gerrit.client.admin.PermissionEditor ( projectAccess.getProjectName ( ) , readOnly , value ) ; permissionContainer.insert ( subEditor , index ) ; return subEditor ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; if ( isInvalidSshKey ( caught ) ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidSshKeyError ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
public boolean canAddGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }

Target:
public boolean canRemoveMember ( com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }
Source:
public void run ( com.google.gerrit.server.project.ProjectState project , com.google.gerrit.server.CurrentUser user ) throws java.io.IOException , org.eclipse.jgit.lfs.errors.LfsException { context.sendResponse ( handler.verifyLocks ( project.getProject ( ) . getName ( ) , user ) ) ; }

Target:
public void run ( com.google.gerrit.server.project.ProjectState project , com.google.gerrit.server.CurrentUser user ) throws java.io.IOException , org.eclipse.jgit.lfs.errors.LfsException { context.sendResponse ( handler.verifyLocks ( project.getProject ( ) . getNameKey ( ) , user ) ) ; }
Source:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.IndexConfig.class ) . toInstance ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) ) ; bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( new com.google.gerrit.server.index.DummyIndex ( ) ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.IndexConfig.class ) . toInstance ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) ) ; bind ( com.google.gerrit.server.index.change.ChangeIndex.class ) . toInstance ( new com.google.gerrit.server.index.change.DummyChangeIndex ( ) ) ; }
Source:
public boolean supportsRoleChanges ( com.gitblit.models.UserModel user , com.gitblit.Constants.Role role ) { return false ; }

Target:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { addReviewerIcon.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; suggestBox.setFocus ( false ) ; suggestBox.setText ( "" ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { addReviewerIcon.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; suggestBox.setFocus ( false ) ; suggestBox.setText ( "" ) ; suggestBox.setServeSuggestionsOnOracle ( false ) ; }
Source:
boolean match ( java.lang.String refName ) { return pattern ( ) . matcher ( refName ) . find ( ) ; }

Target:
byte [ ] toByteArray ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return ( ( ( project.toString ( ) ) + ':' ) + ( pattern ( ) ) ) . getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; }
Source:
void setReady ( java.lang.String indexName , int version , boolean ready ) { cfg.setBoolean ( com.google.gerrit.lucene.GerritIndexStatus.SECTION , com.google.gerrit.lucene.GerritIndexStatus.indexDirName ( indexName , version ) , com.google.gerrit.lucene.GerritIndexStatus.KEY_READY , ready ) ; }

Target:
public void setReady ( java.lang.String indexName , int version , boolean ready ) { cfg.setBoolean ( com.google.gerrit.index.GerritIndexStatus.SECTION , com.google.gerrit.index.GerritIndexStatus.indexDirName ( indexName , version ) , com.google.gerrit.index.GerritIndexStatus.KEY_READY , ready ) ; }
Source:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , allUsers , c ) . load ( ) ; }

Target:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , allUsers , c ) . load ( ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , Constants.HEAD ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { java.lang.String url = getBranchUrl ( projectName , branchName ) ; return url == null ? null : new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , url , Target.SELF ) ; }
Source:
protected void postRun ( ) { }

Target:
protected void postRun ( ) { closeDb ( ) ; }
Source:
public static com.google.gerrit.common.data.PermissionRule rule ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.common.data.GroupReference group ) { return new com.google.gerrit.common.data.PermissionRule ( config.resolve ( group ) ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule rule ( com.google.gerrit.server.project.ProjectConfig config , com.google.gerrit.common.data.GroupReference group ) { return new com.google.gerrit.common.data.PermissionRule ( config.resolve ( group ) ) ; }
Source:
public void update ( com.googlesrouce.gerrit.plugins.github.git.GitJobStatus.Code code , java.lang.String shortDescription , java.lang.String description ) { this . status = code ; this . shortDescription = shortDescription ; this . value = description ; }

Target:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code code , java.lang.String shortDescription , java.lang.String description ) { this . status = code ; this . shortDescription = shortDescription ; this . value = description ; }
Source:
public void servletPathMatchesRequestPath ( ) { org.junit.Assert.assertEquals ( null , com.google.gerrit.util.http.RequestUtil.getEncodedPathInfo ( mockRequest ( "/c/s" , "/c" , "/s" ) ) ) ; }

Target:
public void servletPathMatchesRequestPath ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.util.http.RequestUtil.getEncodedPathInfo ( mockRequest ( "/c/s" , "/c" , "/s" ) ) ) . isNull ( ) ; }
Source:
java.lang.String getMessage ( ) { return ( replyBox ) != null ? replyBox.getMessage ( ) : null ; }

Target:
boolean isVisible ( ) { return ( popup ) != null ; }
Source:
public com.google.gerrit.reviewdb.SystemConfig getSystemConfig ( ) { return new com.google.gerrit.server.config.SystemConfigProvider ( this , new com.google.inject.Provider < com.google.gerrit.server.schema.SchemaVersion > ( ) { public com.google.gerrit.server.schema.SchemaVersion get ( ) { return schemaVersion ; } } ) . get ( ) ; }

Target:
public com.google.gerrit.reviewdb.SystemConfig getSystemConfig ( ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.reviewdb.ReviewDb c = open ( ) ; try { return c.systemConfig ( ) . get ( new com.google.gerrit.reviewdb.SystemConfig.Key ( ) ) ; } finally { c.close ( ) ; } }
Source:
public void queryOne ( ) throws java.sql.SQLException { try ( java.sql.Connection conn = ds.getConnection ( ) ; java.sql.Statement stat = conn.createStatement ( ) ) { stat.executeQuery ( ( ( "SELECT * FROM " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) + " LIMIT 1" ) ) ; } }

Target:
private void execute ( java.lang.String query ) throws java.sql.SQLException { try ( java.sql.Connection conn = ds.getConnection ( ) ; java.sql.Statement stat = conn.createStatement ( ) ) { stat.execute ( query ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.ChangeIndex.class ) . toInstance ( ChangeIndex.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; bind ( com.google.gerrit.server.query.change.IndexRewrite.class ) . toInstance ( IndexRewrite.DISABLED ) ; }

Target:
protected void configure ( ) { bind ( ChangeIndex.Manager.class ) . toInstance ( ChangeIndex.Manager.DISABLED ) ; bind ( com.google.gerrit.server.index.ChangeIndexer.class ) . toInstance ( ChangeIndexer.DISABLED ) ; bind ( com.google.gerrit.server.query.change.IndexRewrite.class ) . toInstance ( IndexRewrite.DISABLED ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , com.google.gson.reflect.TypeToken < T > typeOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , typeOfT.getType ( ) ) ; }

Target:
protected < T > T buildJson ( com.google.gson.reflect.TypeToken < T > typeOfT , java.lang.String path , java.lang.String queryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , queryString ) , typeOfT.getType ( ) ) ; }
Source:
void deleteGroupMembers ( java.util.Set < com.google.gerrit.client.reviewdb.AccountGroupMember.Key > keys , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void deleteGroupMembers ( com.google.gerrit.client.reviewdb.AccountGroup.Id groupId , java.util.Set < com.google.gerrit.client.reviewdb.AccountGroupMember.Key > keys , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;
Source:
private org.apache.lucene.search.Query prefixQuery ( com.google.gerrit.server.index.IndexPredicate < com.google.gerrit.server.query.change.ChangeData > p ) { return new org.apache.lucene.search.PrefixQuery ( new org.apache.lucene.index.Term ( p.getOperator ( ) , p.getValue ( ) ) ) ; }

Target:
private org.apache.lucene.search.Query prefixQuery ( com.google.gerrit.server.index.IndexPredicate < com.google.gerrit.server.query.change.ChangeData > p ) { return new org.apache.lucene.search.PrefixQuery ( new org.apache.lucene.index.Term ( p.getField ( ) . getName ( ) , p.getValue ( ) ) ) ; }
Source:
public com.google.gerrit.server.query.Matchable < T > asMatchable ( ) { com.google.common.base.Preconditions.checkState ( isMatchable ( ) , "not matchable" ) ; return ( ( com.google.gerrit.server.query.Matchable < T > ) ( this ) ) ; }

Target:
public com.google.gerrit.index.query.Matchable < T > asMatchable ( ) { com.google.common.base.Preconditions.checkState ( isMatchable ( ) , "not matchable" ) ; return ( ( com.google.gerrit.index.query.Matchable < T > ) ( this ) ) ; }
Source:
public void linkifyMessageUrlAndChangeId ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) ; }

Target:
public void linkifyMessageUrlAndChangeId ( ) 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/I0123456789" , "url" , "http://my/url/I0123456789" ) , com.google.common.collect.ImmutableMap.of ( "text" , " is not change " ) , com.google.common.collect.ImmutableMap.of ( "text" , "I0123456789" , "url" , "http://test-host-review/foo/#/q/I0123456789,n,z" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url/I0123456789 is not change I0123456789" ) ) ; }
Source:
public void delete ( ) { com.googlesource.gerrit.plugins.repositoryuse.Usage.table.delete ( this ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.log.info ( java.lang.String.format ( "Deleting Usage: %s, %s, %s" , project , branch , destination ) ) ; }

Target:
public void delete ( ) { com.googlesource.gerrit.plugins.repositoryuse.Usage.log.debug ( java.lang.String.format ( "Deleting Usage: %s, %s, %s" , project , branch , destination ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Usage.table.delete ( this ) ; }
Source:
public void listChildrenOfNonExistingProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( "/projects/non-existing/children/" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listChildrenOfNonExistingProject_NotFound ( ) throws java.lang.Exception { try { gApi.projects ( ) . name ( "non-existing" ) . child ( "children" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException e ) { com.google.common.truth.Truth.assertThat ( e.getMessage ( ) ) . contains ( "non-existing" ) ; } }
Source:
com.google.gerrit.httpd.rpc.patch.AddReviewerHandler create ( com.google.gerrit.reviewdb.Change.Id changeId , java.util.Collection < java.lang.String > nameOrEmails ) ;

Target:
com.google.gerrit.httpd.rpc.patch.AddReviewerHandler create ( com.google.gerrit.reviewdb.Change.Id changeId , java.util.Collection < java.lang.String > reviewers , boolean confirmed ) ;
Source:
java.io.File getSrcJar ( ) { return srcFile ; }

Target:
public java.io.File getSrcFile ( ) { return srcFile ; }
Source:
private void updateSavedAt ( ) { final java.sql.Timestamp on = comment.getWrittenOn ( ) ; savedAt.setText ( PatchUtil.M.draftSaved ( new java.util.Date ( on.getTime ( ) ) ) ) ; }

Target:
private void render ( ) { final java.sql.Timestamp on = comment.getWrittenOn ( ) ; savedAt.setText ( PatchUtil.M.draftSaved ( new java.util.Date ( on.getTime ( ) ) ) ) ; renderedPanel.update ( comment ) ; stateEdit ( false ) ; }
Source:
private static java.util.List < com.google.gerrit.reviewdb.client.PatchSet > latest ( com.google.gerrit.reviewdb.client.Change c ) { return com.google.common.collect.ImmutableList.of ( new com.google.gerrit.reviewdb.client.PatchSet ( c.currentPatchSetId ( ) ) ) ; }

Target:
private static java.util.List < com.google.gerrit.reviewdb.client.PatchSet > latest ( com.google.gerrit.reviewdb.client.Change c ) { com.google.gerrit.reviewdb.client.PatchSet ps = new com.google.gerrit.reviewdb.client.PatchSet ( c.currentPatchSetId ( ) ) ; ps.setCreatedOn ( c.getLastUpdatedOn ( ) ) ; return com.google.common.collect.ImmutableList.of ( ps ) ; }
Source:
private java.lang.String urlPublish ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/publish_edit" ; }

Target:
private java.lang.String urlPublish ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit:publish" ; }
Source:
public static java.lang.String toUnified ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , id ) ; }

Target:
public static java.lang.String toEditScreen ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toEditScreen ( project , revision , fileName , 0 ) ; }
Source:
public void modifyFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , changeControl , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( filePath , newContent ) ) ; }

Target:
public void modifyFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.notedb.ChangeNotes notes , java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , notes , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( filePath , newContent ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( ( diffTable = new com.google.gerrit.client.diff.DiffTable ( ) ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setHeaderVisible ( false ) ; add ( ( diffTable = new com.google.gerrit.client.diff.DiffTable ( ) ) ) ; }
Source:
public static com.google.gerrit.reviewdb.SchemaVersion create ( ) { final com.google.gerrit.reviewdb.SchemaVersion r = new com.google.gerrit.reviewdb.SchemaVersion ( ) ; r.singleton = new com.google.gerrit.reviewdb.SchemaVersion.Key ( ) ; return r ; }

Target:
public static com.google.gerrit.reviewdb.CurrentSchemaVersion create ( ) { final com.google.gerrit.reviewdb.CurrentSchemaVersion r = new com.google.gerrit.reviewdb.CurrentSchemaVersion ( ) ; r.singleton = new com.google.gerrit.reviewdb.CurrentSchemaVersion.Key ( ) ; return r ; }
Source:
private java.lang.String dropTrailingSlash ( java.lang.String url ) { return url.endsWith ( "/" ) ? url.substring ( 0 , ( ( url.length ( ) ) - 1 ) ) : url ; }

Target:
private java.lang.String trimTrailingSlash ( java.lang.String url ) { return com.google.common.base.CharMatcher.is ( '/' ) . trimTrailingFrom ( url ) ; }
Source:
public void pushBypassPrivateByDefaultInherited ( ) throws java.lang.Exception { setPrivateByDefault ( project1 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( true ) ; }

Target:
public void pushBypassPrivateByDefaultInherited ( ) throws java.lang.Exception { setPrivateByDefault ( project1 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isTrue ( ) ; }
Source:
public void run ( ) { boolean s = prefs.showWhitespaceErrors ( ) ; view.getCmFromSide ( DisplaySide.A ) . setOption ( "showTrailingSpace" , s ) ; view.getCmFromSide ( DisplaySide.B ) . setOption ( "showTrailingSpace" , s ) ; }

Target:
public void run ( ) { boolean s = prefs.showWhitespaceErrors ( ) ; for ( net.codemirror.lib.CodeMirror cm : view.getCms ( ) ) { cm.setOption ( "showTrailingSpace" , s ) ; } }
Source:
public void reload ( ) { com.google.gerrit.pgm.Init.super . loadSiteLib ( ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( ui ) ; bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }
Source:
public final native void addWidget ( net.codemirror.lib.LineCharacter pos , com.google.gwt.dom.client.Element node , boolean scrollIntoView ) ;

Target:
public final native void addWidget ( net.codemirror.lib.Pos pos , com.google.gwt.dom.client.Element node ) ;
Source:
final void setState ( com.google.gerrit.extensions.api.projects.ProjectState s ) { setStateRaw ( s.name ( ) ) ; }

Target:
final void setSubmitType ( com.google.gerrit.extensions.client.SubmitType t ) { setSubmitTypeRaw ( t.name ( ) ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Gerrit.C.searchHint ( ) . equals ( searchBox.getText ( ) ) ) { searchBox.setText ( "" ) ; searchBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { switch ( event.getCharCode ( ) ) { case com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER : doSearch ( ) ; break ; case com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE : searchBox.setText ( "" ) ; searchBox.setFocus ( false ) ; break ; } }
Source:
public void onSuccess ( final com.google.gerrit.common.data.IncludedInDetail result ) { loadTable ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.IncludedInInfo r ) { com.google.gerrit.common.data.IncludedInDetail result = new com.google.gerrit.common.data.IncludedInDetail ( ) ; result.setBranches ( toList ( r.branches ( ) ) ) ; result.setTags ( toList ( r.tags ( ) ) ) ; loadTable ( result ) ; }
Source:
static com.googlecode.prolog_cafe.lang.ChoicePointFrame S0 ( com.googlecode.prolog_cafe.lang.Operation cont ) { com.googlecode.prolog_cafe.lang.ChoicePointFrame r = new com.googlecode.prolog_cafe.lang.ChoicePointFrame ( ) ; r.cont = cont ; return r ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.r1 = this . r1 ; engine.r2 = this . r2 ; }
Source:
public void evictGroupsByInclude ( ) throws java.io.IOException , javax.servlet.ServletException { configureMocksFor ( Constants.GROUPS_BYINCLUDE ) ; servlet.doPost ( request , response ) ; verifyAll ( ) ; }

Target:
private void verifyResponseIsOK ( ) throws java.lang.Exception { servlet.doPost ( request , response ) ; org.mockito.Mockito.verify ( response ) . setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }
Source:
public void onSubmit ( final com.google.gwt.user.client.ui.FormSubmitEvent event ) { event.setCancelled ( true ) ; final java.lang.String addr = inEmail.getText ( ) . trim ( ) ; if ( ! ( addr.contains ( "@" ) ) ) { return ; } inEmail.setEnabled ( false ) ; register.setEnabled ( false ) ; Util.ACCOUNT_SEC.registerEmail ( addr , new com.google.gerrit.client.rpc.GerritCallback < com.google.gwtjsonrpc.client.VoidResult > ( ) { public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { box.hide ( ) ; } @ java.lang.Override public void onFailure ( final java.lang.Throwable caught ) { inEmail.setEnabled ( true ) ; register.setEnabled ( true ) ; super . onFailure ( caught ) ; } } ) ; }

Target:
public void onSubmit ( final com.google.gwt.user.client.ui.FormPanel.SubmitEvent event ) { event.cancel ( ) ; final java.lang.String addr = inEmail.getText ( ) . trim ( ) ; if ( ! ( addr.contains ( "@" ) ) ) { return ; } inEmail.setEnabled ( false ) ; register.setEnabled ( false ) ; Util.ACCOUNT_SEC.registerEmail ( addr , new com.google.gerrit.client.rpc.GerritCallback < com.google.gwtjsonrpc.client.VoidResult > ( ) { public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { box.hide ( ) ; } @ java.lang.Override public void onFailure ( final java.lang.Throwable caught ) { inEmail.setEnabled ( true ) ; register.setEnabled ( true ) ; super . onFailure ( caught ) ; } } ) ; }
Source:
private com.google.gerrit.acceptance.RestResponse POST ( java.lang.String endPoint ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.post ( endPoint ) ; r.consume ( ) ; return r ; }

Target:
private com.google.gerrit.acceptance.RestResponse POST ( java.lang.String endPoint ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.post ( endPoint ) ; r.consume ( ) ; return r ; }
Source:
private void checkHostIndex ( ) { com.google.common.base.Preconditions.checkState ( ( ( hostName ) != null ) , "missing hostName on %s view" , type ) ; com.google.common.base.Preconditions.checkState ( ( ( servletPath ) != null ) , "missing hostName on %s view" , type ) ; }

Target:
private void checkHostIndex ( ) { checkView ( ( ( hostName ) != null ) , "missing hostName on %s view" , type ) ; checkView ( ( ( servletPath ) != null ) , "missing hostName on %s view" , type ) ; }
Source:
public void center ( ) { show ( ) ; }

Target:
public void center ( ) { show ( ) ; closey.setFocus ( true ) ; }
Source:
void onFollowUp ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( followUpAction ) == null ) { followUpAction = new com.google.gerrit.client.change.FollowUpAction ( followUp , project , branch , topic , key ) ; } followUpAction.show ( ) ; }

Target:
void onAbandon ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( abandonAction ) == null ) { abandonAction = new com.google.gerrit.client.change.AbandonAction ( abandon , project , changeId ) ; } abandonAction.show ( ) ; }
Source:
public void onError ( com.google.gwt.resources.client.ResourceException e ) { net.codemirror.lib.Loader.error ( e ) ; }

Target:
public void onError ( com.google.gwt.resources.client.ResourceException e ) { cb.onFailure ( e ) ; }
Source:
public T call ( ) throws java.lang.Exception { return wrapped.call ( ) ; }

Target:
public T call ( ) throws java.lang.Exception { if ( callerContext == ( local.getContext ( ) ) ) { return callable.call ( ) ; } else { return wrapped.call ( ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setExternalGroup ( key ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doExternalSearch ( ) ; }
Source:
public void listBranches ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }

Target:
public void addBranch ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final java.lang.String branchName , final java.lang.String startingRevision , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.AddBranchResult > callback ) { addBranchFactory.create ( projectName , branchName , startingRevision ) . to ( callback ) ; }
Source:
com.google.gerrit.server.mail.AddReviewerSender create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) ;

Target:
com.google.gerrit.server.mail.AddReviewerSender create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.extensions.api.changes.NotifyHandling notify ) ;
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , null , topic ) ; }

Target:
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 , branch , null , null ) ; }
Source:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException { return query ( p , IndexRewriteImpl.MAX_LIMIT ) ; }

Target:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException { return query ( p , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; }
Source:
public void insertComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.insertComment ( c ) ; } db.patchComments ( ) . insert ( comments ) ; }

Target:
public void putComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.putComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }
Source:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Date o ) { sb.append ( '"' ) ; sb.append ( o ) ; sb.append ( '"' ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.sql.Date o ) { sb.append ( '"' ) ; sb.append ( com.google.gwtjsonrpc.client.JavaSqlDate_JsonSerializer.toString ( o.getTime ( ) ) ) ; sb.append ( '"' ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.ProjectRight > byGroup ( com.google.gerrit.client.reviewdb.AccountGroup.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 onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public java.sql.Timestamp getMinTimestamp ( ) { return new java.sql.Timestamp ( 0 ) ; }

Target:
public long getMinValue ( ) { return 0 ; }
Source:
void suggestParentCandidates ( com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.Project > > callback ) ;

Target:
void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
public void testToHeaderString_NameEmail3 ( ) { org.junit.Assert.assertEquals ( "\"A B. C\" <a@a>" , com.google.gerrit.server.mail.AddressTest.format ( "A B. C" , "a@a" ) ) ; }

Target:
public void testToHeaderString_NameEmail3 ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.mail.AddressTest.format ( "A B. C" , "a@a" ) ) . isEqualTo ( "\"A B. C\" <a@a>" ) ; }
Source:
public final native boolean intralineDifference ( ) ;

Target:
public final boolean intralineDifference ( ) { return get ( "intraline_difference" , true ) ; }
Source:
public boolean isNotify ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) { return ( types.contains ( type ) ) || ( types.contains ( NotifyType.ALL ) ) ; }

Target:
public boolean isNotify ( com.google.gerrit.server.account.WatchConfig.NotifyType type ) { return ( types.contains ( type ) ) || ( types.contains ( NotifyType.ALL ) ) ; }
Source:
public abstract java.lang.Iterable < java.util.Map.Entry < byte [ ] , byte [ ] > > scan ( byte [ ] fromKey , byte [ ] toKey ) throws com.google.gwtorm.client.OrmException ;

Target:
public abstract java.util.Iterator < java.util.Map.Entry < byte [ ] , byte [ ] > > scan ( byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;
Source:
private static com.google.gerrit.server.change.PostReview.CommentSetEntry create ( com.google.gerrit.reviewdb.client.Patch.Key key , java.lang.Integer line , com.google.gerrit.extensions.client.Side side , com.google.common.hash.HashCode message , com.google.gerrit.reviewdb.client.CommentRange range ) { return new com.google.gerrit.server.change.AutoValue_PostReview_CommentSetEntry ( key , line , side , message , range ) ; }

Target:
private static com.google.gerrit.server.change.PostReview.CommentSetEntry create ( java.lang.String filename , int patchSetId , java.lang.Integer line , com.google.gerrit.extensions.client.Side side , com.google.common.hash.HashCode message , com.google.gerrit.reviewdb.client.Comment.Range range ) { return new com.google.gerrit.server.change.AutoValue_PostReview_CommentSetEntry ( filename , patchSetId , line , side , message , range ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager , changeNoteUtil , commentsUtil ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager , noteUtil ) ; }
Source:
protected void configure ( ) { bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.server.plugins.PluginName.class ) . toInstance ( name ) ; }

Target:
protected void configure ( ) { bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.extensions.annotations.PluginName.class ) . toInstance ( name ) ; }
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toEditScreen ( revision , fileName , 0 ) ; }

Target:
public static java.lang.String toUnified ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , project , diffBase , revision , fileName , null , 0 ) ; }