auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onClose ( final com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { com.google.gwtexpui.globalkey.client.ShowHelpCommand.current = null ; }

Target:
public void onClose ( final com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { com.google.gwtexpui.globalkey.client.ShowHelpCommand.current = null ; com.google.gwtexpui.globalkey.client.ShowHelpCommand.BUS.fireEvent ( new com.google.gwt.event.dom.client.FocusEvent ( ) { } ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.query.change.ChangeData input ) { input.cacheFromSource ( source ) ; return input ; }

Target:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.query.change.ChangeData input ) { input.cacheFromSource ( currSource ) ; return input ; }
Source:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { return com.google.gerrit.server.notedb.NotesMigration.allEnabledConfig ( ) ; }

Target:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { return com.google.gerrit.server.query.change.AbstractQueryChangesTest.updateConfig ( com.google.gerrit.server.notedb.NotesMigration.allEnabledConfig ( ) ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > result ) { dashes.display ( result ) ; }

Target:
protected void preDisplay ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.dashboards.DashboardList > result ) { dashes.display ( result ) ; }
Source:
public static com.google.gerrit.server.account.InternalAccountUpdate.Builder builder ( ) { return com.google.gerrit.server.account.InternalAccountUpdate.createBuilderProxyThatConvertsNullStringArgsToEmptyStrings ( new com.google.gerrit.server.account.AutoValue_InternalAccountUpdate.Builder ( ) ) ; }

Target:
public static com.google.gerrit.server.account.InternalAccountUpdate.Builder builder ( ) { return new com.google.gerrit.server.account.InternalAccountUpdate.Builder.WrapperThatConvertsNullStringArgsToEmptyStrings ( new com.google.gerrit.server.account.AutoValue_InternalAccountUpdate.Builder ( ) ) ; }
Source:
java.lang.String value ( ) ;

Target:
java.lang.String value ( ) default "" ;
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onExpandAll ( null ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }
Source:
public void suggestReviewersFullTextSearch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 5 ) ; org.junit.Assert.assertEquals ( 4 , reviewers.size ( ) ) ; }

Target:
public void suggestReviewersFullTextSearch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 4 ) ; }
Source:
void publish ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void restoreChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String message , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
protected void configure ( ) { }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; }
Source:
private void assertNoError ( java.lang.String response ) { org.junit.Assert.assertFalse ( response , response.toLowerCase ( java.util.Locale.US ) . contains ( "error" ) ) ; }

Target:
private void assertNoError ( java.lang.String response ) { com.google.common.truth.Truth.assertThat ( response.toLowerCase ( java.util.Locale.US ) ) . doesNotContain ( "error" ) ; }
Source:
public long getMaxValue ( ) { return java.lang.Long.MAX_VALUE ; }

Target:
public long getMaxValue ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return java.lang.Long.MAX_VALUE ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { delete.apply ( rsrc , new com.google.gerrit.server.account.DeleteGpgKey.Input ( ) ) ; } catch ( org.bouncycastle.openpgp.PGPException | com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete GPG key" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { delete.apply ( rsrc , new com.google.gerrit.gpg.server.DeleteGpgKey.Input ( ) ) ; } catch ( org.bouncycastle.openpgp.PGPException | com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete GPG key" , e ) ; } }
Source:
public boolean isVisible ( ) { return ( getProjectControl ( ) . visibleForReplication ( ) ) || ( canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ) ; }

Target:
public boolean canUpload ( ) { return getProjectControl ( ) . controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ; }
Source:
public void restoreFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , changeControl , new com.google.gerrit.server.edit.tree.RestoreFileModification ( file ) ) ; }

Target:
public void restoreFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.notedb.ChangeNotes notes , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , notes , new com.google.gerrit.server.edit.tree.RestoreFileModification ( file ) ) ; }
Source:
public void testList ( ) { com.google.common.truth.Truth.assertThat ( cfg.getStringList ( "x" , null , "y" ) ) . asList ( ) . containsExactly ( "a" , "b" ) ; }

Target:
public void testList ( ) { com.google.common.truth.Truth.assertThat ( cfg.getStringList ( "section" , null , "name" ) ) . asList ( ) . containsExactly ( "value-1" , "value-2" ) ; }
Source:
public void removeChangeListener ( com.google.gerrit.common.ChangeListener listener ) ;

