auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.google.inject.Key < com.google.gerrit.server.ssh.AbstractCommand > key ( final java.lang.String name ) { return com.google.inject.Key.get ( com.google.gerrit.server.ssh.AbstractCommand.class , com.google.gerrit.server.ssh.Commands.named ( name ) ) ; }

Target:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final java.lang.String name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , com.google.gerrit.server.ssh.Commands.named ( name ) ) ; }
Source:
private com.googlesource.gerrit.plugins.github.MenuItem getItem ( java.lang.String anchorName , java.lang.String urlPath ) { return new com.googlesource.gerrit.plugins.github.MenuItem ( anchorName , urlPath , "" ) ; }

Target:
private com.google.gerrit.extensions.client.MenuItem getItem ( java.lang.String anchorName , java.lang.String urlPath ) { return new com.google.gerrit.extensions.client.MenuItem ( anchorName , urlPath , "" ) ; }
Source:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInput ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createNewDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInput ( ChangeStatus.DRAFT ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }
Source:
public void configure ( ) { bind ( com.google.gerrit.server.mail.send.EmailSender.class ) . to ( com.google.gerrit.testutil.FakeEmailSender.class ) ; }

Target:
public void configure ( ) { bind ( com.google.gerrit.server.mail.send.EmailSender.class ) . to ( com.google.gerrit.testing.FakeEmailSender.class ) ; }
Source:
public final native com.google.gerrit.client.changes.ChangeInfo.DetailedLabelInfo detailed_label ( java.lang.String n ) ;

Target:
public final native com.google.gwt.core.client.JsArrayString permitted_values ( java.lang.String n ) ;
Source:
public void start ( ) { final org.eclipse.jgit.lib.WindowCacheConfig c = new org.eclipse.jgit.lib.WindowCacheConfig ( ) ; c.fromConfig ( cfg ) ; org.eclipse.jgit.lib.WindowCache.reconfigure ( c ) ; }

Target:
public void start ( ) { final org.eclipse.jgit.storage.file.WindowCacheConfig c = new org.eclipse.jgit.storage.file.WindowCacheConfig ( ) ; c.fromConfig ( cfg ) ; org.eclipse.jgit.storage.file.WindowCache.reconfigure ( c ) ; }
Source:
public void negativeEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , ( - 1 ) , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void negativeEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , ( - 1 ) , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( uuid.get ( ) . startsWith ( "global:" ) ) || ( uuid.get ( ) . matches ( "[0-9a-f]{40}" ) ) ; }

Target:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return com.google.gerrit.reviewdb.client.AccountGroup.isInternalGroup ( uuid ) ; }
Source:
void onReload ( com.google.gwt.event.dom.client.ClickEvent e ) { e.preventDefault ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( getProject ( ) , changeId , revision , publish , deleteRevision ) ; } }
Source:
public void markKeyInvalid ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = open ( accountId ) ) { if ( authorizedKeys.markKeyInvalid ( seq ) ) { commit ( authorizedKeys ) ; } } }

Target:
public void markKeyInvalid ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ) { if ( authorizedKeys.markKeyInvalid ( seq ) ) { commit ( authorizedKeys ) ; } } }
Source:
private static void logAndThrowSubmoduleException ( final java.lang.String errorMsg ) throws com.google.gerrit.server.git.SubmoduleException { com.google.gerrit.server.git.SubmoduleOp.log.error ( errorMsg ) ; throw new com.google.gerrit.server.git.SubmoduleException ( errorMsg ) ; }

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 ( ( ( ( "[" + ( updateId ) ) + "]" ) + msg ) , args ) ; } }
Source:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder builder ( ) { return new com.google.gerrit.server.project.AutoValue_SubmitRuleOptions.Builder ( ) . allowClosed ( false ) . skipFilters ( false ) . rule ( null ) ; }

Target:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder builder ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.defaults.toBuilder ( ) ; }
Source:
private static java.util.List < com.google.gerrit.server.change.RevisionResource > toResources ( com.google.gerrit.server.change.ChangeResource change , com.google.gerrit.reviewdb.client.PatchSet ps ) { return java.util.Collections.singletonList ( new com.google.gerrit.server.change.RevisionResource ( change , ps ) ) ; }

