auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , git , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , testRepo , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
public java.lang.String generate ( ) { java.lang.StringBuilder message ; message = new java.lang.StringBuilder ( ) ; message.append ( "Unsupported change event: " ) ; message.append ( this . event.toString ( ) ) ; return message.toString ( ) ; }

Target:
public java.lang.String generate ( ) { java.lang.StringBuilder message ; message = new java.lang.StringBuilder ( ) ; message.append ( "Unsupported event: " ) ; message.append ( this . event.toString ( ) ) ; return message.toString ( ) ; }
Source:
public com.google.gerrit.client.rpc.RestApi data ( java.lang.String data ) { contentType = "text/plain; charset=utf-8" ; contentData = data ; return this ; }

Target:
public com.google.gerrit.client.rpc.RestApi data ( java.lang.String data ) { contentType = ( com.google.gerrit.client.rpc.RestApi.TEXT_TYPE ) + "; charset=utf-8" ; contentData = data ; return this ; }
Source:
public java.util.List < java.lang.String > getAllTeamNames ( ) { return null ; }

Target:
public java.util.List < java.lang.String > getAllTeamNames ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
private static java.lang.String reduceWildcard ( java.lang.String input ) { return input.contains ( "*" ) ? input.substring ( 0 , input.indexOf ( "*" ) ) : input ; }

Target:
private java.lang.String reduceWildcard ( java.lang.String input ) { if ( input.endsWith ( "*" ) ) { wildcardBranch = true ; return input.substring ( 0 , input.indexOf ( "*" ) ) ; } else { wildcardBranch = false ; return input ; } }
Source:
private java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountExternalId > getGpgExtIds ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.account.GpgKeys.getGpgExtIds ( db.get ( ) , rsrc.getUser ( ) . getAccountId ( ) ) ; }

Target:
private java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountExternalId > getGpgExtIds ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.gpg.server.GpgKeys.getGpgExtIds ( db.get ( ) , rsrc.getUser ( ) . getAccountId ( ) ) ; }
Source:
public boolean canRestore ( ) { return canAbandon ( ) ; }