Target:
public void removeEventListener ( com.google.gerrit.common.EventListener listener ) ;
Source:
public void afterUpdateChange ( ) throws java.lang.Exception { }

Target:
public void afterUpdateRepos ( ) throws java.lang.Exception { }
Source:
public void close ( ) { }

Target:
public void close ( ) { if ( closeReader ) { reader.close ( ) ; } }
Source:
protected com.google.gerrit.client.reviewdb.ReviewDb openReviewDb ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { try { return getGerritServer ( ) . getDatabase ( ) . open ( ) ; } catch ( com.google.gwtorm.client.OrmException e ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 1 , "fatal: Gerrit database is offline" ) ; } }

Target:
protected com.google.gerrit.client.reviewdb.ReviewDb openReviewDb ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { try { return com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) ; } catch ( com.google.gwtorm.client.OrmException e ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 1 , "fatal: Gerrit database is offline" ) ; } }
Source:
public void evict ( com.google.gerrit.reviewdb.Account.Id accountId ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.Account.Id accountId ) ;
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultProjectName ( ) . equals ( box.getText ( ) ) ) { box.setText ( "" ) ; box.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultProjectName ( ) . equals ( nameBox.getText ( ) ) ) { nameBox.setText ( "" ) ; nameBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
void rebase ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
com.google.gerrit.extensions.api.changes.ChangeApi rebase ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
protected void includeWatchers ( com.google.gerrit.server.account.WatchConfig.NotifyType type ) { includeWatchers ( type , true ) ; }

Target:
protected void includeWatchers ( com.google.gerrit.server.account.ProjectWatches.NotifyType type ) { includeWatchers ( type , true ) ; }
Source:
public final java.lang.Class < ? extends org.kohsuke.args4j.spi.OptionHandler < java.lang.Short > > handler ( ) { return com.google.gerrit.server.ssh.commands.CmdOption.Handler.class ; }

Target:
public java.lang.Class < ? extends org.kohsuke.args4j.spi.OptionHandler < java.lang.Short > > handler ( ) { return com.google.gerrit.server.ssh.commands.ApproveOption.Handler.class ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommitPrefix ( java.lang.String prefix ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( prefix ) ) ) ; }

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:
private com.google.gitiles.doc.MarkdownToHtml revisionReadme ( ) { return readme ( com.google.gitiles.GitilesView.revision ( ) . copyFrom ( view ) . build ( ) ) ; }

Target:
private com.google.gitiles.doc.MarkdownToHtml revisionReadme ( ) { return readme ( com.google.gitiles.GitilesView.revision ( ) . copyFrom ( view ) . build ( ) , "README.md" ) ; }
Source:
final native void wait_for_merge ( boolean b ) ;

Target:
final native void waitForMerge ( boolean b ) ;
Source:
public void onFailure ( final java.lang.Throwable caught ) { if ( ( rpcSequence ) == rpcseq ) { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( ( rpcSequence ) == rpcseq ) { settingsPanel.setEnabled ( true ) ; super . onFailure ( caught ) ; } }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account.Id updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
public boolean canForceUpdate ( ) { return ( canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD , com.google.gerrit.reviewdb.ApprovalCategory.PUSH_HEAD_REPLACE ) ) || ( canDelete ( ) ) ; }

Target:
public boolean canUpload ( ) { return getProjectControl ( ) . controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH ) ; }
Source:
private static com.google.gerrit.client.reviewdb.LoginType toType ( final org.spearce.jgit.lib.Config cfg ) { if ( com.google.gerrit.server.config.AuthConfig.isBecomeAnyoneEnabled ( ) ) { return com.google.gerrit.client.reviewdb.LoginType.DEVELOPMENT_BECOME_ANY_ACCOUNT ; } return com.google.gerrit.server.config.ConfigUtil.getEnum ( cfg , "auth" , null , "type" , LoginType.OPENID ) ; }

