auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , "" , defaultNotify ( control ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.server.CurrentUser user ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , notes , user , "" , defaultNotify ( notes.getChange ( ) ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public void stream ( java.io.OutputStream out ) throws java.io.IOException { java.io.OutputStream b64Out = com.google.common.io.BaseEncoding.base64 ( ) . encodingStream ( new java.io.OutputStreamWriter ( out , com.google.common.base.Charsets.UTF_8 ) ) ; loader.copyTo ( b64Out ) ; b64Out.close ( ) ; }

Target:
public void writeTo ( java.io.OutputStream os ) throws java.io.IOException { object.copyTo ( os ) ; }
Source:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }

Target:
public void configure ( ) { bind ( com.google.gerrit.server.index.VersionManager.class ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; if ( onlineUpgrade ) { listener ( ) . to ( com.google.gerrit.server.index.OnlineUpgrader.class ) ; } }
Source:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; }

Target:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; }
Source:
public void cleanupIndex ( ) { if ( ( com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.nodeInfo ) != null ) { com.google.gerrit.elasticsearch.ElasticTestUtils.deleteIndexes ( com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.nodeInfo.node , com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.INDEX_NAME ) ; com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.createIndexes ( ) ; } }

Target:
public void cleanupIndex ( ) { if ( ( com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.nodeInfo ) != null ) { com.google.gerrit.elasticsearch.ElasticTestUtils.deleteAllIndexes ( com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.nodeInfo ) ; com.google.gerrit.elasticsearch.ElasticTestUtils.createAllIndexes ( com.google.gerrit.elasticsearch.ElasticQueryAccountsTest.nodeInfo ) ; } }
Source:
public static java.nio.file.Path getDeveloperBuckOut ( ) throws java.io.FileNotFoundException { return com.google.gerrit.launcher.GerritLauncher.resolveInSourceRoot ( "buck-out" ) ; }

Target:
public static boolean isBazel ( ) { java.lang.Class < com.google.gerrit.launcher.GerritLauncher > self = com.google.gerrit.launcher.GerritLauncher.class ; java.net.URL rootURL = self.getResource ( com.google.gerrit.launcher.GerritLauncher.SOURCE_ROOT_RESOURCE ) ; return rootURL != null ; }
Source:
private void initRow ( final int row , final java.lang.String name ) { table.setText ( row , 0 , name ) ; table.getCellFormatter ( ) . addStyleName ( row , 0 , "header" ) ; }

Target:
private void initRow ( final int row , final java.lang.String name ) { table.setText ( row , 0 , name ) ; table.getCellFormatter ( ) . addStyleName ( row , 0 , Gerrit.RESOURCES.css ( ) . header ( ) ) ; }
Source:
public final com.google.gerrit.server.query.Predicate < T > getChild ( int i ) { if ( i != 0 ) { throw new java.lang.ArrayIndexOutOfBoundsException ( i ) ; } return that ; }

Target:
public final com.google.gerrit.index.query.Predicate < T > getChild ( int i ) { if ( i != 0 ) { throw new java.lang.ArrayIndexOutOfBoundsException ( i ) ; } return that ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; hasDraftComments = ! ( result.isEmpty ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( org.eclipse.jgit.revwalk.RevWalk walk , int limit , @ javax.annotation.Nullable java.lang.String revision , @ javax.annotation.Nullable org.eclipse.jgit.lib.ObjectId start , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( new com.google.gitiles.Paginator ( walk , limit , start ) , revision , df ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( org.eclipse.jgit.revwalk.RevWalk walk , int limit , @ javax.annotation.Nullable java.lang.String revision , @ javax.annotation.Nullable org.eclipse.jgit.lib.ObjectId start , com.google.gitiles.DateFormatterBuilder.DateFormatter df ) throws java.io.IOException { return toSoyData ( new com.google.gitiles.Paginator ( walk , limit , start ) , revision , df ) ; }
Source:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String dashboardId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { new com.google.gerrit.client.rpc.RestApi ( ( ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) + ( com.google.gerrit.client.dashboards.DashboardList.encodeDashboardId ( dashboardId ) ) ) ) . get ( callback ) ; }

Target:
public static void get ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String dashboardId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { new com.google.gerrit.client.rpc.RestApi ( ( ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) + ( com.google.gerrit.client.dashboards.DashboardList.encodeDashboardId ( dashboardId ) ) ) ) . get ( callback ) ; }
Source:
protected void configure ( ) { bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.extensions.annotations.PluginName.class ) . toInstance ( name ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.systemstatus.ServerInformation.class ) . toInstance ( env.getServerInformation ( ) ) ; }
Source:
private void allowFastForwardTagUpdate ( ) throws java.lang.Exception { grant ( Permission.PUSH , project , "refs/tags/*" , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void allowPushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( Permission.PUSH , project , "refs/tags/*" , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
public abstract com.google.protobuf.ByteString encode ( T obj ) ;

Target:
public com.google.protobuf.ByteString encodeToByteString ( T obj ) { return com.google.protobuf.ByteString.copyFrom ( encodeToByteBuffer ( obj ) ) ; }
Source:
public static void display ( final java.lang.String historyToken , final com.google.gerrit.client.ui.Screen view ) { com.google.gwt.user.client.History.newItem ( historyToken , false ) ; com.google.gerrit.client.Gerrit.display ( view ) ; if ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( historyToken ) ; } }

Target:
public static void updateImpl ( final java.lang.String token ) { com.google.gwt.user.client.History.newItem ( token , false ) ; if ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( token ) ; } }
Source:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }

Target:
public void createNewWorkInProgressChange ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput input = newChangeInput ( ChangeStatus.NEW ) ; input.workInProgress = true ; assertCreateSucceeds ( input ) ; }
Source:
public abstract com.google.gerrit.reviewdb.client.Change getChange ( ) ;