Target:
private com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > findExactMatch ( com.google.gerrit.reviewdb.client.RevId revid ) throws com.google.gwtorm.server.OrmException { return dbProvider.get ( ) . patchSets ( ) . byRevision ( revid ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteBranch.apply ( resource ( ) , new com.google.gerrit.server.project.DeleteBranch.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete branch" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteBranch.apply ( resource ( ) , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete branch" , e ) ; } }
Source:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.reviewdb.client.UserIdentity user ) ;

Target:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.server.IdentifiedUser forUser ) ;
Source:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS account_patch_reviews (" + ( ( ( ( ( ( "account_id INTEGER DEFAULT 0 NOT NULL, " + "change_id INTEGER DEFAULT 0 NOT NULL, " ) + "patch_set_id INTEGER DEFAULT 0 NOT NULL, " ) + "file_name VARCHAR(255) DEFAULT '' NOT NULL, " ) + "CONSTRAINT primary_key_account_patch_reviews " ) + "PRIMARY KEY (account_id, change_id, patch_set_id, file_name)" ) + ")" ) ) ) ; }

Target:
private static void doCreateTable ( java.sql.Statement stmt ) throws java.sql.SQLException { stmt.executeUpdate ( ( "CREATE TABLE IF NOT EXISTS account_patch_reviews (" + ( ( ( ( ( ( "account_id INTEGER DEFAULT 0 NOT NULL, " + "change_id INTEGER DEFAULT 0 NOT NULL, " ) + "patch_set_id INTEGER DEFAULT 0 NOT NULL, " ) + "file_name VARCHAR(4096) DEFAULT '' NOT NULL, " ) + "CONSTRAINT primary_key_account_patch_reviews " ) + "PRIMARY KEY (account_id, change_id, patch_set_id, file_name)" ) + ")" ) ) ) ; }
Source:
private java.lang.String urlDelete ( com.google.gerrit.reviewdb.client.Change c ) { return ( ( ( ( "/changes/" + ( c.getChangeId ( ) ) ) + "/edits/" ) + 0 ) + "/files/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }

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:
void addBranch ( com.google.gerrit.reviewdb.Project.NameKey projectName , java.lang.String branchName , java.lang.String startingRevision , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) ;

Target:
void reviewProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Change.Id > callback ) ;
Source:
private void postEvent ( com.google.gerrit.server.events.RefEvent event ) { try { dispatcher.postEvent ( event ) ; } catch ( com.google.gwtorm.server.OrmException e ) { com.googlesource.gerrit.plugins.replication.PushResultProcessing.GitUpdateProcessing.log.error ( "Cannot post event" , e ) ; } }

Target:
private void postEvent ( com.google.gerrit.server.events.RefEvent event ) { try { dispatcher.postEvent ( event ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { com.googlesource.gerrit.plugins.replication.PushResultProcessing.GitUpdateProcessing.log.error ( "Cannot post event" , e ) ; } }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveName.setEnabled ( false ) ; setTitleText ( Util.M.group ( newName ) ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveName.setEnabled ( false ) ; setPageTitle ( Util.M.group ( newName ) ) ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit getHead ( org.eclipse.jgit.lib.Repository repo , java.lang.String name ) throws java.io.IOException { BRANCH ( 5.0 ) ; }

Target:
private org.eclipse.jgit.revwalk.RevCommit getHead ( org.eclipse.jgit.lib.Repository repo , java.lang.String name ) throws java.lang.Exception { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { return rw.parseCommit ( repo.exactRef ( name ) . getObjectId ( ) ) ; } }
Source:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "set-wip" ) . to ( com.googlesource.gerrit.plugins.wip.WorkInProgressAction.class ) ; post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "set-ready" ) . to ( com.googlesource.gerrit.plugins.wip.ReadyForReviewAction.class ) ; }

Target:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "set-wip" ) . to ( com.googlesource.gerrit.plugins.wip.WorkInProgress.class ) ; post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "set-ready" ) . to ( com.googlesource.gerrit.plugins.wip.ReadyForReview.class ) ; }
Source:
java.lang.String syncUrl ( com.ericsson.gerrit.plugins.syncindex.Configuration config ) { return config.getUrl ( ) ; }