Target:
private static com.google.gerrit.client.reviewdb.AuthType toType ( final org.spearce.jgit.lib.Config cfg ) { if ( com.google.gerrit.server.config.AuthConfig.isBecomeAnyoneEnabled ( ) ) { return com.google.gerrit.client.reviewdb.AuthType.DEVELOPMENT_BECOME_ANY_ACCOUNT ; } return com.google.gerrit.server.config.ConfigUtil.getEnum ( cfg , "auth" , null , "type" , AuthType.OPENID ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.deleteDocuments ( term ) ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < ? > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new NrtFuture ( writer.updateDocument ( term , doc ) ) ; }
Source:
static void replyError ( javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { res.setStatus ( statusCode ) ; com.google.gerrit.httpd.restapi.RestApiServlet.replyText ( null , res , msg ) ; }

Target:
static void replyError ( javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { res.setStatus ( statusCode ) ; com.google.gwtexpui.server.CacheHeaders.setNotCacheable ( res ) ; com.google.gerrit.httpd.restapi.RestApiServlet.replyText ( null , res , msg ) ; }
Source:
public void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public final void update ( final java.lang.Iterable < E > instances , final com.google.gwtorm.client.Transaction txn ) throws com.google.gwtorm.client.OrmException { if ( txn != null ) { cast ( txn ) . queueUpdate ( this , instances ) ; } else { update ( instances ) ; } }

Target:
public final void upsert ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doUpsert ( instances ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setGroups ( java.lang.Iterable < java.lang.String > groups ) { this . groups = groups ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setGroups ( java.util.List < java.lang.String > groups ) { com.google.common.base.Preconditions.checkNotNull ( groups , "groups may not be null" ) ; this . groups = groups ; return this ; }
Source:
public void testDeleteOneExisting ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 1 ) ; createClassUnderTest ( ) . delete ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; }

Target:
public void testUpdateOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement update = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( update ) ; }
Source:
void visibleProjects ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectList > callback ) ;

Target:
void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; factory ( CommentSender.Factory.class ) ; factory ( RevertedSender.Factory.class ) ; factory ( RestoredSender.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; factory ( CommentSender.Factory.class ) ; factory ( DeleteVoteSender.Factory.class ) ; factory ( RestoredSender.Factory.class ) ; factory ( RevertedSender.Factory.class ) ; }
Source:
public void onClick ( android.view.View v ) { removeDiffView ( ) ; createDiffView ( ) ; init ( path , change , files ) ; displayFile ( change , path , files.get ( path ) ) ; }

Target:
public void onClick ( android.view.View v ) { removeDiffView ( ) ; createDiffView ( ) ; init ( path , change , files ) ; displayFile ( change , path , files.get ( path ) , fileNumber , files.size ( ) ) ; }
Source:
private static int version ( com.google.gerrit.server.index.ChangeIndex i ) { return i.getSchema ( ) . getVersion ( ) ; }

Target:
private static int version ( com.google.gerrit.server.index.change.ChangeIndex i ) { return i.getSchema ( ) . getVersion ( ) ; }
Source:
protected void configure ( ) { cache ( com.google.gerrit.httpd.plugins.HttpPluginModule.PLUGIN_RESOURCES , com.google.gerrit.httpd.plugins.ResourceKey.class , com.google.gerrit.httpd.plugins.Resource.class ) . maximumWeight ( ( 2 << 20 ) ) . weigher ( com.google.gerrit.httpd.plugins.ResourceWeigher.class ) ; }

Target:
protected void configure ( ) { cache ( com.google.gerrit.httpd.plugins.HttpPluginModule.PLUGIN_RESOURCES , com.google.gerrit.httpd.resources.ResourceKey.class , com.google.gerrit.httpd.resources.Resource.class ) . maximumWeight ( ( 2 << 20 ) ) . weigher ( com.google.gerrit.httpd.resources.ResourceWeigher.class ) ; }
Source:
protected void configure ( ) { bind ( com.google.inject.Key.get ( javax.sql.DataSource.class , com.google.inject.name.Names.named ( "ReviewDb" ) ) ) . toProvider ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; listener ( ) . to ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.httpd.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.client.data.ChangeHeader c ) { return "change," + ( c.id ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.client.data.ChangeInfo c ) { return "change," + ( c.getId ( ) . get ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( false , false ) ) ; }
Source:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( com.google.gerrit.client.rpc.Common.getGerritConfig ( ) ) ; }

Target:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( com.google.gerrit.server.SystemInfoServiceImpl.getGerritConfig ( ) ) ; }
Source:
public void testEvictProjectListOK ( ) throws java.lang.Exception { setupMocks ( Constants.PROJECT_LIST , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.PROJECT_LIST , new java.lang.Object ( ) ) ) . isTrue ( ) ; }