Target:
public boolean canRestore ( ) { return ( canAbandon ( ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }
Source:
public void setPassword ( java.lang.String p ) { password = p ; }

Target:
public void setPassword ( java.lang.String hashed ) { password = hashed ; }
Source:
public boolean canRunReceivePack ( ) { return isAnyIncludedIn ( receiveGroups , user.getEffectiveGroups ( ) ) ; }

Target:
public boolean canRunReceivePack ( ) { return com.google.gerrit.common.CollectionsUtil.isAnyIncludedIn ( receiveGroups , user.getEffectiveGroups ( ) ) ; }
Source:
public java.util.Collection < java.lang.String > getHeaders ( java.lang.String name ) { return headers.get ( com.google.common.base.Preconditions.checkNotNull ( name ) ) ; }

Target:
public java.util.Collection < java.lang.String > getHeaders ( java.lang.String name ) { return headers.get ( com.google.common.base.Preconditions.checkNotNull ( name.toLowerCase ( ) ) ) ; }
Source:
long getTimeoutMillis ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( cfg , "receive" , null , "timeout" , java.util.concurrent.TimeUnit.SECONDS.convert ( 2 , java.util.concurrent.TimeUnit.MINUTES ) , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
long getTimeoutMillis ( @ com.google.gerrit.server.config.GerritServerConfig final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( cfg , "receive" , null , "timeout" , java.util.concurrent.TimeUnit.MINUTES.toMillis ( 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
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.common.SshKeyInfo > listSshKeys ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getSshKeys.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list SSH keys" , e ) ; } }
Source:
public com.google.gerrit.server.change.ChangeResource parse ( com.google.gerrit.server.project.ChangeControl control ) { return new com.google.gerrit.server.change.ChangeResource ( control ) ; }

Target:
public com.google.gerrit.server.change.ChangeResource parse ( com.google.gerrit.server.project.ChangeControl control ) { return changeResourceFactory.create ( control ) ; }
Source:
public void delete ( ) { com.googlesource.gerrit.plugins.repositoryuse.Ref.log.info ( java.lang.String.format ( "Deleting Ref: %s, %s" , project , ref ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.table.delete ( this ) ; }

Target:
public void delete ( ) { com.googlesource.gerrit.plugins.repositoryuse.Ref.log.debug ( java.lang.String.format ( "Deleting Ref: %s, %s" , project , ref ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.table.delete ( this ) ; }
Source:
private void setRejectImplicitMerges ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.getProject ( ) . setRejectImplicitMerges ( InheritableBoolean.TRUE ) ; saveProjectConfig ( project , cfg ) ; }

Target:
private void setRejectImplicitMerges ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.getProject ( ) . setBooleanConfig ( BooleanProjectConfig.REJECT_IMPLICIT_MERGES , InheritableBoolean.TRUE ) ; saveProjectConfig ( project , cfg ) ; }
Source:
private void unblockRead ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig pc = projectCache.checkedGet ( project ) . getConfig ( ) ; pc.getAccessSection ( "refs/*" ) . remove ( new com.google.gerrit.common.data.Permission ( com.google.gerrit.common.data.Permission.READ ) ) ; saveProjectConfig ( project , pc ) ; }

Target:
private void unblockRead ( ) throws java.lang.Exception { com.google.gerrit.server.project.ProjectConfig pc = projectCache.checkedGet ( project ) . getConfig ( ) ; pc.getAccessSection ( "refs/*" ) . remove ( new com.google.gerrit.common.data.Permission ( com.google.gerrit.common.data.Permission.READ ) ) ; saveProjectConfig ( project , pc ) ; }
Source:
public char getOpeningDelimiterChar ( ) { return '{' ; }

Target:
public char getOpeningCharacter ( ) { return '{' ; }
Source:
protected java.lang.String currentTimeFormatted ( ) { org.eclipse.jgit.lib.PersonIdent p = new org.eclipse.jgit.lib.PersonIdent ( repo.getRepository ( ) ) ; return new com.google.gitiles.DateFormatter ( com.google.common.base.Optional.< java.util.TimeZone > absent ( ) , DateFormatter.Format.ISO ) . format ( p ) ; }

Target:
protected java.lang.String currentTimeFormatted ( ) { org.eclipse.jgit.lib.PersonIdent p = new org.eclipse.jgit.lib.PersonIdent ( repo.getRepository ( ) ) ; return new com.google.gitiles.DateFormatter ( java.util.Optional.empty ( ) , DateFormatter.Format.ISO ) . format ( p ) ; }
Source:
public java.lang.String getBaseGitUrl ( javax.servlet.http.HttpServletRequest req ) { return "git://test-host/foo" ; }

Target:
public java.lang.String getHostName ( javax.servlet.http.HttpServletRequest req ) { return com.google.gitiles.TestGitilesUrls.HOST_NAME ; }
Source:
private void createGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.lang.Exception { com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes = com.google.gerrit.server.group.db.GroupNameNotes.loadForNewGroup ( repo , groupUuid , groupName ) ; commit ( groupNameNotes ) ; }

Target:
private void createGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.lang.Exception { com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes = com.google.gerrit.server.group.db.GroupNameNotes.forNewGroup ( repo , groupUuid , groupName ) ; commit ( groupNameNotes ) ; }
Source:
public void visit ( com.google.gitiles.doc.ColsNode node ) { html.open ( "div" ) . attribute ( "class" , "cols" ) ; visitChildren ( node ) ; html.close ( "div" ) ; }

Target:
private void visit ( com.google.gitiles.doc.MultiColumnBlock node ) { html.open ( "div" ) . attribute ( "class" , "cols" ) ; visitChildren ( node ) ; html.close ( "div" ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.BatchRefUpdate batchRefUpdate ) { for ( org.eclipse.jgit.transport.ReceiveCommand cmd : batchRefUpdate.getCommands ( ) ) { if ( ( cmd.getResult ( ) ) == ( ReceiveCommand.Result.OK ) ) { fire ( project , cmd ) ; } } }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account.Id updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; hide ( ) ; }
Source:
public void testUpsertTwoSecondExistsing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 0 , 1 ) ; java.sql.PreparedStatement insert = stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . upsert ( com.google.gwtorm.jdbc.TestJdbcAccess.TWO_ROWS ) ; verifyIds ( insert , 1 ) ; }

Target:
public void testUpdateNothing ( ) throws com.google.gwtorm.server.OrmException { createClassUnderTest ( ) . update ( noData ) ; }
Source:
private com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig loadConfig ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig ( injector , site , remoteSiteUserFactory , pluginUser , gitRepositoryManager , groupBackend ) ; }

Target:
private com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig loadConfig ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig ( injector , site , remoteSiteUserFactory , pluginUser , gitRepositoryManager , groupBackend , groupIncludeCache ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; if ( ( header ) == null ) { onInitUI ( ) ; } com.google.gerrit.client.Gerrit.setQueryString ( null ) ; }

Target:
public void onShowView ( ) { if ( ( windowTitle ) != null ) { com.google.gerrit.client.Gerrit.setWindowTitle ( this , windowTitle ) ; } com.google.gerrit.client.Gerrit.updateMenus ( this ) ; com.google.gerrit.client.Gerrit.setQueryString ( null ) ; registerKeys ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.reviewdb.Project item ) { return item.getId ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.reviewdb.Project item ) { return item.getNameKey ( ) ; }
Source:
private java.io.File configFile ( javax.servlet.http.HttpServletRequest req ) { return new java.io.File ( site_path , ( ( req.getServletPath ( ) ) + ( req.getPathInfo ( ) ) ) ) ; }

Target:
private java.io.File resolveFile ( javax.servlet.http.HttpServletRequest req ) { return new java.io.File ( site_path , ( ( req.getServletPath ( ) ) + ( req.getPathInfo ( ) ) ) ) ; }
Source:
public boolean isIgnoreWhitespace ( ) { return ( settings.getWhitespace ( ) ) != ( com.google.gerrit.common.data.PatchScriptSettings.Whitespace.IGNORE_NONE ) ; }

Target:
public boolean isIgnoreWhitespace ( ) { return ( settings.getWhitespace ( ) ) != ( com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace.IGNORE_NONE ) ; }
Source:
public void setUp ( ) { userId = new com.google.gerrit.reviewdb.client.Account.Id ( 1 ) ; repoManager = new com.google.gerrit.testutil.InMemoryRepositoryManager ( ) ; }

Target:
public void setUp ( ) { userId = new com.google.gerrit.reviewdb.client.Account.Id ( 1 ) ; repoManager = new com.google.gerrit.testing.InMemoryRepositoryManager ( ) ; }
Source:
public void self ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo info = gApi.accounts ( ) . self ( ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.name ) . isEqualTo ( "Administrator" ) ; com.google.common.truth.Truth.assertThat ( info.email ) . isEqualTo ( "admin@example.com" ) ; com.google.common.truth.Truth.assertThat ( info.username ) . isEqualTo ( "admin" ) ; }

Target:
private void assertUser ( com.google.gerrit.extensions.common.AccountInfo info , com.google.gerrit.acceptance.TestAccount account ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( info.name ) . isEqualTo ( account.fullName ) ; com.google.common.truth.Truth.assertThat ( info.email ) . isEqualTo ( account.email ) ; com.google.common.truth.Truth.assertThat ( info.username ) . isEqualTo ( account.username ) ; }
Source:
public com.google.gerrit.server.patch.IntraLineDiff call ( ) throws java.lang.Exception { return com.google.gerrit.server.patch.IntraLineLoader.compute ( key ) ; }

Target:
public com.google.gerrit.server.patch.IntraLineDiff call ( ) throws java.lang.Exception { return com.google.gerrit.server.patch.IntraLineLoader.compute ( args.aText ( ) , args.bText ( ) , args.edits ( ) ) ; }
Source:
public void onCallEnd ( ) { if ( ( -- ( activeCalls ) ) == 0 ) { loading.setVisible ( false ) ; } }

Target:
public void onRpcComplete ( final com.google.gwtjsonrpc.client.RpcCompleteEvent event ) { if ( ( -- ( activeCalls ) ) == 0 ) { loading.setVisible ( false ) ; } }
Source:
public static com.google.gwt.user.client.Element parse ( final com.google.gwtexpui.safehtml.client.SafeHtml str ) { return com.google.gwt.user.client.DOM.getFirstChild ( com.google.gwtexpui.safehtml.client.SafeHtml.set ( com.google.gwt.user.client.DOM.createDiv ( ) , str ) ) ; }

Target:
public static com.google.gwt.dom.client.Element parse ( com.google.gwtexpui.safehtml.client.SafeHtml html ) { com.google.gwt.dom.client.Element e = com.google.gwt.user.client.DOM.createDiv ( ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( e , html ) ; return com.google.gwt.user.client.DOM.getFirstChild ( e ) ; }
Source:
void onIntralineDifference ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.intralineDifference ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.setShowIntraline ( prefs.intralineDifference ( ) ) ; } }

Target:
void onIntralineDifference ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.intralineDifference ( java.lang.Boolean.valueOf ( e.getValue ( ) ) ) ; if ( ( view ) != null ) { view.setShowIntraline ( prefs.intralineDifference ( ) ) ; } }
Source:
public int hashCode ( ) { return ( ( com.google.gerrit.server.query.IntPredicate.getOperator ( ) . hashCode ( ) ) * 31 ) + ( intValue ) ; }

Target:
public int hashCode ( ) { return ( ( com.google.gerrit.index.query.IntPredicate.getOperator ( ) . hashCode ( ) ) * 31 ) + ( intValue ) ; }
Source:
public static void startIndexService ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException { if ( ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo ) != null ) { return ; } com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo = com.google.gerrit.elasticsearch.ElasticTestUtils.startElasticsearchNode ( ) ; com.google.gerrit.elasticsearch.ElasticQueryChangesTest.createIndexes ( ) ; }

