auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public int compare ( com.google.gerrit.server.schema.Schema_65.AccountGroupAgreement a1 , com.google.gerrit.server.schema.Schema_65.AccountGroupAgreement a2 ) { return com.google.common.primitives.Longs.compare ( a1.getTime ( ) , a2.getTime ( ) ) ; }

Target:
public int compare ( com.google.gerrit.server.schema.Schema_65.AccountGroupAgreement a1 , com.google.gerrit.server.schema.Schema_65.AccountGroupAgreement a2 ) { return java.lang.Long.compare ( a1.getTime ( ) , a2.getTime ( ) ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.ALL_OPEN ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } else { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeQuery ( "status:open" ) ) ; } }
Source:
void index ( com.google.gerrit.reviewdb.client.Account.Id id , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( id ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.logger.debug ( "Account successfully indexed" , id ) ; }

Target:
void index ( com.google.gerrit.reviewdb.client.Account.Id id , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( id ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.logger.debug ( "Account successfully indexed" , id ) ; updateIndexTs ( java.time.LocalDateTime.now ( ) ) ; }
Source:
public java.sql.Timestamp apply ( com.google.gerrit.reviewdb.client.ChangeMessage input ) { return input.getWrittenOn ( ) ; }

Target:
public Account.Id getAssignee ( ) { return state.assignee ( ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHHook createHook ( java.lang.String name , java.util.Map < java.lang.String , java.lang.String > config , java.util.Collection < com.googlesrouce.gerrit.plugins.github.git.GHEvent > events , boolean active ) throws java.io.IOException { return ghRepository.createHook ( name , config , events , active ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHHook createHook ( java.lang.String name , java.util.Map < java.lang.String , java.lang.String > config , java.util.Collection < com.googlesource.gerrit.plugins.github.git.GHEvent > events , boolean active ) throws java.io.IOException { return ghRepository.createHook ( name , config , events , active ) ; }
Source:
public static com.google.gerrit.server.git.ProjectConfig read ( com.google.gerrit.server.git.MetaDataUpdate update , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig r = new com.google.gerrit.server.git.ProjectConfig ( update.getProjectName ( ) ) ; r.load ( update , id ) ; return r ; }

Target:
public static com.google.gerrit.server.git.ProjectConfig read ( com.google.gerrit.server.git.meta.MetaDataUpdate update , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig r = new com.google.gerrit.server.git.ProjectConfig ( update.getProjectName ( ) ) ; r.load ( update , id ) ; return r ; }
Source:
public static java.lang.String refsUsers ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.shard ( accountId.get ( ) ) ) ; return r.toString ( ) ; }

Target:
private static java.lang.StringBuilder buildRefsPrefix ( java.lang.String prefix , int id ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.newStringBuilder ( ) . append ( prefix ) ; return com.google.gerrit.reviewdb.client.RefNames.shard ( id , r ) . append ( '/' ) ; }
Source:
public boolean canViewConnections ( ) { return ( canPerform ( GlobalCapability.VIEW_CONNECTIONS ) ) || ( user.isAdministrator ( ) ) ; }

Target:
public boolean canViewConnections ( ) { return ( canPerform ( GlobalCapability.VIEW_CONNECTIONS ) ) || ( canAdministrateServer ( ) ) ; }
Source:
private void init ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.transport.ReceivePack rp ) { for ( com.google.gerrit.server.config.ReceivePackInitializer initializer : receivePackInitializers ) { initializer.init ( project , rp ) ; } }

Target:
private void init ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.transport.ReceivePack rp ) { for ( com.google.gerrit.server.git.ReceivePackInitializer initializer : receivePackInitializers ) { initializer.init ( project , rp ) ; } }
Source:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . assertNotFound ( ) ; }

Target:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; userRestSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . assertNotFound ( ) ; }
Source:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , getCommentLinkName ( ) , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }

Target:
public java.lang.String apply ( com.google.gerrit.extensions.api.projects.CommentLinkInfo input ) { return input.match ; }
Source:
private void assertNoProblems ( com.google.gerrit.server.project.ChangeControl ctl , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.FixInput fix ) { com.google.common.truth.Truth.assertThat ( checker.check ( ctl , fix ) . problems ( ) ) . isEmpty ( ) ; }

