auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForBatchUpdate ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change ) . load ( ) ; }
Source:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box , com.google.gerrit.common.changes.Side side ) { getPanelFromSide ( side ) . addFileComment ( box ) ; }

Target:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box ) { getPanelFromSide ( box.getSide ( ) ) . addFileComment ( box ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ProjectAccess access ) { enable ( true ) ; commitMessage.setText ( "" ) ; displayReadOnly ( access ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { error.clear ( ) ; enable ( true ) ; super . onFailure ( caught ) ; }
Source:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscriptionCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifestCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TagManifestCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscriptionCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifestCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TagManifestCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TriggerManifestUpdateCommand.class ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commit ( ) throws java.io.IOException { return commit ( com.google.common.base.Preconditions.checkNotNull ( updateFactory , "MetaDataUpdate.Factory" ) . create ( getChange ( ) . getProject ( ) , getUser ( ) ) ) ; }

Target:
public void submit ( java.lang.Iterable < com.google.gerrit.common.data.SubmitRecord > submitRecords ) { status = Change.Status.SUBMITTED ; this . submitRecords = com.google.common.collect.ImmutableList.copyOf ( submitRecords ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( this . submitRecords.isEmpty ( ) ) ) , "no submit records specified at submit time" ) ; }
Source:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( com.google.gerrit.server.index.project.ProjectSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ProjectSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }

Target:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( com.google.gerrit.server.index.project.ProjectSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ProjectSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , com.google.gerrit.server.query.project.LuceneQueryProjectsTest.defaultConfig ( ) ) ; }
Source:
private void exitWhenCancelled ( ) throws com.googlesrouce.gerrit.plugins.github.git.JobCancelledException { if ( cancelRequested ) { throw new com.googlesrouce.gerrit.plugins.github.git.JobCancelledException ( ) ; } }

Target:
private void exitWhenCancelled ( ) throws com.googlesource.gerrit.plugins.github.git.JobCancelledException { if ( cancelRequested ) { throw new com.googlesource.gerrit.plugins.github.git.JobCancelledException ( ) ; } }
Source:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenus ( ) ; }

Target:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
public static java.lang.String escape ( final java.lang.String in ) { return com.google.gerrit.client.ui.DomUtil.INSTANCE.escape ( in ) ; }

Target:
public static java.lang.String escape ( final java.lang.String in ) { return new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) . append ( in ) . asString ( ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.pgm.init.Browser.class ) ; bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.pgm.init.Browser.class ) ; bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; }
Source:
public void merge ( final com.google.gerrit.reviewdb.Branch.NameKey branch ) { if ( start ( branch ) ) { mergeImpl ( branch ) ; } }

Target:
public void merge ( com.google.gerrit.server.git.MergeOp.Factory mof , com.google.gerrit.reviewdb.Branch.NameKey branch ) { if ( start ( branch ) ) { mergeImpl ( mof , branch ) ; } }
Source:
protected abstract com.google.gwtorm.client.ResultSet < T > scanIndex ( com.google.gwtorm.nosql.IndexFunction < T > index , byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;

Target:
protected abstract com.google.gwtorm.client.ResultSet < T > scanIndex ( com.google.gwtorm.nosql.IndexFunction < T > index , byte [ ] fromKey , byte [ ] toKey , int limit , boolean order ) throws com.google.gwtorm.client.OrmException ;
Source:
protected void submitWithConflict ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT ) ; }

Target:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT , expectedError ) ; }
Source:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { if ( ( token ) == null ) { return null ; } return org.kohsuke.github.GitHub.connectUsingOAuth ( config.gitHubApiUrl , token.accessToken ) ; }

Target:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { if ( ( token ) == null ) { return null ; } return new org.kohsuke.github.GitHubBuilder ( ) . withEndpoint ( config.gitHubApiUrl ) . withOAuthToken ( token.accessToken ) . withConnector ( httpConnector ) . build ( ) ; }
Source:
public void removePublisher ( final com.googlesource.gerrit.plugins.rabbitmq.message.Publisher publisher ) { source.removeEventListener ( publisher ) ; }

Target:
public void removePublisher ( final com.googlesource.gerrit.plugins.rabbitmq.message.Publisher publisher ) { source.removeEventListener ( publisher.getEventListener ( ) ) ; }
Source:
private int context ( ) { return settings.getContext ( ) ; }

