auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void visit ( org.pegdown.ast.ListItemNode node ) { wrapChildren ( "li" , node ) ; }

Target:
public void visit ( org.commonmark.node.FencedCodeBlock node ) { codeInPre ( node.getInfo ( ) , node.getLiteral ( ) ) ; }
Source:
public static void display ( final com.google.gerrit.client.ui.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { }
Source:
private E getLast ( ) { return get ( ( ( size ( ) ) - 1 ) ) ; }

Target:
public java.util.Iterator < E > iterator ( ) { return list.iterator ( ) ; }
Source:
private final native void setThemeRaw ( java.lang.String i ) ;

Target:
public final native void indentUnit ( int c ) ;
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "Cannot delete tag" ) ; tag ( ) . delete ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; tag ( ) . delete ( ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > get ( java.lang.String username ) { return cache.get ( username ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > get ( java.lang.String username ) { return cache.get ( username ) . getSshKeyCacheEntries ( ) ; }
Source:
com.google.gerrit.server.permissions.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.permissions.ProjectControl r = new com.google.gerrit.server.permissions.ProjectControl ( uploadGroups , receiveGroups , permissionFilter , changeControlFactory , permissionBackend , who , state ) ; r.allSections = allSections ; return r ; }

Target:
com.google.gerrit.server.permissions.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.permissions.ProjectControl r = new com.google.gerrit.server.permissions.ProjectControl ( uploadGroups , receiveGroups , permissionFilter , changeControlFactory , permissionBackend , refFilterFactory , who , state ) ; r.allSections = allSections ; return r ; }
Source:
public void testPushForMaster ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }

Target:
private void testPushForMaster ( com.google.gerrit.acceptance.git.PushForReviewIT.Protocol p ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { selectProtocol ( p ) ; com.google.gerrit.acceptance.git.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }
Source:
private static java.lang.StringBuilder buildRefsPrefix ( java.lang.String prefix , int id ) { java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( prefix ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.shard ( id ) ) ; r.append ( '/' ) ; return r ; }

Target:
public static java.lang.String shard ( int id ) { if ( id < 0 ) { return null ; } return com.google.gerrit.reviewdb.client.RefNames.shard ( id , com.google.gerrit.reviewdb.client.RefNames.newStringBuilder ( ) ) . toString ( ) ; }
Source:
public java.lang.String getEncodedKey ( ) { return getPublicKeyPart ( 1 , null ) ; }

Target:
public java.lang.String encodedKey ( ) { return publicKeyPart ( 1 , null ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , revision , fileName , side , line ) ; }

Target:
public static java.lang.String toPatch ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , side , line ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { this . onFailure ( caught ) ; }

Target:
private void checkFinalAdded ( ) { if ( finalAdded ) { throw new java.lang.IllegalStateException ( "final callback already added" ) ; } }
Source:
public com.google.gerrit.server.index.ChangeIndex getWriteIndex ( int version ) { return writeIndexes.get ( version ) ; }

Target:
public com.google.gerrit.server.index.ChangeIndex getWriteIndex ( int version ) { for ( com.google.gerrit.server.index.ChangeIndex i : writeIndexes ) { if ( ( i.getSchema ( ) . getVersion ( ) ) == version ) { return i ; } } return null ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draft ( com.google.gerrit.reviewdb.Change.Id id , java.lang.String file , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draftByChangeFile ( com.google.gerrit.reviewdb.Change.Id id , java.lang.String file , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;
Source:
static void publish ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.publish ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id , draftButtons ) ) ; }

Target:
static void publish ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.publish ( id.get ( ) , revision , com.google.gerrit.client.change.ChangeActions.cs ( id , draftButtons ) ) ; }
Source:
com.google.gerrit.server.patch.PatchScriptFactory create ( com.google.gerrit.server.project.ChangeControl control , java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "patchSetA" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetA , @ com.google.inject.assistedinject.Assisted ( value = "patchSetB" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetB , com.google.gerrit.extensions.client.DiffPreferencesInfo diffPrefs ) ;

Target:
com.google.gerrit.server.patch.PatchScriptFactory create ( com.google.gerrit.server.notedb.ChangeNotes notes , java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "patchSetA" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetA , @ com.google.inject.assistedinject.Assisted ( value = "patchSetB" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetB , com.google.gerrit.extensions.client.DiffPreferencesInfo diffPrefs ) ;
Source:
public void setUp ( ) { checker = new com.google.gerrit.server.git.gpg.PublicKeyChecker ( ) ; }

Target:
public void setUp ( ) { checker = new com.google.gerrit.gpg.PublicKeyChecker ( ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.complementOf ( java.util.EnumSet.of ( ListChangesOption.CHECK ) ) ) ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.complementOf ( java.util.EnumSet.of ( ListChangesOption.CHECK , ListChangesOption.SKIP_MERGEABLE ) ) ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setSendMail ( boolean sendMail ) { this . sendMail = sendMail ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setNotify ( com.google.gerrit.extensions.api.changes.NotifyHandling notify ) { this . notify = notify ; return this ; }
Source:
void sendAsync ( ) { sendEmailsExecutor.submit ( this ) ; }

Target:
void sendAsync ( ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = sendEmailsExecutor.submit ( this ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { if ( callback != null ) { callback.onSuccess ( result ) ; } hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { buttonClicked = true ; if ( callback != null ) { callback.onSuccess ( result ) ; } hide ( ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { addTxt.setText ( "" ) ; addTxt.setFocus ( true ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { addTxt.setText ( "" ) ; addTxt.setFocus ( true ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return controlFor ( project ) . isVisible ( ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( projectControl.isVisible ( ) ) && ( ( PushOne.ALL_REFS.equals ( ref ) ) || ( projectControl.controlForRef ( ref ) . isVisible ( ) ) ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.acceptance.TestAccount in ) { return in.fullName ; }

Target:
public static com.google.common.collect.FluentIterable < java.lang.String > names ( java.lang.Iterable < com.google.gerrit.acceptance.TestAccount > accounts ) { return com.google.common.collect.FluentIterable.from ( accounts ) . transform ( ( a ) -> a.fullName ) ; }
Source:
private java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( req.getCharacterEncoding ( ) , "UTF-8" ) ; }

Target:
private java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( req.getCharacterEncoding ( ) , java.nio.charset.StandardCharsets.UTF_8.name ( ) ) ; }
Source:
private com.google.gerrit.extensions.common.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.lang.String tag , java.sql.Timestamp date ) { com.google.gerrit.extensions.common.ApprovalInfo ai = com.google.gerrit.server.change.ChangeJson.getApprovalInfo ( id , value , tag , date ) ; accountLoader.put ( ai ) ; return ai ; }

Target:
private com.google.gerrit.extensions.common.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , com.google.gerrit.extensions.common.VotingRangeInfo permittedVotingRange , java.lang.String tag , java.sql.Timestamp date ) { com.google.gerrit.extensions.common.ApprovalInfo ai = com.google.gerrit.server.change.ChangeJson.getApprovalInfo ( id , value , permittedVotingRange , tag , date ) ; accountLoader.put ( ai ) ; return ai ; }
Source:
public org.eclipse.jgit.lib.ObjectReader newReader ( ) { return repo.newObjectReader ( ) ; }

Target:
public org.eclipse.jgit.merge.ThreeWayMerger newThreeWayMerger ( final org.eclipse.jgit.lib.Repository repo , final org.eclipse.jgit.lib.ObjectInserter inserter ) { return com.google.gerrit.server.git.MergeUtil.newThreeWayMerger ( repo , inserter , mergeStrategyName ( ) ) ; }
Source:
public java.lang.String getHostName ( javax.servlet.http.HttpServletRequest req ) { return "test-host" ; }

Target:
public java.lang.String getHostName ( javax.servlet.http.HttpServletRequest req ) { return com.google.gitiles.TestGitilesUrls.HOST_NAME ; }
Source:
private static void logAndThrowSubmoduleException ( final java.lang.String errorMsg , final java.lang.Exception e ) throws com.google.gerrit.server.git.SubmoduleException { com.google.gerrit.server.git.SubmoduleOp.log.error ( errorMsg , e ) ; throw new com.google.gerrit.server.git.SubmoduleException ( errorMsg , e ) ; }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.SubmoduleOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.SubmoduleOp.log.debug ( ( ( ( "[" + ( orm.getSubmissionId ( ) ) ) + "]" ) + msg ) , args ) ; } }
Source:
public final native void setActiveLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;

Target:
public final native net.codemirror.lib.CodeMirror.LineHandle activeLine ( ) ;
Source:
public static void deleteDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . delete ( cb ) ; }

Target:
public static void updateDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , 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.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }
Source:
public com.google.gerrit.extensions.client.EditPreferencesInfo getEditPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getEditPreferences.apply ( account ) ; } catch ( java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot query edit preferences" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.EditPreferencesInfo getEditPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getEditPreferences.apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot query edit preferences" , e ) ; } }
Source:
private static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; }

Target:
private void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( org.eclipse.jgit.transport.ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; commandProgress.update ( 1 ) ; }
Source:
public final native void setOldViewportSize ( int lines ) ;

Target:
public void handle ( net.codemirror.lib.CodeMirror instance , int line , java.lang.String gutter , com.google.gwt.event.dom.client.MouseDownEvent clickEvent ) ;
Source:
private int getRandomExecutionDelay ( com.googlesrouce.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( config.jobExecTimeout ) ; }

Target:
private int getRandomExecutionDelay ( com.googlesource.gerrit.plugins.github.git.GitJob job ) { java.util.Random rnd = new java.util.Random ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( job.hashCode ( ) ) ) ) ; return rnd.nextInt ( config.jobExecTimeout ) ; }
Source:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; useFlashClipboard.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }

Target:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; useFlashClipboard.setEnabled ( on ) ; maximumPageSize.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }
Source:
protected void preDisplay ( java.lang.String content ) { initEditor ( content ) ; }

Target:
public void onFailure ( java.lang.Throwable e ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( e ) ) { content = null ; modeCallback.onSuccess ( null ) ; } else { com.google.gerrit.client.rpc.GerritCallback.showFailure ( e ) ; } }
Source:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( com.google.common.collect.ImmutableList.of ( pred , new com.google.gerrit.server.query.change.IsVisibleToPredicate ( db , notesFactory , changeControlFactory , userProvider.get ( ) ) ) , start ) ; }

Target:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( pred , new com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate ( db , notesFactory , changeControlFactory , userProvider.get ( ) ) , start ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { changeId = ( ( com.google.gerrit.client.changes.ChangeScreen ) ( newScreen ) ) . changeId ; return this ; }

Target:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.ChangeScreen s = ( ( com.google.gerrit.client.changes.ChangeScreen ) ( newScreen ) ) ; changeId = s.changeId ; changeInfo = s.changeInfo ; return this ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { delete ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public final boolean requireXsrfValid ( ) { if ( isXsrfValid ( ) ) { return true ; } else { onFailure ( new java.lang.Exception ( com.google.gwtjsonrpc.client.JsonUtil.ERROR_INVALID_XSRF ) ) ; return false ; } }

Target:
public final boolean requireXsrfValid ( ) { if ( isXsrfValid ( ) ) { return true ; } else { onFailure ( new java.lang.Exception ( com.google.gwtjsonrpc.common.JsonConstants.ERROR_INVALID_XSRF ) ) ; return false ; } }
Source:
private java.lang.String expand ( com.google.gerrit.common.data.ParameterizedString parameterizedRef , java.lang.String userName ) { return parameterizedRef.replace ( java.util.Collections.singletonMap ( "username" , userName ) ) ; }

Target:
private java.lang.String expand ( com.google.gerrit.common.data.ParameterizedString parameterizedRef , java.lang.String userName ) { return parameterizedRef.replace ( java.util.Collections.singletonMap ( RefPattern.USERNAME , userName ) ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( com.google.gerrit.server.config.JGitWindowCacheConfiguration.class ) ; listener ( ) . to ( com.google.gerrit.server.cache.CachePool.class ) ; listener ( ) . to ( com.google.gerrit.server.git.WorkQueue.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( GitRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; }
Source:
private com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > submit ( java.util.concurrent.Callable < ? > task ) { return com.google.common.util.concurrent.Futures.makeChecked ( executor.submit ( task ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }

Target:
private com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > submit ( java.util.concurrent.Callable < ? > task ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }
Source:
public java.lang.String getShortName ( ) { final java.lang.String n = get ( ) ; if ( n.startsWith ( com.google.gerrit.reviewdb.client.Branch.R_HEADS ) ) { return n.substring ( com.google.gerrit.reviewdb.client.Branch.R_HEADS.length ( ) ) ; } return n ; }

Target:
public java.lang.String getShortName ( ) { return com.google.gerrit.reviewdb.client.RefNames.shortName ( get ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( this ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( line , aligned ) ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { blurHint ( ) ; }

Target:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { setFocus ( false ) ; }
Source:
com.google.gerrit.httpd.rpc.changedetail.PatchSetDetailFactory create ( com.google.gerrit.reviewdb.PatchSet.Id id ) ;

Target:
com.google.gerrit.httpd.rpc.changedetail.PatchSetDetailFactory create ( @ com.google.inject.assistedinject.Assisted ( value = "psIdNew" ) com.google.gerrit.reviewdb.PatchSet.Id psIdA , @ com.google.inject.assistedinject.Assisted ( value = "psIdOld" ) com.google.gerrit.reviewdb.PatchSet.Id psIdB , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs ) ;
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" , com.google.gerrit.server.query.project.LuceneQueryProjectsTest.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.index.project.ProjectSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ProjectSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , com.google.gerrit.server.query.project.LuceneQueryProjectsTest.defaultConfig ( ) ) ; }
Source:
public int compare ( final com.google.gerrit.server.git.CodeReviewCommit a , final com.google.gerrit.server.git.CodeReviewCommit b ) { return ( a.originalOrder ) - ( b.originalOrder ) ; }

Target:
private void preMerge ( final com.google.gerrit.server.git.SubmitStrategy strategy ) throws com.google.gerrit.server.git.MergeException { openBranch ( ) ; validateChangeList ( ) ; mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }
Source:
public static byte [ ] asByteArray ( org.eclipse.jgit.lib.ObjectLoader ldr ) throws java.io.IOException , org.eclipse.jgit.errors.LargeObjectException , org.eclipse.jgit.errors.MissingObjectException { return ldr.getCachedBytes ( com.google.gerrit.server.patch.Text.bigFileThreshold ) ; }

Target:
public static byte [ ] asByteArray ( org.eclipse.jgit.lib.ObjectLoader ldr ) throws java.io.IOException , org.eclipse.jgit.errors.LargeObjectException , org.eclipse.jgit.errors.MissingObjectException { return ldr.getCachedBytes ( com.google.gerrit.server.diff.Text.bigFileThreshold ) ; }
Source:
public void preDisplay ( final com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > result ) { display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; enableForm ( ) ; }

Target:
public void preDisplay ( final com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > result ) { java.util.Set < java.lang.String > checkedRefs = branchTable.getCheckedRefs ( ) ; display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; branchTable.setChecked ( checkedRefs ) ; updateForm ( ) ; }
Source:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code status ) { this . status = status ; this . shortDescription = status.name ( ) ; this . value = status.name ( ) ; }

Target:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code statusCode ) { this . status = statusCode ; this . shortDescription = statusCode.name ( ) ; this . value = statusCode.name ( ) ; }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in , 0 ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }
Source:
void setResult ( org.eclipse.jgit.lib.ObjectId result ) { this . result = result.copy ( ) ; }

Target:
private static org.eclipse.jgit.lib.ObjectId emptyTree ( org.eclipse.jgit.lib.ObjectInserter ins ) throws java.io.IOException { return ins.insert ( Constants.OBJ_TREE , new byte [ ] { } ) ; }
Source:
private java.lang.String expand ( java.lang.String parameterizedRef , java.lang.String userName ) { if ( parameterizedRef.contains ( "${" ) ) { return expand ( new com.google.gerrit.common.data.ParameterizedString ( parameterizedRef ) , userName ) ; } return parameterizedRef ; }

Target:
private java.lang.String expand ( java.lang.String parameterizedRef , java.lang.String userName , com.google.gerrit.reviewdb.client.Account.Id accountId ) { if ( parameterizedRef.contains ( "${" ) ) { return expand ( new com.google.gerrit.common.data.ParameterizedString ( parameterizedRef ) , userName , accountId ) ; } return parameterizedRef ; }
Source:
public boolean handles ( java.io.File srcFile ) { java.lang.String fileName = srcFile.getName ( ) ; return ( fileName.endsWith ( com.google.gerrit.server.plugins.JarPluginProvider.JAR_EXTENSION ) ) || ( fileName.endsWith ( ( ( com.google.gerrit.server.plugins.JarPluginProvider.JAR_EXTENSION ) + ".disabled" ) ) ) ; }

Target:
public boolean handles ( java.nio.file.Path srcPath ) { java.lang.String fileName = srcPath.getFileName ( ) . toString ( ) ; return ( fileName.endsWith ( com.google.gerrit.server.plugins.JarPluginProvider.JAR_EXTENSION ) ) || ( fileName.endsWith ( ( ( com.google.gerrit.server.plugins.JarPluginProvider.JAR_EXTENSION ) + ".disabled" ) ) ) ; }
Source:
private void scheduleTask ( com.googlesource.gerrit.plugins.replication.PushOne pushOp , int delay , java.util.concurrent.TimeUnit unit ) { postEvent ( pushOp ) ; pool.schedule ( pushOp , delay , unit ) ; }

Target:
void pushWasCanceled ( com.googlesource.gerrit.plugins.replication.PushOne pushOp ) { synchronized ( stateLock ) { org.eclipse.jgit.transport.URIish uri = pushOp.getURI ( ) ; pending.remove ( uri ) ; } }
Source:
public final native void setTo ( net.codemirror.lib.LineCharacter to ) ;

Target:
public final native net.codemirror.lib.Pos from ( ) ;
Source:
public void start ( ) { java.lang.String msg = "error: That command is disabled on this server.\n\n" + "Please use the master server URL.\n" ; try { err.write ( msg.getBytes ( com.google.gerrit.sshd.commands.ENC ) ) ; err.flush ( ) ; } catch ( java.io.IOException e ) { } onExit ( 1 ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { java.lang.String msg = "error: That command is disabled on this server.\n\n" + "Please use the master server URL.\n" ; try { err.write ( msg.getBytes ( com.google.gerrit.sshd.commands.ENC ) ) ; err.flush ( ) ; } catch ( java.io.IOException e ) { } onExit ( 1 ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupType ( ) ; initMemberList ( ) ; initExternal ( ) ; }
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 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 { return submittedTogether ( java.util.EnumSet.noneOf ( com.google.gerrit.extensions.client.ListChangesOption.class ) , options ) ; }
Source:
public com.googlesource.gerrit.plugins.lfs.LfsBackend getBackend ( ) { return cfg.getEnum ( "storage" , null , "backend" , LfsBackend.FS ) ; }

Target:
public com.googlesource.gerrit.plugins.lfs.LfsBackendType getBackendType ( ) { return cfg.getEnum ( "storage" , null , "backend" , LfsBackendType.FS ) ; }
Source:
private static com.google.gwtexpui.safehtml.client.SafeHtml showTrailingWhitespace ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { return src.replaceFirst ( "([ \t][ \t]*)(\r?\n?)$" , "<span class=\"gerrit-whitespaceerror\">$1</span>$2" ) ; }

Target:
private static com.google.gwtexpui.safehtml.client.SafeHtml showTrailingWhitespace ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { return src.replaceFirst ( "([ \t][ \t]*)(\r?\n?)$" , ( ( "<span class=\"" + ( Resources.I.css ( ) . whitespaceerror ( ) ) ) + "\">$1</span>$2" ) ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi reviewers ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "reviewers" ) ; }

Target:
public static void includedIn ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( project , id , "in" ) . get ( cb ) ; }
Source:
private static com.google.common.collect.ImmutableList < org.eclipse.jgit.diff.Edit > deepCopyEdits ( java.util.List < org.eclipse.jgit.diff.Edit > edits ) { return edits.stream ( ) . map ( com.google.gerrit.server.patch.IntraLineDiffArgs :: copy ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }

Target:
private static com.google.common.collect.ImmutableList < org.eclipse.jgit.diff.Edit > deepCopyEdits ( java.util.List < org.eclipse.jgit.diff.Edit > edits ) { return edits.stream ( ) . map ( com.google.gerrit.server.diff.IntraLineDiffArgs :: copy ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }
Source:
protected static void usage ( ) { java.lang.String s = "Usage:\n" ; s += "java -cp $PLCAFEDIR/plcafe.jar" ; s += " com.googlecode.prolog_cafe.lang.PrologMain package:predicate\n" ; s += "java -cp $PLCAFEDIR/plcafe.jar" ; s += " com.googlecode.prolog_cafe.lang.PrologMain predicate\n" ; s += " package: package name\n" ; s += " predicate: predicate name (only atom)" ; java.lang.System.out.println ( s ) ; }

Target:
protected static void usage ( ) { java.lang.System.err.println ( "Usage:" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar package:predicate" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar predicate" ) ; java.lang.System.err.println ( " package: package name\n" ) ; java.lang.System.err.println ( " predicate: predicate name (only atom)" ) ; }
Source:
public void cleanup ( ) { db.close ( ) ; }

Target:
public void cleanup ( ) { source.removeEventListener ( eventListener ) ; db.close ( ) ; }
Source:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; com.google.gerrit.gpg.GerritPublicKeyChecker checker = checkerFactory.create ( user ) ; assertNoProblems ( checker.check ( com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) . getPublicKey ( ) ) ) ; }

Target:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; com.google.gerrit.gpg.GerritPublicKeyChecker checker = checkerFactory.create ( user ) ; assertNoProblems ( checker.check ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithSecondUserId ( ) . getPublicKey ( ) ) ) ; }
Source:
protected void run ( ) { for ( com.googlesource.gerrit.plugins.replication.Destination d : config.getDestinations ( FilterType.ALL ) ) { if ( matches ( d.getRemoteConfig ( ) . getName ( ) ) ) { printRemote ( d ) ; } } }

Target:
protected void run ( ) { for ( com.googlesource.gerrit.plugins.replication.Destination d : config.getDestinations ( FilterType.ALL ) ) { if ( matches ( d.getRemoteConfigName ( ) ) ) { printRemote ( d ) ; } } }
Source:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { event.preventDefault ( ) ; event.stopPropagation ( ) ; select ( ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ProjectApi.ListBranchesRequest withStart ( int start ) { this . start = start ; return this ; }

Target:
public com.google.gerrit.extensions.api.projects.ProjectApi.ListRefsRequest < T > withStart ( int start ) { this . start = start ; return this ; }
Source:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > all ( org.eclipse.jgit.lib.ObjectId rev ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdReader.all ( repo , rev ) ; } }

Target:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > all ( org.eclipse.jgit.lib.ObjectId rev ) throws java.io.IOException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdReader.all ( repo , rev ) ; } }
Source:
public java.lang.String getName ( ) { return "REPO" ; }

Target:
public java.lang.String getUrl ( java.lang.String project ) { return "repo download " + project ; }
Source:
public static synchronized void setClock ( java.sql.Timestamp ts ) { com.google.common.base.Preconditions.checkState ( ( ( com.google.gerrit.testutil.TestTimeUtil.clockMs ) != null ) , "call resetWithClockStep first" ) ; com.google.gerrit.testutil.TestTimeUtil.clockMs.set ( ts.getTime ( ) ) ; }

Target:
public static synchronized void setClock ( java.sql.Timestamp ts ) { com.google.common.base.Preconditions.checkState ( ( ( com.google.gerrit.testing.TestTimeUtil.clockMs ) != null ) , "call resetWithClockStep first" ) ; com.google.gerrit.testing.TestTimeUtil.clockMs.set ( ts.getTime ( ) ) ; }
Source:
public final native void in_reply_to ( java.lang.String i ) ;

Target:
public final native void inReplyTo ( java.lang.String i ) ;
Source:
public void setSubmitRecords ( java.util.List < com.google.gerrit.common.data.SubmitRecord > records ) { submitRecords = records ; }

Target:
public void setStars ( com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.Account.Id , java.lang.String > stars ) { this . stars = com.google.common.collect.ImmutableListMultimap.copyOf ( stars ) ; }
Source:
public static void publish ( int id , java.lang.String commit , 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.call ( id , commit , "publish" ) . post ( in , cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi reviewers ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "reviewers" ) ; }
Source:
public void onUpdate ( com.google.gerrit.server.git.ProjectConfig projectConfig , long newValue ) { }

Target:
public boolean isEditable ( com.google.gerrit.server.project.ProjectState project ) { return true ; }
Source:
public boolean containsComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { if ( containsCommentPublished ( c ) ) { return true ; } loadDraftComments ( c.getAuthor ( ) ) ; return draftCommentNotes.containsComment ( c ) ; }

Target:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.RevId , com.google.gerrit.reviewdb.client.RobotComment > getRobotComments ( ) throws com.google.gwtorm.server.OrmException { loadRobotComments ( ) ; return robotCommentNotes.getComments ( ) ; }
Source:
private static boolean reindexAfterIndexUpdate ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "testReindexAfterUpdate" , true ) ; }

Target:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "testAutoReindexIfStale" , true ) ; }
Source:
public void preDisplay ( final com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > result ) { enableForm ( true ) ; display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; }

Target:
public void preDisplay ( final com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > result ) { display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; updateForm ( ) ; }
Source:
public void setUp ( ) { easyMock = new org.easymock.EasyMockSupport ( ) ; storeMock = easyMock.createMock ( com.ericsson.gerrit.plugins.eventslog.EventStore.class ) ; listener = new com.ericsson.gerrit.plugins.eventslog.EventHandler ( storeMock ) ; }

Target:
public void setUp ( ) { easyMock = new org.easymock.EasyMockSupport ( ) ; storeMock = easyMock.createMock ( com.ericsson.gerrit.plugins.eventslog.EventStore.class ) ; poolMock = new com.ericsson.gerrit.plugins.eventslog.EventHandlerTest.PoolMock ( 1 ) ; listener = new com.ericsson.gerrit.plugins.eventslog.EventHandler ( storeMock , poolMock ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { addMemberBox.setEnabled ( true ) ; addMemberBox.setText ( "" ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( isAttached ( ) ) { setAccountInfoCache ( r.getAccounts ( ) ) ; display ( r.getChange ( ) , r.getMissingApprovals ( ) , r.getApprovals ( ) ) ; } }
Source:
public static int toIndexTime ( java.sql.Timestamp ts ) { return ( ( int ) ( ( ts.getTime ( ) ) / 60000 ) ) ; }

Target:
public static int toIndexTime ( java.util.Date ts ) { return ( ( int ) ( ( ts.getTime ( ) ) / 60000 ) ) ; }
Source:
public void noExternalIds ( ) throws java.lang.Exception { db.accountExternalIds ( ) . delete ( db.accountExternalIds ( ) . byAccount ( user.getAccountId ( ) ) ) ; reloadUser ( ) ; assertProblems ( com.google.gerrit.server.git.gpg.TestKey.key5 ( ) , ( "No identities found for user; check" + " http://test/#/settings/web-identities" ) ) ; }

Target:
public void noExternalIds ( ) throws java.lang.Exception { db.accountExternalIds ( ) . delete ( db.accountExternalIds ( ) . byAccount ( user.getAccountId ( ) ) ) ; reloadUser ( ) ; assertProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) , ( "No identities found for user; check" + " http://test/#/settings/web-identities" ) ) ; }
Source:
public final java.util.List < com.google.gerrit.client.changes.ChangeInfo.ApprovalInfo > approvals ( ) { return _approvals ( ) . asList ( ) ; }

Target:
public final void init ( ) { if ( ( labels0 ( ) ) != null ) { labels0 ( ) . copyKeysIntoChildren ( "_name" ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.client.data.PatchScript result ) { if ( ( rpcSequence ) == rpcseq ) { script = result ; onResult ( ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent arg0 ) { if ( cb.getValue ( ) ) { scriptSettings.setWhitespace ( Whitespace.IGNORE_SPACE_CHANGE ) ; } else { scriptSettings.setWhitespace ( Whitespace.IGNORE_NONE ) ; } refresh ( false ) ; }
Source:
public void newPatchSetByOtherOnReviewableChangeNotifyOwner ( ) 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=OWNER" , other ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetByOtherOnReviewableChangeOwnerSelfCcNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; pushTo ( sc , "refs/for/master%notify=NONE" , other , EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
protected void checkCustom ( org.eclipse.jgit.lib.Repository repo , java.util.List < java.lang.String > problems ) { }

Target:
protected com.google.gerrit.gpg.CheckResult checkCustom ( org.eclipse.jgit.lib.Repository repo ) { return com.google.gerrit.gpg.CheckResult.ok ( ) ; }
Source:
public java.util.concurrent.ExecutorService createEmailReviewCommentsExecutor ( ) { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; }

Target:
public java.util.concurrent.ExecutorService createSendEmailExecutor ( ) { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; }
Source:
private void onDiscoveryFailure ( ) { showError ( ) ; enable ( true ) ; providerId.selectAll ( ) ; providerId.setFocus ( true ) ; }

Target:
private void onDiscoveryFailure ( ) { showError ( OpenIdUtil.C.notSupported ( ) ) ; enable ( true ) ; providerId.selectAll ( ) ; providerId.setFocus ( true ) ; }
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:
private static com.google.gerrit.client.rpc.RestApi call ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }
Source:
public WorkQueue.Executor getBatchQueue ( ) { return batchExecutor ; }

Target:
public WorkQueue.Executor getQueue ( com.google.gerrit.sshd.QueueType type ) { switch ( type ) { case INTERACTIVE : return interactiveExecutor ; case BATCH : default : return batchExecutor ; } }
Source:
public java.lang.String getUserName ( ) { return "plugin " + ( pluginName ) ; }

Target:
public java.util.Optional < java.lang.String > getUserName ( ) { return java.util.Optional.of ( ( "plugin " + ( pluginName ) ) ) ; }
Source:
public java.util.concurrent.ExecutorService createDiffExecutor ( ) { return com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ; }

Target:
public java.util.concurrent.ExecutorService createDiffExecutor ( ) { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; Util.ACCOUNT_SEC.validateEmail ( magicToken , new com.google.gerrit.client.rpc.GerritCallback < com.google.gwtjsonrpc.client.VoidResult > ( ) { public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_CONTACT , true ) ; } } ) ; }

Target:
protected void postDisplay ( ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_CONTACT , true ) ; }
Source:
com.google.gerrit.server.plugins.ServerPlugin get ( java.io.File srcFile , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot , com.google.gerrit.server.plugins.ServerPluginProvider.PluginDescription pluginDescriptor ) throws com.google.gerrit.server.plugins.InvalidPluginException ;

Target:
com.google.gerrit.server.plugins.ServerPlugin get ( java.nio.file.Path srcPath , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot , com.google.gerrit.server.plugins.ServerPluginProvider.PluginDescription pluginDescriptor ) throws com.google.gerrit.server.plugins.InvalidPluginException ;
Source:
public int getCardinality ( ) { return ( source ) != null ? source.getCardinality ( ) : limit ( ) ; }

Target:
public int getCardinality ( ) { return ( source ) != null ? source.getCardinality ( ) : opts.limit ( ) ; }
Source:
public com.google.gerrit.extensions.webui.UiAction.Description setEnabled ( boolean enabled ) { this . enabled = enabled ; return this ; }

Target:
public com.google.gerrit.extensions.webui.UiAction.Description setEnabled ( com.google.gerrit.extensions.conditions.BooleanCondition enabled ) { this . enabled = enabled ; return this ; }
Source:
public void putApproval ( java.lang.String label , short value ) { approvals.put ( label , value ) ; }

Target:
public void putApproval ( java.lang.String label , short value ) { putApprovalFor ( getUser ( ) . getAccountId ( ) , label , value ) ; }
Source:
void setSettings ( final com.google.gerrit.common.data.PatchScriptSettings s ) { settings = s ; }

Target:
void setSettings ( final com.google.gerrit.common.data.PatchScriptSettings s ) { settings = s ; context = settings.getContext ( ) ; }
Source:
private void setRefLogIdent ( final com.google.gerrit.client.reviewdb.ChangeApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . toPersonIdent ( ) ) ; } }

Target:
private void setRefLogIdent ( final com.google.gerrit.client.reviewdb.ChangeApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . newPersonIdent ( ) ) ; } }
Source:
public synchronized void deleteRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { repos.remove ( com.google.gerrit.testutil.InMemoryRepositoryManager.normalize ( name ) ) ; }

Target:
public synchronized void deleteRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { repos.remove ( com.google.gerrit.testing.InMemoryRepositoryManager.normalize ( name ) ) ; }