Target:
private void assertNoProblems ( com.google.gerrit.server.notedb.ChangeNotes notes , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.FixInput fix ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( checker.check ( controlForNotes ( notes ) , fix ) . problems ( ) ) . isEmpty ( ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.Event event ) { fireEvent ( branchName , event ) ; }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.common.Event event ) { fireEvent ( branchName , event ) ; }
Source:
public static PatchScreen.TopView getPatchScreenTopView ( ) { if ( ( com.google.gerrit.client.Gerrit.patchScreen ) == null ) { return null ; } return com.google.gerrit.client.Gerrit.patchScreen.getTopView ( ) ; }

Target:
public static UnifiedPatchScreen.TopView getPatchScreenTopView ( ) { if ( ( com.google.gerrit.client.Gerrit.patchScreen ) == null ) { return null ; } return com.google.gerrit.client.Gerrit.patchScreen.getTopView ( ) ; }
Source:
private void commit ( com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes ) throws java.io.IOException { try ( com.google.gerrit.server.git.MetaDataUpdate metaDataUpdate = createMetaDataUpdate ( ) ) { groupNameNotes.commit ( metaDataUpdate ) ; } }

Target:
private void commit ( com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes ) throws java.io.IOException { try ( com.google.gerrit.server.git.meta.MetaDataUpdate metaDataUpdate = createMetaDataUpdate ( ) ) { groupNameNotes.commit ( metaDataUpdate ) ; } }
Source:
public void putApprovalFor ( com.google.gerrit.reviewdb.client.Account.Id reviewer , java.lang.String label , short value ) { approvals.put ( label , reviewer , com.google.common.base.Optional.of ( value ) ) ; }

Target:
public void putApprovalFor ( com.google.gerrit.reviewdb.client.Account.Id reviewer , java.lang.String label , short value ) { approvals.put ( label , reviewer , java.util.Optional.of ( value ) ) ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( box.getText ( ) ) ) { box.setText ( Util.C.defaultProjectName ( ) ) ; box.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultProjectName ( ) . equals ( nameBox.getText ( ) ) ) { nameBox.setText ( "" ) ; nameBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) ; }

Target:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }
Source:
public void setContext ( final int ctx ) { assert ( 0 <= ctx ) || ( ctx == ( com.google.gerrit.reviewdb.AccountGeneralPreferences.WHOLE_FILE_CONTEXT ) ) ; context = ctx ; }

Target:
public void setContext ( final int ctx ) { assert ( 0 <= ctx ) || ( ctx == ( com.google.gerrit.reviewdb.AccountDiffPreference.WHOLE_FILE_CONTEXT ) ) ; context = ctx ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSet ) == null ) { patchSet = cd.currentPatchSet ( ) ; } return patchSet ; }

