auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.client.SubmitType submitType , java.lang.String mergeStrategy , com.google.gerrit.reviewdb.client.Branch.NameKey dest , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.reviewdb.server.ReviewDb db ) { throw new java.lang.UnsupportedOperationException ( "Mergeability checking disabled" ) ; }

Target:
public boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.client.SubmitType submitType , java.lang.String mergeStrategy , com.google.gerrit.reviewdb.client.Branch.NameKey dest , org.eclipse.jgit.lib.Repository repo ) { throw new java.lang.UnsupportedOperationException ( "Mergeability checking disabled" ) ; }
Source:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; }
Source:
public boolean isBlocked ( java.lang.String permissionName ) { return ! ( doCanPerform ( permissionName , true ) ) ; }

Target:
public boolean isBlocked ( java.lang.String permissionName ) { return ! ( doCanPerform ( permissionName , false , true ) ) ; }
Source:
public com.google.gerrit.server.query.change.SortKeyPredicate.After copy ( java.lang.String newValue ) { return new com.google.gerrit.server.query.change.SortKeyPredicate.After ( dbProvider , newValue ) ; }

Target:
public com.google.gerrit.server.query.change.SortKeyPredicate.After copy ( java.lang.String newValue ) { return new com.google.gerrit.server.query.change.SortKeyPredicate.After ( schema , dbProvider , newValue ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.data.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( a , ps , null , false , null , labelTypes ) ; }

Target:
public void addPatchSets ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.data.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( db , a , ps , null , false , null , labelTypes ) ; }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.reviewdb.client.Change change , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when , java.util.Comparator < java.lang.String > labelNameComparator ) ;
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { getBatchRefUpdate ( ) . addCommand ( cmd ) ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) { commands.add ( cmd ) ; }
Source:
private static java.lang.String shortenSubject ( java.lang.String subject ) { if ( ( subject.length ( ) ) < 73 ) { return subject ; } else { return ( subject.substring ( 0 , 69 ) ) + "..." ; } }

Target:
private static java.lang.String shortenSubject ( java.lang.String subject ) { if ( ( subject.length ( ) ) < 73 ) { return subject ; } return ( subject.substring ( 0 , 69 ) ) + "..." ; }
Source:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.SubmoduleOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.SubmoduleOp.log.debug ( ( ( ( "[" + ( orm.getSubmissionId ( ) ) ) + "]" ) + msg ) , args ) ; } }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.SubmoduleOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.SubmoduleOp.log.debug ( ( ( orm.getSubmissionId ( ) ) + msg ) , args ) ; } }
Source:
public com.google.gerrit.extensions.common.MergeableInfo mergeable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return mergeable.get ( ) . apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check mergeability" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.MergeableInfo mergeable ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return mergeable.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check mergeability" , e ) ; } }
Source:
private void newChangeFooter ( ) { openFooter ( ) ; if ( ( changeUrl ( ) ) != null ) { body.append ( "View this change at " ) ; body.append ( changeUrl ( ) ) ; body.append ( "\n" ) ; } }

Target:
private void newChangeFooter ( ) { if ( ( changeUrl ( ) ) != null ) { openFooter ( ) ; body.append ( "View this change at " ) ; body.append ( changeUrl ( ) ) ; body.append ( "\n" ) ; } }
Source:
void updateContact ( java.lang.String fullName , java.lang.String emailAddr , com.google.gerrit.reviewdb.client.ContactInformation info , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Account > callback ) ;

Target:
void updateContact ( java.lang.String fullName , java.lang.String emailAddr , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Account > callback ) ;
Source:
private void grantForcePush ( ) throws java.lang.Exception { grant ( Permission.PUSH , project , "refs/heads/*" , true , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS ) ; }

Target:
private void grantForcePush ( ) throws java.lang.Exception { grant ( project , "refs/heads/*" , Permission.PUSH , true , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS ) ; }
Source:
private static java.lang.String formatLabelValue ( short value ) { if ( value > 0 ) { return "+" + value ; } else { return java.lang.Short.toString ( value ) ; } }

Target:
private static java.lang.String formatLabelValue ( short value ) { if ( value > 0 ) { return "+" + value ; } return java.lang.Short.toString ( value ) ; }
Source:
private static com.google.gerrit.server.notedb.ChangeNotesParser.ApprovalKey create ( com.google.gerrit.reviewdb.client.PatchSet.Id psId , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String label , @ com.google.gerrit.common.Nullable java.lang.String tag ) { return new com.google.gerrit.server.notedb.AutoValue_ChangeNotesParser_ApprovalKey ( psId , accountId , label , tag ) ; }

Target:
private static com.google.gerrit.server.notedb.ChangeNotesParser.ApprovalKey create ( com.google.gerrit.reviewdb.client.PatchSet.Id psId , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String label ) { return new com.google.gerrit.server.notedb.AutoValue_ChangeNotesParser_ApprovalKey ( psId , accountId , label ) ; }
Source:
private java.util.Iterator < org.bouncycastle.openpgp.PGPSignature > getSignaturesForId ( org.bouncycastle.openpgp.PGPPublicKey key , java.lang.String userId ) { return com.google.common.base.MoreObjects.firstNonNull ( key.getSignaturesForID ( userId ) , java.util.Collections.emptyIterator ( ) ) ; }

Target:
private java.util.Iterator < org.bouncycastle.openpgp.PGPSignature > getSignaturesForId ( org.bouncycastle.openpgp.PGPPublicKey key , java.lang.String userId ) { java.util.Iterator < org.bouncycastle.openpgp.PGPSignature > result = key.getSignaturesForID ( userId ) ; return result != null ? result : java.util.Collections.emptyIterator ( ) ; }
Source:
public java.lang.String commitMessage ( com.google.gerrit.server.git.GitRepositoryManager repoManager , com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { loadCommitData ( repoManager , db ) ; } return commitMessage ; }

Target:
public java.lang.String commitMessage ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { loadCommitData ( ) ; } return commitMessage ; }
Source:
com.google.gerrit.client.reviewdb.Account byId ( com.google.gerrit.client.reviewdb.Account.Id key ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Account get ( com.google.gerrit.client.reviewdb.Account.Id key ) throws com.google.gwtorm.client.OrmException ;
Source:
public void abandonReviewableChangeNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void abandonReviewableChangeNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void doPatchsetCreatedHook ( com.google.gerrit.reviewdb.Change change , com.google.gerrit.reviewdb.PatchSet patchSet , com.google.gerrit.reviewdb.ReviewDb db ) { }

Target:
public void doPatchsetCreatedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
private void onReply ( ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { replyAction.onReply ( ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
private void onReply ( ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { replyAction.onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public T open ( ) throws com.google.gwtorm.client.OrmException { return implFactory.open ( ) ; }

Target:
public T open ( ) throws com.google.gwtorm.server.OrmException { return implFactory.open ( ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return userFactory.create ( user ) ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.userAccount ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.userAccount ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( gStarting ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.account ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.account ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( gStarting ) ; }
Source:
void onUnmarkPrivate ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.ChangeActions.unmarkPrivate ( changeId , unmarkPrivate ) ; }

Target:
void onUnmarkPrivate ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.ChangeActions.unmarkPrivate ( project , changeId , unmarkPrivate ) ; }
Source:
public void setTabIndex ( int index ) { focusy.setTabIndex ( index ) ; }

Target:
public void setTabIndex ( int index ) { if ( ( focusy ) != null ) { focusy.setTabIndex ( index ) ; } }
Source:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "autoReindexIfStale" , false ) ; }

Target:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "autoReindexIfStale" , true ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) { return list.get ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) { return list ; }
Source:
public void configureCommands ( ) { command ( "print" ) . to ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( "print" ) . to ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }
Source:
public void modifyFile ( java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPut.apply ( changeResource.getControl ( ) , filePath , newContent ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot modify file of change edit" , e ) ; } }

Target:
public void modifyFile ( java.lang.String filePath , com.google.gerrit.extensions.restapi.RawInput newContent ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPut.apply ( changeResource , filePath , newContent ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot modify file of change edit" , e ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString b64 ) { wrapped.onSuccess ( com.google.gerrit.client.changes.ChangeFileApi.b64decode ( b64.asString ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString b64 ) { if ( b64 != null ) { wrapped.onSuccess ( com.google.gerrit.client.changes.ChangeFileApi.b64decode ( b64.asString ( ) ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.GitUtil.fetch ( git , ( ( com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ) + ":refs/heads/config" ) ) ; testRepo.reset ( "refs/heads/config" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.GitUtil.fetch ( testRepo , ( ( com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ) + ":refs/heads/config" ) ) ; testRepo.reset ( "refs/heads/config" ) ; }
Source:
public void testInvalidSchemeWithBackreference ( ) { try { new com.google.gwtexpui.safehtml.client.LinkFindReplace ( ".*(script:[^;]*)" , "java$1" ) . replace ( "Look at this script: alert(1);" ) ; fail ( "Expected IllegalStateException" ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testInvalidSchemeWithBackreference ( ) { try { new com.google.gwtexpui.safehtml.client.LinkFindReplace ( ".*(script:[^;]*)" , "java$1" ) . replace ( "Look at this script: alert(1);" ) ; org.junit.Assert.fail ( "Expected IllegalStateException" ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public static java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > fromRefSuffix ( java.lang.String name ) { java.lang.Integer id = com.google.gerrit.reviewdb.client.RefNames.parseRefSuffix ( name ) ; return java.util.Optional.ofNullable ( id ) . map ( com.google.gerrit.reviewdb.client.Account.Id :: new ) ; }

Target:
public static com.google.gerrit.reviewdb.client.Account.Id fromRefSuffix ( java.lang.String name ) { java.lang.Integer id = com.google.gerrit.reviewdb.client.RefNames.parseRefSuffix ( name ) ; return id != null ? new com.google.gerrit.reviewdb.client.Account.Id ( id ) : null ; }
Source:
public void checkChanges ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change.Id > changeIds ) throws java.lang.Exception { checkActual ( readExpected ( changeIds ) ) ; }

Target:
public void checkChanges ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change.Id > changeIds ) throws java.lang.Exception { checkActual ( readExpected ( changeIds ) , new java.util.ArrayList < java.lang.String > ( ) ) ; }
Source:
public void addTo ( org.eclipse.jgit.lib.BatchRefUpdate bru ) { com.google.common.base.Preconditions.checkState ( ( ! ( isEmpty ( ) ) ) , "no commands to add" ) ; for ( org.eclipse.jgit.transport.ReceiveCommand cmd : commands.values ( ) ) { bru.addCommand ( cmd ) ; } }

Target:
public void addTo ( org.eclipse.jgit.lib.BatchRefUpdate bru ) { for ( org.eclipse.jgit.transport.ReceiveCommand cmd : commands.values ( ) ) { bru.addCommand ( cmd ) ; } }
Source:
public void execute ( ) { if ( ( ( selfWidget ) == null ) || ( ( widgetManager ) == null ) ) { throw new java.lang.IllegalStateException ( "resizePaddingWidget() called before setting up widgets" ) ; } selfWidget.changed ( ) ; widgetManager.resizePaddingWidget ( ) ; }

Target:
public void execute ( ) { assert ( selfWidget ) != null ; assert ( widgetManager ) != null ; selfWidget.changed ( ) ; widgetManager.resizePaddingWidget ( ) ; }
Source:
private static java.lang.String checkName ( java.lang.String name ) { com.google.common.base.CharMatcher m = com.google.common.base.CharMatcher.anyOf ( "abcdefghijklmnopqrstuvwxyz0123456789_" ) ; com.google.common.base.Preconditions.checkArgument ( m.matchesAllOf ( name ) , "illegal field name: %s" , name ) ; return name ; }

Target:
private static java.lang.String checkName ( java.lang.String name ) { com.google.common.base.CharMatcher m = com.google.common.base.CharMatcher.anyOf ( "abcdefghijklmnopqrstuvwxyz0123456789_" ) ; com.google.common.base.Preconditions.checkArgument ( ( ( name != null ) && ( m.matchesAllOf ( name ) ) ) , "illegal field name: %s" , name ) ; return name ; }
Source:
public boolean isEnabled ( java.lang.String project ) { return true ; }

Target:
public boolean isEnabled ( java.lang.String project , java.lang.String branch ) { return true ; }
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 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 ) ) ; }
Source:
public boolean enabled ( ) { return ( ( ( writeChanges ( ) ) || ( readChanges ( ) ) ) || ( writeAccounts ( ) ) ) || ( readAccounts ( ) ) ; }

Target:
public boolean enabled ( ) { return ( writeChanges ( ) ) || ( readChanges ( ) ) ; }
Source:
private static void cancel ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { com.google.gerrit.server.rpc.OpenIdServiceImpl.callback ( req , rsp ) ; }

Target:
private void cancel ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { callback ( req , rsp ) ; }
Source:
public static boolean isDefaultDashboard ( java.lang.String id ) { return ( id != null ) && ( id.equals ( com.google.gerrit.server.project.DashboardsCollection.DEFAULT_DASHBOARD_NAME ) ) ; }

Target:
public static boolean isDefaultDashboard ( @ com.google.gerrit.common.Nullable java.lang.String id ) { return com.google.gerrit.server.project.DashboardsCollection.DEFAULT_DASHBOARD_NAME.equals ( id ) ; }
Source:
public void setFile ( final java.lang.String pattern ) { if ( ( pattern != null ) && ( ! ( pattern.isEmpty ( ) ) ) ) { file = pattern ; } }

Target:
public void setFile ( final java.lang.String pattern ) { file = pattern ; }
Source:
java.lang.String changeWithNoRevisions ( int changeId ) { }

Target:
java.lang.String changeWithNoRevisions ( int changeId ) ;
Source:
public void configure ( ) { factory ( OnlineReindexer.Factory.class ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }

Target:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }
Source:
protected java.lang.Integer getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return ChangeField.ADDED.get ( changeData , null ) ; }

Target:
protected java.lang.Integer getValueInt ( com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return ChangeField.ADDED.get ( changeData ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.client.Change.Id > getForOpenChange ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.git.ChangeSet cs = mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c ) ; return cs.ids ( ) . asList ( ) ; }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > getForOpenChange ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.git.ChangeSet cs = mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c ) ; return cs.changes ( ) . asList ( ) ; }
Source:
java.lang.String revisions ( int currentlyViewedPatchSet , int currentPatchSet ) ;

Target:
java.lang.String patchSets ( int currentlyViewedPatchSet , int currentPatchSet ) ;
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromObjectId ( id ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( id ) ) ; }
Source:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexerMock ) ; id = Account.Id.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ; org.mockito.Mockito.when ( requestMock.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }

Target:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexerMock ) ; id = new com.google.gerrit.reviewdb.client.Account.Id ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ; org.mockito.Mockito.when ( requestMock.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "download-commands" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . addParameterTrue ( "download-commands" ) ; }
Source:
private static java.lang.String getUserName ( java.util.Collection < com.google.gerrit.reviewdb.client.AccountExternalId > ids ) { for ( com.google.gerrit.reviewdb.client.AccountExternalId id : ids ) { if ( id.isScheme ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_USERNAME ) ) { return id.getSchemeRest ( ) ; } } return null ; }

Target:
public static java.lang.String getUserName ( java.util.Collection < com.google.gerrit.reviewdb.client.AccountExternalId > ids ) { for ( com.google.gerrit.reviewdb.client.AccountExternalId id : ids ) { if ( id.isScheme ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_USERNAME ) ) { return id.getSchemeRest ( ) ; } } return null ; }
Source:
private void blockForcePush ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) . setForce ( true ) ; saveProjectConfig ( project , cfg ) ; }

Target:
private void blockForcePush ( ) throws java.lang.Exception { block ( Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) . setForce ( true ) ; }
Source:
public void testEmptyQuery ( ) throws com.google.gwtorm.schema.QueryParseException { assertNull ( parse ( "" ) ) ; }

Target:
public void testEmptyQuery ( ) throws com.google.gwtorm.schema.QueryParseException { org.junit.Assert.assertNull ( parse ( "" ) ) ; }
Source:
public void createProjectFooBar ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "bar" ; gApi.projects ( ) . name ( "foo" ) . create ( in ) ; }

Target:
public void createProjectFooBar ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "foo" ; gApi.projects ( ) . name ( "bar" ) . create ( in ) ; }
Source:
private boolean inProject ( final com.google.gerrit.reviewdb.Change change ) { if ( ( projectControl ) == null ) { return true ; } return projectControl.getProject ( ) . getNameKey ( ) . equals ( change.getProject ( ) ) ; }

Target:
private boolean inProject ( final com.google.gerrit.reviewdb.client.Change change ) { if ( ( projectControl ) == null ) { return true ; } return projectControl.getProject ( ) . getNameKey ( ) . equals ( change.getProject ( ) ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSetApproval copy ( com.google.gerrit.reviewdb.client.PatchSetApproval src , com.google.gerrit.server.project.ChangeControl ctl ) { com.google.gerrit.reviewdb.client.PatchSetApproval dest = new com.google.gerrit.reviewdb.client.PatchSetApproval ( src.getPatchSetId ( ) , src ) ; dest.cache ( ctl.getChange ( ) ) ; return dest ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSetApproval copy ( com.google.gerrit.reviewdb.client.PatchSetApproval src , com.google.gerrit.server.project.ChangeControl ctl ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval ( src.getPatchSetId ( ) , src ) ; }
Source:
public int getCost ( ) { return 2 ; }

Target:
public int getCost ( ) { return 1 ; }
Source:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.extensions.client.Side.PARENT : com.google.gerrit.extensions.client.Side.REVISION ; }

Target:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( side == ( DisplaySide.A ) ) && ( ( ( base ) == null ) || ( ( base.get ( ) ) < 0 ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }
Source:
public void doChangeAbandonedHook ( com.google.gerrit.reviewdb.Change change , com.google.gerrit.reviewdb.Account account , java.lang.String reason , com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException ;

Target:
public void doChangeAbandonedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
private void assertGone ( javax.servlet.http.HttpServletRequest req ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = new com.google.gitiles.FakeHttpServletResponse ( ) ; servlet.service ( req , res ) ; assertEquals ( javax.servlet.http.HttpServletResponse.SC_GONE , res.getStatus ( ) ) ; }

Target:
private void assertGone ( javax.servlet.http.HttpServletRequest req ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = new com.google.gitiles.FakeHttpServletResponse ( ) ; servlet.service ( req , res ) ; org.junit.Assert.assertEquals ( javax.servlet.http.HttpServletResponse.SC_GONE , res.getStatus ( ) ) ; }
Source:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.group.MemberResource resource , com.google.gerrit.server.group.AddMembers.PutMember.Input input ) throws com.google.gwtorm.server.OrmException { return get.get ( ) . apply ( resource ) ; }

Target:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.group.MemberResource resource , com.google.gerrit.server.group.AddMembers.PutMember.Input input ) throws com.google.gwtorm.server.OrmException { return get.apply ( resource ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.eclipse.jgit.lib.Config ( ) ; ident = new org.eclipse.jgit.lib.PersonIdent ( "NAME" , "e@email" , 0 , 0 ) ; accountCache = org.easymock.EasyMock.createStrictMock ( com.google.gerrit.server.account.AccountCache.class ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { config = new org.eclipse.jgit.lib.Config ( ) ; ident = new org.eclipse.jgit.lib.PersonIdent ( "NAME" , "e@email" , 0 , 0 ) ; accountCache = org.easymock.EasyMock.createStrictMock ( com.google.gerrit.server.account.AccountCache.class ) ; }
Source:
private void assertIsHealthy ( ) { javax.servlet.http.HttpServletResponse responseMock = mock ( javax.servlet.http.HttpServletResponse.class ) ; servlet.doGet ( null , responseMock ) ; org.mockito.Mockito.verify ( responseMock ) . setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }

Target:
private void assertIsHealthy ( ) { javax.servlet.http.HttpServletResponse responseMock = org.mockito.Mockito.mock ( javax.servlet.http.HttpServletResponse.class ) ; servlet.doGet ( null , responseMock ) ; org.mockito.Mockito.verify ( responseMock ) . setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }
Source:
public void onUnload ( ) { if ( ( regSignOut ) != null ) { regSignOut.removeHandler ( ) ; regSignOut = null ; } super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { if ( ( regSignOut ) != null ) { regSignOut.removeHandler ( ) ; regSignOut = null ; } super . onUnload ( ) ; }
Source:
public void markKeyInvalid ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ) { if ( authorizedKeys.markKeyInvalid ( seq ) ) { commit ( authorizedKeys ) ; } } }

Target:
public void markKeyInvalid ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ; if ( authorizedKeys.markKeyInvalid ( seq ) ) { commit ( authorizedKeys ) ; } }
Source:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( accounts.create ( "user" , "user@example.com" , "User" ) ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "fatal: user does not have \"runGC\" capability." , s.getError ( ) ) ; }

Target:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "fatal: user does not have \"runGC\" capability." , s.getError ( ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; enable ( false ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; enable ( true ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForUser ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Account.Id owner ) throws java.lang.Exception { return newChange ( repo , null , owner , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChange ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo ) throws java.lang.Exception { return newChange ( repo , null , null , null , null ) ; }
Source:
private void validateReindexerNotRunning ( ) throws com.google.gerrit.lucene.ReindexerAlreadyRunningException { if ( ( ( reindexer ) != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.lucene.ReindexerAlreadyRunningException ( ) ; BRANCH ( 84694 ) ; com.google.gerrit.lucene.c Set ; com.google.gerrit.lucene.dev - plugins.txt = com.google.gerrit.lucene.$missing$ ; } }

Target:
private void validateReindexerNotRunning ( ) throws com.google.gerrit.lucene.ReindexerAlreadyRunningException { if ( ( ( reindexer ) != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.lucene.ReindexerAlreadyRunningException ( ) ; } }
Source:
public void onRevisionCreated ( com.google.gerrit.extensions.events.RevisionCreatedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) ) ; }

Target:
public void onRevisionCreated ( com.google.gerrit.extensions.events.RevisionCreatedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/drafts/*" ) ; saveProjectConfig ( project , cfg ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { block ( Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/drafts/*" ) ; }
Source:
public void onMouseMove ( com.google.gwt.event.dom.client.MouseMoveEvent arg0 ) { resizePaddingWidget ( ) ; }

Target:
public void onMouseMove ( com.google.gwt.event.dom.client.MouseMoveEvent event ) { resizePaddingWidget ( ) ; }
Source:
private InternalGroupCreation.Builder getPrefilledGroupCreationBuilder ( ) { return com.google.gerrit.server.group.db.InternalGroupCreation.builder ( ) . setGroupUUID ( groupUuid ) . setNameKey ( groupName ) . setId ( groupId ) . setCreatedOn ( com.google.gerrit.common.TimeUtil.nowTs ( ) ) ; }

Target:
private InternalGroupCreation.Builder getPrefilledGroupCreationBuilder ( ) { return com.google.gerrit.server.group.db.InternalGroupCreation.builder ( ) . setGroupUUID ( groupUuid ) . setNameKey ( groupName ) . setId ( groupId ) ; }
Source:
public void run ( ) throws java.lang.Exception { processor.setOutput ( out , QueryProcessor.OutputFormat.TEXT ) ; parseCommandLine ( ) ; verifyCommandLine ( ) ; processor.query ( com.google.gerrit.sshd.commands.Query.join ( query , " " ) ) ; }

Target:
protected void run ( ) throws java.lang.Exception { processor.query ( com.google.gerrit.sshd.commands.Query.join ( query , " " ) ) ; }
Source:
private void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.UserIdentity who ) { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }

Target:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.UserIdentity who ) { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }
Source:
com.google.gerrit.httpd.raw.BuildSystem.Label gwtZipLabel ( java.lang.String agent ) ;

Target:
abstract com.google.gerrit.httpd.raw.BuildSystem.Label gwtZipLabel ( java.lang.String agent ) ;
Source:
public com.google.gerrit.server.project.ChangeControl validateFor ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.server.CurrentUser user ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.project.ChangeControl ctl = changeFinder.findOne ( changeId , user ) ; return validateFor ( ctl.getChange ( ) , user ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl validateFor ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.server.CurrentUser user ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.project.ChangeControl ctl = changeFinder.findOne ( changeId , user ) ; return validateFor ( db , ctl.getChange ( ) , user ) ; }
Source:
public boolean canRunReceivePack ( ) { for ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group : receiveGroups ) { if ( match ( group ) ) { return true ; } } return false ; }

Target:
private boolean canRunReceivePack ( ) { for ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group : receiveGroups ) { if ( match ( group ) ) { return true ; } } return false ; }
Source:
public static void detail ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "detail" ) . get ( cb ) ; }

Target:
public static void detail ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.detail ( id ) . get ( cb ) ; }
Source:
public int compareTo ( com.google.gerrit.client.diff.SideBySideCommentGroup o ) { if ( ( side ) == ( o.side ) ) { return ( line ) - ( o.line ) ; } else { throw new java.lang.IllegalStateException ( "Cannot compare SideBySideCommentGroup with different sides" ) ; } }

Target:
public int compareTo ( com.google.gerrit.client.diff.SideBySideCommentGroup o ) { if ( ( side ) == ( o.side ) ) { return ( line ) - ( o.line ) ; } throw new java.lang.IllegalStateException ( "Cannot compare SideBySideCommentGroup with different sides" ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.setStatus ( Change.Status.SUBMITTED ) ; change.setLastUpdatedOn ( timestamp ) ; com.google.gerrit.server.ChangeUtil.computeSortKey ( change ) ; return change ; } return null ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.setStatus ( Change.Status.SUBMITTED ) ; change.setLastUpdatedOn ( timestamp ) ; return change ; } return null ; }
Source:
public java.lang.String call ( ) throws java.lang.Exception { if ( check.equals ( Check.ACCESS ) ) return healthCheckAccess ( ) ; else return healthCheckSysinfo ( ) ; }

Target:
public java.lang.String call ( ) throws java.lang.Exception { if ( check.equals ( Check.ACCESS ) ) return healthCheckAccess ( ) ; return healthCheckSysinfo ( ) ; }
Source:
private static < K , V > com.google.common.cache.CacheBuilder < K , V > newCacheBuilder ( ) { com.google.common.cache.CacheBuilder builder = com.google.common.cache.CacheBuilder.newBuilder ( ) ; return builder ; }

Target:
private static < K , V > com.google.common.cache.CacheBuilder < K , V > newCacheBuilder ( ) { return ( ( com.google.common.cache.CacheBuilder < K , V > ) ( com.google.common.cache.CacheBuilder.newBuilder ( ) ) ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( baseId , id , line ) : new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ; }
Source:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder setFileRef ( final java.lang.String fileRef ) { this . fileRef = fileRef.replace ( io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.HEAD_PART , "" ) ; return this ; }

Target:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings.PluginSettingsBuilder setFileRef ( final java.lang.String fileRef ) { this . fileRef = fileRef ; return this ; }
Source:
private final native void setCh ( int ch ) ;

Target:
public final native void setCh ( int ch ) ;
Source:
public static com.google.gerrit.client.DiffObject base ( ) { return new com.google.gerrit.client.DiffObject ( null ) ; }

Target:
public static com.google.gerrit.client.DiffObject base ( ) { return new com.google.gerrit.client.DiffObject ( false ) ; }
Source:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return getChange ( c ) . currentPatchSetId ( ) ; }

Target:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return getChange ( c ) . change ( ) . currentPatchSetId ( ) ; }
Source:
private com.google.gerrit.server.git.validators.CommitValidators forMergedCommits ( com.google.gerrit.server.project.RefControl refControl ) { return new com.google.gerrit.server.git.validators.CommitValidators ( com.google.common.collect.ImmutableList.of ( new com.google.gerrit.server.git.validators.CommitValidators.UploadMergesPermissionValidator ( refControl ) , new com.google.gerrit.server.git.validators.CommitValidators.AuthorUploaderValidator ( refControl , canonicalWebUrl ) , new com.google.gerrit.server.git.validators.CommitValidators.CommitterUploaderValidator ( refControl , canonicalWebUrl ) ) ) ; }

Target:
public com.google.gerrit.server.git.validators.CommitValidators forMergedCommits ( com.google.gerrit.server.project.RefControl refControl ) { return new com.google.gerrit.server.git.validators.CommitValidators ( com.google.common.collect.ImmutableList.of ( new com.google.gerrit.server.git.validators.CommitValidators.UploadMergesPermissionValidator ( refControl ) , new com.google.gerrit.server.git.validators.CommitValidators.AuthorUploaderValidator ( refControl , canonicalWebUrl ) , new com.google.gerrit.server.git.validators.CommitValidators.CommitterUploaderValidator ( refControl , canonicalWebUrl ) ) ) ; }
Source:
com.google.gerrit.client.reviewdb.AccountGroup byGroupId ( com.google.gerrit.client.reviewdb.AccountGroup.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.AccountGroup get ( com.google.gerrit.client.reviewdb.AccountGroup.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
private boolean canUploadMerges ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH_MERGE ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
private boolean canUploadMerges ( ) { return projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH_MERGE ) ; }
Source:
private java.util.Collection < com.google.gerrit.extensions.common.AccountInfo > suggestAccounts ( com.google.gerrit.server.change.SuggestReviewers suggestReviewers , com.google.gerrit.server.ReviewersUtil.VisibilityControl visibilityControl ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.index.account.AccountIndex searchIndex = indexes.getSearchIndex ( ) ; if ( searchIndex != null ) { return suggestAccountsFromIndex ( suggestReviewers ) ; } return suggestAccountsFromDb ( suggestReviewers , visibilityControl ) ; }

Target:
private java.util.Collection < com.google.gerrit.extensions.common.AccountInfo > suggestAccounts ( com.google.gerrit.server.change.SuggestReviewers suggestReviewers , com.google.gerrit.server.ReviewersUtil.VisibilityControl visibilityControl ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.index.account.AccountIndex searchIndex = indexes.getSearchIndex ( ) ; if ( searchIndex != null ) { return suggestAccountsFromIndex ( suggestReviewers , visibilityControl ) ; } return suggestAccountsFromDb ( suggestReviewers , visibilityControl ) ; }
Source:
public com.google.gerrit.reviewdb.Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.Project.NameKey ( projectName ) ; }

Target:
public com.google.gerrit.reviewdb.Project.NameKey getProjectNameKey ( ) { return projectName ; }
Source:
public static boolean isRefsEdit ( java.lang.String ref ) { return ( ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ) && ( ref.contains ( com.google.gerrit.reviewdb.client.RefNames.EDIT_PREFIX ) ) ; }

Target:
public static boolean isRefsEdit ( java.lang.String ref ) { return ( ( ref != null ) && ( ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ) ) && ( ref.contains ( com.google.gerrit.reviewdb.client.RefNames.EDIT_PREFIX ) ) ; }
Source:
com.google.gerrit.server.changedetail.RestoreChange create ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String changeComment ) ;

Target:
com.google.gerrit.server.changedetail.RestoreChange create ( com.google.gerrit.reviewdb.client.Change.Id changeId , java.lang.String changeComment ) ;
Source:
protected java.lang.String getCookie ( final java.lang.String name ) { return com.google.gwtjsonrpc.server.JsonServlet.< com.google.gwtjsonrpc.server.ActiveCall > getCurrentCall ( ) . getCookie ( name ) ; }

Target:
static java.lang.String get ( final java.lang.String name ) { return com.google.gwtjsonrpc.server.JsonServlet.< com.google.gwtjsonrpc.server.ActiveCall > getCurrentCall ( ) . getCookie ( name ) ; }
Source:
com.google.gerrit.client.reviewdb.Project byName ( com.google.gerrit.client.reviewdb.Project.NameKey name ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Project get ( com.google.gerrit.client.reviewdb.Project.NameKey name ) throws com.google.gwtorm.client.OrmException ;
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > and ( final com.google.gerrit.server.query.Predicate < T > ... that ) { return new com.google.gerrit.server.query.AndPredicate < T > ( that ) ; }

Target:
public static < T > com.google.gerrit.server.query.Predicate < T > and ( final com.google.gerrit.server.query.Predicate < T > ... that ) { if ( ( that.length ) == 1 ) { return that [ 0 ] ; } return new com.google.gerrit.server.query.AndPredicate < T > ( that ) ; }