auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void delete ( int id ) throws java.io.IOException { java.lang.String idString = java.lang.Integer.toString ( id ) ; delete ( idString , openIndex ) ; delete ( idString , closedIndex ) ; }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) throws java.io.IOException { java.lang.String idString = java.lang.Integer.toString ( id.get ( ) ) ; delete ( idString , openIndex ) ; delete ( idString , closedIndex ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.config.ServerInfo info ) { com.google.gerrit.client.Gerrit.myServerInfo = info ; onModuleLoad2 ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.config.ServerInfo info ) { com.google.gerrit.client.Gerrit.myServerInfo = info ; }
Source:
public final com.google.gerrit.server.index.SiteIndexer < K , V , I > getSiteIndexer ( ) { return siteIndexer.get ( ) ; }

Target:
public final com.google.gerrit.server.index.SiteIndexer < K , V , I > getSiteIndexer ( ) { return siteIndexer ; }
Source:
protected void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) throws com.google.gerrit.server.git.IntegrationException { args.mergeTip.moveTipTo ( amendGitlink ( toMerge ) , toMerge ) ; }

Target:
protected void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) throws com.google.gerrit.server.git.IntegrationException { args.mergeTip.moveTipTo ( toMerge , toMerge ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getExternalIds.apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get external IDs" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountExternalIdInfo > getExternalIds ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getExternalIds.apply ( account ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get external IDs" , e ) ; } }
Source:
public static com.google.gwtexpui.safehtml.client.PrettyFormatter newFormatter ( java.lang.String lang ) { return com.google.gwtexpui.safehtml.client.PrettyFormatter.Pretty.loaded ? new com.google.gwtexpui.safehtml.client.PrettyFormatter.Pretty ( lang ) : new com.google.gwtexpui.safehtml.client.PrettyFormatter.PassThrough ( ) ; }

Target:
public static com.google.gwtexpui.safehtml.client.PrettyFormatter newFormatter ( java.lang.String lang ) { return new com.google.gwtexpui.safehtml.client.PrettyFormatter.Pretty ( lang ) ; }
Source:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; validate ( ) ; setAccount ( ) ; } } ) ; }

Target:
public void run ( ) throws java.lang.Exception { validate ( ) ; setAccount ( ) ; }
Source:
public void setTitleText ( final java.lang.String text ) { headerText.setText ( text ) ; }

Target:
protected void setTitleText ( final java.lang.String text ) { headerText.setText ( text ) ; }
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > not ( final com.google.gerrit.server.query.Predicate < T > that ) { if ( that instanceof com.google.gerrit.server.query.NotPredicate ) { return that.getChild ( 0 ) ; } return new com.google.gerrit.server.query.NotPredicate < T > ( that ) ; }

Target:
public static < T > com.google.gerrit.server.query.Predicate < T > not ( final com.google.gerrit.server.query.Predicate < T > that ) { if ( that instanceof com.google.gerrit.server.query.NotPredicate ) { return that.getChild ( 0 ) ; } return new com.google.gerrit.server.query.NotPredicate ( that ) ; }
Source:
public java.lang.String getLine ( final int i ) { return getLines ( i , ( i + 1 ) ) ; }

Target:
public java.lang.String getLine ( final int i ) { return getLines ( i , ( i + 1 ) , true ) ; }
Source:
private static java.nio.file.Path getDeveloperBuckOut ( ) { try { return com.google.gerrit.launcher.GerritLauncher.getDeveloperBuckOut ( ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }

Target:
private java.nio.file.Path getDeveloperBuckOut ( ) { try { return com.google.gerrit.launcher.GerritLauncher.getDeveloperBuckOut ( ) ; } catch ( java.io.FileNotFoundException e ) { return null ; } }
Source:
public RefUpdate.Result restoreFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.RESTORE_ENTRY , edit , file , null ) ; }