Target:
private void initPatchSet ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSet ) == null ) { patchSet = cd.currentPatchSet ( ) ; } }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { cbox.setEnabled ( true ) ; }
Source:
public static java.util.List < com.google.gerrit.common.data.SubmitRecord > defaultRuleError ( ) { return com.google.gerrit.server.project.SubmitRuleEvaluator.createRuleError ( "Error evaluating project rules, check server log" ) ; }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { return ruleError ( err , null ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { post ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( com.google.common.collect.Iterables.transform ( unwrapDb ( ) . changes ( ) . all ( ) , com.google.gerrit.reviewdb.server.ReviewDbUtil.changeIdFunction ( ) ) ) ; }

Target:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( com.google.common.collect.Iterables.transform ( getUnwrappedDb ( ) . changes ( ) . all ( ) , com.google.gerrit.reviewdb.server.ReviewDbUtil.changeIdFunction ( ) ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.SshKeyInfo > listSshKeys ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getSshKeys.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list SSH keys" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > getWatchedProjects ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getWatchedProjects.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get watched projects" , e ) ; } }
Source:
public void removeAll ( ) { cache.removeAll ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( final K key , final V value ) { return cache.putAsync ( wrapKey ( key ) , wrapValue ( value ) ) ; }
Source:
public void setSubject ( final java.lang.String s ) { subject = s ; }

Target:
public void setSubject ( final java.lang.String s ) { if ( ( s != null ) && ( ( s.length ( ) ) > 255 ) ) { subject = s.substring ( 0 , 255 ) ; } else { subject = s ; } }
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryParameter withQuery ( java.lang.String query ) { this . query = query ; return this ; }

Target:
com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ( java.lang.String query ) ;
Source:
SetParent.Input newParentInput ( java.lang.String project ) { com.google.gerrit.server.project.SetParent.Input in = new com.google.gerrit.server.project.SetParent.Input ( ) ; in.parent = project ; return in ; }

Target:
com.google.gerrit.extensions.common.ParentInput newParentInput ( java.lang.String project ) { com.google.gerrit.extensions.common.ParentInput in = new com.google.gerrit.extensions.common.ParentInput ( ) ; in.parent = project ; return in ; }
Source:
void setId ( com.google.gerrit.reviewdb.client.Account.Id i ) { accountId = i.get ( ) ; id = com.google.gerrit.server.util.Url.encode ( java.lang.Integer.toString ( accountId ) ) ; }

Target:
void setId ( com.google.gerrit.reviewdb.client.Account.Id i ) { accountId = i.get ( ) ; id = com.google.gerrit.extensions.restapi.Url.encode ( java.lang.Integer.toString ( accountId ) ) ; }
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; return who ; }

Target:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; who.username = account.getUserName ( ) ; return who ; }
Source:
static org.eclipse.jgit.lib.Config readDefaultConfig ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.PreferencesConfig.VersionedDefaultPreferences defaultPrefs = new com.google.gerrit.server.account.PreferencesConfig.VersionedDefaultPreferences ( ) ; defaultPrefs.load ( allUsersRepo ) ; return defaultPrefs.getConfig ( ) ; }

Target:
static org.eclipse.jgit.lib.Config readDefaultConfig ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.Preferences.VersionedDefaultPreferences defaultPrefs = new com.google.gerrit.server.account.Preferences.VersionedDefaultPreferences ( ) ; defaultPrefs.load ( allUsersRepo ) ; return defaultPrefs.getConfig ( ) ; }
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:
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 ) ; -- ( active ) ; start ( ) ; }
Source:
public void onRemove ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.Iterable < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }

Target:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.Iterable < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }
Source:
protected void format ( ) { formatSalutation ( ) ; formatChangeDetail ( ) ; }

Target:
protected void format ( ) { formatSalutation ( ) ; formatChangeDetail ( ) ; appendText ( "\n" ) ; appendText ( ( ( " " + ( getPullUrl ( ) ) ) + "\n" ) ) ; }
Source:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; }

Target:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; new org.eclipse.example.calc.internal.operations.Divide ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { display ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
public final java.lang.Class < ? extends org.kohsuke.args4j.spi.OptionHandler > handler ( ) { return org.kohsuke.args4j.spi.OptionHandler.class ; }

Target:
public final java.lang.Class < ? extends org.kohsuke.args4j.spi.OptionHandler < java.lang.Short > > handler ( ) { return com.google.gerrit.server.ssh.commands.CmdOption.Handler.class ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }
Source:
public static java.lang.String refsDraftComments ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsDraftCommentsPrefix ( accountId ) ; r.append ( changeId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsDraftComments ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , accountId ) ; r.append ( changeId.get ( ) ) ; return r.toString ( ) ; }
Source:
private boolean checkConnection ( ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.info ( "Checking database connection..." ) ; try { eventsDb.queryOne ( ) ; return true ; } catch ( java.sql.SQLException e ) { return false ; } }

Target:
private boolean checkConnection ( ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.info ( "Checking database connection..." ) ; try { eventsDb.queryOne ( ) ; return true ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.debug ( "Problem checking database connection" , e ) ; return false ; } }
Source:
public void assertStatus ( int status ) throws java.lang.Exception { com.google.common.truth.Truth.assert_ ( ) . withMessage ( java.lang.String.format ( "Expected status code %d" , status ) ) . that ( getStatusCode ( ) ) . isEqualTo ( status ) ; }