Target:
java.lang.String syncUrl ( com.ericsson.gerrit.plugins.multimaster.Configuration config ) { return config.getUrl ( ) ; }
Source:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }
Source:
public < T > void set ( com.google.gerrit.rules.StoredValue < T > sv , T obj ) { sv.set ( engine , obj ) ; }

Target:
public < T > void set ( com.google.gerrit.rules.StoredValue < T > sv , T obj ) { storedValues.put ( ( ( com.google.gerrit.rules.StoredValue < java.lang.Object > ) ( sv ) ) , obj ) ; }
Source:
private static java.lang.String encodeBase64 ( final byte [ ] data ) throws java.io.UnsupportedEncodingException { return new java.lang.String ( org.apache.commons.codec.binary.Base64.encodeBase64 ( data ) , org.apache.commons.net.smtp.AuthSMTPClient.UTF_8 ) ; }

Target:
private static java.lang.String encodeBase64 ( final byte [ ] data ) { return new java.lang.String ( org.apache.commons.codec.binary.Base64.encodeBase64 ( data ) , java.nio.charset.StandardCharsets.UTF_8 ) ; }
Source:
public com.google.gerrit.server.project.ListProjects setShowTree ( boolean show ) { this . showTree = show ; return this ; }

Target:
public com.google.gerrit.server.project.ListProjects setMatchPrefix ( java.lang.String prefix ) { this . matchPrefix = prefix ; return this ; }
Source:
protected com.google.gerrit.sshd.SshScope.Context continuingContext ( com.google.gerrit.sshd.SshScope.Context ctx ) { return new com.google.gerrit.sshd.SshScope.Context ( ctx , ctx.getSession ( ) , ctx.getCommandLine ( ) ) ; }

Target:
private com.google.gerrit.sshd.SshScope.Context newContinuingContext ( com.google.gerrit.sshd.SshScope.Context ctx ) { return new com.google.gerrit.sshd.SshScope.Context ( ctx , ctx.getSession ( ) , ctx.getCommandLine ( ) ) ; }
Source:
public void onRevisionCreated ( com.google.gerrit.extensions.events.RevisionCreatedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) . email ) ; }

Target:
public void onDraftPublished ( com.google.gerrit.extensions.events.DraftPublishedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) . email ) ; }
Source:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { renderSkips ( context ) ; } } ) ; }

Target:
private void toggleShowIntraline ( ) { prefs.intralineDifference ( ( ! ( prefs.intralineDifference ( ) ) ) ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; prefsAction.update ( ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.cherryPickChange ( patchSet.getId ( ) , getMessageText ( ) , getDestinationBranch ( ) , createCallback ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( new com.google.gerrit.reviewdb.client.Change.Id ( result._number ( ) ) ) ) ; hide ( ) ; }
Source:
public boolean execute ( ) { if ( ( prefs.syntaxHighlighting ( ) ) && ( isAttached ( ) ) ) { setSyntaxHighlighting ( prefs.syntaxHighlighting ( ) ) ; } return false ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
public static void reloadChanges ( com.google.gerrit.server.git.ChangeSet cs ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : cs.changes ( ) ) { cd.reloadChange ( ) ; cd.setPatchSets ( null ) ; } }

Target:
public static void reloadChanges ( com.google.gerrit.server.git.ChangeSet cs ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : cs.changes ( ) ) { cd.reloadChange ( ) ; cd.setPatchSets ( null ) ; cd.setMergeable ( null ) ; } }
Source:
public void removeApproval ( java.lang.String label ) { removeApprovalFor ( getUser ( ) . getAccountId ( ) , label ) ; }

Target:
public void putApproval ( java.lang.String label , short value ) { putApprovalFor ( getAccountId ( ) , label , value ) ; }
Source:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return postReviewers.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot add change reviewer" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return postReviewers.apply ( change , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot add change reviewer" , e ) ; } }
Source:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }

Target:
public void onRemove ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }
Source:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.ChangeField.LEGACY_ID.getName ( ) , cd.getId ( ) . get ( ) ) ; }

Target:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.change.ChangeField.LEGACY_ID.getName ( ) , cd.getId ( ) . get ( ) ) ; }
Source:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , com.google.gerrit.client.diff.SideBySide2.Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
public com.google.gerrit.server.util.ManualRequestContext open ( ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.util.ManualRequestContext ( userFactory.create ( ) , schemaFactory , requestContext ) ; }