Target:
public static void startIndexService ( ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException { if ( ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo ) != null ) { return ; } com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo = com.google.gerrit.elasticsearch.ElasticTestUtils.startElasticsearchNode ( ) ; com.google.gerrit.elasticsearch.ElasticTestUtils.createAllIndexes ( com.google.gerrit.elasticsearch.ElasticQueryChangesTest.nodeInfo ) ; }
Source:
public com.google.gerrit.reviewdb.client.AccountGroup get ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { want ( id ) ; return out.get ( id ) ; }

Target:
public com.google.gerrit.reviewdb.client.AccountGroup get ( final com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { want ( uuid ) ; return out.get ( uuid ) ; }
Source:
public static java.lang.String nameEmail ( final com.google.gerrit.reviewdb.client.Account acct ) { return com.google.gerrit.client.FormatUtil.nameEmail ( new com.google.gerrit.common.data.AccountInfo ( acct ) ) ; }

Target:
public static java.lang.String nameEmail ( com.google.gerrit.reviewdb.client.Account acct ) { return com.google.gerrit.client.FormatUtil.nameEmail ( com.google.gerrit.client.FormatUtil.asInfo ( acct ) ) ; }
Source:
public java.lang.Object getInternalContext ( ) { return self.getInternalContext ( ) ; }

Target:
public void setStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setStatisticsEnabled ( enableStatistics ) ; }
Source:
public void testUpdateNothing ( ) throws com.google.gwtorm.server.OrmException { createClassUnderTest ( ) . update ( noData ) ; }

