auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void setLimit ( int n ) { if ( n < 0 ) { limit = 10 ; } else if ( n == 0 ) { limit = com.google.gerrit.server.account.SuggestAccounts.MAX_RESULTS ; } else { limit = java.lang.Math.min ( n , com.google.gerrit.server.account.SuggestAccounts.MAX_RESULTS ) ; } }

Target:
public void setLimit ( int n ) { if ( n < 0 ) { limit = 10 ; } else if ( n == 0 ) { limit = com.google.gerrit.server.account.SuggestAccounts.MAX_RESULTS ; } else { limit = java.lang.Math.min ( n , com.google.gerrit.server.account.SuggestAccounts.MAX_RESULTS ) ; } }
Source:
private GitilesView.Builder parseNoCommand ( javax.servlet.http.HttpServletRequest req , java.lang.String repoName , java.lang.String path ) { return com.google.gitiles.GitilesView.repositoryIndex ( ) . setRepositoryName ( repoName ) ; }

Target:
private GitilesView.Builder parseNoCommand ( java.lang.String repoName ) { return com.google.gitiles.GitilesView.repositoryIndex ( ) . setRepositoryName ( repoName ) ; }
Source:
public static com.google.gerrit.client.DiffObject autoMerge ( ) { return new com.google.gerrit.client.DiffObject ( null ) ; }

Target:
public static com.google.gerrit.client.DiffObject autoMerge ( ) { return new com.google.gerrit.client.DiffObject ( true ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.change.ChangeIndexer.IndexTask ( project , id ) ) : 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.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) { return submit ( new com.google.gerrit.server.index.change.ChangeIndexer.IndexTask ( project , id ) ) ; }
Source:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.Account.Id to ) { if ( ( ! ( emailOnlyAuthors ) ) || ( authors.contains ( to ) ) ) { super . add ( rt , to ) ; } }

Target:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.client.Account.Id to ) { if ( ( ! ( emailOnlyAuthors ) ) || ( authors.contains ( to ) ) ) { super . add ( rt , to ) ; } }
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 com.google.gerrit.server.ApprovalsUtil.getReviewers ( allApprovals ( ) ) ; }

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 com.google.gerrit.server.ApprovalsUtil.getReviewers ( approvals ( ) ) ; }
Source:
protected java.lang.String getCoverLetter ( ) { if ( ( changeMessage ) != null ) { final java.lang.String txt = changeMessage.getMessage ( ) ; if ( txt != null ) { return txt.trim ( ) ; } } return "" ; }

Target:
public java.lang.String getCoverLetter ( ) { if ( ( changeMessage ) != null ) { final java.lang.String txt = changeMessage.getMessage ( ) ; if ( txt != null ) { return txt.trim ( ) ; } } return "" ; }
Source:
private org.eclipse.jgit.lib.PersonIdent getSubmitterIdent ( ) { org.eclipse.jgit.lib.PersonIdent serverIdent = args.serverIdent.get ( ) ; return args.caller.newCommitterIdent ( serverIdent.getWhen ( ) , serverIdent.getTimeZone ( ) ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent getSubmitterIdent ( ) { return args.caller.newCommitterIdent ( args.serverIdent.getWhen ( ) , args.serverIdent.getTimeZone ( ) ) ; }
Source:
public void testCreateProjectWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/someName" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_BAD_REQUEST , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "otherName" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/someName" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; }
Source:
public static com.google.gerrit.server.account.externalids.ExternalId createWithEmail ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , null ) ; }

Target:
public static com.google.gerrit.server.account.externalids.ExternalId createWithEmail ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email ) { return com.google.gerrit.server.account.externalids.ExternalId.create ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , null ) ; }
Source:
private java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > listRemote ( org.eclipse.jgit.transport.Transport tn ) throws org.eclipse.jgit.errors.NotSupportedException , org.eclipse.jgit.errors.TransportException { org.eclipse.jgit.transport.FetchConnection fc = tn.openFetch ( ) ; try { return fc.getRefsMap ( ) ; } finally { fc.close ( ) ; } }