Target:
public void assertStatus ( int status ) throws java.lang.Exception { com.google.common.truth.Truth.assertWithMessage ( java.lang.String.format ( "Expected status code %d" , status ) ) . that ( getStatusCode ( ) ) . isEqualTo ( status ) ; }
Source:
public void testNeedsUrlEncoding ( ) throws java.net.URISyntaxException { assertTrue ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "http://host/path" ) ) ) ; assertTrue ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "https://host/path" ) ) ) ; assertTrue ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "amazon-s3://config/bucket/path" ) ) ) ; assertFalse ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "host:path" ) ) ) ; assertFalse ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "user@host:path" ) ) ) ; assertFalse ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "git://host/path" ) ) ) ; assertFalse ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "ssh://host/path" ) ) ) ; }

Target:
public void testNeedsUrlEncoding ( ) throws java.net.URISyntaxException { com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "http://host/path" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "https://host/path" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "amazon-s3://config/bucket/path" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "host:path" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "user@host:path" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "git://host/path" ) ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.replication.Destination.needsUrlEncoding ( new org.eclipse.jgit.transport.URIish ( "ssh://host/path" ) ) ) . isFalse ( ) ; }
Source:
private void initSignatures ( ) { setSignatureFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Signature > > asList ( new org.apache.sshd.common.signature.SignatureDSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureRSA.Factory ( ) ) ) ; }

Target:
private void initSignatures ( ) { setSignatureFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Signature > > asList ( new org.apache.sshd.common.signature.SignatureDSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureRSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP256Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP384Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP521Factory ( ) ) ) ; }
Source:
com.google.gerrit.server.index.project.ProjectIndexer getProjectIndexer ( com.google.gerrit.server.index.project.ProjectIndexerImpl.Factory factory , com.google.gerrit.server.index.project.ProjectIndexCollection indexes ) { return factory.create ( indexes ) ; }

Target:
com.google.gerrit.index.project.ProjectIndexer getProjectIndexer ( com.google.gerrit.server.index.project.ProjectIndexerImpl.Factory factory , com.google.gerrit.index.project.ProjectIndexCollection indexes ) { return factory.create ( indexes ) ; }
Source:
public com.google.gerrit.server.query.DataSource < com.google.gerrit.server.project.ProjectState > getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.project.ProjectState > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticProjectIndex.QuerySource ( p , opts ) ; }