Target:
public void testUpdateNothing ( ) throws com.google.gwtorm.server.OrmException { classUnderTest.update ( noData ) ; }
Source:
public static void permissions ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "PERMISSIONS" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void permissions ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "PERMISSIONS" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
public static com.google.gerrit.client.info.AccountInfo getUserAccountInfo ( ) { return com.google.gerrit.client.FormatUtil.asInfo ( com.google.gerrit.client.Gerrit.myAccount ) ; }

Target:
public static com.google.gerrit.client.info.AccountPreferencesInfo getUserPreferences ( ) { return com.google.gerrit.client.Gerrit.myPrefs ; }
Source:
private void logError ( java.lang.String msg ) { if ( com.google.gerrit.server.git.MergeSuperSet.log.isErrorEnabled ( ) ) { com.google.gerrit.server.git.MergeSuperSet.log.error ( msg ) ; } }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.git.MergeSuperSet.query ( queryProvider.get ( ) ) . byTopicOpen ( topic ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewInclude ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewInclude ( oracle ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { enableForm ( true ) ; saveDesc.setEnabled ( false ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { enableForm ( true ) ; saveName.setEnabled ( false ) ; saveDesc.setEnabled ( false ) ; display ( result ) ; }
Source:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( getRowItem ( row ) . getId ( ) ) ) ; }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( getRowItem ( row ) . getGroupId ( ) ) ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( get ( ) ) ; cb.onSuccess ( result ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( get ( ) ) ; cb.onSuccess ( result ) ; }
Source:
com.googlesource.gerrit.plugins.replication.Destination create ( com.googlesource.gerrit.plugins.replication.DestinationConfiguration config ) { return new com.googlesource.gerrit.plugins.replication.Destination ( injector , config , replicationUserFactory , pluginUser , gitRepositoryManager , groupBackend , stateLog , groupIncludeCache , eventDispatcher ) ; }

Target:
com.googlesource.gerrit.plugins.replication.Destination create ( com.googlesource.gerrit.plugins.replication.DestinationConfiguration config ) { return new com.googlesource.gerrit.plugins.replication.Destination ( injector , config , replicationUserFactory , pluginUser , gitRepositoryManager , permissionBackend , groupBackend , stateLog , groupIncludeCache , eventDispatcher ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , accountCache , realm , null , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , null , null , id ) ; }
Source:
public com.google.gerrit.extensions.api.projects.DashboardApi defaultDashboard ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return dashboard ( com.google.gerrit.server.project.DashboardsCollection.DEFAULT_DASHBOARD_NAME ) ; }

Target:
public com.google.gerrit.extensions.api.projects.DashboardApi defaultDashboard ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return dashboard ( com.google.gerrit.server.restapi.project.DashboardsCollection.DEFAULT_DASHBOARD_NAME ) ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.reviewdb.Project item ) { com.google.gwt.user.client.History.newItem ( link ( item ) ) ; }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( link ( getRowItem ( row ) ) ) ; }
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > isActive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "1" ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name ) ; }
Source:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , getPaths ( ) . isDev ( ) , false ) ; }