Target:
public abstract com.google.gerrit.reviewdb.client.Change createChange ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) ;
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { b.setEnabled ( false ) ; Util.MANAGE_SVC.rebaseChange ( patchSet.getId ( ) , new com.google.gerrit.client.changes.ChangeDetailCache.GerritWidgetCallback ( b ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }
Source:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.AccountGroup.UUID uuid ) { return "admin,group,uuid-" + ( uuid.toString ( ) ) ; }

Target:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.AccountGroup.UUID uuid ) { return "/admin/groups/uuid-" + ( uuid.toString ( ) ) ; }
Source:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { java.lang.String group = createGroup ( "empty" ) ; com.google.common.truth.Truth.assertThat ( GET ( ( ( "/groups/" + group ) + "/members/" ) ) ) . isEmpty ( ) ; }

Target:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { java.lang.String group = createGroup ( "empty" ) ; com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( group ) . members ( ) ) . isEmpty ( ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( base , com.google.gerrit.client.DiffObject.patchSet ( id.getParentKey ( ) ) , id.get ( ) , side , line ) ) ; }
Source:
public void setFieldReference ( final com.google.gwtorm.schema.ColumnModel cm ) { setFieldReference ( cm , true ) ; }

Target:
public void resetColumnIndex ( final int s ) { columnIdx = s ; }
Source:
public void unblockInLocal_Fails ( ) { com.google.gerrit.server.project.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , fixers , "refs/heads/*" ) ; com.google.gerrit.server.project.ProjectControl f = user ( local , fixers ) ; assertCannotUpdate ( "refs/heads/master" , f ) ; }

Target:
public void unblockInLocal_Fails ( ) { com.google.gerrit.server.project.testing.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , fixers , "refs/heads/*" ) ; com.google.gerrit.server.project.ProjectControl f = user ( local , fixers ) ; assertCannotUpdate ( "refs/heads/master" , f ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return pred.match ( cd ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( cd.isFromSource ( source ) ) || ( pred.match ( cd ) ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , null ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , bru ) ; return null ; }
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 ) ; }
Source:
public com.ericsson.gerrit.plugins.syncindex.IndexResponseHandler.IndexResult handleResponse ( org.apache.http.HttpResponse response ) { return new com.ericsson.gerrit.plugins.syncindex.IndexResponseHandler.IndexResult ( isSuccessful ( response ) , parseResponse ( response ) ) ; }

Target:
public com.ericsson.gerrit.plugins.highavailability.IndexResponseHandler.IndexResult handleResponse ( org.apache.http.HttpResponse response ) { return new com.ericsson.gerrit.plugins.highavailability.IndexResponseHandler.IndexResult ( isSuccessful ( response ) , parseResponse ( response ) ) ; }
Source:
private void createDraftUpdateIfNull ( ) { if ( ( draftUpdate ) == null ) { draftUpdate = draftUpdateFactory.create ( ctl , when ) ; } }