Target:
public com.google.gerrit.index.query.DataSource < com.google.gerrit.server.project.ProjectData > getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticProjectIndex.QuerySource ( p , opts ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GitJobStatus getStatus ( ) { return status ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GitJobStatus getStatus ( ) { return status ; }
Source:
public boolean failOnLoad ( ) { return false ; }

Target:
static com.google.gerrit.server.notedb.NotesMigration.Snapshot.Builder builder ( ) { return com.google.gerrit.server.notedb.NotesMigration.Snapshot.create ( new org.eclipse.jgit.lib.Config ( ) ) . toBuilder ( ) ; }
Source:
public com.google.common.base.Optional < java.io.InputStream > getResourceInputStream ( java.lang.String resourcePath ) throws java.io.IOException { return com.google.common.base.Optional.absent ( ) ; }

Target:
public com.google.common.base.Optional < com.google.gerrit.server.plugins.PluginEntry > getEntry ( java.lang.String resourcePath ) { return com.google.common.base.Optional.absent ( ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi group ( java.lang.String group ) { return new com.google.gerrit.client.rpc.RestApi ( "groups" ) . id ( group ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi group ( java.lang.String group ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.project.ProjectState > name ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return new com.google.gerrit.server.query.project.ProjectPredicates.ProjectPredicate ( com.google.gerrit.server.index.project.ProjectField.NAME , nameKey.get ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > name ( com.google.gerrit.reviewdb.client.Project.NameKey nameKey ) { return new com.google.gerrit.server.query.project.ProjectPredicates.ProjectPredicate ( com.google.gerrit.server.index.project.ProjectField.NAME , nameKey.get ( ) ) ; }
Source:
public final java.lang.String id ( ) { java.lang.String id = java.lang.String.valueOf ( _number ( ) ) ; if ( edit ( ) ) { id += "+" ; } return id ; }

Target:
public static com.google.gerrit.client.changes.ChangeInfo.RevisionInfo fromEdit ( com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ) { com.google.gerrit.client.changes.ChangeInfo.RevisionInfo revisionInfo = createObject ( ) . cast ( ) ; revisionInfo.takeFromEdit ( edit ) ; return revisionInfo ; }
Source:
public void setSortKey ( final java.lang.String newSortKey ) { sortKey = newSortKey ; }

Target:
public void setSortKey ( final java.lang.String newSortKey ) { sortKey = newSortKey ; sortKeyDesc = java.lang.Long.toHexString ( ( ( - 1L ) - ( java.lang.Long.parseLong ( sortKey , 16 ) ) ) ) ; }
Source:
boolean canRenderEntireFile ( com.google.gerrit.client.account.DiffPreferences prefs ) { return ( ( fileSize.compareTo ( com.google.gerrit.client.diff.DiffScreen.FileSize.HUGE ) ) < 0 ) || ( ( ( prefs.context ( ) ) != ( com.google.gerrit.reviewdb.client.AccountDiffPreference.WHOLE_FILE_CONTEXT ) ) && ( ( prefs.context ( ) ) < 100 ) ) ; }

Target:
boolean canRenderEntireFile ( com.google.gerrit.client.account.DiffPreferences prefs ) { return ( ( fileSize.compareTo ( com.google.gerrit.client.diff.DiffScreen.FileSize.HUGE ) ) < 0 ) || ( ( ( prefs.context ( ) ) != ( com.google.gerrit.extensions.client.DiffPreferencesInfo.WHOLE_FILE_CONTEXT ) ) && ( ( prefs.context ( ) ) < 100 ) ) ; }
Source:
public boolean matches ( com.google.gerrit.reviewdb.client.AccountExternalId id ) { return matches ( id.getExternalId ( ) ) ; }

Target:
public boolean matches ( com.google.gerrit.server.account.ExternalId extId ) { return matches ( extId.key ( ) . get ( ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSetApproval > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSetApproval > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) 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.RENAME_ENTRY , edit , file , newFile , null ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) 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.RenameFileModification ( editCommit , file , newFile ) ) ; }
Source:
public boolean allowsEdit ( final com.google.gerrit.reviewdb.client.Account.FieldName field ) { return ! ( readOnlyAccountFields.contains ( field ) ) ; }

Target:
public boolean allowsEdit ( final com.google.gerrit.extensions.client.AccountFieldName field ) { return ! ( readOnlyAccountFields.contains ( field ) ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { com.google.gerrit.server.edit.ChangeEditUtil.deleteRef ( ctx.getRepository ( ) , edit ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( edit.getEditCommit ( ) . copy ( ) , org.eclipse.jgit.lib.ObjectId.zeroId ( ) , edit.getRefName ( ) ) ) ; }
Source:
private static java.lang.String providersListToString ( java.lang.Iterable < com.google.gerrit.server.plugins.ServerPluginProvider > providersHandlers ) { return java.util.stream.StreamSupport.stream ( providersHandlers.spliterator ( ) , false ) . map ( ServerPluginProvider :: getProviderPluginName ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }

Target:
private static java.lang.String providersListToString ( java.lang.Iterable < com.google.gerrit.server.plugins.ServerPluginProvider > providersHandlers ) { return com.google.common.collect.Streams.stream ( providersHandlers ) . map ( ServerPluginProvider :: getProviderPluginName ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }
Source:
public boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { return request.getRequestURI ( ) . endsWith ( OAuthConfig.OAUTH_LOGIN ) ; }

Target:
public boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( OAuthConfig.OAUTH_LOGIN ) ) >= 0 ; }
Source:
public final native com.google.gwt.core.client.JavaScriptObject has_use_content_merge ( ) ;

Target:
private final native java.lang.String configured_valueRaw ( ) ;
Source:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 , 0 , com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_PREFIX_TERMS ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 , 0 , com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_TERMS , com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_PREFIX_TERMS ) ; }
Source:
public void noNotificationForPrivateChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "private change" , "a" , "a1" ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForPrivateChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.project.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "private change" , "a" , "a1" ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { return source.read ( ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > toList ( ) { java.util.List < com.google.gerrit.server.query.change.ChangeData > r = rs.toList ( ) ; for ( com.google.gerrit.server.query.change.ChangeData cd : r ) { cd.cacheFromSource ( source ) ; } return r ; }
Source:
void evictAll ( ) throws java.io.IOException ;

Target:
void evictAllNoReindex ( ) ;
Source:
public boolean containsCommentPublished ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { for ( com.google.gerrit.reviewdb.client.PatchLineComment l : getComments ( ) . values ( ) ) { if ( c.getKey ( ) . equals ( l.getKey ( ) ) ) { return true ; } } return false ; }

Target:
public boolean containsComment ( com.google.gerrit.reviewdb.client.Comment c ) throws com.google.gwtorm.server.OrmException { if ( containsCommentPublished ( c ) ) { return true ; } loadDraftComments ( c.author.getId ( ) ) ; return draftCommentNotes.containsComment ( c ) ; }
Source:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.common.data.ContributorAgreement cla ) ;

Target:
void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , java.lang.String claName ) ;
Source:
boolean canRebase ( ) { return ( canPerform ( Permission.REBASE ) ) && ( canWrite ( ) ) ; }

Target:
boolean canRebase ( ) { return ( canPerform ( Permission.REBASE ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
public void testCreatePermissionOnlyProject ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.permissions_only = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , RefNames.REFS_CONFIG ) ; }

Target:
public void testCreatePermissionOnlyProject ( ) 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.permissionsOnly = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , RefNames.REFS_CONFIG ) ; }
Source:
public java.lang.String getName ( ) { return escape ( name ) ; }

Target:
public java.lang.String getName ( ) { return clean ( name ) ; }
Source:
private java.lang.String readFile ( java.io.File f ) throws java.io.IOException { return f.exists ( ) ? com.google.common.io.Files.toString ( f , java.nio.charset.StandardCharsets.UTF_8 ) : null ; }

Target:
private java.lang.String readFile ( java.nio.file.Path p ) throws java.io.IOException { return java.nio.file.Files.exists ( p ) ? new java.lang.String ( java.nio.file.Files.readAllBytes ( p ) , java.nio.charset.StandardCharsets.UTF_8 ) : null ; }
Source:
com.google.gerrit.reviewdb.client.AccountGroup get ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) ;

Target:
java.util.Optional < com.google.gerrit.server.group.InternalGroup > get ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) ;
Source:
void suggestReviewer ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String query , int limit , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.common.data.ReviewerInfo > > callback ) ;

Target:
void suggestReviewer ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String query , int limit , com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ReviewerInfo > > callback ) ;
Source:
com.google.gerrit.reviewdb.client.AccountGroup getAccountGroup ( ) ;

Target:
AccountGroup.UUID getOwnerGroupUUID ( ) ;
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > toList ( ) { return java.util.Collections.unmodifiableList ( com.google.common.collect.Lists.newArrayList ( iterator ( ) ) ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { return source.read ( ) ; }
Source:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.GetReviewers.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.PutReviewers.class ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.GetReviewers.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.PutReviewers.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "suggest_reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.SuggestProjectReviewers.class ) ; }
Source:
public com.google.gerrit.httpd.raw.Label gwtZipLabel ( java.lang.String agent ) { return new com.google.gerrit.httpd.raw.Label ( "gerrit-gwtui" , ( ( "ui_" + agent ) + ".zip" ) ) ; }

Target:
public com.google.gerrit.httpd.raw.BazelBuild.Label gwtZipLabel ( java.lang.String agent ) { return new com.google.gerrit.httpd.raw.BazelBuild.Label ( "gerrit-gwtui" , ( ( "ui_" + agent ) + ".zip" ) ) ; }
Source:
org.eclipse.jgit.lib.Repository getRepository ( ) throws java.io.IOException ;

Target:
com.google.gerrit.server.update.RepoView getRepoView ( ) throws java.io.IOException ;
Source:
public void run ( ) { runImp ( ) ; }

Target:
public void run ( ) { try { synchronized ( list ) { list.add ( this ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( this ) ; } } }
Source:
private void inject ( ) { dbInjector = createDbInjector ( ) ; sysInjector = createSysInjector ( ) ; sysInjector.injectMembers ( this ) ; }

Target:
private void inject ( ) { dbInjector = createDbInjector ( com.google.gerrit.pgm.util.DataSourceProvider.Context.SINGLE_USER ) ; sysInjector = createSysInjector ( ) ; sysInjector.injectMembers ( this ) ; }
Source:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self.setSampledStatisticsEnabled ( enableStatistics ) ; }

Target:
public net.sf.ehcache.statistics.sampled.SampledCacheStatistics getSampledCacheStatistics ( ) { return self ( ) . getSampledCacheStatistics ( ) ; }
Source:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 ) , iter.advance ( 0 ) ) ; }

Target:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 ) , iter.advance ( 0 ) ) ; }
Source:
com.google.gerrit.extensions.webui.UiCommand.Place getPlace ( ) ;