Target:
public RefUpdate.Result restoreFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.RESTORE_ENTRY , edit , file , null , null ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , psId ) ) ; }
Source:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . named ( message ( refUpdate ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }

Target:
public java.lang.String getMessage ( ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; return message ( refUpdate ) ; }
Source:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { if ( ( token ) == null ) { return null ; } else { return org.kohsuke.github.GitHub.connectUsingOAuth ( config.gitHubApiUrl , token.accessToken ) ; } }

Target:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { if ( ( token ) == null ) { return null ; } return org.kohsuke.github.GitHub.connectUsingOAuth ( config.gitHubApiUrl , token.accessToken ) ; }
Source:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { replyAction.onReply ( ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { onReply ( ) ; }
Source:
public static java.lang.String refsStarredChangesPrefix ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , accountId ) . toString ( ) ; }

Target:
public static java.lang.String refsStarredChangesPrefix ( com.google.gerrit.reviewdb.client.Change.Id changeId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) . toString ( ) ; }
Source:
public java.lang.String format ( java.lang.String projectName , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException ;

Target:
public java.lang.String format ( java.lang.String projectName , java.lang.String revision , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException ;
Source:
abstract com.google.gerrit.server.mail.receive.MailMessage.Builder id ( java.lang.String val ) ;

Target:
public abstract com.google.gerrit.server.mail.receive.MailMessage.Builder id ( java.lang.String val ) ;
Source:
private void readGroupList ( ) throws java.io.IOException { groupList = com.google.gerrit.server.git.GroupList.parse ( readUTF8 ( GroupList.FILE_NAME ) , this ) ; }

Target:
private void readGroupList ( ) throws java.io.IOException { groupList = com.google.gerrit.server.git.GroupList.parse ( projectName , readUTF8 ( GroupList.FILE_NAME ) , this ) ; }
Source:
public static com.google.gerrit.server.query.change.InternalChangeQuery query ( com.google.gerrit.server.query.change.InternalChangeQuery q ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.MERGEABLE.getName ( ) ) ; return q.setRequestedFields ( fields ) ; }

Target:
public static com.google.gerrit.server.query.change.InternalChangeQuery query ( com.google.gerrit.server.query.change.InternalChangeQuery q ) { return q.setRequestedFields ( ChangeField.CHANGE , ChangeField.PATCH_SET , ChangeField.MERGEABLE ) ; }
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 onReload ( com.google.gwt.event.dom.client.ClickEvent e ) { e.preventDefault ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , changeId ) ) ; }
Source:
Account.Id getAuthorId ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) . getAccountId ( ) ; }

Target:
Account.Id getAccountId ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) . getAccountId ( ) ; }
Source:
public static java.lang.String toPatch ( java.lang.String type , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , diffBase , id.getParentKey ( ) , id.get ( ) , null , 0 ) ; }

Target:
public static java.lang.String toPatch ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String type , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , project , diffBase , id.getParentKey ( ) , id.get ( ) , null , 0 ) ; }
Source:
java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;

Target:
java.util.Optional < com.google.gerrit.server.account.AccountState > get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) ;
Source:
public final boolean isHttpPasswordSettingsEnabled ( ) { if ( ( isGitBasicAuth ( ) ) && ( ( gitBasicAuthPolicy ( ) ) == ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP ) ) ) { return false ; } return true ; }

Target:
public final boolean isHttpPasswordSettingsEnabled ( ) { return ( gitBasicAuthPolicy ( ) ) != ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP ) ; }
Source:
public void display ( final java.lang.String commitMessage ) { display ( null , null , commitMessage ) ; }