Target:
public com.vmware.gerrit.owners.common.Gerrit214ManualRequestContext open ( ) throws com.google.gwtorm.server.OrmException { return new com.vmware.gerrit.owners.common.Gerrit214ManualRequestContext ( userFactory.create ( ) , schemaFactory , requestContext ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeResource > list ( ) { throw new java.lang.IllegalStateException ( "not yet implemented" ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.ChangeResource > list ( ) { return detail ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( ( activePatchSetId ) > 0 ) && ( ( activePatchSetId ) < ( body.getWidgetCount ( ) ) ) ) { activate ( ( ( activePatchSetId ) + 1 ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { int index = ( indexOf ( activePatchSetId ) ) + 1 ; if ( index < ( patchSets.size ( ) ) ) { activate ( patchSets.get ( index ) . getId ( ) ) ; } }
Source:
public synchronized void stop ( ) { HEAD ( 3435 ) ; com.google.gerrit.sshd.c5 Revert ; }

Target:
public synchronized void stop ( ) { if ( ( daemonAcceptor ) != null ) { try { daemonAcceptor.dispose ( ) ; com.google.gerrit.sshd.SshDaemon.log.info ( "Stopped Gerrit SSHD" ) ; } finally { daemonAcceptor = null ; } } }
Source:
private void initRow ( final int row , final java.lang.String name ) { infoTable.setText ( row , 0 , name ) ; infoTable.getCellFormatter ( ) . addStyleName ( row , 0 , "header" ) ; }

Target:
private void initRow ( final int row , final java.lang.String name ) { infoTable.setText ( row , 0 , name ) ; infoTable.getCellFormatter ( ) . addStyleName ( row , 0 , Gerrit.RESOURCES.css ( ) . header ( ) ) ; }
Source:
private static java.lang.String getContentPath ( java.lang.String url ) { return ( url + ( url.endsWith ( "/" ) ? com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.CONTENT_PATH : "/" + ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.CONTENT_PATH ) ) ) + "/" ; }

Target:
private static java.lang.String getContentUrl ( java.lang.String url , com.googlesource.gerrit.plugins.lfs.LfsBackend backend ) { return ( url + ( url.endsWith ( "/" ) ? "" : "/" ) ) + ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.getContentPath ( backend ) ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > watchedProject ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.WATCHED_PROJECT , project.get ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > watchedProject ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.WATCHED_PROJECT , project.get ( ) ) ; }
Source:
public void onScreenLoad ( com.google.gerrit.client.ui.ScreenLoadEvent event ) { if ( ( event.getScreen ( ) ) instanceof com.google.gerrit.client.admin.ProjectScreen ) { com.google.gerrit.client.Gerrit.menuLeft.selectTab ( com.google.gerrit.client.Gerrit.menuLeft.getWidgetIndex ( this ) ) ; } }

Target:
public static void selectMenu ( com.google.gerrit.client.ui.LinkMenuBar bar ) { com.google.gerrit.client.Gerrit.menuLeft.selectTab ( com.google.gerrit.client.Gerrit.menuLeft.getWidgetIndex ( bar ) ) ; }
Source:
public java.lang.String getMethod ( ) { return "GET" ; }

Target:
public java.lang.String getMethod ( ) { return method ; }
Source:
public void onSuccess ( final com.google.gerrit.client.account.SshKeyList result ) { keys.display ( result.keys ) ; keys.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; keys.finishDisplay ( true ) ; }
Source:
private void setOpen ( boolean open ) { com.google.gwt.user.client.ui.UIObject.setVisible ( summary , ( ! open ) ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( contentPanel , open ) ; }

Target:
private boolean isOpen ( ) { return getStyleName ( ) . contains ( style.open ( ) ) ; }
Source:
private static long minCachedObjectTime ( ) { return ( new java.util.Date ( ) . getTime ( ) ) - ( com.googlesource.gerrit.plugins.findowners.Cache.CACHE_LIFE_MSEC ) ; }

Target:
long size ( ) { return ( dbCache ) == null ? 0 : dbCache.size ( ) ; }
Source:
public void maybeFossilCollectIndexRow ( long now , byte [ ] key , com.google.gwtorm.nosql.IndexRow r ) throws com.google.gwtorm.client.OrmException { if ( ( ( r.getTimestamp ( ) ) + ( db.getMaxFossilAge ( ) ) ) <= now ) { delete ( key ) ; } }

Target:
protected void fossilCollectIndexRow ( byte [ ] key , com.google.gwtorm.nosql.IndexRow row ) { try { delete ( key ) ; } catch ( com.google.gwtorm.client.OrmException e ) { } }
Source:
private void initApprovalTypes ( ) { if ( ( approvalTypes ) == null ) { approvalTypes = new java.util.ArrayList < com.google.gerrit.client.data.ApprovalType > ( ) ; } }

Target:
public void setApprovalTypes ( final com.google.gerrit.client.data.ApprovalTypes at ) { approvalTypes = at ; }
Source:
public void execute ( ) { sp.setHeight ( "" ) ; setPosition ( getOffsetWidth ( ) , getOffsetHeight ( ) ) ; installFileList ( ) ; }

Target:
public void execute ( ) { sp.setHeight ( "" ) ; setPosition ( getOffsetWidth ( ) , getOffsetHeight ( ) ) ; fileList.setRegisterKeys ( true ) ; fileList.movePointerTo ( callerKey ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.POST , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }
Source:
public void createProjectFooWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( ( name + ".git" ) ) . get ( ) . name ) ; }

Target:
public void createProjectWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( ( name + ".git" ) ) . get ( ) . name ) ; }
Source:
public void pushWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }

Target:
public void pushWithPrivateByDefaultDisabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }
Source:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } update.putComment ( c ) ; }