Target:
void setSettings ( final com.google.gerrit.common.data.PatchScriptSettings s ) { settings = s ; context = settings.getContext ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { commentLinkProcessor = new com.google.gerrit.client.ui.CommentLinkProcessor ( result.commentlinks ( ) ) ; display ( pubDetail ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; display ( pubDetail ) ; }
Source:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInput ( ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = new com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput ( ) ; in.robotId = "happyRobot" ; in.robotRunId = "1" ; in.url = "http://www.happy-robot.com" ; in.line = 1 ; in.message = "nit: trailing whitespace" ; in.path = com.google.gerrit.acceptance.PushOneCommit.FILE_NAME ; return in ; }

Target:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInputWithMandatoryFields ( ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = new com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput ( ) ; in.robotId = "happyRobot" ; in.robotRunId = "1" ; in.line = 1 ; in.message = "nit: trailing whitespace" ; in.path = com.google.gerrit.acceptance.PushOneCommit.FILE_NAME ; return in ; }
Source:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return projectJson.format ( project.getControl ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return projectJson.format ( project.getProjectState ( ) ) ; }
Source:
boolean canAddPatchSet ( ) { return projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ; }

Target:
boolean canAddPatchSet ( ) { return projectControl.controlForRef ( ( ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) + ( refName ) ) ) . canPerform ( Permission.ADD_PATCH_SET ) ; }
Source:
protected void configure ( ) { bind ( new com.google.inject.TypeLiteral < com.google.gerrit.extensions.registration.DynamicSet < com.google.gerrit.server.cache.CacheRemovalListener > > ( ) { } ) . toInstance ( com.google.gerrit.extensions.registration.DynamicSet.< com.google.gerrit.server.cache.CacheRemovalListener > emptySet ( ) ) ; install ( new com.google.gerrit.server.cache.h2.DefaultCacheFactory.Module ( ) ) ; }

Target:
protected java.lang.Class < ? extends com.google.inject.Provider < java.lang.String > > provider ( ) { return com.google.gerrit.server.config.CanonicalWebUrlProvider.class ; }
Source:
com.google.gerrit.server.git.GitModules create ( com.google.gerrit.reviewdb.client.Branch.NameKey project , java.lang.String submissionId ) ;

Target:
com.google.gerrit.server.git.GitModules create ( com.google.gerrit.reviewdb.client.Branch.NameKey project , java.lang.String submissionId , com.google.gerrit.server.git.MergeOpRepoManager m ) ;
Source:
public void abandonReviewableChangeByOtherCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( other ) . notTo ( sc.reviewer , sc.ccer , sc.starrer ) . notTo ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; }

Target:
public void abandonReviewableChangeByOtherCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( other ) . notTo ( sc.reviewer , sc.ccer , sc.starrer ) . notTo ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; }
Source:
abstract void onAllNodesReplicated ( int totalPushTasksCount ) ;

Target:
abstract void onAllRefsReplicatedToAllNodes ( int totalPushTasksCount ) ;
Source:
void onCancel ( ) { }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { removeUI ( ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getChangeUpdate ( ) . setTopic ( magicBranch.topic ) ; }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) { ctx.getUpdate ( psId ) . setTopic ( magicBranch.topic ) ; return true ; }
Source:
public void destroy ( ) { for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { f.destroy ( ) ; } }

Target:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { filterConfig = config ; for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { initFilterIfNeeded ( f ) ; } }
Source:
private static void clearSection ( org.eclipse.jgit.lib.Config cfg , java.lang.String section ) { for ( java.lang.String subsection : cfg.getSubsections ( section ) ) { cfg.unsetSection ( section , subsection ) ; } }