Target:
com.google.gerrit.server.notedb.ChangeDraftUpdate createDraftUpdateIfNull ( ) { if ( ( draftUpdate ) == null ) { draftUpdate = draftUpdateFactory.create ( ctl , when ) ; } return draftUpdate ; }
Source:
public boolean canSee ( com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }

Target:
public boolean canAddMember ( final com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }
Source:
abstract void insertNewDraft ( com.google.gerrit.client.diff.DisplaySide side , int line ) ;

Target:
abstract com.google.gerrit.client.diff.CommentGroup group ( com.google.gerrit.client.diff.DisplaySide side , int cmLinePlusOne ) ;
Source:
private static < T > com.google.common.util.concurrent.CheckedFuture < T , java.io.IOException > submit ( java.util.concurrent.Callable < T > task , com.google.common.util.concurrent.ListeningExecutorService executor ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }

Target:
private static < T > com.google.common.util.concurrent.CheckedFuture < T , java.io.IOException > submit ( java.util.concurrent.Callable < T > task , com.google.common.util.concurrent.ListeningExecutorService executor ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , IndexUtils.MAPPER ) ; }
Source:
public void submit ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > cb ) { submitAction.create ( patchSetId ) . to ( cb ) ; }

Target:
public void submit ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > cb ) { submitAction.create ( patchSetId ) . to ( cb ) ; }
Source:
protected void configure ( ) { factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }
Source:
public void setContentLengthLong ( long length ) { headers.removeAll ( com.google.common.net.HttpHeaders.CONTENT_LENGTH ) ; headers.put ( com.google.common.net.HttpHeaders.CONTENT_LENGTH , java.lang.Long.toString ( length ) ) ; }

Target:
public void setContentLengthLong ( long length ) { headers.removeAll ( com.google.common.net.HttpHeaders.CONTENT_LENGTH ) ; addHeader ( com.google.common.net.HttpHeaders.CONTENT_LENGTH , java.lang.Long.toString ( length ) ) ; }
Source:
private com.google.gerrit.client.diff.DisplaySide displaySide ( com.google.gerrit.client.changes.CommentInfo info , com.google.gerrit.client.diff.DisplaySide forSide ) { if ( ( info.side ( ) ) == ( com.google.gerrit.extensions.common.Side.PARENT ) ) { return ( base ) == null ? DisplaySide.A : null ; } return forSide ; }

Target:
private com.google.gerrit.client.diff.DisplaySide displaySide ( com.google.gerrit.client.changes.CommentInfo info , com.google.gerrit.client.diff.DisplaySide forSide ) { if ( ( info.side ( ) ) == ( com.google.gerrit.extensions.client.Side.PARENT ) ) { return ( base ) == null ? DisplaySide.A : null ; } return forSide ; }
Source:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; }

Target:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }
Source:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Change-id: I577fb248e474018276351785930358ec0450e9f7\n" ) + "Patch-Set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) + "Subject: This is a test change\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }

Target:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Change-id: I577fb248e474018276351785930358ec0450e9f7\n" ) + "Patch-set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) + "Subject: This is a test change\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }
Source:
private com.google.gwtorm.jdbc.JdbcAccess < com.google.gwtorm.jdbc.TestJdbcAccess.Data , com.google.gwtorm.jdbc.TestJdbcAccess.Data.DataKey > createJdbcAccess ( final com.google.gwtorm.schema.sql.SqlDialect dialect ) { com.google.gwtorm.jdbc.JdbcSchema schema = setupSchema ( dialect ) ; com.google.gwtorm.jdbc.JdbcAccess < com.google.gwtorm.jdbc.TestJdbcAccess.Data , com.google.gwtorm.jdbc.TestJdbcAccess.Data.DataKey > classUnderTest = new com.google.gwtorm.jdbc.TestJdbcAccess.DataJdbcAccess ( schema ) ; return classUnderTest ; }