Target:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.gerrit.server.config.CanonicalWebUrl java.lang.String canonicalUrl , @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) throws java.net.URISyntaxException { java.lang.String cdnPath = cfg.getString ( "gerrit" , null , "cdnPath" ) ; return new com.google.gerrit.httpd.raw.IndexServlet ( canonicalUrl , cdnPath ) ; }
Source:
public boolean isUseContentMerge ( ) { return getInheritedBoolean ( new com.google.common.base.Function < com.google.gerrit.reviewdb.client.Project , com.google.gerrit.reviewdb.client.Project.InheritedBoolean > ( ) { @ java.lang.Override public com.google.gerrit.reviewdb.client.Project.InheritedBoolean apply ( com.google.gerrit.reviewdb.client.Project input ) { return input.getUseContentMerge ( ) ; } } ) ; }

Target:
public boolean isUseContentMerge ( ) { return getInheritableBoolean ( new com.google.common.base.Function < com.google.gerrit.reviewdb.client.Project , com.google.gerrit.reviewdb.client.Project.InheritableBoolean > ( ) { @ java.lang.Override public com.google.gerrit.reviewdb.client.Project.InheritableBoolean apply ( com.google.gerrit.reviewdb.client.Project input ) { return input.getUseContentMerge ( ) ; } } ) ; }
Source:
protected void setupSoyContext ( ) { super . setupSoyContext ( ) ; soyContextEmailData.put ( "reviewerNames" , getReviewerNames ( ) ) ; }

Target:
protected void setupSoyContext ( ) { super . setupSoyContext ( ) ; soyContext.put ( "ownerName" , getNameFor ( change.getOwner ( ) ) ) ; soyContextEmailData.put ( "reviewerNames" , getReviewerNames ( ) ) ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT , expectedError ) ; }

Target:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null , true ) ; }
Source:
public com.google.gerrit.server.query.DataSource < com.google.gerrit.server.account.AccountState > getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticAccountIndex.QuerySource ( p , opts ) ; }

Target:
public com.google.gerrit.index.query.DataSource < com.google.gerrit.server.account.AccountState > getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.elasticsearch.ElasticAccountIndex.QuerySource ( p , opts ) ; }
Source:
com.ericsson.gerrit.plugins.syncindex.IndexResponseHandler.IndexResult delete ( java.lang.String endpoint ) throws java.io.IOException { return httpClient.execute ( new org.apache.http.client.methods.HttpDelete ( ( ( url ) + endpoint ) ) , new com.ericsson.gerrit.plugins.syncindex.IndexResponseHandler ( ) ) ; }