Target:
public void display ( final java.lang.String commitMessage ) { display ( null , null , false , commitMessage ) ; }
Source:
public void setTimeForTesting ( ) { Merge ( com.google.gerrit.server.query.change.I7aeb7d2e , com.google.gerrit.server.query.change.Ie93003f9 , com.google.gerrit.server.query.change.I16cdc920 ) ; resetTimeWithClockStep ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public void setTimeForTesting ( ) { resetTimeWithClockStep ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
private static void updateUiLink ( java.lang.String token ) { com.google.gerrit.client.Gerrit.uiSwitcherLink.setHref ( com.google.gerrit.client.Gerrit.getUiSwitcherUrl ( token ) ) ; }

Target:
private static void updateUiLink ( java.lang.String token ) { if ( ( com.google.gerrit.client.Gerrit.uiSwitcherLink ) != null ) { com.google.gerrit.client.Gerrit.uiSwitcherLink.setHref ( com.google.gerrit.client.Gerrit.getUiSwitcherUrl ( token ) ) ; } }
Source:
public static void updated ( com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }

Target:
public static void updated ( com.google.gerrit.reviewdb.client.Change c ) { c.setLastUpdatedOn ( com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; }
Source:
private void initProviderJce ( ) { setKeyExchangeFactories ( NamedFactory.Utils.setUpTransformedFactories ( true , java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( BuiltinDHFactories.dhg1 ) ) , ServerBuilder.DH2KEX ) ) ; setKeyExchangeFactories ( org.apache.sshd.server.ServerBuilder.setUpDefaultKeyExchanges ( true ) ) ; setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( org.apache.sshd.common.random.JceRandomFactory.INSTANCE ) ) ; }

Target:
private void initProviderJce ( ) { setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( org.apache.sshd.common.random.JceRandomFactory.INSTANCE ) ) ; }
Source:
private void uncacheSshKeys ( final java.lang.String userName ) { if ( userName != null ) { sshKeyCache.evict ( userName ) ; } }

Target:
private void uncacheSshKeys ( final java.lang.String userName ) { sshKeyCache.evict ( userName ) ; }
Source:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName , true ) ; } }

Target:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName ) ; } }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style.replyBox ( ) , editButton , replyButton ) ; edit.onEdit ( ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style , editButton , replyButton ) ; edit.onEdit ( ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.projects.ProjectMap result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }

Target:
private void display ( final com.google.gerrit.client.projects.ProjectMap result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }
Source:
public static com.google.common.collect.FluentIterable < java.lang.String > names ( com.google.gerrit.acceptance.TestAccount ... accounts ) { return com.google.gerrit.acceptance.TestAccount.names ( java.util.Arrays.asList ( accounts ) ) ; }

Target:
public static java.util.List < java.lang.String > names ( com.google.gerrit.acceptance.TestAccount ... accounts ) { return com.google.gerrit.acceptance.TestAccount.names ( java.util.Arrays.asList ( accounts ) ) ; }
Source:
public void onOk ( ) { deleteBranches ( ids ) ; }

Target:
public void onOk ( ) { deleteBranches ( refs ) ; }
Source:
private static java.nio.file.FileSystem newZipFileSystem ( java.nio.file.Path zip ) throws java.io.IOException { return java.nio.file.FileSystems.newFileSystem ( java.net.URI.create ( ( "jar:" + ( zip.toUri ( ) ) ) ) , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) ) ; }

Target:
public static java.nio.file.FileSystem newZipFileSystem ( java.nio.file.Path zip ) throws java.io.IOException { return java.nio.file.FileSystems.newFileSystem ( java.net.URI.create ( ( "jar:" + ( zip.toUri ( ) ) ) ) , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.patch.PatchDetailServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) . getDatabase ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.patch.PatchDetailServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) ) ; }
Source:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; audit ( context.get ( ) , "0" , "LOGIN" , new java.lang.String [ ] { } ) ; }

Target:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; audit ( context.get ( ) , "0" , "LOGIN" ) ; }
Source:
java.lang.String getAuthorizationUrl ( com.google.gerrit.extensions.auth.oauth.OAuthToken requestToken ) ;

Target:
java.lang.String getAuthorizationUrl ( ) ;
Source:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return ( isOwner ( ) ) || ( isReviewer ( db ) ) ; }