Target:
public void testEvictProjectListOK ( ) throws java.lang.Exception { setupMocks ( Constants.PROJECT_LIST , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.PROJECT_LIST , new java.lang.Object ( ) ) ) . isTrue ( ) ; }
Source:
public boolean apply ( com.google.gerrit.extensions.common.ProjectInfo info ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( info.name ) . equals ( p ) ; }

Target:
public boolean apply ( com.google.gerrit.extensions.common.ProjectInfo info ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( ( ( info.name ) != null ? info.name : com.google.gerrit.extensions.restapi.Url.decode ( info.id ) ) ) . equals ( p ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.GerritConfig result ) { com.google.gerrit.client.Gerrit.config = result ; onModuleLoad2 ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.data.GerritConfig result ) { com.google.gerrit.client.rpc.Common.setGerritConfig ( result ) ; onModuleLoad2 ( ) ; }
Source:
public java.lang.String toString ( ) { return ( ( getOperator ( ) ) + ":" ) + ( id.name ( ) ) ; }

Target:
public java.lang.String toString ( ) { return ( ( com.google.gerrit.server.query.ObjectIdPredicate.getOperator ( ) ) + ":" ) + ( id.name ( ) ) ; }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.ActionInfo > actions ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return revisionActions.apply ( revision ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get actions" , e ) ; } }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.ActionInfo > actions ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return revisionActions.apply ( revision ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get actions" , e ) ; } }
Source:
public void createNewProject ( java.lang.String projectName , java.lang.String parentName , boolean emptyCommit , boolean permissionsOnly , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) { createProjectHandlerFactory.create ( projectName , parentName , emptyCommit , permissionsOnly ) . to ( callback ) ; }

Target:
public void createNewProject ( java.lang.String projectName , java.lang.String parentName , boolean emptyCommit , boolean permissionsOnly , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) { createProjectHandlerFactory.create ( projectName , parentName , emptyCommit , permissionsOnly ) . to ( callback ) ; }
Source:
public com.google.gerrit.server.query.Predicate < T > getChild ( int i ) { if ( i == 0 ) { return pred ; } throw new java.lang.ArrayIndexOutOfBoundsException ( i ) ; }

Target:
public com.google.gerrit.index.query.Predicate < T > getChild ( int i ) { if ( i == 0 ) { return pred ; } throw new java.lang.ArrayIndexOutOfBoundsException ( i ) ; }
Source:
public int compare ( final org.eclipse.jgit.diff.Edit o1 , final org.eclipse.jgit.diff.Edit o2 ) { return ( o1.getBeginA ( ) ) - ( o2.getBeginA ( ) ) ; }

Target:
public int compare ( final com.google.gerrit.prettify.common.BaseEdit o1 , final com.google.gerrit.prettify.common.BaseEdit o2 ) { return ( o1.getBeginA ( ) ) - ( o2.getBeginA ( ) ) ; }
Source:
public void go ( ) { movePointerTo ( id ) ; super . go ( ) ; }

Target:
public void go ( ) { movePointerTo ( cid ) ; super . go ( ) ; }
Source:
public final native void set_current_revision ( java.lang.String r ) ;

Target:
public final native void setCurrentRevision ( java.lang.String r ) ;
Source:
private void populateAndServeFsRepository ( com.googlesource.gerrit.plugins.lfs.LfsBackend backend ) { com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository repository = fsRepoFactory.create ( backend ) ; cache.put ( backend , repository ) ; serve ( repository.getServletUrlPattern ( ) ) . with ( new com.googlesource.gerrit.plugins.lfs.fs.LfsFsContentServlet ( repository ) ) ; }