Target:
com.ericsson.gerrit.plugins.multimaster.IndexResponseHandler.IndexResult delete ( java.lang.String endpoint ) throws java.io.IOException { return httpClient.execute ( new org.apache.http.client.methods.HttpDelete ( ( ( url ) + endpoint ) ) , new com.ericsson.gerrit.plugins.multimaster.IndexResponseHandler ( ) ) ; }
Source:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; setHasOptionsMenu ( true ) ; com.google.reviewit.util.TaskObserver.enableProgressBar ( getWindow ( ) ) ; init ( ) ; display ( ) ; }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; setTitle ( getString ( R.string.app_menu_review ) ) ; setHasOptionsMenu ( true ) ; com.google.reviewit.util.TaskObserver.enableProgressBar ( getWindow ( ) ) ; init ( ) ; display ( ) ; }
Source:
com.google.gerrit.reviewdb.ProjectAccess projects ( ) ;

Target:
com.google.gerrit.reviewdb.AccountGroupIncludeAccess accountGroupIncludes ( ) ;
Source:
private boolean canUploadMerges ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH_MERGE ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
public void setStatisticsEnabled ( boolean enableStatistics ) { self.setStatisticsEnabled ( enableStatistics ) ; }

Target:
public void setNodeCoherent ( boolean b ) throws java.lang.UnsupportedOperationException { self ( ) . setNodeCoherent ( b ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > memberIn ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > parentGroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;
Source:
private void display ( final com.google.gerrit.client.data.UnifiedPatchDetail detail ) { diffTable.display ( detail.getLines ( ) ) ; }

Target:
private void display ( final com.google.gerrit.client.data.UnifiedPatchDetail detail ) { diffTable.setAccountInfoCache ( detail.getAccounts ( ) ) ; diffTable.display ( detail.getLines ( ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSetApproval > iterateAllEntities ( ) { 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 > iterateAllEntities ( ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void testBadEventAndItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false , false ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; verifyAll ( ) ; }

Target:
public void testBadEventAndItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }
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.lucene.LuceneProjectIndex.QuerySource ( opts , queryBuilder.toQuery ( p ) , new org.apache.lucene.search.Sort ( new org.apache.lucene.search.SortField ( com.google.gerrit.lucene.LuceneProjectIndex.NAME_SORT_FIELD , SortField.Type.STRING , false ) ) ) ; }

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.lucene.LuceneProjectIndex.QuerySource ( opts , queryBuilder.toQuery ( p ) , new org.apache.lucene.search.Sort ( new org.apache.lucene.search.SortField ( com.google.gerrit.lucene.LuceneProjectIndex.NAME_SORT_FIELD , SortField.Type.STRING , false ) ) ) ; }
Source:
public void visit ( org.pegdown.ast.OrderedListNode node ) { wrapChildren ( "ol" , node ) ; }

Target:
public void visit ( org.commonmark.node.IndentedCodeBlock node ) { codeInPre ( null , node.getLiteral ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.com.google.gerrit.client.changes.ChangeInfo result ) { changeInfo = result ; display ( event.getValue ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.change.RelatedChanges.RelatedInfo info ) { if ( ( info.changes ( ) ) != null ) { dependsOn ( info ) ; neededBy ( info ) ; } }
Source:
public void testPushForMasterWithHashtagsNoteDbDisabled ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.enabled ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }

Target:
public void testPushForMasterWithHashtagsNoteDbDisabled ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master%hashtag=tag1" ) ; r.assertErrorStatus ( "cannot add hashtags; noteDb is disabled" ) ; }
Source:
private void assertAccessDenied ( com.google.gerrit.server.project.ProjectControl u ) { boolean access = u.asForProject ( ) . testOrFalse ( ProjectPermission.ACCESS ) ; com.google.common.truth.Truth.assertThat ( access ) . named ( "cannot access" ) . isFalse ( ) ; }

Target:
private void assertCannotRead ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.isVisible ( ) ) . named ( "cannot read" ) . isFalse ( ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ! ( rsrc.getControl ( ) . isOwner ( ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "restricted to project owner" ) ; } return apply ( rsrc.getProjectState ( ) , input ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.permissions.PermissionBackendException { permissionBackend.user ( user ) . project ( rsrc.getNameKey ( ) ) . check ( ProjectPermission.WRITE_CONFIG ) ; return apply ( rsrc.getProjectState ( ) , input ) ; }
Source:
private java.lang.String group ( java.lang.String name ) throws java.lang.Exception { name = name ( name ) ; gApi.groups ( ) . create ( name ) ; return name ; }

Target:
private java.lang.String createGroup ( java.lang.String name ) throws java.lang.Exception { return createGroup ( name , "Administrators" ) ; }
Source:
public void onSubmitComplete ( final com.google.gwt.user.client.ui.FormSubmitCompleteEvent event ) { }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { form.submit ( ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return ctl ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return ctl.getNotes ( ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicItem.bind ( binder ( ) , com.google.gerrit.common.EventDispatcher.class ) . to ( com.ericsson.gerrit.plugins.highavailability.forwarder.ForwardedAwareEventBroker.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicItem.bind ( binder ( ) , com.google.gerrit.server.events.EventDispatcher.class ) . to ( com.ericsson.gerrit.plugins.highavailability.forwarder.ForwardedAwareEventBroker.class ) ; }
Source:
public void run ( ) { cm.setHeight ( height ) ; cm.setOption ( "viewportMargin" , 10 ) ; cm.refresh ( ) ; }

Target:
public void run ( ) { widget.setVisible ( true ) ; }
Source:
com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , db , change.getProject ( ) , change.getId ( ) ) ; }

Target:
com.google.gerrit.server.permissions.ChangeControl controlFor ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , db , change.getProject ( ) , change.getId ( ) ) ; }
Source:
public void run ( ) { com.google.gerrit.pgm.Daemon.log.info ( "caught shutdown, cleaning up" ) ; manager.stop ( ) ; }

Target:
public void run ( ) { com.google.gerrit.pgm.Daemon.log.info ( "caught shutdown, cleaning up" ) ; if ( ( runId ) != null ) { runFile.delete ( ) ; } manager.stop ( ) ; }
Source:
abstract void expandBefore ( int cnt ) ;

Target:
void expandBefore ( int cnt ) { expandSideBefore ( cnt ) ; if ( ( otherBar ) != null ) { otherBar.expandSideBefore ( cnt ) ; } }
Source:
protected void upgradeFrom ( com.google.gerrit.server.schema.UpdateUI ui , com.google.gerrit.reviewdb.CurrentSchemaVersion curr , com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { throw new com.google.gwtorm.client.OrmException ( ( ( ( ( "Cannot upgrade from " + ( curr.versionNbr ) ) + "; manually run scripts from" ) + " http://gerrit.googlecode.com/files/schema-upgrades003_019.zip" ) + " and restart." ) ) ; }

Target:
protected void upgradeFrom ( com.google.gerrit.server.schema.UpdateUI ui , com.google.gerrit.reviewdb.CurrentSchemaVersion curr , com.google.gerrit.reviewdb.ReviewDb db , boolean toTargetVersion ) throws com.google.gwtorm.client.OrmException { throw new com.google.gwtorm.client.OrmException ( ( ( ( ( "Cannot upgrade from " + ( curr.versionNbr ) ) + "; manually run scripts from" ) + " http://gerrit.googlecode.com/files/schema-upgrades003_019.zip" ) + " and restart." ) ) ; }
Source:
public com.google.gerrit.reviewdb.Account getAccount ( ) { return state ( ) . getAccount ( ) ; }

Target:
public com.google.gerrit.reviewdb.Account getAccount ( ) { return getAccountState ( ) . getAccount ( ) ; }
Source:
private boolean canEditSshUserName ( ) { return com.google.gerrit.client.Gerrit.getConfig ( ) . canEdit ( Account.FieldName.SSH_USER_NAME ) ; }

Target:
private boolean canEditSshUserName ( ) { return com.google.gerrit.client.Gerrit.getConfig ( ) . canEdit ( Account.FieldName.USER_NAME ) ; }
Source:
public void putReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer , com.google.gerrit.server.notedb.ReviewerState type ) { com.google.common.base.Preconditions.checkArgument ( ( type != ( ReviewerState.REMOVED ) ) , "invalid ReviewerType" ) ; reviewers.put ( reviewer , type ) ; }

Target:
public void putReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer , com.google.gerrit.server.notedb.ReviewerStateInternal type ) { com.google.common.base.Preconditions.checkArgument ( ( type != ( ReviewerStateInternal.REMOVED ) ) , "invalid ReviewerType" ) ; reviewers.put ( reviewer , type ) ; }
Source:
public void onError ( com.google.gwt.event.dom.client.ErrorEvent event ) { setVisible ( false ) ; }

Target:
public void onLoad ( com.google.gwt.event.dom.client.LoadEvent event ) { setVisible ( true ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.Event event ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.RefEvent event ) { }
Source:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , AsciidocFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_EXT , "adoc" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }

Target:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , AsciidoctorFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_EXT , "adoc" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }
Source:
public com.google.gerrit.extensions.api.changes.SubmittedTogetherInfo submittedTogether ( java.util.EnumSet < com.google.gerrit.extensions.api.changes.SubmittedTogetherOption > options ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return submittedTogether.apply ( change , options ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot query submittedTogether" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return submittedTogether.apply ( change ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot query submittedTogether" , e ) ; } }
Source:
private static com.google.gerrit.common.auth.SignInMode signInMode ( final javax.servlet.http.HttpServletRequest req ) { try { return com.google.gerrit.common.auth.SignInMode.valueOf ( req.getParameter ( com.google.gerrit.httpd.auth.openid.OpenIdServiceImpl.P_MODE ) ) ; } catch ( java.lang.RuntimeException e ) { return com.google.gerrit.common.auth.SignInMode.SIGN_IN ; } }

Target:
private static com.google.gerrit.httpd.auth.openid.SignInMode signInMode ( final javax.servlet.http.HttpServletRequest req ) { try { return com.google.gerrit.httpd.auth.openid.SignInMode.valueOf ( req.getParameter ( com.google.gerrit.httpd.auth.openid.OpenIdServiceImpl.P_MODE ) ) ; } catch ( java.lang.RuntimeException e ) { return SignInMode.SIGN_IN ; } }
Source:
public static boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( GitHubOAuthConfig.OAUTH_LOGIN ) ) >= 0 ; }