Target:
public abstract java.lang.String filter ( ) ;
Source:
public boolean isOwner ( ) { return ( controlForRef ( AccessSection.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( isDeclaredOwner ( ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( null , newId , ws ) ; }

Target:
public static com.google.gerrit.server.patch.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( null , newId , ws , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
com.google.gerrit.sshd.SshScope.Context newContext ( com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > sf , com.google.gerrit.sshd.SshSession s , java.lang.String cmd ) { return new com.google.gerrit.sshd.SshScope.Context ( sf , s , cmd , com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ; }

Target:
com.google.gerrit.sshd.SshScope.Context newContext ( com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > sf , com.google.gerrit.sshd.SshSession s , java.lang.String cmd ) { return new com.google.gerrit.sshd.SshScope.Context ( sf , s , cmd , com.google.gerrit.common.TimeUtil.nowMs ( ) ) ; }
Source:
private com.google.inject.Injector createSshInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( new com.google.gerrit.sshd.SshModule ( ) ) ; modules.add ( new com.google.gerrit.sshd.commands.MasterCommandModule ( ) ) ; return sysInjector.createChildInjector ( modules ) ; }

Target:
private com.google.inject.Injector createSshInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( sysInjector.getInstance ( com.google.gerrit.sshd.SshModule.class ) ) ; modules.add ( new com.google.gerrit.sshd.commands.MasterCommandModule ( ) ) ; return sysInjector.createChildInjector ( modules ) ; }
Source:
protected com.google.gerrit.extensions.common.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.extensions.client.ListChangesOption ... options ) throws java.io.IOException { return getChange ( admin , changeId , options ) ; }

Target:
protected org.eclipse.jgit.api.Git git ( ) { return testRepo.git ( ) ; }
Source:
private static com.google.gerrit.reviewdb.server.ReviewDb unwrap ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper ) { db = ( ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper ) ( db ) ) . unsafeGetDelegate ( ) ; } return db ; }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( ( ( requestId ) != null ) && ( com.google.gerrit.server.git.BatchUpdate.log.isDebugEnabled ( ) ) ) { com.google.gerrit.server.git.BatchUpdate.log.debug ( ( ( requestId ) + msg ) , args ) ; } }
Source:
public void start ( ) { if ( ( listeners ) == null ) { listeners = all ( ) ; for ( com.google.gerrit.lifecycle.LifecycleListener obj : listeners ) { obj.start ( ) ; } } }

Target:
public void start ( ) { if ( ! ( started ) ) { started = true ; for ( com.google.gerrit.lifecycle.LifecycleListener obj : listeners.keySet ( ) ) { obj.start ( ) ; } } }
Source:
boolean isDisabled ( ) { return ( getPermittedLimit ( ) ) <= 0 ; }

Target:
boolean isDisabled ( ) { return ( permittedLimit ) <= 0 ; }
Source:
protected PushOneCommit.Result createChange ( org.eclipse.jgit.api.Git git ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }

Target:
protected PushOneCommit.Result createChange ( org.eclipse.jgit.api.Git git ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }
Source:
private com.google.gerrit.server.permissions.ProjectControl user ( com.google.gerrit.server.git.ProjectConfig local , com.google.gerrit.reviewdb.client.AccountGroup ... memberOf ) { return user ( local , null , memberOf ) ; }