Target:
java.util.Set < com.google.gerrit.extensions.webui.UiCommand.Place > getPlaces ( ) ;
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.GitUtil.fetch ( git , ( ( com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ) + ":refs/heads/config" ) ) ; com.google.gerrit.acceptance.GitUtil.checkout ( git , "refs/heads/config" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.GitUtil.fetch ( git , ( ( com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ) + ":refs/heads/config" ) ) ; testRepo.reset ( "refs/heads/config" ) ; }
Source:
java.lang.String idFromHeader ( org.pegdown.ast.HeaderNode header ) { java.lang.String t = com.google.gitiles.doc.MarkdownHelper.getInnerText ( header ) ; return t != null ? com.google.gitiles.doc.TocFormatter.idFromTitle ( t ) : null ; }

Target:
java.lang.String idFromHeader ( org.pegdown.ast.HeaderNode header ) { java.lang.String t = com.google.gitiles.doc.MarkdownUtil.getInnerText ( header ) ; return t != null ? com.google.gitiles.doc.TocFormatter.idFromTitle ( t ) : null ; }
Source:
public com.google.gerrit.server.project.ProjectControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return state.controlFor ( who ) ; }

Target:
public com.google.gerrit.server.project.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl r = state.controlFor ( who ) ; r.allSections = allSections ; return r ; }
Source:
public void insert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { insertOne ( obj ) ; } }

