auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.google.gerrit.server.IdentifiedUser addUser ( java.lang.String name ) throws java.lang.Exception { com.google.gerrit.server.account.AuthRequest req = com.google.gerrit.server.account.AuthRequest.forUser ( name ) ; com.google.gerrit.reviewdb.client.Account.Id id = accountManager.authenticate ( req ) . getAccountId ( ) ; return userFactory.create ( com.google.inject.util.Providers.of ( db ) , id ) ; }

Target:
private com.google.gerrit.server.IdentifiedUser addUser ( java.lang.String name ) throws java.lang.Exception { com.google.gerrit.server.account.AuthRequest req = com.google.gerrit.server.account.AuthRequest.forUser ( name ) ; com.google.gerrit.reviewdb.client.Account.Id id = accountManager.authenticate ( req ) . getAccountId ( ) ; return userFactory.create ( id ) ; }
Source:
protected < K , V > com.google.gerrit.server.cache.UnnamedCacheBinding < K , V > core ( final com.google.inject.TypeLiteral < com.google.gerrit.server.cache.Cache < K , V > > type ) { return core ( com.google.inject.Key.get ( type ) ) ; }

Target:
protected < K , V > com.google.gerrit.server.cache.UnnamedCacheBinding < K , V > core ( final com.google.inject.TypeLiteral < com.google.gerrit.server.cache.Cache < K , V > > type ) { return core ( com.google.inject.Key.get ( type ) , type ) ; }
Source:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { com.google.gerrit.common.changes.Side side = getSideFromCm ( cm ) ; com.google.gerrit.client.changes.CommentInfo info = com.google.gerrit.client.changes.CommentInfo.create ( path , side , ( line + 1 ) , null , null ) ; return addDraftBox ( info , false ) ; }