Target:
private java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > listRemote ( org.eclipse.jgit.transport.Transport tn ) throws org.eclipse.jgit.errors.NotSupportedException , org.eclipse.jgit.errors.TransportException { try ( org.eclipse.jgit.transport.FetchConnection fc = tn.openFetch ( ) ) { return fc.getRefsMap ( ) ; } }
Source:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , expectedStatus ) ; }

Target:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , false , expectedStatus ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String r , java.lang.String o ) ;

Target:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String t , java.lang.String r , java.lang.String o ) ;
Source:
public void parseInvalidNotifyValue ( ) { com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* illegal-characters-at-the-end" ) ; com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* [INVALID]" ) ; com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* [ALL_COMMENTS, UNKNOWN]" ) ; com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* [ALL_COMMENTS NEW_CHANGES]" ) ; com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* [ALL_COMMENTS, NEW_CHANGES" ) ; com.google.gerrit.server.account.WatchConfigTest.assertParseNotifyValueFails ( "* ALL_COMMENTS, NEW_CHANGES]" ) ; }

Target:
public void parseInvalidNotifyValue ( ) { assertParseNotifyValueFails ( "* illegal-characters-at-the-end" ) ; assertParseNotifyValueFails ( "* [INVALID]" ) ; assertParseNotifyValueFails ( "* [ALL_COMMENTS, UNKNOWN]" ) ; assertParseNotifyValueFails ( "* [ALL_COMMENTS NEW_CHANGES]" ) ; assertParseNotifyValueFails ( "* [ALL_COMMENTS, NEW_CHANGES" ) ; assertParseNotifyValueFails ( "* ALL_COMMENTS, NEW_CHANGES]" ) ; }
Source:
private static void assertDeleted ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; org.junit.Assert.assertEquals ( ChangeType.DELETED , e.getChangeType ( ) ) ; }

Target:
private static void assertDeleted ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; com.google.common.truth.Truth.assertThat ( e.getChangeType ( ) ) . isEqualTo ( ChangeType.DELETED ) ; }
Source:
void unstarChange ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
void unstarChange ( java.lang.String changeId ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
public java.util.List < com.google.gerrit.server.git.ValidationError > getValidationErrors ( ) { if ( ( validationErrors ) != null ) { return java.util.Collections.unmodifiableList ( validationErrors ) ; } else { return java.util.Collections.emptyList ( ) ; } }

Target:
public java.util.List < com.google.gerrit.server.git.ValidationError > getValidationErrors ( ) { if ( ( validationErrors ) != null ) { return java.util.Collections.unmodifiableList ( validationErrors ) ; } return java.util.Collections.emptyList ( ) ; }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , c , allUsers , user ) ; return update ; }

Target:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; }
Source:
public void asyncExec ( final java.lang.Runnable task ) { executor.schedule ( task , 0 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public void asyncExec ( final java.lang.Runnable task ) { executor.submit ( task ) ; }
Source:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > delete ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.DELETE , "/" ) ) ; }

Target:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > delete ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.DELETE , "/" ) ) ; }
Source:
protected abstract com.google.inject.Injector createInjector ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) ;

Target:
protected abstract com.google.inject.Injector createInjector ( ) ;
Source:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/child" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_UNPROCESSABLE_ENTITY , r.getStatusCode ( ) ) ; }