Target:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { com.google.gerrit.server.account.GroupMembership effectiveGroups = user.getEffectiveGroups ( ) ; declaredOwner = effectiveGroups.containsAnyOf ( state.getAllOwners ( ) ) ; } return declaredOwner ; }

Target:
private boolean isDeclaredOwner ( ) { if ( ( declaredOwner ) == null ) { declaredOwner = user.memberOfAny ( state.getAllOwners ( ) ) ; } return declaredOwner ; }
Source:
public void shouldThrowAnExceptionIfAnErrorOccurCreatingSharedDirectory ( ) throws java.io.IOException { java.io.File configuredDirectory = tempFolder.newFile ( ) ; org.mockito.Mockito.when ( pluginConfigMock.getString ( "sharedDirectory" ) ) . thenReturn ( configuredDirectory.getAbsolutePath ( ) ) ; module.getSharedDirectory ( pluginConfigFactoryMock , com.ericsson.gerrit.plugins.highavailability.ModuleTest.PLUGIN_NAME ) ; }

Target:
public void shouldThrowAnExceptionIfAnErrorOccurCreatingSharedDirectory ( ) throws java.io.IOException { java.io.File configuredDirectory = tempFolder.newFile ( ) ; org.mockito.Mockito.when ( pluginConfigMock.getString ( com.ericsson.gerrit.plugins.highavailability.Configuration.SHARED_DIRECTORY ) ) . thenReturn ( configuredDirectory.getAbsolutePath ( ) ) ; module.getSharedDirectory ( pluginConfigFactoryMock , com.ericsson.gerrit.plugins.highavailability.ModuleTest.PLUGIN_NAME ) ; }
Source:
public void onReloadPlugin ( com.google.gerrit.server.plugins.Plugin oldPlugin , com.google.gerrit.server.plugins.Plugin newPlugin ) { com.google.inject.servlet.GuiceFilter filter = load ( newPlugin ) ; if ( filter != null ) { plugins.put ( newPlugin.getName ( ) , filter ) ; } }

Target:
public void remove ( ) { plugins.remove ( name , holder ) ; }
Source:
public void run ( ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void run ( ) { if ( ! ( prefs.renderEntireFile ( ) ) ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; } cmA.refresh ( ) ; cmB.refresh ( ) ; }
Source:
public final PatchSet.Id patch_set_id ( ) { return ( has_change_number ( ) ) && ( has_revision_number ( ) ) ? new com.google.gerrit.reviewdb.client.PatchSet.Id ( legacy_id ( ) , _revision_number ( ) ) : null ; }

Target:
public final PatchSet.Id patchSetId ( ) { return ( hasChangeNumber ( ) ) && ( hasRevisionNumber ( ) ) ? new com.google.gerrit.reviewdb.client.PatchSet.Id ( legacyId ( ) , _revisionNumber ( ) ) : null ; }
Source:
public java.sql.Connection getConnection ( ) throws java.sql.SQLException { return java.sql.DriverManager.getConnection ( url , connectionInfo ) ; }

Target:
public java.sql.Connection getConnection ( ) throws java.sql.SQLException { if ( ( driver ) != null ) { return driver.connect ( url , connectionInfo ) ; } return java.sql.DriverManager.getConnection ( url , connectionInfo ) ; }
Source:
void onPublishEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.publishEdit ( changeId ) ; }