Target:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { return addDraftBox ( com.google.gerrit.client.changes.CommentInfo.create ( path , getSideFromCm ( cm ) , ( line + 1 ) , null , null ) ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( cd.isFromSource ( source ) ) || ( pred.match ( cd ) ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( ( ( source ) != null ) && ( cd.isFromSource ( source ) ) ) || ( pred.match ( cd ) ) ; }
Source:
public void removeApproval ( java.lang.String label ) { removeApprovalFor ( getUser ( ) . getAccountId ( ) , label ) ; }

Target:
public void removeApproval ( java.lang.String label ) { removeApprovalFor ( getAccountId ( ) , label ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.Project.NameKey in ) { return a.run ( in.get ( ) ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.reviewdb.client.Project.NameKey in ) { return in.get ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewInclude ( oracle ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewInclude ( ) ; }
Source:
com.google.gerrit.lucene.LuceneChangeIndex create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , boolean readOnly ) ;

Target:
com.google.gerrit.lucene.LuceneChangeIndex create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , java.lang.String base ) ;
Source:
public java.lang.String changeClosed ( com.google.gerrit.server.git.ChangeReportFormatter.Input input ) { return java.lang.String.format ( "change %s closed" , com.google.gerrit.server.ChangeUtil.formatChangeUrl ( canonicalWebUrl , input.getChange ( ) ) ) ; }

Target:
public java.lang.String changeClosed ( com.google.gerrit.server.git.ChangeReportFormatter.Input input ) { return java.lang.String.format ( "change %s closed" , com.google.gerrit.server.ChangeUtil.formatChangeUrl ( canonicalWebUrl , input.change ( ) ) ) ; }
Source:
public final void removeLineClass ( net.codemirror.lib.CodeMirror.LineHandle line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { removeLineClassNative ( line , where.name ( ) . toLowerCase ( ) , className ) ; }

Target:
public final void removeLineClass ( net.codemirror.lib.CodeMirror.LineHandle line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { removeLineClassNative ( line , where.value ( ) , className ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setMessage ( com.google.gerrit.reviewdb.client.ChangeMessage changeMessage ) { this . changeMessage = changeMessage ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setMessage ( java.lang.String message ) { this . message = message ; return this ; }
Source:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , git , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.rm ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
java.util.Map < java.lang.String , com.google.gerrit.extensions.common.FileInfo > toFileInfoMap ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return toFileInfoMap ( change , patchSet , null ) ; }

Target:
java.util.Map < java.lang.String , com.google.gerrit.extensions.common.FileInfo > toFileInfoMap ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return toFileInfoMap ( change , patchSet.getRevision ( ) , null ) ; }
Source:
private static void a ( final java.lang.StringBuffer r , final java.lang.String where ) { com.google.gerrit.client.data.GitwebLink.var ( r , "a" , where ) ; }

Target:
private static void a ( final java.lang.StringBuilder r , final java.lang.String where ) { com.google.gerrit.client.data.GitwebLink.var ( r , "a" , where ) ; }
Source:
private void configureRequestScope ( ) { bind ( org.apache.sshd.server.CommandFactory.Command.class ) . toProvider ( new com.google.inject.Provider < org.apache.sshd.server.CommandFactory.Command > ( ) { @ java.lang.Override public org.apache.sshd.server.CommandFactory.Command get ( ) { return com.google.gerrit.server.ssh.SshScopes.getContext ( ) . command ; } } ) . in ( SshScopes.REQUEST ) ; }

Target:
private void configureRequestScope ( ) { }
Source:
private static com.google.gerrit.common.data.LabelType category ( int pos , java.lang.String id , java.lang.String name , com.google.gerrit.common.data.LabelValue ... values ) { com.google.gerrit.common.data.LabelType type = new com.google.gerrit.common.data.LabelType ( name , java.util.Arrays.asList ( values ) ) ; type.setId ( id ) ; return type ; }

Target:
private static com.google.gerrit.common.data.LabelType category ( java.lang.String name , com.google.gerrit.common.data.LabelValue ... values ) { return new com.google.gerrit.common.data.LabelType ( name , java.util.Arrays.asList ( values ) ) ; }
Source:
public void testHashCodeWhenNull ( ) { final com.google.gwtorm.client.IntKeyTestCase.Parent p = new com.google.gwtorm.client.IntKeyTestCase.Parent ( 0 ) ; assertEquals ( 0 , p.hashCode ( ) ) ; }

Target:
public void testHashCodeWhenNull ( ) { final com.google.gwtorm.client.IntKeyTestCase.Parent p = new com.google.gwtorm.client.IntKeyTestCase.Parent ( 0 ) ; org.junit.Assert.assertEquals ( 0 , p.hashCode ( ) ) ; }
Source:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder setBranch ( final java.lang.String branch ) { this . branch = io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder.addEndSlash ( io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder.reduceWildcard ( branch ) ) ; return this ; }

Target:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder setBranch ( final java.lang.String branch ) { this . branch = reduceWildcard ( branch ) ; return this ; }
Source:
public com.google.gerrit.server.notedb.NoteDbUpdateManager.Result rebuild ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { return rebuild ( db , changeId , true ) ; }

Target:
public com.google.gerrit.server.notedb.NoteDbUpdateManager.Result rebuild ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { return rebuild ( db , changeId , true ) ; }
Source:
protected abstract int getEnd ( org.eclipse.jgit.diff.Edit e ) ;

Target:
abstract int getEnd ( org.eclipse.jgit.diff.Edit edit ) ;
Source:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . name ( name ) . create ( ) . get ( ) . name ) ; }

Target:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( name ) . get ( ) . name ) ; }
Source:
public com.google.gerrit.server.CurrentUser get ( ) { final com.google.gerrit.client.reviewdb.Account.Id id = call.getAccountId ( ) ; return id != null ? identified.create ( id ) : anonymous ; }

Target:
public com.google.gerrit.server.CurrentUser get ( ) { final com.google.gerrit.client.reviewdb.Account.Id id = call.get ( ) . getAccountId ( ) ; return id != null ? identified.create ( id ) : anonymous ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; refresh ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; refresh ( ) ; }
Source:
private com.google.inject.Injector createHttpdInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( new com.google.gerrit.pgm.http.jetty.JettyModule ( new com.google.gerrit.pgm.http.jetty.JettyEnv ( webInjector ) ) ) ; return sysInjector.createChildInjector ( modules ) ; }

Target:
private com.google.inject.Injector createHttpdInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( new com.google.gerrit.pgm.http.jetty.JettyModule ( new com.google.gerrit.pgm.http.jetty.JettyEnv ( webInjector ) ) ) ; return webInjector.createChildInjector ( modules ) ; }
Source:
public static com.google.common.collect.FluentIterable < com.google.gerrit.reviewdb.client.Account.Id > ids ( com.google.gerrit.acceptance.TestAccount ... accounts ) { return com.google.gerrit.acceptance.TestAccount.ids ( java.util.Arrays.asList ( accounts ) ) ; }