Target:
public void insert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { insertOne ( obj ) ; } maybeFlush ( ) ; }
Source:
public void onCallStart ( ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }

Target:
public void onRpcStart ( final com.google.gwtjsonrpc.client.RpcStartEvent event ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }
Source:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( "0" , "LOGOUT" , new java.lang.String [ ] { } ) ; }

Target:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( context.get ( ) , "0" , "LOGOUT" , new java.lang.String [ ] { } ) ; }
Source:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "list" ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi comments ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "comments" ) ; }
Source:
protected void configureServlets ( ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpAuthFilter.class ) ; serve ( "/login" , "/login/*" ) . with ( com.google.gerrit.httpd.auth.container.HttpLoginServlet.class ) ; }

Target:
protected void configureServlets ( ) { if ( ( authConfig.getLoginUrl ( ) ) == null ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpAuthFilter.class ) ; } serve ( "/login" , "/login/*" ) . with ( com.google.gerrit.httpd.auth.container.HttpLoginServlet.class ) ; }
Source:
private com.google.gerrit.reviewdb.client.Project fetchGerritProject ( com.google.gerrit.server.project.ProjectCache projectCache , java.lang.String fetchOrganisation , java.lang.String fetchRepoName ) { com.google.gerrit.reviewdb.client.Project.NameKey projectNameKey = Project.NameKey.parse ( ( ( fetchOrganisation + "/" ) + fetchRepoName ) ) ; com.google.gerrit.server.project.ProjectState projectState = projectCache.get ( projectNameKey ) ; return projectState.getProject ( ) ; }

Target:
private com.google.gerrit.reviewdb.client.Project fetchGerritProject ( com.google.gerrit.server.project.ProjectCache projectCache , java.lang.String organisation , java.lang.String repoName ) { com.google.gerrit.reviewdb.client.Project.NameKey projectNameKey = Project.NameKey.parse ( ( ( organisation + "/" ) + repoName ) ) ; com.google.gerrit.server.project.ProjectState projectState = projectCache.get ( projectNameKey ) ; return projectState.getProject ( ) ; }
Source:
static java.lang.Boolean isForwardedEvent ( ) { return com.ericsson.gerrit.plugins.syncindex.Context.FORWARDED_EVENT.get ( ) ; }

Target:
static java.lang.Boolean isForwardedEvent ( ) { return com.ericsson.gerrit.plugins.multimaster.Context.FORWARDED_EVENT.get ( ) ; }