Target:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( isOwner ( ) ) || ( isReviewer ( db ) ) ; }
Source:
public static < T > com.google.gerrit.extensions.registration.DynamicSet < T > emptySet ( ) { return new com.google.gerrit.extensions.registration.DynamicSet < T > ( java.util.Collections.< java.util.concurrent.atomic.AtomicReference < com.google.inject.Provider < T > > > emptySet ( ) ) ; }

Target:
public static < T > com.google.gerrit.extensions.registration.DynamicSet < T > emptySet ( ) { return new com.google.gerrit.extensions.registration.DynamicSet ( java.util.Collections.< java.util.concurrent.atomic.AtomicReference < com.google.inject.Provider < T > > > emptySet ( ) ) ; }
Source:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.CurrentUser user , com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.query.change.ChangeData cd ) ;
Source:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null , true ) ; }
Source:
private void removeIdLock ( T id ) { synchronized ( idLocks ) { idLocks.remove ( id ) ; } }

Target:
private void removeIdLock ( T id ) { synchronized ( idLocks ) { if ( ( idLocks.get ( id ) . get ( ) ) == 0 ) { idLocks.remove ( id ) ; } } }
Source:
private com.google.gerrit.server.project.ProjectControl user ( java.lang.String name , com.google.gerrit.reviewdb.client.AccountGroup ... memberOf ) { com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > schema = null ; com.google.gerrit.server.account.GroupCache groupCache = null ; java.lang.String canonicalWebUrl = "http://localhost" ; return new com.google.gerrit.server.project.ProjectControl ( java.util.Collections.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > emptySet ( ) , java.util.Collections.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > emptySet ( ) , projectCache , sectionSorter , canonicalWebUrl , new com.google.gerrit.server.project.RefControlTest.MockUser ( name , memberOf ) , newProjectState ( ) ) ; }

Target:
private com.google.gerrit.server.project.ProjectControl user ( java.lang.String name , com.google.gerrit.reviewdb.client.AccountGroup ... memberOf ) { java.lang.String canonicalWebUrl = "http://localhost" ; return new com.google.gerrit.server.project.ProjectControl ( java.util.Collections.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > emptySet ( ) , java.util.Collections.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > emptySet ( ) , projectCache , sectionSorter , canonicalWebUrl , new com.google.gerrit.server.project.RefControlTest.MockUser ( name , memberOf ) , newProjectState ( ) ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , true , true , true ) ; }
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > release ( java.util.Collection < com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > > fields ) { return new com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > ( true , fields ) ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > release ( java.util.Collection < com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > > fields ) { return new com.google.gerrit.server.index.Schema ( true , fields ) ; }
Source:
com.google.gerrit.sshd.DispatchCommand create ( java.lang.String prefix , java.util.Map < java.lang.String , com.google.inject.Provider < org.apache.sshd.server.Command > > map ) ;

Target:
com.google.gerrit.sshd.DispatchCommand create ( java.util.Map < java.lang.String , com.google.inject.Provider < org.apache.sshd.server.Command > > map ) ;
Source:
public com.google.gerrit.extensions.api.projects.Projects projects ( ) { return projects.get ( ) ; }

Target:
public com.google.gerrit.extensions.api.projects.Projects projects ( ) { return projects ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 ) ; }
Source:
protected abstract void encode ( T obj , com.google.protobuf.CodedOutputStream out ) ;

Target:
public abstract void encode ( T obj , com.google.protobuf.CodedOutputStream out ) ;
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { pool.execute ( new com.ericsson.gerrit.plugins.eventslog.EventHandler.StoreEventTask ( ( ( com.google.gerrit.server.events.ProjectEvent ) ( event ) ) ) ) ; }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ProjectEvent ) { pool.execute ( new com.ericsson.gerrit.plugins.eventslog.EventHandler.StoreEventTask ( ( ( com.google.gerrit.server.events.ProjectEvent ) ( event ) ) ) ) ; } }
Source:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , change ( ) ) ; } return notes ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { com.google.gerrit.reviewdb.client.Change c = change ( ) ; notes = notesFactory.create ( db , c.getProject ( ) , c.getId ( ) ) ; } return notes ; }
Source:
void setPrivate ( boolean value ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
void setPrivate ( boolean value , @ com.google.gerrit.common.Nullable java.lang.String message ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; bind ( com.google.gerrit.server.config.AllUsersName.class ) . toProvider ( allUsers ) ; }

Target:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = cd.change ( dbProvider ) ; return ( change != null ) && ( ( change.getSortKey ( ) . compareTo ( getValue ( ) ) ) > 0 ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = cd.change ( ) ; return ( change != null ) && ( ( change.getSortKey ( ) . compareTo ( getValue ( ) ) ) > 0 ) ; }
Source:
public static java.lang.String toPatch ( final java.lang.String type , final com.google.gerrit.client.reviewdb.Patch.Id id ) { return ( ( "patch," + type ) + "," ) + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toPatch ( final java.lang.String type , final com.google.gerrit.client.reviewdb.Patch.Key id ) { return ( ( "patch," + type ) + "," ) + ( id.toString ( ) ) ; }
Source:
public void deleteAllowedWithForcePushPermission ( ) throws java.lang.Exception { grant ( Permission.PUSH , project , "refs/*" , true ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.OK ) ; }

Target:
public void deleteAllowedWithForcePushPermission ( ) throws java.lang.Exception { grant ( project , "refs/*" , Permission.PUSH , true ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.OK ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl control ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException { return changeControlFactory.controlFor ( change , genericUserFactory.create ( id ) ) ; }

Target:
private com.google.gerrit.server.project.ChangeControl control ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException { try { return changeControlFactory.controlFor ( db , change , genericUserFactory.create ( id ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.server.project.NoSuchChangeException ( change.getId ( ) ) ; } }
Source:
public void newPatchSetByOtherOnReviewableChangeNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.NEW_PATCHSETS ) ; pushTo ( sc , "refs/for/master%notify=OWNER" , other ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetByOtherOnReviewableChangeNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; pushTo ( sc , "refs/for/master%notify=OWNER" , other ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
com.google.gitiles.CommitData.Builder setArchiveFormat ( com.google.gitiles.ArchiveFormat archiveFormat ) { this . archiveFormat = com.google.common.base.Preconditions.checkNotNull ( archiveFormat , "archiveFormat" ) ; return this ; }

Target:
com.google.gitiles.CommitData.Builder setArchiveFormat ( @ javax.annotation.Nullable com.google.gitiles.ArchiveFormat archiveFormat ) { this . archiveFormat = archiveFormat ; return this ; }
Source:
private static void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.removeAttribute ( "id" ) ; scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }

Target:
private void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.removeAttribute ( "id" ) ; scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }
Source:
public void onExit ( int rc , java.lang.String exitMessage ) { exit.onExit ( translateExit ( rc ) , exitMessage ) ; log ( rc ) ; }

Target:
public void onExit ( int rc ) { exit.onExit ( translateExit ( rc ) ) ; log ( rc ) ; }
Source:
private void writeToResponse ( javax.servlet.http.HttpServletResponse res , java.io.InputStream inputStream ) throws java.io.IOException { try ( java.io.OutputStream out = res.getOutputStream ( ) ; java.io.InputStream in = inputStream ) { com.google.common.io.ByteStreams.copy ( in , out ) ; } }

Target:
private void writeToResponse ( javax.servlet.http.HttpServletResponse res , java.io.InputStream inputStream ) throws java.io.IOException { try ( java.io.InputStream in = inputStream ; java.io.OutputStream out = res.getOutputStream ( ) ) { com.google.common.io.ByteStreams.copy ( in , out ) ; } }
Source:
public void testReplaceEscaping ( ) { assertEquals ( "<a href=\"a&quot;&amp;&#39;&lt;&gt;b\">find</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "a\"&\'<>b" ) . replace ( "find" ) ) ; }

Target:
public void testReplaceEscaping ( ) { org.junit.Assert.assertEquals ( "<a href=\"a&quot;&amp;&#39;&lt;&gt;b\">find</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "a\"&\'<>b" ) . replace ( "find" ) ) ; }
Source:
public boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.client.ProjectState.HIDDEN ) ; }

Target:
private boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.client.ProjectState.HIDDEN ) ; }
Source:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.AccountGroup > result ) { groups.display ( result ) ; groups.finishDisplay ( true ) ; }

Target:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.AccountGroup > result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }
Source:
private void checkNotUsed ( final java.lang.String n ) throws com.google.gwtorm.client.OrmException { if ( allNames.contains ( n ) ) { throw new com.google.gwtorm.client.OrmException ( ( ( "Name " + n ) + " already used" ) ) ; } }

Target:
private void checkNotUsed ( final java.lang.String n ) throws com.google.gwtorm.server.OrmException { if ( allNames.contains ( n ) ) { throw new com.google.gwtorm.server.OrmException ( ( ( "Name " + n ) + " already used" ) ) ; } }
Source:
public void testCreateLinkForWebUiSameUrlAndText ( ) { mockUnconnectableStoryboard ( ) ; replayMocks ( ) ; com.googlesource.gerrit.plugins.its.storyboard.StoryboardItsFacade itsFacade = createStoryboardItsFacade ( ) ; java.lang.String actual = itsFacade.createLinkForWebui ( "Test-Url" , "Test-Url" ) ; assertEquals ( "[Test-Url]" , actual ) ; }

Target:
public void testCreateLinkForWebUiSameUrlAndText ( ) { mockUnconnectableStoryboard ( ) ; replayMocks ( ) ; com.googlesource.gerrit.plugins.its.storyboard.StoryboardItsFacade itsFacade = createStoryboardItsFacade ( ) ; java.lang.String actual = itsFacade.createLinkForWebui ( "Test-Url" , "Test-Url" ) ; assertEquals ( "Test-Url" , actual ) ; }
Source:
protected com.google.gerrit.server.index.QueryOptions createOptions ( com.google.gerrit.server.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( indexConfig , start , ( limit + 1 ) , requestedFields ) ; }

Target:
protected com.google.gerrit.server.index.QueryOptions createOptions ( com.google.gerrit.server.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( indexConfig , start , limit , requestedFields ) ; }
Source:
public void sendRedirect ( java.lang.String msg ) { status = SC_FOUND ; committed = true ; }

Target:
public synchronized void sendRedirect ( java.lang.String msg ) { status = SC_FOUND ; committed = true ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { return rsrc.getUser ( ) . state ( ) . getUserName ( ) . orElseThrow ( ResourceNotFoundException :: new ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { return rsrc.getUser ( ) . getUserName ( ) . orElseThrow ( ResourceNotFoundException :: new ) ; }
Source:
public boolean isContextLine ( ) { return ( ! ( isModifiedLine ( ) ) ) || ( ( ( endIdx ) + 1 ) < ( curIdx ) ) ; }

Target:
public boolean isContextLine ( ) { return ! ( isModifiedLine ( ) ) ; }
Source:
private void assertParseSucceeds ( org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { try ( com.google.gerrit.server.notedb.ChangeNotesParser parser = newParser ( commit ) ) { parser.parseAll ( ) ; } }

Target:
private void assertParseSucceeds ( org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { newParser ( commit ) . parseAll ( ) ; }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { if ( logErrors ) { com.google.gerrit.server.project.SubmitRuleEvaluator.log.error ( err ) ; return com.google.gerrit.server.project.SubmitRuleEvaluator.defaultRuleError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createRuleError ( err ) ; } }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { return ruleError ( err , null ) ; }
Source:
private java.lang.String getProjectName ( ) { return control.getProjectControl ( ) . getProjectState ( ) . getProject ( ) . getName ( ) ; }

Target:
private java.lang.String getProjectName ( ) { return control.getProjectControl ( ) . getProjectState ( ) . getName ( ) ; }
Source:
void deleteAll ( ) throws java.io.IOException { writer.deleteAll ( ) ; }

Target:
public void deleteAll ( ) throws java.io.IOException { writer.deleteAll ( ) ; }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( null , newId , ws , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public static com.google.gerrit.server.patch.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( null , newId , ws ) ; }
Source:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.delete ( urlEdit ( ) ) ; org.junit.Assert.assertEquals ( org.apache.http.HttpStatus.SC_NOT_FOUND , r.getStatusCode ( ) ) ; }

Target:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.delete ( urlEdit ( ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( org.apache.http.HttpStatus.SC_NOT_FOUND ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( db , repoManager , migration , allUsersProvider , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = db.changes ( ) . get ( changeId ) ; return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , project , change ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( accountId , getId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( getId ( ) , accountId ) ; }
Source:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( notes ( ) , approvals ( ) ) ; }

Target:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( notes ( ) , approvals ( ) . values ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.project.ProjectResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return list ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.project.ProjectResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return list.get ( ) ; }
Source:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { deleteAsync ( cd ) . checkedGet ( ) ; }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { delete ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }
Source:
public void testEscapeFirstChar ( ) { assertEquals ( com.google.gerrit.server.StringUtil.escapeString ( "\tLeading tab" ) , "\\tLeading tab" ) ; }

Target:
public void testEscapeFirstChar ( ) { org.junit.Assert.assertEquals ( com.google.gerrit.server.StringUtil.escapeString ( "\tLeading tab" ) , "\\tLeading tab" ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( author , getChangeId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( getChangeId ( ) , author ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountServiceImpl ( ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountServiceImpl ( server ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( false , false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( config , false , false , false ) ) ; }
Source:
public void testNextAddressId ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = openAndCreate ( ) ; final int a = schema.nextAddressId ( ) ; final int b = schema.nextAddressId ( ) ; assertTrue ( ( a != b ) ) ; }

Target:
public void testNextAddressId ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = openAndCreate ( ) ; final int a = schema.nextAddressId ( ) ; final int b = schema.nextAddressId ( ) ; org.junit.Assert.assertTrue ( ( a != b ) ) ; }
Source:
public static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonUtil.ERROR_INVALID_XSRF ) ) ; }

Target:
private static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonUtil.ERROR_INVALID_XSRF ) ) ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public static com.google.gerrit.common.data.LabelValue fromApprovalCategoryValue ( com.google.gerrit.reviewdb.client.ApprovalCategoryValue acv ) { return new com.google.gerrit.common.data.LabelValue ( acv.getValue ( ) , acv.getName ( ) ) ; }

Target:
public java.lang.String toString ( ) { return format ( ) ; }
Source:
public void delete ( int id ) throws java.io.IOException { }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) throws java.io.IOException { }
Source:
public int getMaxAge ( ) { return ( maxAge ) * 5 ; }

Target:
public int getMaxAge ( ) { return ( maxAge ) > 0 ? ( maxAge ) * 5 : maxAge ; }
Source:
public void downloadRequired ( ) { this . required = true ; download ( ) ; }

Target:
void downloadRequired ( ) { this . required = true ; download ( ) ; }
Source:
private boolean match ( java.lang.String destBranch , java.lang.String refPattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( refPattern ) . match ( destBranch , getUser ( ) . getUserName ( ) ) ; }

Target:
private boolean match ( java.lang.String destBranch , java.lang.String refPattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( refPattern ) . match ( destBranch , getUser ( ) ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.reviewdb.client.Change change ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.reviewdb.client.Change change ) { return index ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.extensions.restapi.TopLevelResource resource ) throws java.io.UnsupportedEncodingException { format = com.google.gerrit.server.OutputFormat.JSON ; return display ( null ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.extensions.restapi.TopLevelResource resource ) { format = com.google.gerrit.server.OutputFormat.JSON ; return display ( null ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSetApproval copy ( com.google.gerrit.reviewdb.client.PatchSetApproval src , com.google.gerrit.server.project.ChangeControl ctl ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval ( src.getPatchSetId ( ) , src ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSetApproval copy ( com.google.gerrit.reviewdb.client.PatchSetApproval src ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval ( src.getPatchSetId ( ) , src ) ; }
Source:
public final java.lang.String name ( ) { return name ; }

Target:
public java.lang.String name ( ) { return name ; }
Source:
private static void assertOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { assertTrue ( ( "OWN " + ref ) , u.controlForRef ( ref ) . isOwner ( ) ) ; }

Target:
private static void assertOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { org.junit.Assert.assertTrue ( ( "OWN " + ref ) , u.controlForRef ( ref ) . isOwner ( ) ) ; }
Source:
void autoOpen ( ) { if ( ( commentList ) == null ) { autoOpen = true ; history.load ( info._revisionNumber ( ) ) ; } else if ( ! ( commentList.isEmpty ( ) ) ) { setOpen ( true ) ; } }

Target:
void autoOpen ( ) { if ( ( commentList ) == null ) { autoOpen = true ; } else if ( ! ( commentList.isEmpty ( ) ) ) { setOpen ( true ) ; } }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event ) ; }
Source:
protected void onClick ( final com.google.gwt.user.client.Event event ) { com.google.gwt.user.client.History.newItem ( getTargetHistoryToken ( ) , false ) ; com.google.gerrit.client.Gerrit.display ( createScreen ( ) ) ; com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; }

Target:
protected void onClick ( final com.google.gwt.user.client.Event event ) { com.google.gerrit.client.Gerrit.display ( getTargetHistoryToken ( ) , createScreen ( ) ) ; com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; }
Source:
protected final < T > org.easymock.Capture < T > createCapture ( ) { return org.easymock.EasyMock.newCapture ( ) ; }

Target:
protected final < T > org.easymock.Capture < T > createCapture ( ) { return new org.easymock.Capture ( ) ; }
Source:
private net.sf.ehcache.constructs.blocking.SelfPopulatingCache startCacheSshKeys ( ) { final net.sf.ehcache.Cache dc = com.google.gerrit.server.GerritServer.cacheMgr.getCache ( "sshkeys" ) ; final net.sf.ehcache.constructs.blocking.SelfPopulatingCache r ; r = new net.sf.ehcache.constructs.blocking.SelfPopulatingCache ( dc , new com.google.gerrit.server.ssh.SshKeyCacheEntryFactory ( ) ) ; com.google.gerrit.server.GerritServer.cacheMgr.replaceCacheWithDecoratedCache ( dc , r ) ; return r ; }

Target:
private net.sf.ehcache.constructs.blocking.SelfPopulatingCache startCacheSshKeys ( ) { final net.sf.ehcache.Cache dc = com.google.gerrit.server.GerritServer.cacheMgr.getCache ( "sshkeys" ) ; final net.sf.ehcache.constructs.blocking.SelfPopulatingCache r ; r = new net.sf.ehcache.constructs.blocking.SelfPopulatingCache ( dc , new com.google.gerrit.server.ssh.SshKeyCacheEntryFactory ( this ) ) ; com.google.gerrit.server.GerritServer.cacheMgr.replaceCacheWithDecoratedCache ( dc , r ) ; return r ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( change , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( id , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void testBackreference ( ) { assertEquals ( "<a href=\"/bug?id=123\">issue 123</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "(bug|issue)\\s*([0-9]+)" , "/bug?id=$2" ) . replace ( "issue 123" ) ) ; }

Target:
public void testBackreference ( ) { org.junit.Assert.assertEquals ( "<a href=\"/bug?id=123\">issue 123</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "(bug|issue)\\s*([0-9]+)" , "/bug?id=$2" ) . replace ( "issue 123" ) ) ; }