Target:
public static boolean isOAuthLogout ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( GitHubOAuthConfig.GERRIT_LOGOUT ) ) >= 0 ; }
Source:
private com.google.gerrit.server.diff.PatchListKey keyFor ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { if ( ( parentNum ) < 0 ) { return com.google.gerrit.server.diff.PatchListKey.againstCommit ( aId , bId , whitespace ) ; } return com.google.gerrit.server.diff.PatchListKey.againstParentNum ( ( ( parentNum ) + 1 ) , bId , whitespace ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey keyFor ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { if ( ( parentNum ) < 0 ) { return com.google.gerrit.server.patch.PatchListKey.againstCommit ( aId , bId , whitespace ) ; } return com.google.gerrit.server.patch.PatchListKey.againstParentNum ( ( ( parentNum ) + 1 ) , bId , whitespace ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setUploader ( com.google.gerrit.reviewdb.client.Account.Id uploader ) { this . uploader = uploader ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setCopyApprovals ( boolean copyApprovals ) { this . copyApprovals = copyApprovals ; return this ; }
Source:
private static boolean isVerified ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId id ) { return "Verified" . equalsIgnoreCase ( id.get ( ) ) ; }

Target:
private static boolean isVerified ( com.google.gerrit.reviewdb.client.LabelId id ) { return "Verified" . equalsIgnoreCase ( id.get ( ) ) ; }
Source:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.apply ( revision , new com.google.gerrit.server.change.Publish.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }

Target:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.apply ( revision , new com.google.gerrit.server.change.PublishDraftPatchSet.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }
Source:
private void reindexChanges ( ) throws java.io.IOException { com.google.gerrit.server.index.ChangeIndexer.allAsList ( indexFutures ) . checkedGet ( ) ; }

Target:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener ) ; }
Source:
protected java.lang.Object serviceHandle ( ) { return this ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return this ; }
Source:
public java.lang.String encode ( final java.lang.String e ) { return fixPathImpl ( com.google.gwt.http.client.URL.encodeComponent ( e ) ) ; }

Target:
public java.lang.String encode ( java.lang.String e ) { e = com.google.gwt.http.client.URL.encodeComponent ( e ) ; e = fixPathImpl ( e ) ; e = fixColonImpl ( e ) ; return e ; }
Source:
public void evict ( java.lang.String username ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( java.lang.String username ) ;
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.actions.ActionInfo > actionMap ) { actionMap.copyKeysIntoChildren ( "id" ) ; renderRevisionInfo ( changeInfo , actionMap ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.info.ActionInfo > actionMap ) { actionMap.copyKeysIntoChildren ( "id" ) ; renderRevisionInfo ( changeInfo , actionMap ) ; }