Target:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , publish , deleteRevision , deleteChange ) ; } }
Source:
private int num ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return ! ( r.is_edit ( ) ) ? ( 2 * ( ( r._number ( ) ) - 1 ) ) + 1 : 2 * editParent ; }

Target:
private int num ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return ! ( r.isEdit ( ) ) ? ( 2 * ( ( r._number ( ) ) - 1 ) ) + 1 : 2 * editParent ; }
Source:
private com.google.gerrit.reviewdb.client.AccountGroup toAccountGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) ; }

Target:
private java.util.Optional < com.google.gerrit.server.group.InternalGroup > toInternalGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . getInternalGroup ( uuid ) ; }
Source:
protected void configure ( ) { install ( new com.google.inject.servlet.ServletModule ( ) { @ java.lang.Override protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) ; bind ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) . in ( com.google.inject.Scopes.SINGLETON ) ; serve ( "/" ) . with ( com.google.gerrit.server.http.HostPageServlet.class ) ; serve ( "/Gerrit" ) . with ( com.google.gerrit.server.http.LegacyGerritServlet.class ) ; serve ( "/cat/*" ) . with ( com.google.gerrit.server.http.CatServlet.class ) ; serve ( "/logout" ) . with ( com.google.gerrit.server.http.HttpLogoutServlet.class ) ; serve ( "/prettify/*" ) . with ( com.google.gerrit.server.http.PrettifyServlet.class ) ; serve ( "/signout" ) . with ( com.google.gerrit.server.http.HttpLogoutServlet.class ) ; serve ( "/ssh_info" ) . with ( com.google.gerrit.server.http.SshServlet.class ) ; serve ( "/static/*" ) . with ( com.google.gerrit.server.http.StaticServlet.class ) ; } } ) ; install ( new com.google.gerrit.server.rpc.UiRpcModule ( ) ) ; install ( new com.google.gerrit.server.config.GerritRequestModule ( ) ) ; bind ( com.google.gerrit.server.ssh.SshInfo.class ) . toProvider ( sshInfoProvider ) ; bind ( com.google.gerrit.client.data.GerritConfig.class ) . toProvider ( com.google.gerrit.server.config.GerritConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.account.AccountManager.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( java.net.SocketAddress.class ) . annotatedWith ( com.google.gerrit.server.RemotePeer.class ) . toProvider ( com.google.gerrit.server.http.HttpRemotePeerProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.http.WebSession.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.http.WebSessionManager.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toProvider ( com.google.gerrit.server.http.HttpCurrentUserProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.server.http.HttpIdentifiedUserProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; }

Target:
protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.server.http.BecomeAnyAccountLoginServlet.class ) ; }
Source:
protected org.eclipse.jgit.lib.ObjectId readRef ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return ( refs ) != null ? refs.get ( getRefName ( ) ) . orNull ( ) : super . readRef ( repo ) ; }

Target:
protected org.eclipse.jgit.lib.ObjectId readRef ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return ( refs ) != null ? refs.get ( getRefName ( ) ) . orElse ( null ) : super . readRef ( repo ) ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { final com.google.gerrit.sshd.SshSession s = session.getAttribute ( SshSession.KEY ) ; this . ctx = new com.google.gerrit.sshd.SshScope.Context ( s , commandLine ) ; }

Target:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { final com.google.gerrit.sshd.SshSession s = session.getAttribute ( SshSession.KEY ) ; this . ctx = sshScope.newContext ( s , commandLine ) ; }
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 abandonReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gwtexpui.globalkey.client.GlobalKey.active.all.onKeyPress ( event ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { final com.google.gwtexpui.globalkey.client.KeyCommandSet s = com.google.gwtexpui.globalkey.client.GlobalKey.active.live ; if ( s != ( com.google.gwtexpui.globalkey.client.GlobalKey.active.all ) ) { com.google.gwtexpui.globalkey.client.GlobalKey.active.live = com.google.gwtexpui.globalkey.client.GlobalKey.active.all ; com.google.gwtexpui.globalkey.client.GlobalKey.restoreTimer.cancel ( ) ; } s.onKeyPress ( event ) ; }
Source:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box , com.google.gerrit.common.changes.Side side ) { diffTable.onRemoveDraftBox ( box , side ) ; }

Target:
com.google.gerrit.common.changes.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { return ( side == ( com.google.gerrit.client.diff.SideBySide2.DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }
Source:
public static java.lang.String format ( java.lang.String hostname , int port ) { if ( 0 <= ( hostname.indexOf ( ':' ) ) ) { hostname = ( "[" + hostname ) + "]" ; } return ( hostname + ":" ) + port ; }

Target:
public static java.lang.String format ( java.lang.String hostname , int port ) { return ( ( com.google.gerrit.server.util.SocketUtil.safeHostname ( hostname ) ) + ":" ) + port ; }
Source:
public void getTagOfNonVisibleProjectWithApi ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tag ( "tag" ) . get ( ) ; }

Target:
public void getTagOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tag ( "tag" ) . get ( ) ; }
Source:
public java.lang.String getCharacterEncoding ( ) { return com.google.common.base.Charsets.UTF_8.name ( ) ; }

Target:
public java.lang.String getCharacterEncoding ( ) { return java.nio.charset.StandardCharsets.UTF_8.name ( ) ; }
Source:
static void invoke ( com.google.gerrit.client.changes.ChangeInfo change , com.google.gerrit.client.actions.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.legacy_id ( ) ) ) ) ; }

Target:
static void invoke ( com.google.gerrit.client.changes.ChangeInfo change , com.google.gerrit.client.actions.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.legacyId ( ) ) ) ) ; }
Source:
protected java.lang.String soyTextTemplate ( java.lang.String name ) { return args.soyTofu.newRenderer ( ( "com.google.gerrit.server.mail.template." + name ) ) . setContentKind ( SanitizedContent.ContentKind.TEXT ) . setData ( soyContext ) . render ( ) ; }

Target:
private java.lang.String soyTemplate ( java.lang.String name , com.google.template.soy.data.SanitizedContent.ContentKind kind ) { return args.soyTofu.newRenderer ( ( "com.google.gerrit.server.mail.template." + name ) ) . setContentKind ( kind ) . setData ( soyContext ) . render ( ) ; }
Source:
static byte [ ] toByteArray ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.Ref ref ) { return com.google.gerrit.server.index.change.StalenessChecker.RefState.toByteArray ( project , ref.getName ( ) , ref.getObjectId ( ) ) ; }

Target:
static com.google.gerrit.server.index.change.StalenessChecker.RefState create ( java.lang.String ref , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.index.change.AutoValue_StalenessChecker_RefState ( ref , com.google.common.base.MoreObjects.firstNonNull ( id , org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) ) ; }
Source:
public static java.lang.Iterable < java.lang.String > splitOptionValue ( java.lang.String value ) { return com.google.common.collect.Iterables.transform ( com.google.gerrit.server.OptionUtil.COMMA_OR_SPACE.split ( value ) , com.google.gerrit.server.OptionUtil.TO_LOWER_CASE ) ; }

Target:
public static java.lang.Iterable < java.lang.String > splitOptionValue ( java.lang.String value ) { return com.google.common.collect.Iterables.transform ( com.google.gerrit.server.OptionUtil.COMMA_OR_SPACE.split ( value ) , java.lang.String :: toLowerCase ) ; }
Source:
public static native net.codemirror.lib.CodeMirror create ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) ;

Target:
public static net.codemirror.lib.CodeMirror create ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) { net.codemirror.lib.CodeMirror cm = net.codemirror.lib.CodeMirror.newCM ( p , cfg ) ; net.codemirror.lib.Extras.attach ( cm ) ; return cm ; }
Source:
public void setReversePatchSetOrder ( final boolean reversePatchSetOrder ) { this . reversePatchSetOrder = reversePatchSetOrder ; }

Target:
public void setLegacycidInChangeTable ( boolean legacycidInChangeTable ) { this . legacycidInChangeTable = legacycidInChangeTable ; }
Source:
protected java.lang.String readStringImpl ( java.lang.String def , java.lang.String fmt , java.lang.Object ... args ) { return def ; }

Target:
public java.lang.String readString ( java.lang.String def , java.lang.String fmt , java.lang.Object ... args ) { return def ; }
Source:
public void addReviewerToReviewableChangeInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerToReviewableChangeInNoteDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( testRepo.getRepository ( ) , notes.getChange ( ) . currentPatchSetId ( ) ) ; }

Target:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( serverSideTestRepo.getRepository ( ) , notes.getChange ( ) . currentPatchSetId ( ) ) ; }
Source:
protected void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { renderHtml ( req , res , "gitiles.repositoryIndex" , buildData ( req ) ) ; }

Target:
protected void doGetHtml ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { renderHtml ( req , res , "gitiles.repositoryIndex" , buildData ( req ) ) ; }
Source:
public void queryOne ( ) throws java.sql.SQLException { try ( java.sql.Connection conn = ds.getConnection ( ) ; java.sql.Statement stat = conn.createStatement ( ) ) { stat.executeQuery ( ( ( "SELECT * FROM " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) + " LIMIT 1" ) ) ; } }

Target:
public void queryOne ( ) throws java.sql.SQLException { execute ( ( ( "SELECT * FROM " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) + " LIMIT 1" ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initPath ( ) ; setHeaderVisible ( false ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initPath ( ) ; setHeaderVisible ( false ) ; setWindowTitle ( com.google.gerrit.client.diff.FileInfo.getFileName ( path ) ) ; }
Source:
public void evictAll ( ) ;

Target:
public void onCreateProject ( com.google.gerrit.reviewdb.Project.NameKey newProjectName ) ;
Source:
public java.lang.String describeForException ( ) { return "label " + ( label.formatWithEquals ( ) ) ; }

Target:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "labelAs " + ( label.formatWithEquals ( ) ) ; } return "label " + ( label.formatWithEquals ( ) ) ; }
Source:
protected void configure ( ) { persist ( com.google.gerrit.server.auth.oauth.OAuthTokenCache.OAUTH_TOKENS , java.lang.String.class , com.google.gerrit.extensions.auth.oauth.OAuthToken.class ) ; }

Target:
protected void configure ( ) { persist ( com.google.gerrit.server.auth.oauth.OAuthTokenCache.OAUTH_TOKENS , Account.Id.class , com.google.gerrit.extensions.auth.oauth.OAuthToken.class ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.documentation.DocInfo indexInfo ) { com.google.gerrit.client.Gerrit.hasDocumentation = indexInfo != null ; }

Target:
public void onSuccess ( com.google.gerrit.client.documentation.DocInfo indexInfo ) { com.google.gerrit.client.Gerrit.hasDocumentation = indexInfo != null ; com.google.gerrit.client.Gerrit.docUrl = com.google.gerrit.client.Gerrit.selfRedirect ( "/Documentation/" ) ; }
Source:
public void createEmptyChange_MissingMessage ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo ci = new com.google.gerrit.extensions.common.ChangeInfo ( ) ; ci.project = project.get ( ) ; ci.branch = "master" ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "commit message must be non-empty" ) ; }

Target:
public void createEmptyChange_MissingMessage ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = new com.google.gerrit.extensions.common.ChangeInput ( ) ; ci.project = project.get ( ) ; ci.branch = "master" ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "commit message must be non-empty" ) ; }
Source:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.common.data.ContributorAgreement cla ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
protected abstract void encodeKey ( com.google.gwtorm.nosql.IndexKeyBuilder dst , K key ) ;

Target:
protected abstract void encodePrimaryKey ( com.google.gwtorm.nosql.IndexKeyBuilder dst , K key ) ;
Source:
private void initializeConfiguration ( ) { configuration = new com.ericsson.gerrit.plugins.highavailability.Configuration ( cfgFactoryMock , pluginName ) ; }

Target:
private void initializeConfiguration ( ) { configuration = new com.ericsson.gerrit.plugins.highavailability.Configuration ( cfgFactoryMock , pluginName , site ) ; }