Target:
private void populateAndServeFsRepository ( com.googlesource.gerrit.plugins.lfs.LfsBackend backend ) { com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository repository = fsRepoFactory.create ( backend ) ; cache.put ( backend , repository ) ; serve ( repository.getServletUrlPattern ( ) ) . with ( fsServletFactory.create ( repository ) ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { createReplyEditor ( this ) ; }

Target:
private void enable ( boolean on ) { for ( com.google.gwt.user.client.ui.Widget w : getButtonPanel ( ) ) { if ( w instanceof com.google.gwt.user.client.ui.Button ) { ( ( com.google.gwt.user.client.ui.Button ) ( w ) ) . setEnabled ( on ) ; } } }
Source:
public void description ( com.google.gerrit.extensions.api.projects.DescriptionInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { putDescription.apply ( checkExists ( ) , in ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put project description" , e ) ; } }

Target:
public void description ( com.google.gerrit.extensions.api.projects.DescriptionInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { putDescription.apply ( checkExists ( ) , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot put project description" , e ) ; } }
Source:
void setLfsResponseType ( ) { res.setContentType ( com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext.CONTENTTYPE_VND_GIT_LFS_JSON ) ; }

Target:
void setLfsResponseType ( ) { res.setContentType ( com.google.gerrit.extensions.api.lfs.LfsDefinitions.CONTENTTYPE_VND_GIT_LFS_JSON ) ; }
Source:
public void evictAll ( ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAllAsync ( ) ;
Source:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) . isFalse ( ) ; notesMigration.setAllEnabled ( false ) ; }

Target:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.readWrite ( ) ) . isFalse ( ) ; notesMigration.setAllEnabled ( false ) ; }
Source:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet ( indexer ) ; uuid = AccountGroup.UUID.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/group/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ) ) ; }

Target:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet ( indexer , indexTs ) ; uuid = AccountGroup.UUID.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/group/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServletTest.UUID ) ) ) ; }
Source:
private com.google.gerrit.server.diff.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return com.google.gerrit.server.diff.PatchListKey.againstCommit ( revisionIdA , revisionIdB , Whitespace.IGNORE_NONE ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return com.google.gerrit.server.patch.PatchListKey.againstCommit ( revisionIdA , revisionIdB , Whitespace.IGNORE_NONE ) ; }
Source:
public java.util.List < com.googlesrouce.gerrit.plugins.github.git.GHRelease > getReleases ( ) throws java.io.IOException { return ghRepository.getReleases ( ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.github.git.GHRelease > getReleases ( ) throws java.io.IOException { return ghRepository.getReleases ( ) ; }
Source:
public void resetMillisProvider ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; }

Target:
public void resetTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; java.lang.System.setProperty ( "user.timezone" , systemTimeZone ) ; }
Source:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( user ) . put ( "/projects/newProject" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/projects/newProject" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.Account.Id id ) { return asAccountAttribute ( accountCache.get ( id ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.Account.Id id ) { return asAccountAttribute ( com.google.gerrit.server.util.FutureUtil.get ( accountCache.getAccount ( id ) ) ) ; }
Source:
public void setLimit ( int limit ) { imp.setLimit ( limit ) ; }

Target:
public void setLimit ( int limit ) { imp.setUserProvidedLimit ( limit ) ; }
Source:
protected void configure ( ) { factory ( ChangeDetailFactory.Factory.class ) ; factory ( PatchSetPublishDetailFactory.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( ChangeDetailFactory.Factory.class ) ; factory ( PatchSetDetailFactory.Factory.class ) ; factory ( PatchSetPublishDetailFactory.Factory.class ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( com.google.gerrit.client.Gerrit.getConfig ( ) . getEditFullNameUrl ( ) , "_blank" , null ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( com.google.gerrit.client.Gerrit.info ( ) . auth ( ) . editFullNameUrl ( ) , "_blank" , null ) ; }
Source:
public final Project.NameKey project_name_key ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( project ( ) ) ; }

Target:
public final Project.NameKey projectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( project ( ) ) ; }
Source:
protected static java.lang.String getGroupName ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return java.lang.String.format ( "Group <%s>" , uuid ) ; }

Target:
public java.lang.String getName ( ) { return "Group" ; }
Source:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { if ( ( s.getUsername ( ) ) == null ) { java.lang.String username = s.getAttribute ( SshUtil.AUTH_ATTEMPTED_AS ) ; if ( username != null ) { sshLog.onAuthFail ( s , username ) ; } } }

Target:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { if ( sd.isAuthenticationError ( ) ) { sshLog.onAuthFail ( sd ) ; } }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , id ) ; }

Target:
public static java.lang.String toSideBySide ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , id ) ; }
Source:
public WorkQueue.Executor get ( ) { return queues.getQueue ( user.getCapabilities ( ) . getQueueType ( ) ) ; }

Target:
public java.util.concurrent.ScheduledThreadPoolExecutor get ( ) { return queues.getQueue ( capabilityFactory.create ( user ) . getQueueType ( ) ) ; }
Source:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; includeWatchers ( NotifyType.SUBMITTED_CHANGES ) ; }

Target:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; includeWatchers ( NotifyType.SUBMITTED_CHANGES ) ; removeUsersThatIgnoredTheChange ( ) ; }
Source:
public final native com.google.gerrit.client.config.GitWebInfo gitWeb ( ) ;

Target:
public final native com.google.gerrit.client.config.GitwebInfo gitweb ( ) ;
Source:
protected void preDisplay ( com.google.gerrit.common.data.GroupList result ) { groups.display ( result.getGroups ( ) ) ; groups.finishDisplay ( ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }
Source:
public boolean apply ( com.google.gerrit.server.git.ReceiveCommits.ReplaceRequest input ) { return ! ( input.skip ) ; }

Target:
public boolean apply ( com.google.gerrit.server.git.ReceiveCommits.ReplaceRequest input ) { return ( ! ( input.skip ) ) && ( ( input.inputCommand.getResult ( ) ) == ( org.eclipse.jgit.transport.ReceiveCommand.Result.OK ) ) ; }
Source:
public com.google.gerrit.extensions.common.EditInfo toEditInfo ( com.google.gerrit.server.edit.ChangeEdit edit ) throws java.io.IOException { com.google.gerrit.extensions.common.EditInfo out = new com.google.gerrit.extensions.common.EditInfo ( ) ; out.commit = com.google.gerrit.server.edit.ChangeEditJson.fillCommit ( edit.getEditCommit ( ) ) ; return out ; }

Target:
public com.google.gerrit.extensions.common.EditInfo toEditInfo ( com.google.gerrit.server.edit.ChangeEdit edit ) throws java.io.IOException { com.google.gerrit.extensions.common.EditInfo out = new com.google.gerrit.extensions.common.EditInfo ( ) ; out.commit = com.google.gerrit.server.edit.ChangeEditJson.fillCommit ( edit.getEditCommit ( ) ) ; out.actions = com.google.gerrit.server.edit.ChangeEditJson.fillActions ( edit ) ; return out ; }
Source:
public java.lang.String getRefName ( ) { return com.google.gerrit.server.edit.ChangeEditUtil.editRefName ( user.getAccountId ( ) , change.getId ( ) , basePatchSet.getId ( ) ) ; }

Target:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsEdit ( user.getAccountId ( ) , change.getId ( ) , basePatchSet.getId ( ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { onSaveSuccess ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { registerNewEmail.setEnabled ( true ) ; onSaveSuccess ( result ) ; }
Source:
public static void getGroup ( java.lang.String group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupInfo > cb ) { com.google.gerrit.client.groups.GroupApi.group ( group ) . get ( cb ) ; }

Target:
public static void getGroupDetail ( java.lang.String group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupInfo > cb ) { com.google.gerrit.client.groups.GroupApi.group ( group ) . view ( "detail" ) . get ( cb ) ; }
Source:
public void write ( byte [ ] b ) throws java.io.IOException { out.write ( b ) ; }

Target:
public void close ( ) throws java.io.IOException { try ( java.io.OutputStream o = out ) { o.write ( tail ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "FixReplacement{" + "range=" ) + ( range ) ) + ", replacement='" ) + ( replacement ) ) + '\'' ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( "FixReplacement{" + "path='" ) + ( path ) ) + '\'' ) + ", range=" ) + ( range ) ) + ", replacement='" ) + ( replacement ) ) + '\'' ) + '}' ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNew ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { closePopup ( ) ; }
Source:
public void testWithAnotherURI ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Project.NameKey p = createProject ( "a" ) ; org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; java.lang.String gitmodules = ( ( ( "" + ( ( "[submodule \"a\"]\n" + "path = a\n" ) + "url = http://localhost:80/" ) ) + ( p.get ( ) ) ) + "\n" ) + "branch = master\n" ; cfg.fromText ( gitmodules ) ; java.lang.String thisServer = com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( projectCache , cfg , thisServer , targetBranch ) . parseAllSections ( ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > expected = com.google.common.collect.Sets.newHashSet ( new com.google.gerrit.reviewdb.client.SubmoduleSubscription ( targetBranch , new com.google.gerrit.reviewdb.client.Branch.NameKey ( p , "master" ) , "a" ) ) ; com.google.common.truth.Truth.assertThat ( res ) . containsExactlyElementsIn ( expected ) ; }

Target:
public void testWithAnotherURI ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Project.NameKey p = createProject ( "a" ) ; org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( ( ( ( "" + ( ( "[submodule \"a\"]\n" + "path = a\n" ) + "url = http://localhost:80/" ) ) + ( p.get ( ) ) ) + "\n" ) + "branch = master\n" ) ) ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( cfg , com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER , targetBranch ) . parseAllSections ( ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > expected = com.google.common.collect.Sets.newHashSet ( new com.google.gerrit.reviewdb.client.SubmoduleSubscription ( targetBranch , new com.google.gerrit.reviewdb.client.Branch.NameKey ( p , "master" ) , "a" ) ) ; com.google.common.truth.Truth.assertThat ( res ) . containsExactlyElementsIn ( expected ) ; }
Source:
protected void configure ( ) { install ( new com.google.gerrit.rules.PrologModule.EnviromentModule ( ) ) ; bind ( PrologEnvironment.Args.class ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.rules.PrologModule.EnvironmentModule ( ) ) ; bind ( PrologEnvironment.Args.class ) ; }
Source:
public void testSubscriptionWildcardACLForMissingProject ( ) throws java.lang.Exception { org.eclipse.jgit.junit.TestRepository < ? > subRepo = createProjectWithPush ( "subscribed-to-project" ) ; allowSubmoduleSubscription ( "subscribed-to-project" , "refs/heads/*" , "not-existing-super-project" , "refs/heads/*" ) ; pushChangeTo ( subRepo , "master" ) ; }

Target:
public void testSubscriptionWildcardACLForMissingProject ( ) throws java.lang.Exception { org.eclipse.jgit.junit.TestRepository < ? > subRepo = createProjectWithPush ( "subscribed-to-project" ) ; allowMatchingSubmoduleSubscription ( "subscribed-to-project" , "refs/heads/*" , "not-existing-super-project" , "refs/heads/*" ) ; pushChangeTo ( subRepo , "master" ) ; }
Source:
public java.lang.String toString ( ) { return atts.get ( "dn" ) ; }

Target:
public java.lang.String toString ( ) { try { return getDN ( ) ; } catch ( javax.naming.NamingException e ) { return "" ; } }
Source:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self.getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }

Target:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self ( ) . getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_CONTACT , true ) ; }

Target:
protected void postDisplay ( ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_CONTACT , true ) ; }
Source:
public boolean match ( java.lang.String ref , java.lang.String username ) { return expect.equals ( ref ) ; }

Target:
public boolean match ( java.lang.String ref , com.google.gerrit.server.CurrentUser user ) { return expect.equals ( ref ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.Account account ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.notedb.ChangeUpdate ( repoManager , accountCache , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , c , account , com.google.gerrit.server.util.TimeUtil.nowTs ( ) , com.google.gerrit.server.notedb.ChangeNotesTest.TZ ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.notedb.ChangeUpdate ( com.google.gerrit.server.notedb.ChangeNotesTest.SERVER_IDENT , repoManager , accountCache , null , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , c , com.google.gerrit.server.util.TimeUtil.nowTs ( ) , user ) ; }
Source:
public void stop ( ) { mem.drop ( ) ; }

Target:
public void stop ( ) { mem.getDbInstance ( ) . drop ( ) ; }
Source:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener ) ; }

Target:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId ) ; }
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 ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > getSubmitRecords ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.PatchSet patchSet ) { return canSubmit ( db , patchSet , null , false , true , false ) ; }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser 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 { 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 ; }
Source:
void ownedGroups ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.AccountGroup > > callback ) ;

Target:
void visibleGroups ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.AccountGroup > > callback ) ;
Source:
private int getSepPos ( java.lang.String fromTo ) { int sepPos = fromTo.indexOf ( com.googlesource.gerrit.plugins.github.GitHubConfig.FROM_TO_SEPARATOR ) ; if ( sepPos < 0 ) { throw new com.googlesource.gerrit.plugins.github.InvalidGitHubConfigException ( fromTo ) ; } return sepPos ; }

Target:
private java.lang.String getSeparator ( boolean redirect ) { java.lang.String separator = ( redirect ) ? com.googlesource.gerrit.plugins.github.GitHubConfig.FROM_TO_REDIRECT_SEPARATOR : com.googlesource.gerrit.plugins.github.GitHubConfig.FROM_TO_SEPARATOR ; return separator ; }
Source:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( isAdmin ( ) ) ; }