Target:
private com.google.gerrit.server.permissions.ProjectControl user ( com.google.gerrit.server.project.ProjectConfig local , com.google.gerrit.reviewdb.client.AccountGroup ... memberOf ) { return user ( local , null , memberOf ) ; }
Source:
private java.lang.String newChange2 ( 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 , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private static byte [ ] toBytes ( com.google.gerrit.extensions.restapi.BinaryResult content ) throws java.lang.Exception { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; content.writeTo ( os ) ; return os.toByteArray ( ) ; }
Source:
public int nextAccountGroupId ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public int nextAccountGroupId ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public java.lang.String getUserName ( ) { return state ( ) . getUserName ( ) ; }

Target:
public java.lang.String getUserName ( ) { return getAccountState ( ) . getUserName ( ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return session.get ( ) . getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return session.get ( ) . getUser ( ) ; }
Source:
private void subSecondResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( 100 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }

Target:
private void subWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.project.FileResource ( parent.getNameKey ( ) , parent.getRef ( ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.project.FileResource ( parent.getControl ( ) , org.eclipse.jgit.lib.ObjectId.fromString ( parent.getRevision ( ) ) , id.get ( ) ) ; }
Source:
public Project.NameKey getProject ( ) { return project.getNameKey ( ) ; }

Target:
public com.google.gerrit.server.project.ProjectControl getProject ( ) { return project.getControl ( ) ; }
Source:
private boolean getSslVerify ( ) { return gerritConfig.getBoolean ( com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.ITS_NAME_RTC , null , com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.GERRIT_CONFIG_SSL_VERIFY , true ) ; }

Target:
private boolean getSslVerify ( ) { return gerritConfig.getBoolean ( pluginName , null , com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.GERRIT_CONFIG_SSL_VERIFY , true ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendText ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }
Source:
public void run ( ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "<PageUp>" ) ; }

Target:
public void run ( ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "<C-u>" ) ; }
Source:
java.lang.String getTag ( ) { return getLast ( ) . tag ; }

Target:
java.lang.String getTag ( ) { for ( E e : com.google.common.collect.Lists.reverse ( list ) ) { if ( ( e.tag ) != null ) { return e.tag ; } } return null ; }
Source:
public void newPatchSetByOtherOnReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.NEW_PATCHSETS ) ; pushTo ( sc , "refs/for/master%notify=NONE" , other ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetOnWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; pushTo ( sc , "refs/for/master%wip" , sc.owner ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return get ( r.getChangeId ( ) , ListChangesOption.LABELS , ListChangesOption.DETAILED_LABELS ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( java.lang.String changeId ) throws java.lang.Exception { return get ( changeId , com.google.gerrit.extensions.client.ListChangesOption.LABELS , com.google.gerrit.extensions.client.ListChangesOption.DETAILED_LABELS , com.google.gerrit.extensions.client.ListChangesOption.SUBMITTABLE ) ; }
Source:
void onRefReplicatedToAllNodes ( java.lang.String project , java.lang.String ref , int nodesCount ) { com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent event = new com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent ( project , ref , nodesCount ) ; postEvent ( project , ref , event ) ; }

Target:
void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status , org.eclipse.jgit.transport.RemoteRefUpdate.Status refStatus ) { postEvent ( new com.googlesource.gerrit.plugins.replication.RefReplicatedEvent ( project , ref , com.googlesource.gerrit.plugins.replication.PushResultProcessing.resolveNodeName ( uri ) , status , refStatus ) ) ; }
Source:
private com.google.gerrit.server.change.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.server.change.ApprovalInfo ai = new com.google.gerrit.server.change.ApprovalInfo ( id ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }

Target:
private com.google.gerrit.server.change.ChangeJson.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai = new com.google.gerrit.server.change.ChangeJson.ApprovalInfo ( id ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }
Source:
public void addGroupMember ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.Account.Id accountId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { addGroupMembers ( db , groupId , com.google.common.collect.ImmutableSet.of ( accountId ) ) ; }

Target:
private void setCommitterIdent ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.IdentifiedUser currentUser ) { if ( currentUser != null ) { committerIdent = com.google.gerrit.server.group.GroupsUpdate.createPersonIdent ( serverIdent , currentUser ) ; } else { committerIdent = serverIdent ; } }
Source:
public static com.google.gerrit.server.index.IndexConfig fromConfig ( org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.create ( cfg.getInt ( "index" , null , "maxLimit" , java.lang.Integer.MAX_VALUE ) ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig fromConfig ( org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.index.IndexConfig.create ( cfg.getInt ( "index" , null , "maxLimit" , 0 ) , cfg.getInt ( "index" , null , "maxPages" , 0 ) ) ; }
Source:
com.google.gerrit.server.CurrentUser provideCurrentUser ( com.google.gerrit.server.util.RequestContext ctx ) { return ctx.getCurrentUser ( ) ; }

Target:
com.google.gerrit.server.CurrentUser provideCurrentUser ( com.google.gerrit.server.util.RequestContext ctx ) { return ctx.getUser ( ) ; }
Source:
private void assertBadRequest ( com.google.gerrit.extensions.api.projects.Projects.ListRequest req ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.BadRequestException.class ) ; req.get ( ) ; }

Target:
private void assertBadRequest ( com.google.gerrit.extensions.api.projects.Projects.ListRequest req ) throws java.lang.Exception { try { req.get ( ) ; org.junit.Assert.fail ( "Expected BadRequestException" ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException expected ) { } }
Source:
private void doQuery ( ) { com.google.gerrit.client.rpc.RestApi call = new com.google.gerrit.client.rpc.RestApi ( com.google.gerrit.client.documentation.DocScreen.URI ) ; call.addParameterRaw ( "q" , com.google.gwtorm.client.KeyUtil.encode ( query ) ) ; call.get ( loadCallback ( ) ) ; }

Target:
private void doQuery ( ) { com.google.gerrit.client.rpc.RestApi call = new com.google.gerrit.client.rpc.RestApi ( "Documentation" ) ; call.addParameterRaw ( "q" , com.google.gwtorm.client.KeyUtil.encode ( query ) ) ; call.get ( loadCallback ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { send.setEnabled ( true ) ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; displayScreen ( ) ; }
Source:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig ) ) ; }

Target:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig , notesMigration ) ) ; }
Source:
public void evictAll ( ) { byName.removeAll ( ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.reviewdb.Project.NameKey > all ( ) { return list.get ( com.google.gerrit.server.project.ProjectCacheImpl.ListKey.ALL ) ; }
Source:
private final native void setIgnoreWhitespaceRaw ( java.lang.String i ) ;

Target:
private native void setThemeRaw ( java.lang.String i ) ;
Source:
protected void expand ( final com.google.gerrit.client.ui.ComplexDisclosurePanel w ) { w.setOpen ( open ) ; }

Target:
protected void expand ( final com.google.gerrit.client.ui.CommentPanel w ) { w.setOpen ( open ) ; }
Source:
public static java.lang.String toAccountGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return "admin,group," + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return "/admin/groups/" + ( id.toString ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { l.setVisible ( false ) ; edit.setVisible ( false ) ; input.setVisible ( true ) ; save.setVisible ( true ) ; cancel.setVisible ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { }
Source:
public com.google.gerrit.server.account.AccountState get ( final com.google.gerrit.reviewdb.Account.Id accountId ) { return byId.get ( accountId ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < com.google.gerrit.reviewdb.Account > getAccount ( com.google.gerrit.reviewdb.Account.Id accountId ) { return com.google.common.util.concurrent.Futures.compose ( get ( accountId ) , AccountState.GET_ACCOUNT ) ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) ;

Target:
com.google.gerrit.server.project.ChangeControl createForIndexedChange ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) { return create ( refControl , notesFactory.createFromIndexedChange ( change ) ) ; }
Source:
public static com.google.gerrit.common.data.GerritConfig getConfig ( ) { return com.google.gerrit.client.Gerrit.myConfig ; }

Target:
public void onResponseReceived ( com.google.gwt.http.client.Request req , com.google.gwt.http.client.Response resp ) { if ( ( resp.getStatusCode ( ) ) == ( com.google.gwt.http.client.Response.SC_OK ) ) { cb.onSuccess ( com.google.gerrit.client.documentation.DocInfo.create ( ) ) ; } else { cb.onSuccess ( null ) ; } }
Source:
public int compare ( com.google.gerrit.client.account.GpgKeyInfo a , com.google.gerrit.client.account.GpgKeyInfo b ) { return a.id ( ) . compareTo ( b.id ( ) ) ; }

Target:
public int compare ( com.google.gerrit.client.info.GpgKeyInfo a , com.google.gerrit.client.info.GpgKeyInfo b ) { return a.id ( ) . compareTo ( b.id ( ) ) ; }
Source:
protected org.eclipse.jgit.revwalk.RevCommit getRemoteHead ( ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return getHead ( repo , "refs/heads/master" ) ; } }

Target:
protected org.eclipse.jgit.revwalk.RevCommit getRemoteHead ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String branch ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return getHead ( repo , ( "refs/heads/" + branch ) ) ; } }
Source:
public void removeAll ( ) { self.removeAll ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( K key , V value ) { return self.putAsync ( key , value ) ; }
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 void close ( ) { rs.close ( ) ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { final int sel = ws.getSelectedIndex ( ) ; if ( 0 <= sel ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.valueOf ( ws.getValue ( sel ) ) ) ; refresh ( false ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { setReviewedByCurrentUser ( event.getValue ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.reviewdb.client.Account result ) { if ( ! ( isAttached ( ) ) ) { return ; } display ( com.google.gerrit.client.FormatUtil.asInfo ( result ) ) ; haveAccount = true ; postLoad ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { nameTxt.setText ( result.asString ( ) ) ; haveAccount = true ; }
Source:
public final native boolean has_permitted_labels ( ) ;

Target:
public final native boolean hasPermittedLabels ( ) ;
Source:
protected void configure ( ) { factory ( ReviewerResource.Factory.class ) ; factory ( AccountInfo.Loader.Factory.class ) ; factory ( EmailReviewComments.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ReviewerResource.Factory.class ) ; factory ( AccountInfo.Loader.Factory.class ) ; factory ( EmailReviewComments.Factory.class ) ; factory ( PatchSetInserter.Factory.class ) ; }
Source:
void unset ( java.lang.String section , java.lang.String subsection , java.lang.String name ) ;

Target:
public abstract java.lang.String [ ] getList ( java.lang.String section , java.lang.String subsection , java.lang.String name ) ;
Source:
com.google.common.util.concurrent.ListenableFuture < ? > insert ( org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.addDocument ( doc ) ) ; }

Target:
public java.lang.Long call ( ) throws java.io.IOException , java.lang.InterruptedException { return writer.addDocument ( doc ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = com.google.gerrit.server.git.SignedPushModule.isEnabled ( cfg ) ; return info ; }

Target:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = com.google.gerrit.server.git.gpg.SignedPushModule.isEnabled ( cfg ) ; return info ; }
Source:
public void logout ( ) { if ( ( val ) != null ) { manager.destroy ( key ) ; key = null ; val = null ; saveCookie ( ) ; } }

Target:
public void logout ( ) { if ( ( val ) != null ) { manager.destroy ( key ) ; key = null ; val = null ; saveCookie ( ) ; user = anonymousProvider.get ( ) ; } }
Source:
void setPreferred ( boolean preferred ) { this . preferred = ( preferred ) ? true : null ; }

Target:
void preferred ( java.lang.String e ) { this . preferred = ( ( e != null ) && ( e.equals ( email ) ) ) ? true : null ; }
Source:
public boolean isVisible ( ) { return ( group.isVisibleToAll ( ) ) || ( isOwner ( ) ) ; }

Target:
private boolean canSeeMembers ( ) { return ( group.isVisibleToAll ( ) ) || ( isOwner ( ) ) ; }
Source:
public static void submit ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.SubmitInfo > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "submit" ) . post ( in , cb ) ; }

Target:
public static void rebaseEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:rebase" ) . post ( in , cb ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.AccountGroup group ) { return group.getName ( ) . regionMatches ( true , 0 , name , 0 , name.length ( ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.AccountGroup group ) { return ( group.getName ( ) . regionMatches ( true , 0 , name , 0 , name.length ( ) ) ) && ( groupControlFactory.controlFor ( group ) . isVisible ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onGutterClick ( cmLine ) ; }

Target:
void setLineNumberEmpty ( com.google.gerrit.client.diff.DisplaySide side , int cmLine ) { setLineNumber ( side , cmLine , "&nbsp;" , UnifiedTable.style.unifiedLineNumberEmpty ( ) ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHUser getOwner ( ) throws java.io.IOException { return ghRepository.getOwner ( ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHUser getOwner ( ) throws java.io.IOException { return ghRepository.getOwner ( ) ; }
Source:
public boolean yesno ( java.lang.String fmt , java.lang.Object ... args ) { return true ; }

Target:
public boolean yesno ( java.lang.Boolean def , java.lang.String fmt , java.lang.Object ... args ) { return def != null ? def : true ; }
Source:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted ) ;

Target:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , com.google.gerrit.server.git.MergeTip mergeTip , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted , java.lang.String submissionId ) ;
Source:
public static synchronized void resetWithClockStep ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.gerrit.testutil.TestTimeUtil.clockMs = new java.util.concurrent.atomic.AtomicLong ( com.google.gerrit.testutil.TestTimeUtil.START.getMillis ( ) ) ; com.google.gerrit.testutil.TestTimeUtil.setClockStep ( clockStep , clockStepUnit ) ; }

Target:
public static synchronized void resetWithClockStep ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.gerrit.testutil.TestTimeUtil.clockMs = new java.util.concurrent.atomic.AtomicLong ( com.google.gerrit.testutil.TestTimeUtil.START.toEpochMilli ( ) ) ; com.google.gerrit.testutil.TestTimeUtil.setClockStep ( clockStep , clockStepUnit ) ; }
Source:
public void flush ( ) throws java.lang.IllegalStateException , net.sf.ehcache.CacheException { self.flush ( ) ; }

Target:
public com.google.gerrit.server.patch.DiffCacheContent get ( final com.google.gerrit.server.patch.DiffCacheKey key ) { return self.get ( key ) ; }
Source:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; bind ( com.googlesource.gerrit.plugins.manager.repository.PluginsRepository.class ) . to ( com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }

Target:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*plugin-manager\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }
Source:
public java.nio.file.FileSystem createFileSystem ( org.apache.sshd.common.Session session ) throws java.io.IOException { return java.nio.file.FileSystems.getDefault ( ) ; }

Target:
public org.apache.sshd.common.file.FileSystemView getNormalizedView ( ) { return this ; }
Source:
public java.lang.Long apply ( org.eclipse.jgit.lib.Ref ref ) { try { return timeCache.getTime ( walk , ref.getObjectId ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.common.util.concurrent.UncheckedExecutionException ( e ) ; } }

Target:
private static < T > java.util.List < T > trim ( java.util.List < T > list ) { return ( list.size ( ) ) > ( com.google.gitiles.RepositoryIndexServlet.REF_LIMIT ) ? list.subList ( 0 , com.google.gitiles.RepositoryIndexServlet.REF_LIMIT ) : list ; }
Source:
public com.google.gerrit.pgm.init.Section get ( java.lang.String name ) { return new com.google.gerrit.pgm.init.Section ( flags , site , ui , name ) ; }

Target:
public com.google.gerrit.pgm.init.Section get ( java.lang.String name , java.lang.String subsection ) { return new com.google.gerrit.pgm.init.Section ( flags , site , ui , name , subsection ) ; }
Source:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setSampledStatisticsEnabled ( enableStatistics ) ; }

Target:
public net.sf.ehcache.statistics.LiveCacheStatistics getLiveCacheStatistics ( ) throws java.lang.IllegalStateException { return self.getLiveCacheStatistics ( ) ; }
Source:
abstract java.lang.Long timeoutMs ( ) ;

Target:
abstract java.time.Duration timeout ( ) ;
Source:
private final native boolean get ( java.lang.String n , boolean d ) ;

Target:
public final native boolean syntaxHighlighting ( ) ;
Source:
public static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( java.nio.charset.StandardCharsets.US_ASCII.name ( ) ) ; }

Target:
public static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( java.nio.charset.StandardCharsets.US_ASCII.name ( ) ) . trim ( ) ; }
Source:
public long getLong ( java.lang.String name , long defaultValue ) { return getValue ( name , new com.google.common.base.Function < java.lang.String , java.lang.Long > ( ) { @ java.lang.Override public java.lang.Long apply ( java.lang.String stringVal ) { return java.lang.Long.parseLong ( stringVal ) ; } } , defaultValue ) ; }

Target:
public long getLong ( java.lang.String name , long defaultValue ) { return cfg.getLong ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name , defaultValue ) ; }
Source:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , expectedStatus ) ; }

