auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSend ( ) { Util.MANAGE_SVC.cherryPickChange ( patchSet.getId ( ) , getMessageText ( ) , getDestinationBranch ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
final void setSubmitType ( com.google.gerrit.extensions.common.SubmitType t ) { setSubmitTypeRaw ( t.name ( ) ) ; }

Target:
final void setSubmitType ( com.google.gerrit.extensions.client.SubmitType t ) { setSubmitTypeRaw ( t.name ( ) ) ; }
Source:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.client.Account.Id authorId , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;

Target:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.server.change.PostReview.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.client.Account.Id authorId , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) ;
Source:
public int hashCode ( ) { return 31 + ( id ) ; }

Target:
public int hashCode ( ) { return ( com.ericsson.gerrit.plugins.eventslog.sql.SQLEntry.SEED ) + ( id ) ; }
Source:
public void copySettingsFrom ( final com.google.gerrit.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; useContentMerge = update.useContentMerge ; requireChangeID = update.requireChangeID ; submitType = update.submitType ; }

Target:
public void copySettingsFrom ( final com.google.gerrit.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; useContentMerge = update.useContentMerge ; requireChangeID = update.requireChangeID ; submitType = update.submitType ; state = update.state ; }
Source:
private < T extends com.google.gwt.event.shared.EventHandler > void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < T > e ) { e.call = this ; com.google.gwtjsonrpc.client.JsonUtil.fireEvent ( e ) ; }

Target:
private < S extends com.google.gwt.event.shared.EventHandler > void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < S > e ) { e.call = this ; com.google.gwtjsonrpc.client.JsonUtil.fireEvent ( e ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "Range[" + ( base ) ) + "," ) + ( end ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( "Range[" + ( base ) ) + "," ) + ( end ( ) ) ) + ")" ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( id.name ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , id.name ( ) ) ) ; }
Source:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.UPLOAD , id ) ) ; return action ; }

Target:
public Response.Action getUploadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id , long size ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getUploadAction ( id , size ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.UPLOAD , id , expirationSeconds ) ) ; return action ; }
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 ) { display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; updateForm ( ) ; }
Source:
private org.spearce.jgit.lib.PersonIdent toPersonIdent ( final com.google.gerrit.client.reviewdb.ChangeApproval audit ) { if ( audit == null ) { return null ; } return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newPersonIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; }

Target:
private org.spearce.jgit.lib.PersonIdent toPersonIdent ( final com.google.gerrit.client.reviewdb.PatchSetApproval audit ) { if ( audit == null ) { return null ; } return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newPersonIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; }
Source:
public void remove ( ) { registry.remove ( name ) ; }

Target:
public void remove ( ) { descriptions.remove ( name ) ; registry.remove ( name ) ; }
Source:
public void markReady ( ) throws java.io.IOException ;

Target:
public void markReady ( boolean ready ) throws java.io.IOException ;
Source:
public boolean canUpdate ( ) { return canPerform ( Permission.PUSH ) ; }

Target:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( getProjectControl ( ) . isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH ) ; }
Source:
public static java.lang.String toChangeQuery ( java.lang.String query , java.lang.String page ) { return ( ( "/q/" + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + "," ) + page ; }

Target:
public static java.lang.String toChangeQuery ( java.lang.String query ) { return ( com.google.gerrit.common.PageLinks.QUERY ) + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ; }
Source:
public void run ( ) { openIndex.close ( ) ; }

Target:
public void close ( ) { try { openIndex.close ( ) ; } finally { closedIndex.close ( ) ; } }
Source:
public final native double heightAtLine ( int line , java.lang.String mode ) ;

Target:
public void handle ( net.codemirror.lib.CodeMirror instance , int line , java.lang.String gutter , com.google.gwt.event.dom.client.MouseDownEvent clickEvent ) ;
Source:
protected void onInsertComment ( final com.google.gerrit.client.patches.PatchLine line ) { final int row = getCurrentRow ( ) ; createCommentEditor ( ( row + 1 ) , 4 , line.getLineB ( ) , ( ( short ) ( 1 ) ) ) ; }

Target:
protected void onInsertComment ( final com.google.gerrit.client.patches.PatchLine line ) { final int row = getCurrentRow ( ) ; createCommentEditor ( ( row + 1 ) , com.google.gerrit.client.patches.SideBySideTable.B , line.getLineB ( ) , ( ( short ) ( 1 ) ) ) ; }
Source:
public void run ( ) { com.google.gerrit.server.git.PerThreadRequestScope ctx = new com.google.gerrit.server.git.PerThreadRequestScope ( ) ; com.google.gerrit.server.git.PerThreadRequestScope old = com.google.gerrit.server.git.PerThreadRequestScope.set ( ctx ) ; try { runPushOperation ( ) ; } finally { com.google.gerrit.server.git.PerThreadRequestScope.set ( old ) ; } }

Target:
public java.lang.Void call ( ) { runPushOperation ( ) ; return null ; }
Source:
public void onBrowserEvent ( final com.google.gwt.user.client.Event event ) { if ( ( com.google.gwt.user.client.DOM.eventGetType ( event ) ) == ( com.google.gwt.user.client.Event.ONCLICK ) ) { onClick ( event ) ; } }

Target:
public void onBrowserEvent ( final com.google.gwt.user.client.Event event ) { if ( ( ( com.google.gwt.user.client.DOM.eventGetType ( event ) ) == ( com.google.gwt.user.client.Event.ONCLICK ) ) && ( com.google.gerrit.client.ui.LinkMenuItem.impl.handleAsClick ( event ) ) ) { onClick ( event ) ; } }
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { getBatchRefUpdate ( ) . addCommand ( cmd ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { com.google.gerrit.reviewdb.client.Change c = ctl.getChange ( ) ; com.google.common.base.Preconditions.checkNotNull ( c ) ; return c ; }
Source:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.index.IndexModule ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestEventForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.event.EventModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.index.IndexModule ( ) ) ; }
Source:
protected void configureServlets ( ) { if ( loggingEnabled ) { filter ( "/*" ) . through ( com.google.gerrit.pgm.http.jetty.GetUserFilter.class ) ; } }

Target:
protected void configureServlets ( ) { if ( enabled ) { filter ( "/*" ) . through ( com.google.gerrit.httpd.GetUserFilter.class ) ; } }
Source:
static void unsetForwardedEvent ( ) { com.ericsson.gerrit.plugins.syncindex.Context.FORWARDED_EVENT.remove ( ) ; }

Target:
static void unsetForwardedEvent ( ) { com.ericsson.gerrit.plugins.multimaster.Context.FORWARDED_EVENT.remove ( ) ; }
Source:
public boolean apply ( java.nio.file.Path p ) { return ! ( p.getFileName ( ) . toString ( ) . endsWith ( ".disabled" ) ) ; }

Target:
private static java.lang.Iterable < java.nio.file.Path > filterDisabledPlugins ( java.util.Collection < java.nio.file.Path > paths ) { return com.google.common.collect.Iterables.filter ( paths , ( p ) -> ! ( p.getFileName ( ) . toString ( ) . endsWith ( ".disabled" ) ) ) ; }
Source:
public void setNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.Type type , final boolean v ) { switch ( type ) { case NEW_CHANGES : notifySubmittedChanges = v ; break ; case SUBMITS : notifyNewChanges = v ; break ; case COMMENTS : notifyAllComments = v ; break ; } }

Target:
public void setNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.NotifyType type , final boolean v ) { switch ( type ) { case NEW_CHANGES : notifyNewChanges = v ; break ; case ALL_COMMENTS : notifyAllComments = v ; break ; case SUBMITTED_CHANGES : notifySubmittedChanges = v ; break ; } }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return context.getCurrentUser ( ) ; }
Source:
public final native void setLine ( int line ) ;

Target:
public static net.codemirror.lib.LineCharacter create ( int line ) { return net.codemirror.lib.LineCharacter.createImpl ( line , 0 ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameBox.setText ( "" ) ; watchesTab.insertWatch ( result ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameBox.setText ( "" ) ; watchesTab.insertWatch ( projectWatchInfo ) ; }
Source:
public void reAddExistingGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; org.bouncycastle.openpgp.PGPPublicKey pk = key.getPublicKey ( ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = gApi.accounts ( ) . self ( ) . addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 2 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 2 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; pk = org.bouncycastle.openpgp.PGPPublicKey.removeCertification ( pk , "foo:myId" ) ; info = gApi.accounts ( ) . self ( ) . addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 1 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 1 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; }

Target:
public void addOtherUsersGpgKey_Conflict ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfoImpl ( serverEnableSignedPush , resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , views ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfoImpl ( serverEnableSignedPush , resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , uiActions , views ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.permissions.PermissionBackendException { permissionBackend.user ( user ) . project ( rsrc.getNameKey ( ) ) . check ( ProjectPermission.WRITE_CONFIG ) ; return apply ( rsrc.getProjectState ( ) , input ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.permissions.PermissionBackendException { permissionBackend.currentUser ( ) . project ( rsrc.getNameKey ( ) ) . check ( ProjectPermission.WRITE_CONFIG ) ; return apply ( rsrc.getProjectState ( ) , input ) ; }
Source:
void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
void doCommentAddedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , java.util.Map < java.lang.String , java.lang.Short > oldApprovals , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
public void onFocus ( final com.google.gwt.user.client.ui.Widget sender ) { if ( ( currentRow ) < 0 ) { onDown ( ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( this . onKeyPress ( event ) ) { event.stopPropagation ( ) ; event.preventDefault ( ) ; } }
Source:
public com.google.gerrit.server.change.RebaseChangeOp setValidatePolicy ( com.google.gerrit.server.git.validators.CommitValidators.Policy validate ) { this . validate = validate ; return this ; }

Target:
public com.google.gerrit.server.change.RebaseChangeOp setValidate ( boolean validate ) { this . validate = validate ; return this ; }
Source:
void set ( java.lang.String section , java.lang.String subsection , java.lang.String name , java.lang.String value ) ;

Target:
public final void set ( java.lang.String section , java.lang.String subsection , java.lang.String name , java.lang.String value ) { setList ( section , subsection , name , com.google.common.collect.Lists.newArrayList ( value ) ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true ) ; }
Source:
private boolean isVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { if ( ( getChange ( ) . isPrivate ( ) ) && ( ! ( isPrivateVisible ( db , cd ) ) ) ) { return false ; } return isRefVisible ( ) ; }

Target:
private boolean isVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , @ com.google.gerrit.common.Nullable com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { if ( ( getChange ( ) . isPrivate ( ) ) && ( ! ( isPrivateVisible ( db , cd ) ) ) ) { return false ; } return refControl.isVisible ( ) ; }
Source:
public final native int length ( ) ;

Target:
public final native int mark ( ) ;
Source:
private static com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput newComment ( java.lang.String path , com.google.gerrit.extensions.client.Side side , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput c = new com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( c , path , side , line , message ) ; }

Target:
private com.google.gerrit.extensions.api.changes.DraftInput newDraft ( java.lang.String path , com.google.gerrit.extensions.client.Side side , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.DraftInput d = new com.google.gerrit.extensions.api.changes.DraftInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( d , path , side , null , line , message ) ; }
Source:
protected org.mortbay.jetty.AbstractConnector getConnector ( ) { return new org.mortbay.jetty.nio.SelectChannelConnector ( ) ; }

Target:
protected org.eclipse.jetty.server.HttpConfiguration defaultConfig ( ) { org.eclipse.jetty.server.HttpConfiguration config = new org.eclipse.jetty.server.HttpConfiguration ( ) ; config.setRequestHeaderSize ( 16386 ) ; config.setSendServerVersion ( false ) ; config.setSendDateHeader ( true ) ; return config ; }
Source:
public static long getOpenBytes ( ) { return org.eclipse.jgit.storage.file.WindowCache.getInstance ( ) . getOpenBytes ( ) ; }

Target:
public static long getOpenBytes ( ) { return org.eclipse.jgit.internal.storage.file.WindowCache.getInstance ( ) . getOpenBytes ( ) ; }
Source:
protected void display ( final com.google.gerrit.reviewdb.client.Account userAccount ) { super . display ( userAccount ) ; displayHasContact ( userAccount ) ; addressTxt.setText ( "" ) ; countryTxt.setText ( "" ) ; phoneTxt.setText ( "" ) ; faxTxt.setText ( "" ) ; }

Target:
protected void display ( com.google.gerrit.client.info.AccountInfo account ) { super . display ( account ) ; displayHasContact ( account ) ; addressTxt.setText ( "" ) ; countryTxt.setText ( "" ) ; phoneTxt.setText ( "" ) ; faxTxt.setText ( "" ) ; }
Source:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexRestApiServlet.class ) ; serve ( "/event" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServlet.class ) ; }

Target:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexRestApiServlet.class ) ; serve ( "/event" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServlet.class ) ; serve ( "/cache/*" ) . with ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.CacheRestApiServlet.class ) ; }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > listGpgKeys ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return gpgApiAdapter.listGpgKeys ( account ) ; } catch ( com.google.gerrit.server.GpgException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list GPG keys" , e ) ; } }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > listGpgKeys ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return gpgApiAdapter.listGpgKeys ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot list GPG keys" , e ) ; } }
Source:
private com.google.gerrit.server.patch.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return new com.google.gerrit.server.patch.PatchListKey ( revisionIdA , revisionIdB , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.IGNORE_NONE ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return com.google.gerrit.server.patch.PatchListKey.againstCommit ( revisionIdA , revisionIdB , Whitespace.IGNORE_NONE ) ; }
Source:
public void createBranch ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { gApi.projects ( ) . name ( project.get ( ) ) . branch ( "foo" ) . create ( new com.google.gerrit.extensions.api.projects.BranchInput ( ) ) ; }

Target:
public void createBranch ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/*" ) ; gApi.projects ( ) . name ( project.get ( ) ) . branch ( "foo" ) . create ( new com.google.gerrit.extensions.api.projects.BranchInput ( ) ) ; }
Source:
public void addReviewerByEmailToReviewableChangeInReviewDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; forAll ( ( adder ) -> { java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
private void addReviewerByEmailToReviewableChangeInReviewDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
void changeExternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.ExternalNameKey bindTo , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;

Target:
void renameGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;
Source:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; com.google.gerrit.server.Lifecycle.start ( dbInjector , sysInjector , sshInjector , webInjector ) ; }

Target:
public void contextInitialized ( final javax.servlet.ServletContextEvent event ) { super . contextInitialized ( event ) ; init ( ) ; manager.start ( ) ; }
Source:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return "/admin/groups/" + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id , java.lang.String panel ) { return ( ( ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ) + "," ) + panel ; }
Source:
Account.Id getAuthorId ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) . getAccountId ( ) ; }

Target:
Account.Id getAuthorId ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getUser ( ) ) ) . getAccountId ( ) ; }
Source:
private java.io.File randomTargetFile ( ) { final java.io.File t = new java.io.File ( "target" ) ; return new java.io.File ( t , ( "random-name-" + ( java.util.UUID.randomUUID ( ) . toString ( ) ) ) ) ; }

Target:
private java.nio.file.Path randomTargetPath ( ) { return java.nio.file.Paths.get ( "target" , ( "random-name-" + ( java.util.UUID.randomUUID ( ) . toString ( ) ) ) ) ; }
Source:
public T decode ( byte [ ] buf ) { return decode ( com.google.protobuf.CodedInputStream.newInstance ( buf ) ) ; }

Target:
public T decode ( byte [ ] data , int offset , int length ) { return decode ( com.google.protobuf.CodedInputStream.newInstance ( data , offset , length ) ) ; }
Source:
public static boolean isMagicBranch ( java.lang.String refName ) { return ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_DRAFT_CHANGE ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) ) ; }

Target:
public static boolean isMagicBranch ( java.lang.String refName ) { return ( ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_DRAFT_CHANGE ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_PUBLISH_CHANGE ) ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) ) ; }
Source:
public void testCreateProjectWithEmptyCommit ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.create_empty_commit = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertEmptyCommit ( newProjectName , "refs/heads/master" ) ; }

Target:
public void testCreateProjectWithEmptyCommit ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.server.project.CreateProject.Input in = new com.google.gerrit.server.project.CreateProject.Input ( ) ; in.createEmptyCommit = true ; session.put ( ( "/projects/" + newProjectName ) , in ) ; assertEmptyCommit ( newProjectName , "refs/heads/master" ) ; }
Source:
public boolean supportsDisplayNameChanges ( com.gitblit.models.UserModel user ) { return false ; }

Target:
public boolean supportsEmailAddressChanges ( ) { return false ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.apply ( revision ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get patch" , e ) ; } }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get patch" , e ) ; } }
Source:
java.util.Map < java.lang.String , java.lang.Short > getLabels ( ) { return labels ; }

Target:
void addMessage ( final java.lang.String token ) { message = token.replace ( "_" , " " ) ; }
Source:
public synchronized com.google.gerrit.testutil.InMemoryRepositoryManager.Repo openRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException { return get ( name ) ; }

Target:
public synchronized com.google.gerrit.testing.InMemoryRepositoryManager.Repo openRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException { return get ( name ) ; }
Source:
public final native void showTabs ( boolean s ) ;

Target:
public final native void intralineDifference ( java.lang.Boolean i ) ;
Source:
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 ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }
Source:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box ) { diffTable.onRemoveDraftBox ( box ) ; }

Target:
private void render ( com.google.gerrit.client.diff.DiffInfo diff ) { header.setNoDiff ( diff ) ; chunkManager.render ( diff ) ; }
Source:
protected com.google.gerrit.extensions.common.ChangeInfo getChange ( com.google.gerrit.acceptance.TestAccount account , java.lang.String changeId , com.google.gerrit.extensions.client.ListChangesOption ... options ) throws java.io.IOException { return gApi.changes ( ) . id ( changeId ) . get ( options ) ; }

Target:
protected org.eclipse.jgit.internal.storage.dfs.InMemoryRepository repo ( ) { return testRepo.getRepository ( ) ; }
Source:
void registerReplyBox ( com.google.gerrit.client.diff.DraftBox box ) { replyBox = box ; box.registerReplyToBox ( this ) ; }

Target:
void setReplyBox ( com.google.gerrit.client.diff.DraftBox box ) { replyBox = box ; box.setReplyToBox ( this ) ; }
Source:
private void preMerge ( final com.google.gerrit.server.git.SubmitStrategy strategy , final java.util.List < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }

Target:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( final com.google.gerrit.extensions.common.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
public int compare ( com.google.gerrit.server.account.GetEmails.EmailInfo a , com.google.gerrit.server.account.GetEmails.EmailInfo b ) { return a.email.compareTo ( b.email ) ; }

Target:
public int compare ( com.google.gerrit.extensions.common.EmailInfo a , com.google.gerrit.extensions.common.EmailInfo b ) { return a.email.compareTo ( b.email ) ; }
Source:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( com.google.gerrit.extensions.common.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }

Target:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( com.google.gerrit.extensions.client.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
void notifyStarting ( final com.google.gerrit.server.git.PushOp op ) { synchronized ( pending ) { pending.remove ( op.getURI ( ) ) ; } }

Target:
void notifyStarting ( final com.google.gerrit.server.git.PushOp op ) { synchronized ( pending ) { if ( ! ( op.wasCanceled ( ) ) ) { pending.remove ( op.getURI ( ) ) ; } } }
Source:
public void setup ( ) { conn = org.mockito.Mockito.mock ( java.sql.Connection.class ) ; }

Target:
private static void assertExpectedIdsUsed ( java.sql.PreparedStatement statement , int ... ids ) throws java.sql.SQLException { for ( int id : ids ) { org.mockito.Mockito.verify ( statement ) . setInt ( 1 , id ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser parse ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser user = _parse ( id ) ; if ( user == null ) { throw new com.google.gerrit.extensions.restapi.UnprocessableEntityException ( java.lang.String.format ( "Account Not Found: %s" , id ) ) ; } return user ; }

Target:
public com.google.gerrit.server.IdentifiedUser parse ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser user = parseId ( id ) ; if ( user == null ) { throw new com.google.gerrit.extensions.restapi.UnprocessableEntityException ( java.lang.String.format ( "Account Not Found: %s" , id ) ) ; } return user ; }
Source:
void set ( com.google.gerrit.reviewdb.client.Change.Id changeId ) { this . changeId = changeId ; reviewerSuggestOracle.setChange ( changeId ) ; }

Target:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacy_id ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }
Source:
public org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { return this . getRevWalk ( ) ; }

Target:
public org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { return getRepoView ( ) . getRevWalk ( ) ; }
Source:
protected boolean removeEldestEntry ( java.util.Map.Entry < java.lang.String , com.google.gerrit.client.projects.ConfigInfoCache.Entry > e ) { return ( size ( ) ) > ( com.google.gerrit.client.projects.ConfigInfoCache.LIMIT ) ; }

Target:
protected boolean removeEldestEntry ( java.util.Map.Entry < java.lang.String , com.google.gerrit.client.projects.ConfigInfoCache.Entry > e ) { return ( size ( ) ) > ( com.google.gerrit.client.projects.ConfigInfoCache.PROJECT_LIMIT ) ; }
Source:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , java.lang.String reviewer ) throws java.lang.Exception { com.google.gerrit.extensions.api.changes.AddReviewerInput in = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; in.reviewer = reviewer ; return addReviewer ( changeId , in ) ; }

Target:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , java.lang.String reviewer ) throws java.lang.Exception { return addReviewer ( changeId , reviewer , javax.servlet.http.HttpServletResponse.SC_OK ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.StarredChange.Key key ) { byAccountId.remove ( key.getParentKey ( ) ) ; byChangeId.remove ( key.getChangeId ( ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.StarredChange.Key key ) { return com.google.gerrit.server.util.CompoundFuture.wrap ( byAccountId.removeAsync ( key.getParentKey ( ) ) , byChangeId.removeAsync ( key.getChangeId ( ) ) ) ; }
Source:
public static native com.google.gerrit.client.account.AccountInfo create ( int id , java.lang.String name , java.lang.String email ) ;

Target:
public static native com.google.gerrit.client.account.AccountInfo create ( int id , java.lang.String name , java.lang.String email , java.lang.String username ) ;
Source:
private static com.google.common.base.Optional < com.google.gitiles.FormatType > set ( javax.servlet.http.HttpServletRequest req , com.google.common.base.Optional < com.google.gitiles.FormatType > format ) { req.setAttribute ( com.google.gitiles.FormatType.FORMAT_TYPE_ATTRIBUTE , format ) ; return format ; }

Target:
private static java.util.Optional < com.google.gitiles.FormatType > set ( javax.servlet.http.HttpServletRequest req , java.util.Optional < com.google.gitiles.FormatType > format ) { req.setAttribute ( com.google.gitiles.FormatType.FORMAT_TYPE_ATTRIBUTE , format ) ; return format ; }
Source:
public static java.sql.Timestamp roundTimestampToSecond ( java.sql.Timestamp t ) { long milliseconds = ( ( t.getTime ( ) ) / 1000 ) * 1000 ; return new java.sql.Timestamp ( milliseconds ) ; }

Target:
public static java.sql.Timestamp roundToSecond ( java.sql.Timestamp t ) { return new java.sql.Timestamp ( ( ( ( t.getTime ( ) ) / 1000 ) * 1000 ) ) ; }
Source:
public void testUpsertTwoNotExistsing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE ) ; java.sql.PreparedStatement insert = stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 , 1 ) ; createClassUnderTest ( ) . upsert ( com.google.gwtorm.jdbc.TestJdbcAccess.TWO_ROWS ) ; verifyIds ( insert , 1 , 2 ) ; }

Target:
public void testInsertNothing ( ) throws com.google.gwtorm.server.OrmException { setup ( ) ; createClassUnderTest ( ) . insert ( noData ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { onOpenRow ( table.getCellForEvent ( event ) . getRowIndex ( ) ) ; }

Target:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toProjectAcceess ( getProjectKey ( ) ) ) ; }
Source:
public void allRefsVisibleWithRefsMetaConfig ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/meta/config" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/02/2/1" , "refs/heads/branch" , "refs/heads/master" , "refs/meta/config" ) ; }

Target:
public void allRefsVisibleWithRefsMetaConfig ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/meta/config" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/changes/02/2/1" , "refs/changes/02/2/meta" , "refs/heads/branch" , "refs/heads/master" , "refs/meta/config" ) ; }
Source:
void cacheVisibleTo ( com.google.gerrit.server.CurrentUser user ) { visibleTo = user ; }

Target:
void cacheVisibleTo ( com.google.gerrit.server.project.ChangeControl ctl ) { visibleTo = ctl.getCurrentUser ( ) ; changeControl = ctl ; }
Source:
public com.google.gerrit.extensions.api.projects.BranchInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return resource ( ) . getBranchInfo ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot read branch" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.projects.BranchInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getBranch.apply ( resource ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot read branch" , e ) ; } }
Source:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) { return control.getNotes ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) { return getControl ( ) . getNotes ( ) ; }
Source:
public void badParameters ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.String > params = new java.util.HashMap < > ( ) ; params.put ( "t1" , "bad format" ) ; params.put ( "t2" , "bad format" ) ; com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.queryMaker.formQueryFromRequestParameters ( params ) ; }

Target:
public void badParameters ( ) throws java.lang.Exception { queryMaker.formQueryFromRequestParameters ( com.google.common.collect.ImmutableMap.of ( com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T1 , "13/13/32" , com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T2 , "14/10/10" ) ) ; }
Source:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { final java.lang.String part = "(?:" + ( ( ( "[a-zA-Z0-9$_+!*'%;:@=?#/~-]" + "|&(?!lt;|gt;)" ) + "|[.,](?!(?:\\s|$))" ) + ")" ) ; return replaceAll ( ( ( ( ( ( ( ( ( ( "(https?://" + part ) + "{2,}" ) + "(?:[(]" ) + part ) + "*" ) + "[)])*" ) + part ) + "*" ) + ")" ) , "<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1</a>" ) ; }

Target:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { final java.lang.String part = "(?:[a-zA-Z0-9$_+!*\'%;:@=?#/~-]|&(?!lt;|gt;)|[.,](?!(?:\\s|$)))" ; return replaceAll ( ( ( ( ( ( ( "(https?://" + part ) + "{2,}(?:[(]" ) + part ) + "*[)])*" ) + part ) + "*)" ) , "<a href=\"$1\" target=\"_blank\" rel=\"nofollow\">$1</a>" ) ; }
Source:
public void setIncludes ( java.util.List < com.google.gerrit.reviewdb.client.AccountGroupById > i ) { includes = i ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.AccountGroupMember > getMembers ( ) { return members ; }
Source:
public void flushAll_Forbidden ( ) throws java.lang.Exception { userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL ) ) . assertForbidden ( ) ; }

Target:
public void flushAll_Forbidden ( ) throws java.lang.Exception { userRestSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL ) ) . assertForbidden ( ) ; }
Source:
public void visit ( org.pegdown.ast.Node node ) { com.google.common.base.Preconditions.checkState ( false , "node %s unsupported" , node.getClass ( ) ) ; }

Target:
public void visit ( org.commonmark.node.HardLineBreak node ) { html.open ( "br" ) ; }
Source:
public void setStatus ( final com.google.gerrit.client.reviewdb.Change.Status newStatus ) { status = newStatus.getCode ( ) ; }

Target:
public void setStatus ( final com.google.gerrit.client.reviewdb.Change.Status newStatus ) { open = newStatus.isOpen ( ) ; status = newStatus.getCode ( ) ; }
Source:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; com.googlesource.gerrit.plugins.lfs.AuthInfo authInfo = authorizer.generateAuthInfo ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.DOWNLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.ExpiringAction ( action.href , authInfo ) ; }

Target:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; com.googlesource.gerrit.plugins.lfs.AuthInfo authInfo = authorizer.generateAuthInfo ( org.eclipse.jgit.lfs.lib.Constants.DOWNLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.ExpiringAction ( action.href , authInfo ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }

Target:
public boolean execute ( ) { if ( ( prefs.syntaxHighlighting ( ) ) && ( isAttached ( ) ) ) { setSyntaxHighlighting ( prefs.syntaxHighlighting ( ) ) ; } return false ; }
Source:
public void review ( final java.lang.String newStatus , final com.google.gerrit.client.reviewdb.Account.Id by ) { status = newStatus ; reviewedBy = by ; reviewedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void review ( final com.google.gerrit.client.reviewdb.AccountAgreement.Status newStatus , final com.google.gerrit.client.reviewdb.Account.Id by ) { status = newStatus.getCode ( ) ; reviewedBy = by ; reviewedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public void removeApproval ( java.lang.String label ) { approvals.put ( label , com.google.common.base.Optional.< java.lang.Short > absent ( ) ) ; }

Target:
public void removeApprovalFor ( com.google.gerrit.reviewdb.client.Account.Id reviewer , java.lang.String label ) { approvals.put ( label , reviewer , com.google.common.base.Optional.< java.lang.Short > absent ( ) ) ; }
Source:
public void myStarredChangeIds ( final com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.Change.Id > > callback ) { callback.onSuccess ( currentUser.get ( ) . getStarredChanges ( ) ) ; }

Target:
public void myStarredChangeIds ( final com.google.gwtjsonrpc.common.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.Change.Id > > callback ) { callback.onSuccess ( currentUser.get ( ) . getStarredChanges ( ) ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; return modify ( edit , new com.google.gerrit.server.edit.tree.RenameFileModification ( editCommit , file , newFile ) ) ; }

Target:
public void renameFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String currentFilePath , java.lang.String newFilePath ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; modifyTree ( repository , edit , new com.google.gerrit.server.edit.tree.RenameFileModification ( editCommit , currentFilePath , newFilePath ) ) ; }
Source:
protected com.google.gerrit.client.admin.ProjectRightsPanel create ( ) { return new com.google.gerrit.client.admin.ProjectRightsPanel ( projectId ) ; }

Target:
protected com.google.gerrit.client.admin.ProjectRightsPanel createWidget ( ) { return new com.google.gerrit.client.admin.ProjectRightsPanel ( projectId ) ; }
Source:
public void run ( ) { resizePaddingOnOtherSide ( side , instance.getLineNumber ( handle ) ) ; }

Target:
void syncScroll ( com.google.gerrit.client.diff.DisplaySide masterSide ) { if ( ( scrollSynchronizer ) != null ) { scrollSynchronizer.syncScroll ( masterSide ) ; } }