Target:
private static com.google.gwtorm.jdbc.JdbcAccess < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data , com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data.DataKey > createJdbcAccess ( final com.google.gwtorm.schema.sql.SqlDialect dialect , java.sql.Connection conn ) { com.google.gwtorm.jdbc.JdbcSchema schema = com.google.gwtorm.jdbc.AbstractTestJdbcAccess.setupSchema ( dialect , conn ) ; com.google.gwtorm.jdbc.JdbcAccess < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data , com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data.DataKey > classUnderTest = new com.google.gwtorm.jdbc.AbstractTestJdbcAccess.DataJdbcAccess ( schema ) ; return classUnderTest ; }
Source:
void changeProjectSettings ( com.google.gerrit.reviewdb.Project update , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > 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:
public boolean updateUserModels ( java.util.Collection < com.gitblit.models.UserModel > models ) { return false ; }

Target:
public void logout ( com.gitblit.models.UserModel user ) { }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
private void fireRefUpdated ( org.eclipse.jgit.lib.RefUpdate branchUpdate ) { gitRefUpdated.fire ( destBranch.getParentKey ( ) , branchUpdate ) ; hooks.doRefUpdatedHook ( destBranch , branchUpdate , getAccount ( mergeTip ) ) ; }

Target:
private void fireRefUpdated ( org.eclipse.jgit.lib.RefUpdate branchUpdate ) { logDebug ( "Firing ref updated hooks for {}" , branchUpdate.getName ( ) ) ; gitRefUpdated.fire ( destBranch.getParentKey ( ) , branchUpdate ) ; hooks.doRefUpdatedHook ( destBranch , branchUpdate , getAccount ( mergeTip ) ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithStatus ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.reviewdb.client.Change.Status status ) throws java.lang.Exception { return newChange ( repo , null , null , null , status , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , topic ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.PatchSet.Id ps ) { return ( ( "change," + ( ps.getParentKey ( ) . toString ( ) ) ) + ",patchset=" ) + ( ps.get ( ) ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.PatchSet.Id ps ) { return ( ( "/c/" + ( ps.getParentKey ( ) ) ) + "/" ) + ( ps.get ( ) ) ; }
Source:
private void assertNotesMigrationState ( com.google.gerrit.server.notedb.NotesMigrationState expected ) throws java.lang.Exception { gerritConfig.load ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.notedb.NotesMigrationState.forNotesMigration ( new com.google.gerrit.server.notedb.ConfigNotesMigration ( gerritConfig ) ) ) . hasValue ( expected ) ; }

Target:
private void assertNotesMigrationState ( com.google.gerrit.server.notedb.NotesMigrationState expected ) throws java.lang.Exception { gerritConfig.load ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.notedb.NotesMigrationState.forConfig ( gerritConfig ) ) . hasValue ( expected ) ; }
Source:
private boolean inProject ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Project.NameKey project ) { if ( projectControl != null ) { return projectControl.getProject ( ) . getNameKey ( ) . equals ( project ) ; } return true ; }

Target:
private boolean inProject ( com.google.gerrit.server.project.ProjectState projectState , com.google.gerrit.reviewdb.client.Project.NameKey project ) { if ( projectState != null ) { return projectState.getNameKey ( ) . equals ( project ) ; } return true ; }
Source:
public void markReady ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void markReady ( boolean ready ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private boolean isLogFile ( final java.io.File entry ) { return entry.isFile ( ) ; }

Target:
private boolean isLogFile ( java.nio.file.Path entry ) { return java.nio.file.Files.isRegularFile ( entry ) ; }
Source:
public void preDisplay ( final com.google.gerrit.common.data.AgreementInfo result ) { agreements.display ( result ) ; }

Target:
public void preDisplay ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.AgreementInfo > result ) { agreements.display ( com.google.gerrit.client.rpc.Natives.asList ( result ) ) ; }
Source:
public int compareTo ( final com.google.gerrit.sshd.commands.ProjectNode o ) { return project.getNameKey ( ) . compareTo ( o.project.getNameKey ( ) ) ; }

Target:
public int compareTo ( final com.google.gerrit.server.project.ProjectNode o ) { return project.getNameKey ( ) . compareTo ( o.project.getNameKey ( ) ) ; }
Source:
private void updateForm ( ) { tagTable.updateDeleteButton ( ) ; addTag.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }

Target:
private void updateForm ( ) { tagTable.updateDeleteButton ( ) ; addTag.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; annotationTxtBox.setEnabled ( true ) ; }
Source:
void patchSetAction ( com.google.gerrit.client.reviewdb.ApprovalCategoryValue.Id value , com.google.gerrit.client.reviewdb.PatchSet.Id patchSetId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void submit ( com.google.gerrit.client.reviewdb.PatchSet.Id patchSetId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.ChangeDetail > callback ) ;
Source:
public com.google.gerrit.server.account.GpgKeys.ListGpgKeys list ( ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.server.account.GpgKeys.checkEnabled ( ) ; return new com.google.gerrit.server.account.GpgKeys.ListGpgKeys ( ) ; }

Target:
public com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys list ( ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.gpg.server.GpgKeys.checkEnabled ( ) ; return new com.google.gerrit.gpg.server.GpgKeys.ListGpgKeys ( ) ; }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getChunkManager ( ) . diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "N" ) ; } else { getCommentManager ( ) . commentNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.events.StreamEvents.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.events.StreamEvents.class ) ; command ( com.googlesource.gerrit.plugins.events.TrimCommand.class ) ; }
Source:
public int getIntParameter ( java.lang.String name , int defaultValue ) { return config.getInt ( RTCItsFacade.ITS_NAME_RTC , null , getParamName ( name ) , defaultValue ) ; }

Target:
public int getIntParameter ( java.lang.String name , int defaultValue ) { return config.getInt ( pluginName , null , getParamName ( name ) , defaultValue ) ; }
Source:
private boolean isRecoverable ( java.io.IOException e ) { return ! ( e instanceof javax.net.ssl.SSLException ) ; }

Target:
private boolean isRecoverable ( java.lang.Throwable e ) { return ( e instanceof java.io.IOException ) && ( ! ( e instanceof javax.net.ssl.SSLException ) ) ; }
Source:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( com.google.gerrit.prettify.client.ClientSideFormatter.prettify.getContext ( ) , html , type , settings.getTabSize ( ) ) ; }

Target:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( com.google.gerrit.prettify.client.ClientSideFormatter.prettify.getContext ( ) , html , type , diffPrefs.getTabSize ( ) ) ; }
Source:
boolean isDraft ( ) { return cmd.getRefName ( ) . startsWith ( MagicBranch.NEW_DRAFT_CHANGE ) ; }

Target:
void reviewer ( com.google.gerrit.reviewdb.client.Account.Id id ) { reviewer.add ( id ) ; }
Source:
static void savePublic ( final org.eclipse.jgit.lib.FileBasedConfig sec ) throws java.io.IOException { sec.save ( ) ; }

Target:
static void savePublic ( final org.eclipse.jgit.storage.file.FileBasedConfig sec ) throws java.io.IOException { sec.save ( ) ; }
Source:
private void init ( ) { tv ( R.id.commitMessage ) . setLinksClickable ( true ) ; }

Target:
public void onRefresh ( ) { refresh ( change ) ; }
Source:
void setOptionFlagsHex ( java.lang.String hex ) { json.addOptions ( com.google.gerrit.extensions.client.ListChangesOption.fromBits ( java.lang.Integer.parseInt ( hex , 16 ) ) ) ; }

Target:
void setOptionFlagsHex ( java.lang.String hex ) { options.addAll ( com.google.gerrit.extensions.client.ListChangesOption.fromBits ( java.lang.Integer.parseInt ( hex , 16 ) ) ) ; }
Source:
public void testDefaultBehaviour ( ) { org.junit.Assert.assertEquals ( "a/b" , new com.google.gerrit.common.data.GitWebType ( ) . replacePathSeparator ( "a/b" ) ) ; }

Target:
public void testDefaultBehaviour ( ) { org.junit.Assert.assertEquals ( "a/b" , new com.google.gerrit.common.data.GitwebType ( ) . replacePathSeparator ( "a/b" ) ) ; }
Source:
public void replace ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > replace ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
private synchronized void runHook ( java.io.File hook , java.util.List < java.lang.String > args ) { if ( hook.exists ( ) ) { hookQueue.execute ( new com.google.gerrit.common.ChangeHookRunner.HookTask ( null , hook , args ) ) ; } }

Target:
private synchronized void runHook ( java.io.File hook , java.util.List < java.lang.String > args ) { if ( hook.exists ( ) ) { hookQueue.execute ( new com.google.gerrit.common.ChangeHookRunner.AsyncHookTask ( null , hook , args ) ) ; } }
Source:
private com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { return getRefControl ( ) . getRange ( permission , isOwner ( ) ) ; }

Target:
private com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { return refControl.getRange ( permission , isOwner ( ) ) ; }
Source:
public static void resetFromEnv ( com.google.gerrit.server.notedb.MutableNotesMigration migration ) { migration.setFrom ( com.google.gerrit.testutil.NoteDbMode.get ( ) . state ) ; }

Target:
public static void resetFromEnv ( com.google.gerrit.server.notedb.MutableNotesMigration migration ) { migration.setFrom ( com.google.gerrit.testing.NoteDbMode.get ( ) . state ) ; }
Source:
com.google.gerrit.server.notedb.ChangeDraftUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when ) ;

Target:
com.google.gerrit.server.notedb.ChangeDraftUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when ) ;
Source:
public void registerKeys ( ) { super . registerKeys ( ) ; regNavigation = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysNavigation ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysAction ) ; patchSetsBlock.setRegisterKeys ( true ) ; }

Target:
void update ( final com.google.gerrit.common.data.ChangeDetail detail ) { display ( detail ) ; patchSetsBlock.setRegisterKeys ( true ) ; }
Source:
public void removeCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self ( ) . removeCacheUsageListener ( cacheUsageListener ) ; }

Target:
public net.sf.ehcache.statistics.sampled.SampledCacheStatistics getSampledCacheStatistics ( ) { return self.getSampledCacheStatistics ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { display ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; }
Source:
public com.codahale.metrics.Metric apply ( com.google.gerrit.metrics.dropwizard.BucketedCallback < V > . ValueGauge in ) { return in ; }

Target:
public java.util.Map < java.lang.Object , com.codahale.metrics.Metric > getCells ( ) { return com.google.common.collect.Maps.transformValues ( cells , ( in ) -> ( ( com.codahale.metrics.Metric ) ( in ) ) ) ; }
Source:
private static < T > com.google.gwtorm.jdbc.gen.GeneratedClassLoader newLoader ( final java.lang.Class < T > schema ) { return new com.google.gwtorm.jdbc.gen.GeneratedClassLoader ( schema.getClassLoader ( ) ) ; }

Target:
private static < T > com.google.gwtorm.server.GeneratedClassLoader newLoader ( final java.lang.Class < T > schema ) { return new com.google.gwtorm.server.GeneratedClassLoader ( schema.getClassLoader ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo info ) { rev.set_commit ( info ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo.CommitInfo info ) { rev.setCommit ( info ) ; }
Source:
public void listTagsOfNonVisibleBranch ( ) throws java.lang.Exception { grant ( Permission.SUBMIT , project , "refs/for/refs/heads/master" ) ; grant ( Permission.SUBMIT , project , "refs/for/refs/heads/hidden" ) ; grant ( Permission.CREATE , project , "refs/tags/*" ) ; grant ( Permission.PUSH , project , "refs/tags/*" ) ; com.google.gerrit.acceptance.PushOneCommit.Tag tag1 = new com.google.gerrit.acceptance.PushOneCommit.Tag ( "v1.0" ) ; com.google.gerrit.acceptance.PushOneCommit push1 = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; push1.setTag ( tag1 ) ; com.google.gerrit.acceptance.PushOneCommit.Result r1 = push1.to ( "refs/for/master%submit" ) ; r1.assertOkStatus ( ) ; pushTo ( "refs/heads/hidden" ) ; com.google.gerrit.acceptance.PushOneCommit.Tag tag2 = new com.google.gerrit.acceptance.PushOneCommit.Tag ( "v2.0" ) ; com.google.gerrit.acceptance.PushOneCommit push2 = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; push2.setTag ( tag2 ) ; com.google.gerrit.acceptance.PushOneCommit.Result r2 = push2.to ( "refs/for/hidden%submit" ) ; r2.assertOkStatus ( ) ; java.util.List < com.google.gerrit.extensions.common.TagInfo > result = com.google.gerrit.acceptance.rest.project.TagsIT.toTagInfoList ( adminSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) ) ; com.google.common.truth.Truth.assertThat ( result ) . hasSize ( 2 ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag1.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . revision ) . isEqualTo ( r1.getCommitId ( ) . getName ( ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 1 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag2.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 1 ) . revision ) . isEqualTo ( r2.getCommitId ( ) . getName ( ) ) ; blockRead ( project , "refs/heads/hidden" ) ; result = com.google.gerrit.acceptance.rest.project.TagsIT.toTagInfoList ( adminSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) ) ; com.google.common.truth.Truth.assertThat ( result ) . hasSize ( 1 ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . ref ) . isEqualTo ( ( "refs/tags/" + ( tag1.name ) ) ) ; com.google.common.truth.Truth.assertThat ( result.get ( 0 ) . revision ) . isEqualTo ( r1.getCommitId ( ) . getName ( ) ) ; }

Target:
private java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > getTags ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tags ( ) . get ( ) ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.extension.Panel panel ) { panel.setWidget ( new com.googlesource.gerrit.plugins.verifystatus.client.JobsDropDownPanel ( panel ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.extension.Panel panel ) { com.google.gerrit.client.info.ChangeInfo.RevisionInfo rev = panel.getObject ( GerritUiExtensionPoint.Key.REVISION_INFO ) . cast ( ) ; if ( rev.isEdit ( ) ) { return ; } panel.setWidget ( new com.googlesource.gerrit.plugins.verifystatus.client.JobsDropDownPanel ( panel ) ) ; }
Source:
public void onPreMerge ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.git.CodeReviewCommit commit , com.google.gerrit.server.project.ProjectState destProject , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId ) throws com.google.gerrit.server.git.validators.MergeValidationException ;

Target:
public void onPreMerge ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.git.CodeReviewCommit commit , com.google.gerrit.server.project.ProjectState destProject , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gerrit.server.IdentifiedUser caller ) throws com.google.gerrit.server.git.validators.MergeValidationException ;
Source:
public boolean shouldPublish ( ) { return true ; }