Target:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , false , expectedStatus ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , select ( ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( id ) : new com.google.gerrit.client.diff.SideBySide2 ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }
Source:
void onHeaderClick ( com.google.gwt.event.dom.client.ClickEvent e ) { setOpen ( ( ! ( isOpen ( ) ) ) ) ; }

Target:
void onHeaderClick ( com.google.gwt.event.dom.client.ClickEvent e ) { setOpen ( ( ! ( isOpen ( ) ) ) ) ; cm.focus ( ) ; }
Source:
public void deleteExternalIds ( java.util.List < java.lang.String > externalIds ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteExternalIds.apply ( account , externalIds ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete external IDs" , e ) ; } }

Target:
public void deleteExternalIds ( java.util.List < java.lang.String > externalIds ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteExternalIds.apply ( account , externalIds ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete external IDs" , e ) ; } }
Source:
public java.lang.String getRepository ( ) { return gitHubRepository.getRepository ( ) ; }

Target:
public java.lang.String getRepositoryName ( ) { return gitHubRepository.getRepository ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
public org.apache.sshd.common.file.FileSystemView createFileSystemView ( org.apache.sshd.common.Session session ) throws java.io.IOException { return new org.apache.sshd.common.file.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( org.apache.sshd.common.file.SshFile baseDir , java.lang.String file ) { return null ; } @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( java.lang.String file ) { return null ; } } ; }

Target:
public org.apache.sshd.common.file.FileSystemView getNormalizedView ( ) { return null ; }
Source:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }

Target:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInput content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }