auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onFailure ( final java.lang.Throwable caught ) { save.setEnabled ( true ) ; registerNewEmail.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { save.setEnabled ( true ) ; registerNewEmail.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public java.lang.String nullToEmpty ( java.lang.String str ) { return str == null ? "" : str ; }

Target:
private java.lang.String nullToEmpty ( @ javax.annotation.Nullable java.lang.String str ) { return str == null ? "" : str ; }
Source:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws java.lang.Exception { return createProjectWithPush ( name , parent , getSubmitType ( ) ) ; }

Target:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws java.lang.Exception { return createProjectWithPush ( name , parent , true , getSubmitType ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.CurrentSchemaVersion getSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { final com.google.gerrit.reviewdb.server.ReviewDb c = open ( ) ; try { return c.schemaVersion ( ) . get ( new com.google.gerrit.reviewdb.client.CurrentSchemaVersion.Key ( ) ) ; } finally { c.close ( ) ; } }

Target:
public com.google.gerrit.reviewdb.client.CurrentSchemaVersion getSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { try ( com.google.gerrit.reviewdb.server.ReviewDb c = open ( ) ) { return c.schemaVersion ( ) . get ( new com.google.gerrit.reviewdb.client.CurrentSchemaVersion.Key ( ) ) ; } }
Source:
protected void onLoad ( ) { enableForm ( false ) ; saveProject.setEnabled ( false ) ; super . onLoad ( ) ; refresh ( ) ; }

Target:
protected void onLoad ( ) { enableForm ( false , false , false ) ; saveProject.setEnabled ( false ) ; super . onLoad ( ) ; refresh ( ) ; }
Source:
com.google.gerrit.lucene.LuceneChangeIndex create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , java.lang.String base ) ;

Target:
com.google.gerrit.lucene.LuceneChangeIndex create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) ;
Source:
public static java.lang.String toProjectAdmin ( final com.google.gerrit.client.reviewdb.Project.Id id , final java.lang.String tab ) { return ( ( "admin,project," + ( id.toString ( ) ) ) + "," ) + tab ; }

Target:
public static java.lang.String toProjectAdmin ( final com.google.gerrit.client.reviewdb.Project.NameKey n , final java.lang.String tab ) { return ( ( "admin,project," + ( n.toString ( ) ) ) + "," ) + tab ; }
Source:
public com.google.gerrit.client.data.GerritConfig get ( ) { try { return create ( ) ; } catch ( com.google.gwtorm.client.OrmException e ) { throw new com.google.inject.ProvisionException ( "Cannot construct GerritConfig" , e ) ; } }

Target:
public com.google.gerrit.client.data.GerritConfig get ( ) { return create ( ) ; }
Source:
com.google.gerrit.client.reviewdb.Branch byId ( com.google.gerrit.client.reviewdb.Branch.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Branch get ( com.google.gerrit.client.reviewdb.Branch.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , git , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
com.google.gerrit.server.change.ChangeEdits.Create create ( com.google.gerrit.reviewdb.client.Change change , java.lang.String path ) ;

Target:
com.google.gerrit.server.change.ChangeEdits.Create create ( java.lang.String path ) ;
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountSecurityImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.AccountSecurityImpl ( server ) ; }
Source:
private static java.util.List < com.google.gwtorm.schema.ColumnModel > sortColumns ( java.util.Collection < com.google.gwtorm.schema.ColumnModel > cols ) { java.util.ArrayList < com.google.gwtorm.schema.ColumnModel > list = new java.util.ArrayList < com.google.gwtorm.schema.ColumnModel > ( cols ) ; java.util.Collections.sort ( list , com.google.gwtorm.schema.java.ProtoFileGenerator.COLUMN_COMPARATOR ) ; return list ; }

Target:
private static java.util.List < com.google.gwtorm.schema.ColumnModel > sortColumns ( java.util.Collection < com.google.gwtorm.schema.ColumnModel > cols ) { java.util.ArrayList < com.google.gwtorm.schema.ColumnModel > list = new java.util.ArrayList ( cols ) ; java.util.Collections.sort ( list , com.google.gwtorm.schema.java.ProtoFileGenerator.COLUMN_COMPARATOR ) ; return list ; }
Source:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > commit ( org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.query.change.ExactCommitPredicate ( id ) ; }

Target:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > commit ( java.lang.String id ) { return new com.google.gerrit.server.query.change.ExactCommitPredicate ( id ) ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "a.b" , value = "c" ) } ) public void testMultiple ( ) { com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "x" , null , "y" ) ) . isEqualTo ( "z" ) ; com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "a" , null , "b" ) ) . isEqualTo ( "c" ) ; }

Target:
public void testMultiple ( ) { com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "x" , null , "y" ) ) . isEqualTo ( "z" ) ; com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "a" , null , "b" ) ) . isEqualTo ( "c" ) ; }
Source:
com.google.gerrit.client.reviewdb.Branch byName ( com.google.gerrit.client.reviewdb.Branch.NameKey name ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Branch get ( com.google.gerrit.client.reviewdb.Branch.NameKey name ) throws com.google.gwtorm.client.OrmException ;
Source:
public void setActive ( boolean active ) { myTable.setActive ( active ) ; }

Target:
public void setActive ( boolean active ) { this . active = active ; if ( ( myTable ) != null ) { myTable.setActive ( active ) ; } }
Source:
public void sendBytes ( byte [ ] what ) { rp.sendBytes ( what ) ; }

Target:
public void sendBytes ( byte [ ] what ) { sendBytes ( what , 0 , what.length ) ; }
Source:
private boolean matches ( com.google.gwtorm.nosql.IndexFunction < T > f , T obj , byte [ ] exp ) { return ( f.includes ( obj ) ) && ( java.util.Arrays.equals ( exp , indexRowKey ( f , obj ) ) ) ; }

Target:
protected boolean matches ( com.google.gwtorm.nosql.IndexFunction < T > f , T obj , byte [ ] exp ) { return ( f.includes ( obj ) ) && ( java.util.Arrays.equals ( exp , indexRowKey ( f , obj ) ) ) ; }
Source:
com.googlesource.gerrit.plugins.importer.GerritApi create ( java.lang.String url , java.lang.String user , java.lang.String pass ) { if ( url == null ) { return localApi ; } else { return new com.googlesource.gerrit.plugins.importer.RemoteApi ( url , user , pass ) ; } }

Target:
com.googlesource.gerrit.plugins.importer.GerritApi create ( java.lang.String url , java.lang.String user , java.lang.String pass ) { if ( url == null ) { return localApi ; } return new com.googlesource.gerrit.plugins.importer.RemoteApi ( url , user , pass ) ; }
Source:
public void warning ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }

Target:
public void info ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }
Source:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( null ) ) . isEmpty ( ) ; }

Target:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( ( ( java.lang.String ) ( null ) ) ) ) . isEmpty ( ) ; }
Source:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > all ( org.eclipse.jgit.lib.ObjectId rev ) throws java.io.IOException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdReader.all ( repo , rev ) ; } }

Target:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > all ( org.eclipse.jgit.lib.ObjectId rev ) throws java.io.IOException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return all ( repo , rev ) ; } }
Source:
public int getTabIndex ( ) { return focusy.getTabIndex ( ) ; }