Target:
public boolean shouldPublish ( ) { return config.isEnabled ( ) ; }
Source:
public void visibleProjectDetails ( final com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) { visibleProjectDetailsFactory.create ( ) . to ( callback ) ; }

Target:
public void projectDetail ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { projectDetailFactory.create ( projectName ) . to ( callback ) ; }
Source:
public static com.google.gwt.event.shared.HandlerRegistration addSignOutHandler ( final com.google.gerrit.client.SignOutHandler l ) { return com.google.gerrit.client.Gerrit.globalHandlers.addHandler ( com.google.gerrit.client.SignOutEvent.getType ( ) , l ) ; }

Target:
private static com.google.gwt.user.client.ui.Anchor anchor ( final java.lang.String text , final java.lang.String to ) { final com.google.gwt.user.client.ui.Anchor a = new com.google.gwt.user.client.ui.Anchor ( text , to ) ; a.setStyleName ( "gerrit-MenuItem" ) ; com.google.gwt.user.client.ui.Accessibility.setRole ( a.getElement ( ) , Accessibility.ROLE_MENUITEM ) ; return a ; }
Source:
void visibleProjects ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.Project > > callback ) ;

Target:
void projectDetail ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo info ) { rev.set_commit ( info ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo info ) { rev.setCommit ( info ) ; }
Source:
protected static MailMessage.Builder newMailMessageBuilder ( ) { com.google.gerrit.server.mail.receive.MailMessage.Builder b = com.google.gerrit.server.mail.receive.MailMessage.builder ( ) ; b.id ( "id" ) ; b.from ( new com.google.gerrit.server.mail.Address ( "Foo Bar" , "foo@bar.com" ) ) ; b.dateReceived ( new org.joda.time.DateTime ( ) ) ; b.subject ( "" ) ; return b ; }

Target:
protected static MailMessage.Builder newMailMessageBuilder ( ) { com.google.gerrit.server.mail.receive.MailMessage.Builder b = com.google.gerrit.server.mail.receive.MailMessage.builder ( ) ; b.id ( "id" ) ; b.from ( new com.google.gerrit.server.mail.Address ( "Foo Bar" , "foo@bar.com" ) ) ; b.dateReceived ( java.time.Instant.now ( ) ) ; b.subject ( "" ) ; return b ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private boolean canCopy ( ) { com.google.gerrit.server.account.CapabilityControl ctl = currentUserProvider.get ( ) . getCapabilities ( ) ; return ( ctl.canAdministrateServer ( ) ) || ( ctl.canPerform ( ( ( ( pluginName ) + "-" ) + ( CopyProjectCapability.ID ) ) ) ) ; }

Target:
private boolean canCopy ( ) { return ( permissionBackend.user ( currentUserProvider ) . testOrFalse ( com.google.gerrit.server.permissions.GlobalPermission.ADMINISTRATE_SERVER ) ) || ( permissionBackend.user ( currentUserProvider ) . testOrFalse ( new com.google.gerrit.extensions.api.access.PluginPermission ( pluginName , CopyProjectCapability.ID ) ) ) ; }
Source:
public void testCreateSchema ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; schema.createSchema ( ) ; }

Target:
public void testCreateSchema ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema = open ( ) ; schema.updateSchema ( ) ; }
Source:
public void doChangeMergedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.server.ReviewDb db ) { }