Target:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/child" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_UNPROCESSABLE_ENTITY ) ; }
Source:
protected com.google.gerrit.acceptance.RestResponse execute ( org.apache.http.client.fluent.Request request ) throws java.io.IOException { return new com.google.gerrit.acceptance.RestResponse ( executor.execute ( request ) . returnResponse ( ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse execute ( org.apache.http.client.fluent.Request request ) throws java.io.IOException { return new com.google.gerrit.acceptance.RestResponse ( executor.execute ( request ) . returnResponse ( ) ) ; }
Source:
public org.kohsuke.github.GitHub getHub ( ) throws java.io.IOException { 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 ; } else { return org.kohsuke.github.GitHub.connectUsingOAuth ( config.gitHubApiUrl , token.accessToken ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = createBareRepository ( ) ; util = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.lib.Repository > ( db ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = createBareRepository ( ) ; util = new org.eclipse.jgit.junit.TestRepository ( db ) ; }
Source:
public boolean apply ( K in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = func.apply ( in ) ; return ( upToCurrent.apply ( psId ) ) && ( patchSets.containsKey ( psId ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSet.Id in ) { return ( upToCurrent.apply ( in ) ) && ( patchSets.containsKey ( in ) ) ; }
Source:
protected void configureServlets ( ) { serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LoginRedirectServlet.class ) ; install ( new com.google.gerrit.httpd.rpc.RpcServletModule ( com.google.gerrit.httpd.rpc.UiRpcModule.PREFIX ) { @ java.lang.Override protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.auth.ldap.UserPassAuthServiceImpl.class ) ; } } ) ; }

Target:
protected void configureServlets ( ) { install ( new com.google.gerrit.httpd.rpc.RpcServletModule ( com.google.gerrit.httpd.rpc.UiRpcModule.PREFIX ) { @ java.lang.Override protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.auth.ldap.UserPassAuthServiceImpl.class ) ; } } ) ; }
Source:
public void setFieldReference ( final com.google.gwtorm.schema.ColumnModel cm , boolean incr ) { col = cm ; if ( incr ) { ( columnIdx ) ++ ; } }

Target:
public void setFieldReference ( final com.google.gwtorm.schema.ColumnModel cm ) { col = cm ; ( columnIdx ) ++ ; }
Source:
public static java.lang.String getPluginName ( java.io.File srcFile ) throws java.io.IOException { return com.google.common.base.Objects.firstNonNull ( com.google.gerrit.server.plugins.PluginLoader.getGerritPluginName ( srcFile ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcFile ) ) . toLowerCase ( ) ; }

Target:
public java.lang.String getPluginName ( java.io.File srcFile ) throws java.io.IOException { return com.google.common.base.Objects.firstNonNull ( getGerritPluginName ( srcFile ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcFile ) ) ; }
Source:
public static void addOptions ( com.google.gerrit.client.rpc.RestApi call , java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > s ) { call.addParameterRaw ( "O" , java.lang.Integer.toHexString ( com.google.gerrit.extensions.client.ListChangesOption.toBits ( s ) ) ) ; }

Target:
public static void addOptions ( com.google.gerrit.client.rpc.RestApi call , java.util.Set < com.google.gerrit.extensions.client.ListChangesOption > s ) { call.addParameterRaw ( "O" , java.lang.Integer.toHexString ( com.google.gerrit.extensions.client.ListChangesOption.toBits ( s ) ) ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; } }
Source:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/groups/newGroup" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/groups/newGroup" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }
Source:
public java.util.List < com.google.gitiles.blame.Region > load ( com.google.gitiles.blame.BlameCacheImpl.Key key ) throws java.io.IOException { return loadBlame ( key ) ; }

Target:
public java.util.List < com.google.gitiles.blame.Region > load ( com.google.gitiles.blame.BlameCacheImpl.Key key ) throws java.io.IOException { return com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key ) ; }
Source:
private com.google.gerrit.server.account.AuthResult auth ( final com.google.gerrit.reviewdb.client.AccountExternalId account ) { if ( account != null ) { return new com.google.gerrit.server.account.AuthResult ( account.getAccountId ( ) , null , false ) ; } return null ; }

Target:
private com.google.gerrit.server.account.AuthResult auth ( com.google.gerrit.reviewdb.client.Account.Id account ) { if ( account != null ) { return new com.google.gerrit.server.account.AuthResult ( account , null , false ) ; } return null ; }
Source:
protected void assertBadQuery ( java.lang.Object query ) throws java.lang.Exception { try { newQuery ( query ) . get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }

Target:
protected void assertBadQuery ( java.lang.Object query ) throws java.lang.Exception { assertBadQuery ( newQuery ( query ) ) ; }
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.client.Account.Id id ) { return asAccountAttribute ( accountCache.get ( id ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( id == null ) { return null ; } return asAccountAttribute ( accountCache.get ( id ) . getAccount ( ) ) ; }
Source:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; factory ( RegisterNewEmailSender.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; }
Source:
public java.lang.String getHttpUrl ( com.google.gerrit.acceptance.GerritServer server ) { java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; b.append ( "http://" ) ; b.append ( username ) ; b.append ( ":" ) ; b.append ( httpPassword ) ; b.append ( ( "@localhost:" + ( server.getHttpPort ( ) ) ) ) ; return b.toString ( ) ; }

Target:
public java.lang.String getHttpUrl ( com.google.gerrit.acceptance.GerritServer server ) { return java.lang.String.format ( "http://%s:%s@%s:%d" , username , httpPassword , server.getHttpAddress ( ) . getAddress ( ) . getHostAddress ( ) , server.getHttpAddress ( ) . getPort ( ) ) ; }
Source:
public java.util.concurrent.atomic.AtomicLong load ( com.google.gerrit.reviewdb.client.Project.NameKey project ) throws java.io.IOException { org.eclipse.jgit.lib.Repository git = gitManager.openRepository ( project ) ; try { return new java.util.concurrent.atomic.AtomicLong ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.getDiskUsage ( git.getDirectory ( ) ) ) ; } finally { git.close ( ) ; } }

Target:
public java.util.concurrent.atomic.AtomicLong load ( com.google.gerrit.reviewdb.client.Project.NameKey project ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository git = gitManager.openRepository ( project ) ) { return new java.util.concurrent.atomic.AtomicLong ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.getDiskUsage ( git.getDirectory ( ) ) ) ; } }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE_DRAFTS , true ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE_DRAFTS ) ; }
Source:
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.IndexTask ( id ) ) : 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.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.IndexTask ( project , id ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { group ( "empty" , "Administrators" ) ; org.junit.Assert.assertTrue ( GET ( "/groups/empty/members/" ) . isEmpty ( ) ) ; }

Target:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { group ( "empty" , "Administrators" ) ; com.google.common.truth.Truth.assertThat ( GET ( "/groups/empty/members/" ) ) . isEmpty ( ) ; }
Source:
private void hookDoesNotModify ( final java.lang.String in ) throws java.lang.Exception { assertEquals ( in , call ( in ) ) ; }

Target:
private void hookDoesNotModify ( final java.lang.String in ) throws java.lang.Exception { org.junit.Assert.assertEquals ( in , call ( in ) ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( id ) ; return result ; }

Target:
public int hashCode ( ) { return 31 + ( id ) ; }
Source:
private com.google.gerrit.acceptance.server.mail.StagedChange stageReviewableChange ( ) throws java.lang.Exception { return stageChange ( this :: stageReviewableChange ) ; }

Target:
protected com.google.gerrit.acceptance.server.mail.StagedChange stageReviewableChange ( ) throws java.lang.Exception { return stageChange ( ( ) -> super . stageReviewableChange ( ) ) ; }
Source:
static void deleteEdit ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... editButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteEdit ( id.get ( ) , com.google.gerrit.client.change.EditActions.cs ( id , editButtons ) ) ; }

Target:
static void deleteEdit ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... editButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteEdit ( project.get ( ) , id.get ( ) , com.google.gerrit.client.change.EditActions.cs ( project , id , editButtons ) ) ; }
Source:
public java.lang.String getAuthorizationUrl ( ) { return oauth.getAuthorizationUrl ( oauth.getScope ( com.google.common.collect.Sets.newHashSet ( config.getDefaultScopes ( ) ) ) , null ) ; }

Target:
public java.lang.String getAuthorizationUrl ( ) { return oauth.getAuthorizationUrl ( oauth.getScope ( com.google.common.collect.Sets.newHashSet ( config.getDefaultScopes ( ) ) ) , null , null ) ; }
Source:
com.google.gerrit.server.mail.send.AddReviewerSender create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.extensions.api.changes.NotifyHandling notify ) ;

Target:
com.google.gerrit.server.mail.send.AddReviewerSender create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
public com.google.gerrit.common.data.GroupList get ( ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException { final java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup > groups = groupCache.all ( ) ; return createGroupList ( filterGroups ( groups ) ) ; }

Target:
public com.google.gerrit.common.data.GroupList get ( ) { return createGroupList ( filterGroups ( groupCache.all ( ) ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm or ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm not ( ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }
Source:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( CommentDetailFactory.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }
Source:
public static com.google.gerrit.client.reviewdb.SystemConfig create ( ) { final com.google.gerrit.client.reviewdb.SystemConfig r = new com.google.gerrit.client.reviewdb.SystemConfig ( ) ; r.singleton = new com.google.gerrit.client.reviewdb.SystemConfig.Key ( ) ; r.maxSessionAge = ( 12 * 60 ) * 60 ; return r ; }

Target:
public static com.google.gerrit.client.reviewdb.SystemConfig create ( ) { final com.google.gerrit.client.reviewdb.SystemConfig r = new com.google.gerrit.client.reviewdb.SystemConfig ( ) ; r.singleton = new com.google.gerrit.client.reviewdb.SystemConfig.Key ( ) ; return r ; }
Source:
public com.google.gerrit.server.project.ListProjects setFormat ( com.google.gerrit.server.OutputFormat fmt ) { this . format = fmt ; return this ; }

Target:
public com.google.gerrit.server.project.ListProjects setFormat ( com.google.gerrit.server.OutputFormat fmt ) { format = fmt ; return this ; }
Source:
protected abstract com.google.gerrit.client.patches.PatchScreen.Type getPatchScreenType ( ) ;

Target:
public abstract com.google.gerrit.client.patches.PatchScreen.Type getPatchScreenType ( ) ;
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { switch ( event.getCharCode ( ) ) { case com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER : doSearch ( ) ; break ; case com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE : searchBox.setText ( "" ) ; searchBox.setFocus ( false ) ; break ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doSearch ( ) ; } }
Source:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfoCache.Entry > cb ) { com.google.gerrit.client.projects.ConfigInfoCache.instance.getImpl ( name , cb ) ; }

Target:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfoCache.Entry > cb ) { com.google.gerrit.client.projects.ConfigInfoCache.instance.getImpl ( name.get ( ) , cb ) ; }
Source:
public static void updated ( final com.google.gerrit.reviewdb.Change c ) { c.resetLastUpdatedOn ( ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }

Target:
public static void updated ( final com.google.gerrit.reviewdb.client.Change c ) { c.resetLastUpdatedOn ( ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( c ) ; }
Source:
java.lang.String delete ( ) ;

Target:
java.lang.String diff ( ) ;
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , line ) ; }
Source:
public boolean isGenericAddress ( com.google.gerrit.reviewdb.Account.Id fromId ) { return ( from ( fromId ) ) != ( srvAddr ) ; }

Target:
public boolean isGenericAddress ( com.google.gerrit.reviewdb.Account.Id fromId ) { return false ; }
Source:
java.lang.String patchWindowTitle ( int id , java.lang.String file ) ;

Target:
java.lang.String patchWindowTitle ( java.lang.String changeId , java.lang.String file ) ;
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForBatchUpdate ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForBatchUpdate ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change , false , null ) . load ( ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ) . setTopic ( magicBranch.topic ) ; }

Target:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ps.getId ( ) ) . setTopic ( magicBranch.topic ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForCommit ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { return newChange ( repo , commit , null , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeForCommit ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.lang.Exception { return newChange ( repo , commit , null , null , null ) ; }
Source:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "newProjectName" ; in.parent = "non-existing-project" ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; }

Target:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "newProjectName" ) ; in.parent = "non-existing-project" ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; }
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 ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException ;
Source:
void downloadOptional ( ) { this . required = false ; download ( ) ; }

Target:
void downloadOptional ( ) { required = false ; download ( ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( screen.getProject ( ) , psId ) ) ; } }
Source:
public void setSHA1 ( final java.lang.String sha1 ) { this . sha1 = sha1 ; }

Target:
void setSHA1 ( final java.lang.String sha1 ) { this . sha1 = sha1 ; }
Source:
public static void comments ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "comments" ) . get ( cb ) ; }

Target:
public static void comments ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "comments" ) . get ( cb ) ; }
Source:
private java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupsOf ( com.google.gerrit.reviewdb.client.Account account ) { return userFactory.create ( account.getId ( ) ) . getEffectiveGroups ( ) . getKnownGroups ( ) ; }

Target:
private java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupsOf ( com.google.gerrit.reviewdb.client.Account.Id account ) { return userFactory.create ( account ) . getEffectiveGroups ( ) . getKnownGroups ( ) ; }
Source:
private com.google.common.collect.SetMultimap < com.google.gerrit.reviewdb.client.Project.NameKey , com.google.gerrit.server.index.RefState > parseStates ( com.google.gerrit.server.query.change.ChangeData cd ) { return parseStates ( cd.getRefStates ( ) ) ; }

Target:
private com.google.common.collect.SetMultimap < com.google.gerrit.reviewdb.client.Project.NameKey , com.google.gerrit.server.index.RefState > parseStates ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.gerrit.server.index.RefState.parseStates ( cd.getRefStates ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > canSubmit ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.PatchSet patchSet ) { return canSubmit ( db , patchSet , null , false , false ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > canSubmit ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.PatchSet patchSet ) { return canSubmit ( db , patchSet , null , false , false , false ) ; }
Source:
public com.google.gerrit.server.ReviewerSet reviewers ( ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( notes ( ) , approvals ( ) . values ( ) ) ; }

Target:
public com.google.gerrit.server.ReviewerSet reviewers ( ) throws com.google.gwtorm.server.OrmException { if ( ( reviewers ) == null ) { reviewers = approvalsUtil.getReviewers ( notes ( ) , approvals ( ) . values ( ) ) ; } return reviewers ; }
Source:
protected void onCellSingleClick ( int row , int column ) { if ( ( com.google.gerrit.client.ui.NavigationTable.getRowItem ( row ) ) != null ) { movePointerTo ( row ) ; } }

Target:
protected void onCellSingleClick ( int row , int column ) { movePointerTo ( row ) ; }
Source:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } com.google.gerrit.reviewdb.Project.NameKey parentName = getProject ( ) . getParent ( ) ; if ( parentName == null ) { parentName = allProjectsName ; } return projectCache.get ( parentName ) ; }

Target:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } return projectCache.get ( getProject ( ) . getParent ( allProjectsName ) ) ; }
Source:
private void clear ( ) { body.clear ( ) ; patchSetPanels.clear ( ) ; setRegisterKeys ( false ) ; }

Target:
private void clear ( ) { setRegisterKeys ( false ) ; body.clear ( ) ; patchSetPanels.clear ( ) ; }
Source:
static com.google.gerrit.server.query.change.ChangeData createForTest ( com.google.gerrit.reviewdb.client.Change.Id id ) { return new com.google.gerrit.server.query.change.ChangeData ( null , null , null , null , null , null , id ) ; }

Target:
static com.google.gerrit.server.query.change.ChangeData createForTest ( com.google.gerrit.reviewdb.client.Change.Id id ) { return new com.google.gerrit.server.query.change.ChangeData ( null , null , null , null , null , null , null , null , id ) ; }
Source:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newRequestContext ( com.google.gerrit.acceptance.TestAccount account ) { return atrScope.newContext ( reviewDbProvider , new com.google.gerrit.acceptance.SshSession ( server , admin ) , identifiedUserFactory.create ( com.google.inject.util.Providers.of ( db ) , account.getId ( ) ) ) ; }

Target:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newRequestContext ( com.google.gerrit.acceptance.TestAccount account ) { return atrScope.newContext ( reviewDbProvider , new com.google.gerrit.acceptance.SshSession ( server , account ) , identifiedUserFactory.create ( com.google.inject.util.Providers.of ( db ) , account.getId ( ) ) ) ; }
Source:
private java.util.Map < java.lang.String , com.google.gitiles.RefServlet.RefJsonData > buildRefJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( path , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , com.google.gitiles.RefServlet.RefJsonData > > ( ) { } ) ; }

Target:
private java.util.Map < java.lang.String , com.google.gitiles.RefServlet.RefJsonData > buildRefJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , com.google.gitiles.RefServlet.RefJsonData > > ( ) { } , path ) ; }
Source:
private void display ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { table.setAccountInfoCache ( result.getAccounts ( ) ) ; drafts.display ( result.getChanges ( ) ) ; table.finishDisplay ( true ) ; }

Target:
private void display ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { table.setAccountInfoCache ( result.getAccounts ( ) ) ; drafts.display ( result.getChanges ( ) ) ; table.finishDisplay ( ) ; }
Source:
void message ( java.lang.String msg ) ;

Target:
void message ( java.lang.String message ) ;
Source:
public static final void uploadImage ( java.lang.String imageData ) { com.googlesource.gerrit.plugins.imagare.client.ImageUploader.uploadImage ( "All-Projects" , imageData ) ; }

Target:
public static final void uploadImage ( java.lang.String imageData ) { com.googlesource.gerrit.plugins.imagare.client.ImageUploader.uploadImage ( "All-Projects" , imageData , null ) ; }
Source:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }

Target:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "user" ) , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }
Source:
private javax.servlet.http.Cookie getGerritCookie ( javax.servlet.http.HttpServletRequest httpRequest ) { for ( javax.servlet.http.Cookie cookie : httpRequest.getCookies ( ) ) { if ( cookie.getName ( ) . equalsIgnoreCase ( com.googlesource.gerrit.plugins.github.oauth.OAuthFilter.GERRIT_COOKIE_NAME ) ) { return cookie ; } } return null ; }

Target:
private javax.servlet.http.Cookie getGerritCookie ( javax.servlet.http.HttpServletRequest httpRequest ) { for ( javax.servlet.http.Cookie cookie : getCookies ( httpRequest ) ) { if ( cookie.getName ( ) . equalsIgnoreCase ( com.googlesource.gerrit.plugins.github.oauth.OAuthFilter.GERRIT_COOKIE_NAME ) ) { return cookie ; } } return null ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return notes ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return notes ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeList > wrapped = com.google.gwt.core.client.JsArray.createArray ( 1 ) . cast ( ) ; wrapped.push ( result ) ; callback.onSuccess ( wrapped ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeList result ) { com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeList > wrapped = com.google.gwt.core.client.JsArray.createArray ( 1 ) . cast ( ) ; wrapped.set ( 0 , result ) ; callback.onSuccess ( wrapped ) ; }
Source:
boolean canPerform ( java.lang.String permissionName ) { return doCanPerform ( permissionName , false ) ; }

Target:
boolean canPerform ( java.lang.String permissionName ) { return canPerform ( permissionName , false ) ; }
Source:
com.google.gerrit.client.reviewdb.Project byId ( com.google.gerrit.client.reviewdb.Project.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Project get ( com.google.gerrit.client.reviewdb.Project.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
private static com.google.gerrit.client.rpc.RestApi change ( int id ) { return new com.google.gerrit.client.rpc.RestApi ( "/changes/" ) . id ( java.lang.String.valueOf ( id ) ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi change ( int id ) { return new com.google.gerrit.client.rpc.RestApi ( "/changes/" ) . id ( java.lang.String.valueOf ( id ) ) ; }
Source:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/plugins/" ) . addParameterTrue ( "all" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/plugins/" ) . addParameterTrue ( "all" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
private boolean canRead ( org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { org.eclipse.jgit.revwalk.RevCommit commit = rw.parseCommit ( revId ) ; return projectControl.canReadCommit ( db.get ( ) , rw , commit ) ; } }

Target:
private boolean canRead ( org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { org.eclipse.jgit.revwalk.RevCommit commit = rw.parseCommit ( revId ) ; return projectControl.canReadCommit ( db , rw , commit ) ; } }
Source:
private void autoReindexIfStale ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { autoReindexIfStale ( cd.project ( ) , cd.getId ( ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new java.io.IOException ( e ) ; } }

Target:
private void autoReindexIfStale ( com.google.gerrit.server.query.change.ChangeData cd ) { autoReindexIfStale ( cd.project ( ) , cd.getId ( ) ) ; }
Source:
boolean isLoggedIn ( ) { return tokenCache.has ( user ) ; }

Target:
boolean isLoggedIn ( ) { return ( user ) != null ; }
Source:
private org.eclipse.jgit.lib.PersonIdent newRefLogIdent ( ) { com.google.gerrit.server.CurrentUser u = user.get ( ) ; if ( u.isIdentifiedUser ( ) ) { return u.asIdentifiedUser ( ) . newRefLogIdent ( ) ; } else { return serverIdent.get ( ) ; } }

Target:
private org.eclipse.jgit.lib.PersonIdent newRefLogIdent ( ) { com.google.gerrit.server.CurrentUser u = user.get ( ) ; if ( u.isIdentifiedUser ( ) ) { return u.asIdentifiedUser ( ) . newRefLogIdent ( ) ; } return serverIdent.get ( ) ; }
Source:
private java.lang.String trimUpToChar ( java.lang.String string , char ch ) { if ( ( string.indexOf ( ch ) ) >= 0 ) { string = string.substring ( 0 , string.indexOf ( ch ) ) ; } return string ; }

Target:
private java.lang.String trimUpToChar ( java.lang.String string , char ch ) { if ( ( string.indexOf ( ch ) ) >= 0 ) { return string.substring ( 0 , string.indexOf ( ch ) ) ; } return string ; }
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , com.google.gerrit.client.DiffObject.base ( ) , revision , fileName , null , line ) ; }

Target:
public static java.lang.String toEditScreen ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , project , com.google.gerrit.client.DiffObject.base ( ) , revision , fileName , null , line ) ; }
Source:
void onRenderEntireFile ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.renderEntireFile ( e.getValue ( ) ) ; view.updateRenderEntireFile ( ) ; }

Target:
void onRenderEntireFile ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.renderEntireFile ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.updateRenderEntireFile ( ) ; } }
Source:
public com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys list ( ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.gpg.server.GpgKeys.checkEnabled ( ) ; return new com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys ( ) ; }

Target:
public com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys list ( ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys ( ) ; }
Source:
public void valid ( final com.google.gerrit.common.data.LabelType lt , final boolean v ) { valid.put ( com.google.gerrit.server.workflow.FunctionState.id ( lt ) , v ) ; }

Target:
public void valid ( final com.google.gerrit.common.data.LabelType lt , final boolean v ) { valid.put ( lt.getName ( ) , v ) ; }