Target:
public static java.util.List < com.google.gerrit.reviewdb.client.Account.Id > ids ( com.google.gerrit.acceptance.TestAccount ... accounts ) { return com.google.gerrit.acceptance.TestAccount.ids ( java.util.Arrays.asList ( accounts ) ) ; }
Source:
private boolean allRefsAreVisible ( java.util.Set < java.lang.String > ignore ) { return ( user.isInternalUser ( ) ) || ( canPerformOnAllRefs ( Permission.READ , ignore ) ) ; }

Target:
boolean allRefsAreVisible ( java.util.Set < java.lang.String > ignore ) { return ( user.isInternalUser ( ) ) || ( canPerformOnAllRefs ( Permission.READ , ignore ) ) ; }
Source:
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 , 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:
public java.lang.String getName ( ) { if ( ( fullName ) != null ) { return fullName ; } if ( ( preferredEmail ) != null ) { return preferredEmail ; } return "GerritAccount #" + ( accountId.get ( ) ) ; }

Target:
public java.lang.String getName ( ) { if ( ( fullName ) != null ) { return fullName ; } if ( ( preferredEmail ) != null ) { return preferredEmail ; } return com.google.gerrit.reviewdb.client.Account.getName ( accountId ) ; }
Source:
public void run ( ) { try { synchronized ( list ) { list.add ( this ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( this ) ; } } }

Target:
public void run ( ) { try { synchronized ( list ) { list.add ( cmd ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( cmd ) ; } } }
Source:
private void hideTextBox ( ) { if ( ( textBox ) != null ) { textBox.setText ( textLabel.getText ( ) ) ; textBox.removeFromParent ( ) ; textBox = null ; } textLabel.setVisible ( true ) ; }

Target:
private void hideTextBox ( ) { if ( ( textBox ) != null ) { textBox.removeFromParent ( ) ; textBox = null ; } textLabel.setVisible ( true ) ; }
Source:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.server.project.RefControl ctl , com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.PatchSet ps , org.eclipse.jgit.revwalk.RevCommit rc , com.google.gerrit.reviewdb.client.PatchSetInfo psi ) ;

Target:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.server.project.RefControl ctl , com.google.gerrit.reviewdb.client.Change c , org.eclipse.jgit.revwalk.RevCommit rc ) ;
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.PatchSet > ps ) { addPatchSets ( a , ps , null , false , null ) ; }

Target:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps ) { addPatchSets ( a , ps , null , false , null ) ; }
Source:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String username = user.getUserName ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( username ) ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } else { return ghMembershipProvider.get ( username ) ; } }

Target:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String username = user.getUserName ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( username ) ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } return ghMembershipProvider.get ( username ) ; }
Source:
private void checkProjectInSource ( com.googlesource.gerrit.plugins.importer.ImportProject.Input input , org.eclipse.jgit.lib.ProgressMonitor pm ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.io.IOException { pm.beginTask ( "Check source project" , 1 ) ; api.getProject ( srcProject.get ( ) ) ; com.googlesource.gerrit.plugins.importer.ProgressMonitorUtil.updateAndEnd ( pm ) ; }

Target:
private void checkProjectInSource ( org.eclipse.jgit.lib.ProgressMonitor pm ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.io.IOException { pm.beginTask ( "Check source project" , 1 ) ; api.getProject ( srcProject.get ( ) ) ; com.googlesource.gerrit.plugins.importer.ProgressMonitorUtil.updateAndEnd ( pm ) ; }
Source:
public void submitToEmptyRepo ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result change = createChange ( git ) ; submit ( change.getChangeId ( ) ) ; com.google.common.truth.Truth.assertThat ( getRemoteHead ( ) . getId ( ) ) . isEqualTo ( change.getCommitId ( ) ) ; }

Target:
public void submitToEmptyRepo ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result change = createChange ( ) ; submit ( change.getChangeId ( ) ) ; com.google.common.truth.Truth.assertThat ( getRemoteHead ( ) . getId ( ) ) . isEqualTo ( change.getCommitId ( ) ) ; }
Source:
public void emptyCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( "" ) ) ) ) . isEmpty ( ) ; }

Target:
public void emptyCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( "" ) ) . isEmpty ( ) ; }
Source:
private static java.lang.String emptyToNull ( java.lang.String str ) { return ( str == null ) || ( str.isEmpty ( ) ) ? null : str ; }

Target:
public static java.lang.String emptyToNull ( java.lang.String str ) { return ( str == null ) || ( str.isEmpty ( ) ) ? null : str ; }
Source:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , allUsers , noteUtil , c.getProject ( ) , c ) . load ( ) ; }

Target:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , c.getProject ( ) , c ) . load ( ) ; }
Source:
public java.lang.String getName ( ) { return name.get ( ) ; }

Target:
public java.lang.String getName ( ) { return ( name ) != null ? name.get ( ) : null ; }
Source:
protected void onExit ( final int rc ) { com.google.gerrit.sshd.commands.ead StreamEvents ; com.google.gerrit.sshd.commands.Fix NPE ; com.google.gerrit.sshd.commands.invoking the ; with ( ( -- ( help ) ) ) ; removeEventListenerRegistration ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
protected void onExit ( int rc ) { removeEventListenerRegistration ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }
Source:
private static com.google.gerrit.server.account.WatchConfig.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) throws org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.WatchConfig.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue ) ; }

Target:
private com.google.gerrit.server.account.WatchConfig.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) { return com.google.gerrit.server.account.WatchConfig.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue , this ) ; }
Source:
public static com.google.gwtexpui.user.client.Type < com.google.gwtexpui.user.client.DialogVisibleHandler > getType ( ) { if ( ( com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE ) == null ) { com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE = new com.google.gwtexpui.user.client.Type < com.google.gwtexpui.user.client.DialogVisibleHandler > ( ) ; } return com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE ; }

Target:
public static com.google.gwtexpui.user.client.Type < com.google.gwtexpui.user.client.DialogVisibleHandler > getType ( ) { if ( ( com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE ) == null ) { com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE = new com.google.gwtexpui.user.client.Type ( ) ; } return com.google.gwtexpui.user.client.DialogVisibleEvent.TYPE ; }
Source:
public void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { com.google.gerrit.server.update.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }

Target:
public abstract void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException ;
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 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 , null , line , message ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { block ( Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/drafts/*" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { block ( "refs/drafts/*" , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS ) ; }
Source:
public void testNonIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a OR foo:b" ) ; org.junit.Assert.assertEquals ( in , rewrite ( in ) ) ; }

Target:
public void testNonIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a OR foo:b" ) ; com.google.common.truth.Truth.assertThat ( in ) . isEqualTo ( rewrite ( in ) ) ; }
Source:
private static boolean isVisible ( com.google.gerrit.server.change.RelatedChangesSorter.PatchSetData psd , com.google.gerrit.server.project.ProjectControl ctl ) throws com.google.gwtorm.server.OrmException { return ctl.controlFor ( psd.data ( ) . change ( ) ) . isPatchVisible ( psd.patchSet ( ) , psd.data ( ) ) ; }

Target:
private static boolean isVisible ( com.google.gerrit.server.change.RelatedChangesSorter.PatchSetData psd , com.google.gerrit.server.project.ProjectControl ctl ) throws com.google.gwtorm.server.OrmException { return ctl.controlFor ( psd.data ( ) . notes ( ) ) . isPatchVisible ( psd.patchSet ( ) , psd.data ( ) ) ; }
Source:
public boolean allRefsAreVisible ( ) { return allRefsAreVisibleExcept ( java.util.Collections.< java.lang.String > emptySet ( ) ) ; }

Target:
public boolean allRefsAreVisible ( ) { return allRefsAreVisible ( java.util.Collections.< java.lang.String > emptySet ( ) ) ; }
Source:
void applySuccess ( ) { com.google.gwt.user.client.rpc.AsyncCallback < T > cb = delegate ; if ( cb != null ) { delegate = null ; cb.onSuccess ( result ) ; result = null ; } }

Target:
public void applySuccess ( ) { com.google.gwt.user.client.rpc.AsyncCallback < T > cb = delegate ; if ( cb != null ) { delegate = null ; cb.onSuccess ( result ) ; result = null ; } }
Source:
public void run ( ) { for ( ; ; ) { try { if ( done.await ( checkFrequencyMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } loader.rescan ( ) ; } }

Target:
public void run ( ) { for ( ; ; ) { try { if ( done.await ( checkFrequencyMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } loader.rescan ( false ) ; } }
Source:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.group.GroupInfo ( resource.getControl ( ) . getGroup ( ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) { return new com.google.gerrit.server.group.GroupInfo ( resource.getGroup ( ) ) ; }
Source:
static boolean parseBoolean ( java.lang.String s ) { return ( null != s ) && ( ( ( s.equals ( "1" ) ) || ( s.equalsIgnoreCase ( "yes" ) ) ) || ( java.lang.Boolean.parseBoolean ( s ) ) ) ; }

Target:
static boolean parseBoolean ( java.lang.String s ) { return ( s != null ) && ( ( ( s.equals ( "1" ) ) || ( s.equalsIgnoreCase ( "yes" ) ) ) || ( java.lang.Boolean.parseBoolean ( s ) ) ) ; }
Source:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String username = user.getUserName ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( username ) ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } return ghMembershipProvider.get ( username ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { java.lang.String username = user.getUserName ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( username ) ) { return com.google.gerrit.server.account.GroupMembership.EMPTY ; } else { return ghMembershipProvider.get ( username ) ; } }
Source:
public void printJson ( final java.lang.StringBuffer sb , final com.google.gwtjsonrpc.client.VoidResult o ) { sb.append ( "{}" ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final com.google.gwtjsonrpc.client.VoidResult o ) { sb.append ( "{}" ) ; }
Source:
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 ( ) ) ; }

Target:
public void createBranch ( ) throws java.lang.Exception { allow ( "refs/*" , Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS ) ; gApi.projects ( ) . name ( project.get ( ) ) . branch ( "foo" ) . create ( new com.google.gerrit.extensions.api.projects.BranchInput ( ) ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi group ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group.get ( ) ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi group ( java.lang.String group ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group ) ; }
Source:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final java.lang.String name ) { return com.google.inject.Key.get ( CommandFactory.Command.class , com.google.gerrit.server.ssh.Commands.named ( name ) ) ; }

Target:
public static com.google.inject.Key < org.apache.sshd.server.CommandFactory.Command > key ( final java.lang.String name ) { return com.google.gerrit.server.ssh.Commands.key ( com.google.gerrit.server.ssh.Commands.named ( name ) ) ; }
Source:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { manager.remove ( this , otherBar ) ; otherBar.expandAll ( ) ; expandAll ( ) ; cm.focus ( ) ; }

Target:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAll ( ) ; manager.remove ( this , otherBar ) ; cm.focus ( ) ; }
Source:
void onIgnoreWhitespace ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ChangeEvent e ) { prefs.ignoreWhitespace ( com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( ignoreWhitespace.getSelectedIndex ( ) ) ) ) ; view.reloadDiffInfo ( ) ; }

Target:
void onIgnoreWhitespace ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ChangeEvent e ) { prefs.ignoreWhitespace ( com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( ignoreWhitespace.getSelectedIndex ( ) ) ) ) ; if ( ( view ) != null ) { view.reloadDiffInfo ( ) ; } }
Source:
public static com.google.gerrit.server.git.validators.CommitValidationResult newFailure ( java.lang.String why ) { return new com.google.gerrit.server.git.validators.CommitValidationResult ( false , why ) ; }

Target:
public static com.google.gerrit.server.git.validators.CommitValidationResult newFailure ( java.lang.String message ) { return new com.google.gerrit.server.git.validators.CommitValidationResult ( false , message ) ; }
Source:
void setChange ( com.google.gerrit.reviewdb.client.Change c ) { change = c ; }

Target:
com.google.gerrit.server.query.change.ChangeData create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change c ) ;
Source:
public void deleteDocuments ( org.apache.lucene.index.Term term ) throws java.io.IOException { super . deleteDocuments ( term ) ; autoFlush ( ) ; }

Target:
public void deleteDocuments ( org.apache.lucene.index.Term ... term ) throws java.io.IOException { super . deleteDocuments ( term ) ; autoFlush ( ) ; }
Source:
public java.lang.String getNextSequenceValueSql ( final java.lang.String seqname ) { return "SELECT NEXT VALUE FOR " + seqname ; }

Target:
protected java.lang.String getNextSequenceValueSql ( final java.lang.String seqname ) { return "SELECT NEXT VALUE FOR " + seqname ; }
Source:
protected synchronized void handleEmails ( ) { }

Target:
public synchronized void handleEmails ( ) { }
Source:
public void startEventRecorder ( ) { eventRecorder = eventRecorderFactory.create ( user ) ; }

Target:
public void startEventRecorder ( ) { eventRecorder = eventRecorderFactory.create ( admin ) ; }
Source:
protected void configureServlets ( ) { install ( new com.google.gerrit.server.config.FactoryModule ( ) { @ java.lang.Override protected void configure ( ) { factory ( SaveDraft.Factory.class ) ; } } ) ; rpc ( com.google.gerrit.httpd.rpc.patch.PatchDetailServiceImpl.class ) ; }

Target:
protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.rpc.patch.PatchDetailServiceImpl.class ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }
Source:
public void setPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) { com.google.common.base.Preconditions.checkArgument ( ( ( psId == null ) || ( psId.getParentKey ( ) . equals ( getChange ( ) . getId ( ) ) ) ) ) ; this . psId = psId ; }

Target:
public void setPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) { com.google.common.base.Preconditions.checkArgument ( ( ( psId == null ) || ( psId.getParentKey ( ) . equals ( ctl.getId ( ) ) ) ) ) ; this . psId = psId ; }
Source:
private static boolean isNotSignedIn ( java.lang.Throwable caught ) { return ( com.google.gerrit.client.rpc.RestApi.isNotSignedIn ( caught ) ) || ( ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ) ; }

Target:
protected static boolean isNotSignedIn ( java.lang.Throwable caught ) { return ( com.google.gerrit.client.rpc.RestApi.isNotSignedIn ( caught ) ) || ( ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ) ; }
Source:
public com.google.gwtjsonrpc.server.MethodHandle getMethod ( ) { if ( ( com.google.gerrit.httpd.rpc.GerritJsonServlet.currentMethod.get ( ) ) == null ) { return super . getMethod ( ) ; } else { return com.google.gerrit.httpd.rpc.GerritJsonServlet.currentMethod.get ( ) ; } }

Target:
public com.google.gwtjsonrpc.server.MethodHandle getMethod ( ) { if ( ( com.google.gerrit.httpd.rpc.GerritJsonServlet.currentMethod.get ( ) ) == null ) { return super . getMethod ( ) ; } return com.google.gerrit.httpd.rpc.GerritJsonServlet.currentMethod.get ( ) ; }
Source:
public com.google.gerrit.server.project.ProjectState checkedGet ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) throws java.io.IOException ;

Target:
com.google.gerrit.server.project.ProjectState get ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) ;
Source:
public boolean isUseContributorAgreements ( ) { return getInheritableBoolean ( new com.google.common.base.Function < com.google.gerrit.reviewdb.client.Project , com.google.gerrit.extensions.client.InheritableBoolean > ( ) { @ java.lang.Override public com.google.gerrit.extensions.client.InheritableBoolean apply ( com.google.gerrit.reviewdb.client.Project input ) { return input.getUseContributorAgreements ( ) ; } } ) ; }

Target:
public boolean isUseContributorAgreements ( ) { return getInheritableBoolean ( Project :: getUseContributorAgreements ) ; }
Source:
protected com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.change.RevisionResource , com.google.gerrit.extensions.common.TestSubmitRuleInput > createView ( ) { return view.get ( ) ; }

Target:
protected com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.change.RevisionResource , com.google.gerrit.extensions.common.TestSubmitRuleInput > createView ( ) { return view ; }
Source:
public void testToString ( ) { assertEquals ( "-author:bob" , com.google.gerrit.server.query.Predicate.not ( com.google.gerrit.server.query.NotPredicateTest.f ( "author" , "bob" ) ) . toString ( ) ) ; }

Target:
public void testToString ( ) { org.junit.Assert.assertEquals ( "-author:bob" , com.google.gerrit.server.query.Predicate.not ( com.google.gerrit.server.query.NotPredicateTest.f ( "author" , "bob" ) ) . toString ( ) ) ; }
Source:
public java.lang.String getSecure ( java.lang.String name ) { return flags.sec.getString ( section , subsection , name ) ; }

Target:
public java.lang.String getSecure ( java.lang.String name ) { return flags.sec.get ( section , subsection , name ) ; }
Source:
void onLineNumbers ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.hideLineNumbers ( e.getValue ( ) ) ; view.setShowLineNumbers ( prefs.hideLineNumbers ( ) ) ; }

Target:
void onLineNumbers ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.hideLineNumbers ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.setShowLineNumbers ( prefs.hideLineNumbers ( ) ) ; } }
Source:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return com.google.gerrit.server.auth.ldap.LdapGroupBackend.isLdapUUID ( uuid ) ; }

Target:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return isLdapUUID ( uuid ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId apply ( org.eclipse.jgit.lib.Ref ref ) { if ( ( ref.getPeeledObjectId ( ) ) != null ) { return ref.getPeeledObjectId ( ) ; } else { return ref.getObjectId ( ) ; } }

Target:
public org.eclipse.jgit.lib.ObjectId apply ( org.eclipse.jgit.lib.Ref ref ) { if ( ( ref.getPeeledObjectId ( ) ) != null ) { return ref.getPeeledObjectId ( ) ; } return ref.getObjectId ( ) ; }
Source:
private boolean sshdOff ( ) { org.eclipse.jgit.lib.Config cfg = cfgInjector.getInstance ( com.google.inject.Key.get ( org.eclipse.jgit.lib.Config.class , com.google.gerrit.server.config.GerritServerConfig.class ) ) ; return new com.google.gerrit.server.ssh.SshAddressesModule ( ) . getListenAddresses ( cfg ) . isEmpty ( ) ; }

Target:
private boolean sshdOff ( ) { return new com.google.gerrit.server.ssh.SshAddressesModule ( ) . getListenAddresses ( config ) . isEmpty ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; repository = createWorkRepository ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; repository = createWorkRepository ( ) ; }
Source:
void close ( ) { ins.close ( ) ; rw.close ( ) ; repo.close ( ) ; }

Target:
void close ( ) { if ( ( update ) != null ) { update.close ( ) ; } ins.close ( ) ; rw.close ( ) ; repo.close ( ) ; }
Source:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( curr.getParentKey ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( project , curr.getParentKey ( ) ) ) ; }
Source:
private java.lang.String formatLabelValue ( short value ) { if ( value > 0 ) { return "+" + value ; } else { return java.lang.Short.toString ( value ) ; } }

Target:
private java.lang.String formatLabelValue ( short value ) { if ( value > 0 ) { return "+" + value ; } return java.lang.Short.toString ( value ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.server.change.Index.Input input ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException { indexer.index ( rsrc.getChange ( ) ) . get ( ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.server.change.Index.Input input ) throws java.io.IOException { indexer.index ( rsrc.getChange ( ) ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }
Source:
java.util.Optional < com.google.gerrit.server.group.InternalGroup > getInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) ;

Target:
java.util.Optional < com.google.gerrit.server.group.InternalGroup > get ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) ;
Source:
private static com.google.gerrit.client.rpc.RestApi editFile ( int id , java.lang.String path ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . id ( path ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi editFile ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String path ) { return com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . id ( path ) ; }
Source:
public abstract T get ( I input , com.google.gerrit.server.index.FieldDef.FillArgs args ) throws com.google.gwtorm.server.OrmException ;

Target:
T get ( I input , com.google.gerrit.server.index.FieldDef.FillArgs args ) throws com.google.gwtorm.server.OrmException , java.io.IOException ;
Source:
private com.google.gerrit.server.events.DependencyAttribute newDependsOn ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.PatchSet ps ) { com.google.gerrit.server.events.DependencyAttribute d = newDependencyAttribute ( c , ps ) ; d.isCurrentPatchSet = c.currPatchSetId ( ) . equals ( ps.getId ( ) ) ; return d ; }

Target:
private com.google.gerrit.server.events.DependencyAttribute newDependsOn ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.PatchSet ps ) { com.google.gerrit.server.events.DependencyAttribute d = newDependencyAttribute ( c , ps ) ; d.isCurrentPatchSet = ps.getId ( ) . equals ( c.currentPatchSetId ( ) ) ; return d ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commit ( ) throws java.io.IOException { return commit ( com.google.common.base.Preconditions.checkNotNull ( updateFactory , "MetaDataUpdate.Factory" ) . create ( change.getProject ( ) ) ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit commit ( ) throws java.io.IOException { return commit ( com.google.common.base.Preconditions.checkNotNull ( updateFactory , "MetaDataUpdate.Factory" ) . create ( change.getProject ( ) , user ) ) ; }
Source:
private static PatchSet.Id toPsId ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String psIdStr ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id , ( psIdStr.equals ( "edit" ) ? 0 : java.lang.Integer.parseInt ( psIdStr ) ) ) ; }

Target:
public static PatchSet.Id toPsId ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String psIdStr ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id , ( psIdStr.equals ( "edit" ) ? 0 : java.lang.Integer.parseInt ( psIdStr ) ) ) ; }
Source:
private void renderInput ( org.asciidoctor.Options options , java.lang.String inputFile ) { org.asciidoctor.Asciidoctor asciidoctor = org.asciidoctor.internal.JRubyAsciidoctor.create ( ) ; asciidoctor.renderFile ( new java.io.File ( inputFile ) , options ) ; }

Target:
private void renderInput ( org.asciidoctor.Options options , java.io.File inputFile ) { org.asciidoctor.Asciidoctor asciidoctor = org.asciidoctor.internal.JRubyAsciidoctor.create ( ) ; asciidoctor.renderFile ( inputFile , options ) ; }
Source:
com.google.gerrit.server.api.projects.DashboardApiImpl create ( com.google.gerrit.server.project.ProjectResource project , java.lang.String name ) ;

Target:
com.google.gerrit.server.api.projects.DashboardApiImpl create ( com.google.gerrit.server.project.ProjectResource project , java.lang.String id ) ;
Source:
public static void includedIn ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "in" ) . get ( cb ) ; }

Target:
public static void includedIn ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( project , id , "in" ) . get ( cb ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { com.google.gwtorm.client.KeyUtil.setEncoderImpl ( new com.google.gwtorm.server.StandardKeyEncoder ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gwtorm.client.KeyUtil.setEncoderImpl ( new com.google.gwtorm.server.StandardKeyEncoder ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.update ( result ) ; }
Source:
private static boolean isCodeReview ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId id ) { return ( "CRVW" . equals ( id.get ( ) ) ) || ( "Code-Review" . equalsIgnoreCase ( id.get ( ) ) ) ; }

Target:
private static boolean isCodeReview ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId id ) { return "Code-Review" . equalsIgnoreCase ( id.get ( ) ) ; }
Source:
public boolean accept ( java.io.File pathname ) { return ( pathname.isFile ( ) ) && ( pathname.getName ( ) . endsWith ( ".jar" ) ) ; }

Target:
public boolean accept ( java.io.File pathname ) { return ( pathname.getName ( ) . endsWith ( ".jar" ) ) && ( pathname.isFile ( ) ) ; }
Source:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( java.lang.Integer.MAX_VALUE ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 ) ; }
Source:
protected void assertServerStartupFails ( ) throws java.lang.Exception { try ( com.google.gerrit.acceptance.GerritServer server = startImpl ( ) ) { org.junit.Assert.fail ( "expected server startup to fail" ) ; } catch ( com.google.gerrit.acceptance.GerritServer e ) { } }

Target:
protected void assertServerStartupFails ( ) throws java.lang.Exception { try ( com.google.gerrit.acceptance.GerritServer server = startImpl ( null ) ) { org.junit.Assert.fail ( "expected server startup to fail" ) ; } catch ( com.google.gerrit.acceptance.GerritServer e ) { } }
Source:
public Project.NameKey getProjectNameKey ( ) { return null ; }

Target:
public java.lang.String getRefName ( ) { return null ; }
Source:
public void setPrologClassLoader ( com.googlecode.prolog_cafe.lang.PrologClassLoader cl ) { if ( ( engine.aregs ) != null ) throw new java.lang.IllegalStateException ( "Prolog already initialized" ) ; engine.pcl = cl ; }

Target:
public void setPrologClassLoader ( com.googlecode.prolog_cafe.lang.PrologClassLoader cl ) { engine.pcl = cl ; }
Source:
private org.eclipse.jgit.errors.ConfigInvalidException parseException ( java.lang.String fmt , java.lang.Object ... args ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( ( ( ( "Change " + ( changeId ) ) + ": " ) + ( java.lang.String.format ( fmt , args ) ) ) ) ; }

Target:
public static org.eclipse.jgit.errors.ConfigInvalidException parseException ( com.google.gerrit.reviewdb.client.Change.Id changeId , java.lang.String fmt , java.lang.Object ... args ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( ( ( ( "Change " + changeId ) + ": " ) + ( java.lang.String.format ( fmt , args ) ) ) ) ; }
Source:
void start ( ) { if ( ( request.getQuery ( ) ) == null ) { request.setQuery ( "" ) ; } oracle.requestSuggestions ( request , this ) ; }

Target:
void start ( ) { oracle.requestSuggestions ( request , this ) ; }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > invalidResult ( com.googlecode.prolog_cafe.lang.Term rule , com.googlecode.prolog_cafe.lang.Term record ) { return invalidResult ( rule , record , null ) ; }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > invalidResult ( com.googlecode.prolog_cafe.lang.Term rule , com.googlecode.prolog_cafe.lang.Term record , com.google.gerrit.server.query.change.ChangeData cd ) { return invalidResult ( rule , record , null , cd ) ; }
Source:
public void setEmail ( java.lang.String email ) { this . email = email ; this . gravatar = generateGravatar ( email ) ; }

Target:
public void setEmail ( java.lang.String email ) { this . email = email ; }
Source:
private void setNew ( com.google.gerrit.reviewdb.Change c , com.google.gerrit.reviewdb.ChangeMessage msg ) { sendMergeFail ( c , msg , true , true ) ; }

Target:
private void setNew ( com.google.gerrit.reviewdb.Change c , com.google.gerrit.reviewdb.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }
Source:
private void assertParseSucceeds ( java.lang.String body ) throws java.lang.Exception { try ( com.google.gerrit.server.notedb.ChangeNotesParser parser = newParser ( writeCommit ( body ) ) ) { parser.parseAll ( ) ; } }

Target:
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 ( ) ; } }