Target:
public int getTabIndex ( ) { return ( focusy ) != null ? focusy.getTabIndex ( ) : 0 ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo c ) { project.setInnerText ( c.project ( ) ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( filePath , com.google.gerrit.client.diff.Header.formatPath ( path , null , null ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo c ) { project.setInnerText ( c.project ( ) ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( filePath , com.google.gerrit.client.diff.Header.formatPath ( path ) ) ; }
Source:
public boolean isVisibleToAll ( ) { return true ; }

Target:
public boolean isVisibleToAll ( ) { return false ; }
Source:
public void parseInvalidPrimaryStorage ( ) { try { com.google.gerrit.server.notedb.NoteDbChangeState.parse ( new com.google.gerrit.reviewdb.client.Change.Id ( 1 ) , "X" ) ; com.google.common.truth.Truth.assert_ ( ) . fail ( "expected parse to fail" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void parseInvalidPrimaryStorage ( ) { com.google.gerrit.server.notedb.NoteDbChangeState.parse ( new com.google.gerrit.reviewdb.client.Change.Id ( 1 ) , "X" ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( accountId , getChange ( ) . getId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.refsDraftComments ( accountId , ctl.getId ( ) ) ; }
Source:
private void loadAccountsSection ( org.eclipse.jgit.lib.Config rc , java.util.Map < java.lang.String , com.google.gerrit.common.data.GroupReference > groupsByName ) { accountsSection = new com.google.gerrit.server.git.AccountsSection ( ) ; accountsSection.setSameGroupVisibility ( loadPermissionRules ( rc , com.google.gerrit.server.git.ProjectConfig.ACCOUNTS , null , com.google.gerrit.server.git.ProjectConfig.KEY_SAME_GROUP_VISIBILITY , groupsByName , false ) ) ; }

Target:
private void loadAccountsSection ( org.eclipse.jgit.lib.Config rc ) { accountsSection = new com.google.gerrit.server.git.AccountsSection ( ) ; accountsSection.setSameGroupVisibility ( loadPermissionRules ( rc , com.google.gerrit.server.git.ProjectConfig.ACCOUNTS , null , com.google.gerrit.server.git.ProjectConfig.KEY_SAME_GROUP_VISIBILITY , groupsByName , false ) ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true ) ; }
Source:
private GitilesView.Builder parseDescribeCommand ( javax.servlet.http.HttpServletRequest req , java.lang.String repoName , java.lang.String path ) { if ( com.google.gitiles.ViewFilter.isEmptyOrSlash ( path ) ) { return null ; } return com.google.gitiles.GitilesView.describe ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }

Target:
private GitilesView.Builder parseDescribeCommand ( java.lang.String repoName , java.lang.String path ) { if ( com.google.gitiles.ViewFilter.isEmptyOrSlash ( path ) ) { return null ; } return com.google.gitiles.GitilesView.describe ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }
Source:
void addLine ( int line ) { dst.addLine ( line , src.getLine ( line ) ) ; }

Target:
int size ( ) { return ( src ) != null ? src.size ( ) : 0 ; }
Source:
public void flush_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH , java.util.Arrays.asList ( "projects" ) ) ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void flush_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH , java.util.Arrays.asList ( "projects" ) ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }
Source:
private com.google.gerrit.extensions.common.SubmitType getSubmitType ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.common.data.SubmitTypeRecord r = new com.google.gerrit.server.project.SubmitRuleEvaluator ( cd ) . getSubmitType ( ) ; if ( ( r.status ) != ( SubmitTypeRecord.Status.OK ) ) { return null ; } return r.type ; }

Target:
private com.google.gerrit.extensions.common.SubmitType getSubmitType ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.common.data.SubmitTypeRecord r = new com.google.gerrit.server.project.SubmitRuleEvaluator ( cd ) . getSubmitType ( ) ; if ( ( r.status ) != ( SubmitTypeRecord.Status.OK ) ) { return null ; } return r.type ; }
Source:
private static void assertExpectedIdsUsed ( java.sql.PreparedStatement statement , int ... ids ) throws java.sql.SQLException { for ( int id : ids ) { org.mockito.Mockito.verify ( statement ) . setInt ( 1 , id ) ; } }

Target:
private static void assertExpectedIdsUsed ( java.sql.PreparedStatement ps , int ... ids ) throws java.sql.SQLException { for ( int id : ids ) { org.mockito.Mockito.verify ( ps ) . setInt ( 1 , id ) ; } }
Source:
private void fail ( com.google.gerrit.reviewdb.client.Change change , java.lang.Throwable t ) { com.google.gerrit.pgm.Reindex.log.error ( ( "Failed to index change " + ( change.getId ( ) ) ) , t ) ; ok.set ( false ) ; failed.update ( 1 ) ; }

Target:
private void fail ( com.google.gerrit.reviewdb.client.Change change , java.lang.Throwable t ) { ok.set ( false ) ; failed.update ( 1 ) ; }
Source:
private final native void setId ( java.lang.String id ) ;

Target:
public final native void id ( java.lang.String i ) ;
Source:
private void assertNoMembers ( java.lang.String group ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( group ) . members ( ) . isEmpty ( ) ) ; }

Target:
private void assertNoMembers ( java.lang.String group ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( group ) . members ( ) ) . isEmpty ( ) ; }
Source:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , getPaths ( ) . isDev ( ) ) ; }

Target:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , getPaths ( ) . isDev ( ) , false ) ; }
Source:
public com.google.gerrit.acceptance.PushOneCommit.Result rm ( org.eclipse.jgit.api.Git git , java.lang.String ref ) throws org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.rm ( git , fileName ) ; return execute ( git , ref ) ; }

Target:
public com.google.gerrit.acceptance.PushOneCommit.Result rm ( java.lang.String ref ) throws org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.rm ( git , fileName ) ; return execute ( ref ) ; }
Source:
public final boolean submittable ( ) { init ( ) ; getMissingLabelIndex ( ) ; return _submittable ( ) ; }

Target:
public final boolean submittable ( ) { init ( ) ; return _submittable ( ) ; }
Source:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( relatedChangesTab ) == null ) { relatedChangesTab = createTab ( Resources.C.relatedChanges ( ) , Resources.C.relatedChangesTooltip ( ) ) ; } return relatedChangesTab ; }

Target:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( relatedChangesTab ) == null ) { relatedChangesTab = createTab ( Resources.C.relatedChanges ( ) , Resources.C.relatedChangesTooltip ( ) , 0 ) ; } return relatedChangesTab ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , id , db , txn ) ; }

Target:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , change.currentPatchSetId ( ) , db , txn ) ; }
Source:
protected void configure ( ) { install ( copyConfigModule ) ; install ( cm ) ; install ( sm ) ; }

Target:
protected void configure ( ) { install ( copyConfigModule ) ; install ( db ) ; install ( cm ) ; install ( sm ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) , new com.google.gerrit.client.change.ChangeScreen2 ( changeId , null , null , false , true ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }
Source:
protected boolean canPerform ( final com.google.gerrit.client.data.ProjectCache.Entry project , final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return com.google.gerrit.client.rpc.BaseServiceImplementation.canPerform ( getGroups ( ) , project , actionId , val , false ) ; }

Target:
protected boolean canPerform ( final com.google.gerrit.client.data.ProjectCache.Entry project , final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return com.google.gerrit.client.rpc.BaseServiceImplementation.canPerform ( getGroups ( ) , project , actionId , val ) ; }
Source:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > project ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) { return new com.google.gerrit.server.query.change.ProjectPredicate ( projectName.get ( ) ) ; }

Target:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > project ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.server.query.change.ProjectPredicate ( project.get ( ) ) ; }
Source:
public com.google.gerrit.client.admin.PermissionEditor create ( int index ) { com.google.gerrit.client.admin.PermissionEditor subEditor = new com.google.gerrit.client.admin.PermissionEditor ( projectAccess.getProjectName ( ) , readOnly , value , projectAccess.getLabelTypes ( ) ) ; permissionContainer.insert ( subEditor , index ) ; return subEditor ; }

Target:
public com.google.gerrit.client.admin.PermissionEditor create ( int index ) { com.google.gerrit.client.admin.PermissionEditor subEditor = new com.google.gerrit.client.admin.PermissionEditor ( projectAccess , readOnly , value , projectAccess.getLabelTypes ( ) ) ; permissionContainer.insert ( subEditor , index ) ; return subEditor ; }
Source:
java.lang.Runnable toggleA ( ) { return ( ) -> { setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; } ; }

Target:
java.lang.Runnable toggleA ( ) { return ( ) -> setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; }
Source:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitWebType gitWebType = com.google.gerrit.common.data.GitWebType.fromName ( null ) ; gitWebType.setPathSeparator ( '!' ) ; org.junit.Assert.assertEquals ( "a!b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }

Target:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitWebType gitWebType = new com.google.gerrit.common.data.GitWebType ( ) ; gitWebType.setPathSeparator ( '!' ) ; org.junit.Assert.assertEquals ( "a!b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ProjectEvent ) { database.storeEvent ( ( ( com.google.gerrit.server.events.ProjectEvent ) ( event ) ) ) ; } }

Target:
public void run ( ) { database.storeEvent ( event ) ; }
Source:
public void basicTextFormattingWorks ( ) throws java.io.IOException { java.lang.String raw = "_italic_ *bold* `monospace`" ; java.lang.String formatted = "<em>italic</em> <strong>bold</strong> <code>monospace</code>" ; org.junit.Assert.assertEquals ( org.apache.commons.lang.StringUtils.countMatches ( formatter.format ( null , null , null , null , cfg , raw ) , formatted ) , 1 ) ; }

Target:
public void basicTextFormattingWorks ( ) throws java.io.IOException { java.lang.String raw = "_italic_ *bold* `monospace`" ; java.lang.String formatted = "<em>italic</em> <strong>bold</strong> <code>monospace</code>" ; org.junit.Assert.assertEquals ( 1 , org.apache.commons.lang.StringUtils.countMatches ( formatter.format ( null , null , null , null , cfg , raw ) , formatted ) ) ; }
Source:
private org.eclipse.jgit.lib.ObjectInserter getObjectInserter ( ) throws java.io.IOException { initRepository ( ) ; return inserter ; }

Target:
protected org.eclipse.jgit.lib.ObjectInserter getObjectInserter ( ) throws java.io.IOException { initRepository ( ) ; return inserter ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , bru , bruForDrafts , changeRepo , allUsersRepo ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , changeRepo ) ; return null ; }
Source:
public com.google.gerrit.client.ErrorDialog setText ( final java.lang.String t ) { BRANCH ( bf5cfe ) ; com.google.gerrit.client.Fix error ; com.google.gerrit.client.not honoring ; com.google.gerrit.client.line breaks ; text.setText ( t ) ; return this ; }

Target:
public com.google.gerrit.client.ErrorDialog setText ( java.lang.String t ) { text.setText ( t ) ; return this ; }
Source:
public void testDefaultBehaviour ( ) { com.google.gerrit.common.data.GitWebType gitWebType = com.google.gerrit.common.data.GitWebType.fromName ( null ) ; assertEquals ( "a/b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }

Target:
public void testDefaultBehaviour ( ) { com.google.gerrit.common.data.GitWebType gitWebType = com.google.gerrit.common.data.GitWebType.fromName ( null ) ; org.junit.Assert.assertEquals ( "a/b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }
Source:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > get ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.GET , "/" ) ) ; }

Target:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > get ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.GET , "/" ) ) ; }
Source:
public void onValueChange ( final com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { com.google.gerrit.client.Gerrit.display ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { com.google.gerrit.client.Gerrit.display ( event.getValue ( ) ) ; }
Source:
java.lang.String getAvatarUrl ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
java.lang.String getAvatarUrl ( int size ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String t , java.lang.String r , java.lang.String o ) ;

Target:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String m , java.lang.String t , java.lang.String r , java.lang.String o ) ;
Source:
com.google.gerrit.server.project.ProjectState create ( com.google.gerrit.reviewdb.Project project , java.util.Collection < com.google.gerrit.reviewdb.RefRight > localRights , com.google.gerrit.server.project.ProjectState.InheritedRights inheritedRights ) ;

Target:
com.google.gerrit.server.project.ProjectState create ( com.google.gerrit.reviewdb.Project project , java.util.Collection < com.google.gerrit.reviewdb.RefRight > localRights ) ;
Source:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChange ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( changeId , deleteChange ) ; } }

Target:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChange ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( project , changeId , deleteChange ) ; } }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public final boolean showWhitespaceErrors ( ) { return get ( "show_whitespace_errors" , true ) ; }

Target:
public final native boolean showWhitespaceErrors ( ) ;
Source:
private static java.lang.String status ( com.google.gerrit.reviewdb.client.Change.Status status ) { switch ( status ) { case ABANDONED : return "status:abandoned" ; case MERGED : return "status:merged" ; case NEW : case SUBMITTED : default : return "status:open" ; } }

Target:
private static java.lang.String status ( com.google.gerrit.reviewdb.client.Change.Status status ) { switch ( status ) { case ABANDONED : return "status:abandoned" ; case MERGED : return "status:merged" ; case NEW : default : return "status:open" ; } }
Source:
protected com.google.gwt.user.client.ui.Panel getButtonPanel ( ) { if ( ( buttons ) == null ) { buttons = new com.google.gwt.user.client.ui.FlowPanel ( ) ; buttons.setStyleName ( Gerrit.RESOURCES.css ( ) . commentPanelButtons ( ) ) ; content.add ( buttons ) ; } return buttons ; }

Target:
private com.google.gwt.user.client.ui.Panel getButtonPanel ( ) { if ( ( buttons ) == null ) { buttons = new com.google.gwt.user.client.ui.FlowPanel ( ) ; buttons.setStyleName ( Gerrit.RESOURCES.css ( ) . commentPanelButtons ( ) ) ; content.add ( buttons ) ; } return buttons ; }
Source:
java.lang.Runnable toggleA ( ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; } } ; }

Target:
java.lang.Runnable toggleA ( ) { return ( ) -> { setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; } ; }
Source:
private static com.google.gerrit.reviewdb.AuthType toType ( final org.eclipse.jgit.lib.Config cfg ) { if ( com.google.gerrit.server.config.AuthConfig.isBecomeAnyoneEnabled ( ) ) { return com.google.gerrit.reviewdb.AuthType.DEVELOPMENT_BECOME_ANY_ACCOUNT ; } return com.google.gerrit.server.config.ConfigUtil.getEnum ( cfg , "auth" , null , "type" , AuthType.OPENID ) ; }

Target:
private static com.google.gerrit.reviewdb.AuthType toType ( final org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.config.ConfigUtil.getEnum ( cfg , "auth" , null , "type" , AuthType.OPENID ) ; }
Source:
public void run ( ) { try { java.nio.file.Files.walkFileTree ( gitDir.toPath ( ) , new com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.TrashFolderRemover ( ) ) ; } catch ( java.io.IOException e ) { com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.log.warn ( "Exception occured while trying to delete trash folders" , e ) ; } }

Target:
public void run ( ) { try { java.nio.file.Files.walkFileTree ( gitDir , new com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.TrashFolderRemover ( ) ) ; } catch ( java.io.IOException e ) { com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.log.warn ( "Exception occured while trying to delete trash folders" , e ) ; } }
Source:
void setReviewed ( boolean reviewed ) { checkBox.setValue ( true , true ) ; }

Target:
void setReviewed ( boolean reviewed ) { checkBox.setValue ( reviewed , true ) ; }
Source:
public final java.lang.String [ ] aliases ( ) { return new java.lang.String [ 0 ] ; }

Target:
public java.lang.String [ ] aliases ( ) { return new java.lang.String [ 0 ] ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.accounts.Accounts.class ) . to ( com.google.gerrit.server.api.accounts.AccountsImpl.class ) ; factory ( AccountApiImpl.Factory.class ) ; factory ( GpgKeyApiImpl.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.accounts.Accounts.class ) . to ( com.google.gerrit.server.api.accounts.AccountsImpl.class ) ; factory ( AccountApiImpl.Factory.class ) ; }
Source:
void sendError ( int status , java.lang.String message ) throws java.io.IOException { com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext.log.error ( message ) ; res.setStatus ( status ) ; gson.toJson ( new com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext.Error ( message ) , getWriter ( ) ) ; getWriter ( ) . flush ( ) ; }

Target:
void sendError ( int status , java.lang.String message ) throws java.io.IOException { sendError ( status , new com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext.Error ( message ) ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; loadRevisionInfo ( ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; }
Source:
private void deleteDraftChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException , java.io.IOException { try { changeUtil.deleteDraftChange ( patchSetId ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( e.getMessage ( ) ) ; } }

Target:
private void deleteDraftChange ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException , java.io.IOException { try { changeUtil.deleteDraftChange ( change ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( e.getMessage ( ) ) ; } }
Source:
public final boolean isOpen ( ) { switch ( getStatus ( ) ) { case NEW : case SUBMITTED : case DRAFT : return true ; default : return false ; } }

Target:
public final boolean isOpen ( ) { switch ( getStatus ( ) ) { case NEW : case DRAFT : return true ; default : return false ; } }
Source:
public static com.google.gerrit.extensions.common.PathSubject assertThat ( java.nio.file.Path path ) { return com.google.common.truth.Truth.assertAbout ( com.google.gerrit.extensions.common.PathSubject.PATH_SUBJECT_FACTORY ) . that ( path ) ; }

Target:
public static com.google.gerrit.extensions.common.PathSubject assertThat ( java.nio.file.Path path ) { return com.google.common.truth.Truth.assertAbout ( com.google.gerrit.extensions.common.PathSubject :: new ) . that ( path ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.reviewdb.client.Change change ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSet update ( com.google.gerrit.reviewdb.client.PatchSet patchset ) { if ( patchset.isDraft ( ) ) { patchset.setDraft ( false ) ; } return null ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet update ( com.google.gerrit.reviewdb.client.PatchSet patchset ) { if ( patchset.isDraft ( ) ) { patchset.setDraft ( false ) ; return patchset ; } return null ; }
Source:
public com.google.gerrit.client.data.AccountInfo getOwner ( ) { return owner ; }

Target:
public Account.Id getOwner ( ) { return owner ; }
Source:
public void addRelatedLink ( java.lang.String issueId , java.net.URL relatedUrl , java.lang.String description ) throws java.io.IOException { if ( log.isDebugEnabled ( ) ) { log.debug ( "addRelatedLink({},{},{})" , new java.lang.Object [ ] { issueId , relatedUrl , description } ) ; } }

Target:
public void addRelatedLink ( java.lang.String issueId , java.net.URL relatedUrl , java.lang.String description ) throws java.io.IOException { if ( log.isDebugEnabled ( ) ) { log.debug ( "addRelatedLink({},{},{})" , issueId , relatedUrl , description ) ; } }
Source:
private < S extends com.google.gwt.event.shared.EventHandler > void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < S > e ) { e.call = this ; com.google.gwtjsonrpc.client.JsonUtil.fireEvent ( e ) ; }

Target:
protected < S extends com.google.gwt.event.shared.EventHandler > void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < S > e ) { e.call = this ; com.google.gwtjsonrpc.client.JsonUtil.fireEvent ( e ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( ) ; }
Source:
private static void assertNotRefPart ( java.lang.String refName ) { org.junit.Assert.assertNull ( Account.Id.fromRefPart ( refName ) ) ; }

Target:
private Account.Id id ( int n ) { return new com.google.gerrit.reviewdb.client.Account.Id ( n ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; }
Source:
private com.google.gitiles.doc.MarkdownToHtml readme ( com.google.gitiles.GitilesView v ) { return new com.google.gitiles.doc.MarkdownToHtml ( v , config ) . setReadme ( true ) ; }

Target:
private com.google.gitiles.doc.MarkdownToHtml readme ( com.google.gitiles.GitilesView v , java.lang.String path ) { return new com.google.gitiles.doc.MarkdownToHtml ( v , config , path ) ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.http.RequestCleanupFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.server.http.UrlRewriteFilter.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.http.RequestCleanupFilter.class ) ; }
Source:
public < K , V > com.google.common.cache.Cache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def ) { return com.github.benmanes.caffeine.guava.CaffeinatedGuava.build ( create ( def , false ) ) ; }

Target:
public < K , V > com.google.common.cache.Cache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def ) { return create ( def , false ) . build ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { dialogBox.hide ( ) ; usernameTxt.setValue ( "" ) ; sshKeyTxt.setValue ( "" ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.git.RefCache refs ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change , false , refs ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.git.RefCache refs ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change , false , refs ) . load ( ) ; }
Source:
public java.lang.String getText ( ) { java.lang.String s = nameTxtBox.getText ( ) ; if ( ( s == null ) || ( s.equals ( Util.C.defaultAccountName ( ) ) ) ) { s = "" ; } return s ; }

Target:
public java.lang.String getText ( ) { java.lang.String s = nameTxtBox.getText ( ) ; return s == null ? "" : s ; }
Source:
public void addChangeMessage ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , com.google.gerrit.reviewdb.client.ChangeMessage changeMessage ) throws com.google.gwtorm.server.OrmException { if ( changeMessage != null ) { update.setChangeMessage ( changeMessage.getMessage ( ) ) ; db.changeMessages ( ) . insert ( java.util.Collections.singleton ( changeMessage ) ) ; } }

Target:
public void addChangeMessage ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , com.google.gerrit.reviewdb.client.ChangeMessage changeMessage ) throws com.google.gwtorm.server.OrmException { update.setChangeMessage ( changeMessage.getMessage ( ) ) ; db.changeMessages ( ) . insert ( java.util.Collections.singleton ( changeMessage ) ) ; }
Source:
public void clear ( ) { setCat ( null ) ; setName ( Util.C.defaultAccountGroupName ( ) ) ; setReference ( "" ) ; }

Target:
public void clear ( ) { setCat ( null ) ; setName ( "" ) ; setReference ( "" ) ; }
Source:
public static java.lang.String toPatch ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toPatch ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , project , diffBase , revision , fileName , null , 0 ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , result.legacyId ( ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "repo" ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "repo" ) ) ) ; }
Source:
public void onReloadPlugin ( com.google.gerrit.server.plugins.Plugin oldPlugin , com.google.gerrit.server.plugins.Plugin newPlugin ) { com.google.inject.servlet.GuiceFilter filter = load ( newPlugin ) ; if ( filter != null ) { plugins.put ( newPlugin.getName ( ) , filter ) ; } }

Target:
public void onReloadPlugin ( com.google.gerrit.server.plugins.Plugin oldPlugin , com.google.gerrit.server.plugins.Plugin newPlugin ) { install ( newPlugin ) ; }
Source:
public void suggestReviewersNoResult1 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( admin ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }

Target:
public void suggestReviewersNoResult1 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }
Source:
private boolean isLdapUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( helper.hasLdapConfiguration ( ) ) && ( uuid.get ( ) . startsWith ( com.google.gerrit.server.auth.ldap.Helper.LDAP_UUID ) ) ; }

Target:
private boolean isLdapUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( com.google.gerrit.server.auth.ldap.Helper.LDAP_UUID ) ; }
Source:
Project.NameKey getProjectName ( ) { return project.getProject ( ) . getNameKey ( ) ; }

Target:
Project.NameKey getProjectName ( ) { return project.getNameKey ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSave ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSave ( null ) ; }
Source:
public void batchAbandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { batchAbandon ( updateFactory , project , user , controls , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public void batchAbandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { batchAbandon ( updateFactory , project , user , changes , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
private static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { com.google.gerrit.server.git.ReceiveCommits.reject ( cmd , "prohibited by Gerrit" ) ; }

Target:
private void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { reject ( cmd , "prohibited by Gerrit" ) ; }
Source:
public com.google.gerrit.server.patch.PatchList get ( com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException ;

Target:
public com.google.gerrit.server.patch.PatchList get ( com.google.gerrit.server.patch.PatchListKey key , com.google.gerrit.reviewdb.client.Project.NameKey project ) throws com.google.gerrit.server.patch.PatchListNotAvailableException ;
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( false ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( false , false ) ; }