Target:
public void doChangeMergedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.reviewdb.server.ReviewDb db , java.lang.String mergeResultRev ) { }
Source:
private static void assertBadRequest ( com.google.gerrit.extensions.api.projects.Projects.ListRequest req ) throws java.lang.Exception { try { req.get ( ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException expected ) { } }

Target:
private void assertBadRequest ( com.google.gerrit.extensions.api.projects.Projects.ListRequest req ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.BadRequestException.class ) ; req.get ( ) ; }
Source:
com.google.gerrit.server.change.ChangeEdits.DeleteEdit create ( com.google.gerrit.reviewdb.client.Change change , java.lang.String path ) ;

Target:
com.google.gerrit.server.change.ChangeEdits.DeleteFile create ( java.lang.String path ) ;
Source:
public void setStars ( com.google.common.collect.Multimap < com.google.gerrit.reviewdb.client.Account.Id , java.lang.String > stars ) { this . stars = com.google.common.collect.ImmutableMultimap.copyOf ( stars ) ; }

Target:
public void setStars ( com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.Account.Id , java.lang.String > stars ) { this . stars = com.google.common.collect.ImmutableListMultimap.copyOf ( stars ) ; }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.reviewdb.client.Change change , java.util.Date when ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when ) ;
Source:
public final com.google.gerrit.extensions.api.projects.ProjectState state ( ) { if ( ( stateRaw ( ) ) == null ) { return com.google.gerrit.extensions.api.projects.ProjectState.ACTIVE ; } return com.google.gerrit.extensions.api.projects.ProjectState.valueOf ( stateRaw ( ) ) ; }

Target:
public final com.google.gerrit.extensions.client.ProjectState state ( ) { if ( ( stateRaw ( ) ) == null ) { return com.google.gerrit.extensions.client.ProjectState.ACTIVE ; } return com.google.gerrit.extensions.client.ProjectState.valueOf ( stateRaw ( ) ) ; }
Source:
public void onMouseMove ( com.google.gwt.event.dom.client.MouseMoveEvent event ) { resizePaddingWidget ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( isEdit ( ) ) ) { setOpen ( ( ! ( isOpen ( ) ) ) ) ; } }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { removeUI ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.PatchLineComment result ) { comment = result ; text.setReadOnly ( false ) ; cancel.setEnabled ( true ) ; discard.setEnabled ( true ) ; render ( ) ; }
Source:
public void testAcrossMultipleLines ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 10 ) ) ; }

Target:
public void testAcrossMultipleLines ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 2 , 2 ) , iter.advance ( 10 ) ) ; }
Source:
private java.io.InputStream open ( java.lang.String name ) { return com.google.gerrit.main.GerritLauncher.class . getClassLoader ( ) . getResourceAsStream ( name ) ; }

Target:
private java.io.InputStream open ( java.lang.String name ) { return com.google.gerrit.launcher.GerritLauncher.class . getClassLoader ( ) . getResourceAsStream ( name ) ; }
Source:
public void fromRange ( com.google.gerrit.extensions.common.Comment.Range r ) { range = ( r == null ) ? null : new com.google.gerrit.reviewdb.client.CommentRange ( range.startLine , range.startCharacter , range.endLine , range.endCharacter ) ; }

Target:
public void setRange ( com.google.gerrit.extensions.common.Comment.Range r ) { if ( r != null ) { range = new com.google.gerrit.reviewdb.client.CommentRange ( r.startLine , r.startCharacter , r.endLine , r.endCharacter ) ; } else { range = null ; } }
Source:
public void onFailure ( java.lang.Throwable err ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; relatedChangesTab.setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }
Source:
org.eclipse.jgit.lib.ObjectId insert ( com.google.gerrit.server.notedb.InsertedObject obj ) { inserted.put ( obj.id ( ) , obj ) ; return obj.id ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectId insert ( com.google.gerrit.server.git.InsertedObject obj ) { inserted.put ( obj.id ( ) , obj ) ; return obj.id ( ) ; }
Source:
public void testChangeDeletedFromIndexFailed ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.DELETE_OP , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.FAILED , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.ERROR_MSG , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.deleteFromIndex ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }

Target:
public void testChangeDeletedFromIndexFailed ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.DELETE_OP , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.FAILED , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.ERROR_MSG , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( eventForwarder.deleteChangeFromIndex ( com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }