auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return java.util.Optional.ofNullable ( byId.get ( accountId ) ) ; }

Target:
public synchronized java.util.Optional < com.google.gerrit.server.account.AccountState > get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return java.util.Optional.ofNullable ( byId.get ( accountId ) ) ; }
Source:
private boolean isNoteDbEnabled ( org.eclipse.jgit.lib.Config cfg ) { return migration.readChanges ( ) ; }

Target:
private boolean isNoteDbEnabled ( ) { return migration.readChanges ( ) ; }
Source:
private com.google.gitiles.doc.MarkdownToHtml file ( java.lang.String path ) { return new com.google.gitiles.doc.MarkdownToHtml ( com.google.gitiles.GitilesView.doc ( ) . copyFrom ( view ) . setPathPart ( path ) . build ( ) , config ) ; }

Target:
private com.google.gitiles.doc.MarkdownToHtml file ( java.lang.String path ) { return new com.google.gitiles.doc.MarkdownToHtml ( com.google.gitiles.GitilesView.doc ( ) . copyFrom ( view ) . setPathPart ( path ) . build ( ) , config , path ) ; }
Source:
com.google.gerrit.server.git.NotesBranchUtil create ( org.eclipse.jgit.lib.Repository db , org.eclipse.jgit.lib.ObjectInserter inserter ) ;

Target:
com.google.gerrit.server.git.NotesBranchUtil create ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.Repository db , org.eclipse.jgit.lib.ObjectInserter inserter ) ;
Source:
public void invalidate ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { auto.remove ( p.getNameKey ( ) ) ; auto.remove ( p.getId ( ) ) ; } }

Target:
public void invalidate ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { auto.remove ( p.getNameKey ( ) ) ; } }
Source:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change change ) { return notesFactory.create ( change ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) { return notesFactory.create ( db , change ) ; }
Source:
public final native java.lang.String name ( ) ;

Target:
public final native java.lang.String project ( ) ;
Source:
protected void display ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { table.setAccountInfoCache ( result.getAccounts ( ) ) ; drafts.display ( result.getChanges ( ) ) ; table.finishDisplay ( true ) ; }

Target:
private void display ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { table.setAccountInfoCache ( result.getAccounts ( ) ) ; drafts.display ( result.getChanges ( ) ) ; table.finishDisplay ( true ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( revision.getParentKey ( ) , revision.getId ( ) ) ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , revision.getParentKey ( ) , revision.getId ( ) ) ) ; }
Source:
public void set ( final T value ) { oldValue = com.google.gerrit.client.ui.ListenableOldValue.get ( ) ; super . set ( value ) ; oldValue = null ; }

Target:
public void set ( final T value ) { try { oldValue = com.google.gerrit.client.ui.ListenableOldValue.get ( ) ; super . set ( value ) ; } finally { oldValue = null ; } }
Source:
boolean visibleForReplication ( ) { return ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( getCurrentUser ( ) ) ) . isEverythingVisible ( ) ) ; }

Target:
boolean visibleForReplication ( ) { return ( ( user ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( user ) ) . isEverythingVisible ( ) ) ; }
Source:
public static void query ( java.lang.String query , java.util.Set < com.google.gerrit.extensions.client.ListChangesOption > options , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeList > callback ) { com.google.gerrit.client.rpc.RestApi call = com.google.gerrit.client.changes.ChangeList.newQuery ( query ) ; com.google.gerrit.client.changes.ChangeList.addOptions ( call , options ) ; call.get ( callback ) ; }

Target:
public static void query ( java.lang.String query , java.util.Set < com.google.gerrit.extensions.client.ListChangesOption > options , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeList > callback ) { com.google.gerrit.client.changes.ChangeList.query ( query , options , callback , 0 , 0 ) ; }
Source:
public void init ( final javax.servlet.FilterConfig config ) { this . config = config ; }

Target:
public void init ( final javax.servlet.FilterConfig config ) { }
Source:
java.lang.Runnable openCloseAll ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } } } ; }

Target:
java.lang.Runnable openCloseAll ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } } ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.extensions.events.GitReferenceUpdatedListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.git.validators.CommitValidationListener.class ) ; factory ( CommitValidators.Factory.class ) ; install ( new com.google.gerrit.server.git.GitModule ( ) ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.extensions.events.GitReferenceUpdatedListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.server.git.validators.CommitValidationListener.class ) ; install ( new com.google.gerrit.server.git.GitModule ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { submitOnSelection = false ; if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { if ( nameTxt.isSuggestionListShowing ( ) ) { submitOnSelection = true ; } else { doAddNew ( ) ; } } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNew ( ) ; } }
Source:
private static void addLink ( final com.google.gerrit.client.ui.LinkMenuBar m , final java.lang.String text , final java.lang.String historyToken ) { m.addItem ( new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) ) ; }

Target:
private static com.google.gerrit.client.ui.LinkMenuItem addLink ( final com.google.gerrit.client.ui.LinkMenuBar m , final java.lang.String text , final java.lang.String historyToken ) { com.google.gerrit.client.ui.LinkMenuItem i = new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) ; m.addItem ( i ) ; return i ; }
Source:
public void listBranchesOfNonVisibleProject_NotFound ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches" ) ) . getStatusCode ( ) ) ; }

Target:
public void listBranchesOfNonVisibleProject_NotFound ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; com.google.common.truth.Truth.assertThat ( userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.rpc.SystemInfoServiceImpl.class ) ; install ( new com.google.gerrit.httpd.rpc.account.AccountModule ( ) ) ; install ( new com.google.gerrit.httpd.rpc.project.ProjectModule ( ) ) ; }

Target:
protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.rpc.SystemInfoServiceImpl.class ) ; install ( new com.google.gerrit.httpd.rpc.project.ProjectModule ( ) ) ; }
Source:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder defaults ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . fastEvalLabels ( false ) . allowClosed ( false ) . skipFilters ( false ) . rule ( null ) ; }

Target:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder defaults ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . allowClosed ( false ) . skipFilters ( false ) . rule ( null ) ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( searchBox.getText ( ) ) ) { searchBox.setText ( Gerrit.C.searchHint ( ) ) ; searchBox.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
void setText ( final java.lang.String query ) { searchBox.setText ( query ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.webui.TopMenu.MenuEntry > apply ( com.google.gerrit.server.config.ConfigResource resource ) { java.util.List < com.google.gerrit.extensions.webui.TopMenu.MenuEntry > entries = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.google.gerrit.extensions.webui.TopMenu extension : extensions ) { entries.addAll ( extension.getEntries ( ) ) ; } return entries ; }

Target:
public java.util.List < com.google.gerrit.extensions.webui.TopMenu.MenuEntry > apply ( com.google.gerrit.server.config.ConfigResource resource ) { java.util.List < com.google.gerrit.extensions.webui.TopMenu.MenuEntry > entries = new java.util.ArrayList < > ( ) ; for ( com.google.gerrit.extensions.webui.TopMenu extension : extensions ) { entries.addAll ( extension.getEntries ( ) ) ; } return entries ; }
Source:
public void setId ( java.lang.String id ) { this . id = ( id != null ) ? com.google.gerrit.common.data.LabelType.checkId ( id ) : null ; }

Target:
public void setId ( java.lang.String id ) { this . id = com.google.gerrit.common.data.LabelType.checkId ( id ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { display ( ) ; watchesTab.display ( watchedProjects ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { watchesTab.display ( watchedProjects ) ; display ( ) ; }
Source:
private com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }

Target:
protected com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }
Source:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.fullName ( change.branch ) ; }

Target:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.fullName ( change.get ( ) . branch ) ; }
Source:
private static java.lang.String getUrl ( java.lang.String pluginName , int changeId , java.lang.Integer patchSetIdA , int patchSetIdB , java.lang.String fileName ) { return ( com.googlesource.gerrit.plugins.xdocs.SideBySideDiffPreviewWebLink.getUrl ( pluginName , changeId , patchSetIdA , patchSetIdB , fileName ) ) + ",unified" ; }

Target:
private static java.lang.String getUrl ( java.lang.String pluginName , int changeId , java.lang.Integer patchSetIdA , int patchSetIdB , java.lang.String path ) { return ( com.googlesource.gerrit.plugins.xdocs.SideBySideDiffPreviewWebLink.getUrl ( pluginName , changeId , patchSetIdA , patchSetIdB , path ) ) + ",unified" ; }
Source:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj ) ; } }

Target:
public void update ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , true ) ; } }
Source:
public java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > filter ( java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > refs ) { return filter ( refs , false ) ; }

Target:
private java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > filter ( java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > refs ) { return filter ( refs , false ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.project.ProjectResource > list ( ) { return list ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.project.ProjectResource > list ( ) { return list.get ( ) ; }
Source:
public static java.lang.String toPatchUnified ( final com.google.gerrit.reviewdb.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , id ) ; }

Target:
public static java.lang.String toPatchUnified ( final com.google.gerrit.reviewdb.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , null , id ) ; }
Source:
private java.lang.String readContentFromJson ( com.google.gerrit.acceptance.RestResponse r ) throws java.io.IOException { com.google.gson.stream.JsonReader jsonReader = new com.google.gson.stream.JsonReader ( r.getReader ( ) ) ; jsonReader.setLenient ( true ) ; return newGson ( ) . fromJson ( jsonReader , java.lang.String.class ) ; }

Target:
private java.lang.String readContentFromJson ( com.google.gerrit.acceptance.RestResponse r ) throws java.lang.Exception { return readContentFromJson ( r , java.lang.String.class ) ; }
Source:
protected com.google.gitiles.FakeHttpServletResponse buildText ( java.lang.String path ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildResponse ( path , "format=text" , javax.servlet.http.HttpServletResponse.SC_OK ) ; org.junit.Assert.assertEquals ( "text/plain" , res.getHeader ( com.google.common.net.HttpHeaders.CONTENT_TYPE ) ) ; return res ; }

Target:
protected com.google.gitiles.FakeHttpServletResponse buildText ( java.lang.String path ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildResponse ( path , "format=text" , javax.servlet.http.HttpServletResponse.SC_OK ) ; com.google.common.truth.Truth.assertThat ( res.getHeader ( com.google.common.net.HttpHeaders.CONTENT_TYPE ) ) . isEqualTo ( "text/plain" ) ; return res ; }
Source:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > onePredicate ( com.google.gerrit.server.query.change.LabelPredicate.Args args , java.lang.String label , int expVal ) { if ( expVal != 0 ) { return com.google.gerrit.server.query.change.LabelPredicate.equalsLabelPredicate ( args , label , expVal ) ; } return com.google.gerrit.server.query.change.LabelPredicate.noLabelQuery ( args , label ) ; }

Target:
protected static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > onePredicate ( com.google.gerrit.server.query.change.LabelPredicate.Args args , java.lang.String label , int expVal ) { if ( expVal != 0 ) { return com.google.gerrit.server.query.change.LabelPredicate.equalsLabelPredicate ( args , label , expVal ) ; } return com.google.gerrit.server.query.change.LabelPredicate.noLabelQuery ( args , label ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change c ) { c.setCurrentPatchSet ( psInfo ) ; com.google.gerrit.server.ChangeUtil.updated ( c ) ; return c ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change c ) { if ( psInfo != null ) { c.setCurrentPatchSet ( psInfo ) ; } com.google.gerrit.server.ChangeUtil.updated ( c ) ; return c ; }
Source:
public void run ( ) { c.close ( ) ; }

Target:
public void run ( ) { c.close ( ) ; db = null ; }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in , 0 ) ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getCommitId ( ) { return commit.getCommit ( ) . getId ( ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit getCommit ( ) { return commit ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , null ) ; }
Source:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { input.setFocus ( false ) ; show.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; }

Target:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { input.setFocus ( false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; }
Source:
public void remove ( ) { if ( ! ( m.remove ( name.value ( ) , commandProvider ) ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "can not unregister command: %s" , name.value ( ) ) ) ; } }

Target:
public void remove ( ) { m.remove ( name.value ( ) , commandProvider ) ; }
Source:
public com.google.gerrit.server.change.ChangeEdits.Create create ( com.google.gerrit.server.change.ChangeResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { return createFactory.create ( parent.getChange ( ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.change.ChangeEdits.Create create ( com.google.gerrit.server.change.ChangeResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { return createFactory.create ( id.get ( ) ) ; }
Source:
public void downloadOptional ( ) { this . required = false ; download ( ) ; }

Target:
void downloadOptional ( ) { this . required = false ; download ( ) ; }
Source:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toInstance ( new org.eclipse.jgit.lib.Config ( ) ) ; bind ( com.google.gerrit.reviewdb.SystemConfig.class ) . toInstance ( systemConfig ) ; bind ( com.google.gerrit.server.config.AuthConfig.class ) ; bind ( com.google.gerrit.server.AnonymousUser.class ) ; }

Target:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toInstance ( new org.eclipse.jgit.lib.Config ( ) ) ; bind ( com.google.gerrit.reviewdb.SystemConfig.class ) . toInstance ( systemConfig ) ; bind ( com.google.gerrit.server.config.AuthConfig.class ) ; }
Source:
public java.lang.String getCookie ( com.gitblit.models.UserModel model ) { return model.cookie ; }

Target:
public java.lang.String getCookie ( com.gitblit.models.UserModel model ) { return null ; }
Source:
public com.google.gerrit.server.notedb.NoteDbUpdateManager stage ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { return delegate.stage ( db , changeId ) ; }

Target:
public com.google.gerrit.server.notedb.NoteDbUpdateManager stage ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { return delegate.stage ( db , changeId ) ; }
Source:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { return groupMembershipFactory.create ( user.state ( ) . getInternalGroups ( ) ) ; }

Target:
public com.google.gerrit.server.account.GroupMembership membershipsOf ( com.google.gerrit.server.IdentifiedUser user ) { return groupMembershipFactory.create ( user ) ; }
Source:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) { java.util.SortedMap < java.lang.Integer , com.google.gerrit.client.diff.SideBySideCommentGroup > map = map ( side ) ; if ( ( map.get ( line ) ) == group ) { map.remove ( line ) ; } }

Target:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) { super . clearLine ( side , line , group ) ; }
Source:
public void getCacheWithGerritPrefix ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/config/server/caches/gerrit-accounts" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_OK , r.getStatusCode ( ) ) ; }

Target:
public void getCacheWithGerritPrefix ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/config/server/caches/gerrit-accounts" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_OK ) ; }
Source:
private static java.lang.String nameOf ( java.io.File jar ) { return com.google.gerrit.server.plugins.PluginLoader.nameOf ( jar.getName ( ) ) ; }

Target:
public static java.lang.String nameOf ( java.io.File jar ) { return com.google.gerrit.server.plugins.PluginLoader.nameOf ( jar.getName ( ) ) ; }
Source:
public void execute ( ) { content.setFocus ( true ) ; }

Target:
public void execute ( ) { file.setFocus ( true ) ; }
Source:
public com.google.gerrit.server.permissions.PermissionBackend.ForChange user ( com.google.gerrit.server.CurrentUser user ) { return getUser ( ) . equals ( user ) ? this : forUser ( user ) . asForChange ( cd , db ) ; }

Target:
public com.google.gerrit.server.CurrentUser user ( ) { return getUser ( ) ; }
Source:
void listBranches ( com.google.gerrit.client.reviewdb.Project.Id project , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.Branch > > callback ) ;

Target:
void listBranches ( com.google.gerrit.client.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.Branch > > callback ) ;
Source:
public com.google.gerrit.extensions.api.changes.Changes changes ( ) { return changes.get ( ) ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes changes ( ) { return changes ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK , new com.googlesource.gerrit.plugins.zuul.client.LabelPanel.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_COMMIT_INFO_BLOCK , new com.googlesource.gerrit.plugins.zuul.client.LabelPanel.Factory ( ) , null ) ; }
Source:
public void setUp ( ) { validator = new com.googlesource.gerrit.plugins.uploadvalidator.ContentTypeValidator ( null , new com.googlesource.gerrit.plugins.uploadvalidator.ContentTypeUtil ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.PATTERN_CACHE ) , null , null ) ; }

Target:
public void setUp ( ) { validator = new com.googlesource.gerrit.plugins.uploadvalidator.ContentTypeValidator ( null , new com.googlesource.gerrit.plugins.uploadvalidator.ContentTypeUtil ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.PATTERN_CACHE ) , null , null , null ) ; }
Source:
void onExpandAllComments ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.expandAllComments ( e.getValue ( ) ) ; view.getCommentManager ( ) . setExpandAllComments ( prefs.expandAllComments ( ) ) ; }

Target:
void onExpandAllComments ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.expandAllComments ( e.getValue ( ) ) ; if ( ( view ) != null ) { view.getCommentManager ( ) . setExpandAllComments ( prefs.expandAllComments ( ) ) ; } }
Source:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( change ( ) ) ; } return notes ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , change ( ) ) ; } return notes ; }
Source:
public com.google.gerrit.server.patch.PatchList get ( final com.google.gerrit.client.reviewdb.Change change , final com.google.gerrit.client.reviewdb.PatchSet patchSet ) { return get ( change , patchSet , com.google.gerrit.client.data.PatchScriptSettings.Whitespace.IGNORE_NONE ) ; }

Target:
public com.google.gerrit.server.patch.PatchList get ( com.google.gerrit.client.reviewdb.Change change , com.google.gerrit.client.reviewdb.PatchSet patchSet ) ;
Source:
public void onSuccess ( final com.google.gerrit.client.account.AgreementInfo result ) { agreements.display ( result ) ; agreements.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.account.AgreementInfo result ) { agreements.display ( result ) ; }
Source:
public static org.commonmark.node.Node parse ( java.lang.String md ) { return md != null ? com.google.gitiles.doc.GitilesMarkdown.PARSER.parse ( md ) : null ; }

Target:
public static org.commonmark.node.Node parse ( java.lang.String md ) { return com.google.gitiles.doc.GitilesMarkdown.PARSER.parse ( md ) ; }
Source:
public com.google.gerrit.common.data.ReviewerResult call ( ) throws java.lang.Exception { com.google.gerrit.common.data.ReviewerResult result = removeReviewerFactory.create ( changeId , reviewerId ) . call ( ) ; result.setChange ( changeDetailFactory.create ( changeId ) . call ( ) ) ; return result ; }

Target:
public com.google.gerrit.common.data.ReviewerResult call ( ) throws java.lang.Exception { com.google.gerrit.common.data.ReviewerResult result = removeReviewerFactory.create ( changeId , java.util.Collections.singleton ( reviewerId ) ) . call ( ) ; result.setChange ( changeDetailFactory.create ( changeId ) . call ( ) ) ; return result ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( false ) ; }
Source:
public void evict ( final com.google.gerrit.client.reviewdb.Account.Id accountId ) { if ( accountId != null ) { self.remove ( accountId ) ; } }

Target:
public void evict ( final com.google.gerrit.client.reviewdb.Account.Id accountId ) { self.remove ( accountId ) ; }
Source:
private static java.lang.String format ( final java.lang.String name , final java.lang.String email ) { try { return new com.google.gerrit.server.mail.Address ( name , email ) . toHeaderString ( ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "Cannot encode address" , e ) ; } }

Target:
private static java.lang.String format ( final java.lang.String name , final java.lang.String email ) { return new com.google.gerrit.server.mail.Address ( name , email ) . toHeaderString ( ) ; }
Source:
private final native net.codemirror.lib.LineCharacter setLine ( int line ) ;

Target:
public final native void setLine ( int line ) ;
Source:
protected 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 ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }

Target:
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 ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.index.change.IndexRewriter.class ) ; listener ( ) . to ( com.google.gerrit.server.index.change.ChangeIndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.index.change.IndexRewriter.class ) ; bind ( com.google.gerrit.server.index.change.ChangeIndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.change.ChangeIndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }
Source:
protected void configure ( ) { factory ( AbandonChange.Factory.class ) ; factory ( AddReviewer.Factory.class ) ; factory ( CommentDetailFactory.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( CommentDetailFactory.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }
Source:
public void throwBadRequestTriggerOnBadQuery ( ) throws java.lang.Exception { setUpClient ( ) ; java.lang.String badQuery = "bad query" ; easyMock.resetAll ( ) ; easyMock.replayAll ( ) ; store.queryChangeEvents ( badQuery ) ; easyMock.verifyAll ( ) ; }

Target:
public void throwBadRequestTriggerOnBadQuery ( ) throws java.lang.Exception { easyMock.replayAll ( ) ; setUpClient ( ) ; java.lang.String badQuery = "bad query" ; store.queryChangeEvents ( badQuery ) ; easyMock.verifyAll ( ) ; }
Source:
public void init ( ) throws java.io.IOException { super . init ( ) ; testRepo = new org.eclipse.jgit.junit.TestRepository ( repo ) ; validator = new com.googlesource.gerrit.plugins.uploadvalidator.DuplicatePathnameValidator ( null , null , null ) ; validator.setLocale ( java.util.Locale.ENGLISH ) ; }

Target:
public void init ( ) throws java.io.IOException { super . init ( ) ; testRepo = new org.eclipse.jgit.junit.TestRepository ( repo ) ; validator = new com.googlesource.gerrit.plugins.uploadvalidator.DuplicatePathnameValidator ( null , null , null , null ) ; validator.setLocale ( java.util.Locale.ENGLISH ) ; }
Source:
private static boolean isNoSuchGroup ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . startsWith ( NoSuchGroupException.MESSAGE ) ) ; }

Target:
protected static boolean isNoSuchGroup ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . startsWith ( NoSuchGroupException.MESSAGE ) ) ; }
Source:
public void noHeadText ( ) throws java.lang.Exception { setUpSimpleRefs ( ) ; com.google.gitiles.FakeHttpServletResponse res = buildText ( "/repo/+refs/HEAD" ) ; org.junit.Assert.assertEquals ( "" , res.getActualBodyString ( ) ) ; }

Target:
public void noHeadText ( ) throws java.lang.Exception { setUpSimpleRefs ( ) ; com.google.gitiles.FakeHttpServletResponse res = buildText ( "/repo/+refs/HEAD" ) ; com.google.common.truth.Truth.assertThat ( res.getActualBodyString ( ) ) . isEqualTo ( "" ) ; }
Source:
public boolean isVisible ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { if ( ( ( change.getStatus ( ) ) == ( Change.Status.DRAFT ) ) && ( ! ( isDraftVisible ( db ) ) ) ) { return false ; } return isRefVisible ( ) ; }

Target:
public boolean isVisible ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { if ( ( ( change.getStatus ( ) ) == ( Change.Status.DRAFT ) ) && ( ! ( isDraftVisible ( db , null ) ) ) ) { return false ; } return isRefVisible ( ) ; }
Source:
public void onDraftPublished ( com.google.gerrit.extensions.events.DraftPublishedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) . email ) ; }

Target:
public void onDraftPublished ( com.google.gerrit.extensions.events.DraftPublishedListener.Event event ) { com.google.gerrit.extensions.common.ChangeInfo c = event.getChange ( ) ; onEvent ( new com.google.gerrit.reviewdb.client.Project.NameKey ( c.project ) , c._number , event.getWho ( ) ) ; }
Source:
private static com.jcraft.jsch.KeyPair genSshKey ( ) throws com.jcraft.jsch.JSchException { com.jcraft.jsch.JSch jsch = new com.jcraft.jsch.JSch ( ) ; return com.jcraft.jsch.KeyPair.genKeyPair ( jsch , KeyPair.RSA ) ; }

Target:
public static com.jcraft.jsch.KeyPair genSshKey ( ) throws com.jcraft.jsch.JSchException { com.jcraft.jsch.JSch jsch = new com.jcraft.jsch.JSch ( ) ; return com.jcraft.jsch.KeyPair.genKeyPair ( jsch , KeyPair.RSA ) ; }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { change.nextPatchSetId ( ) ; return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.nextPatchSetId ( ) ; return change ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > getCcOnly ( ) { final java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > cc = new java.util.HashSet < com.google.gerrit.reviewdb.client.Account.Id > ( this . cc ) ; cc.removeAll ( reviewers ) ; return java.util.Collections.unmodifiableSet ( cc ) ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > getCcOnly ( ) { final java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > cc = new java.util.HashSet ( this . cc ) ; cc.removeAll ( reviewers ) ; return java.util.Collections.unmodifiableSet ( cc ) ; }
Source:
private java.util.List < com.google.gerrit.extensions.api.projects.DashboardInfo > dashboards ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . dashboards ( ) . get ( ) ; }

Target:
private java.util.List < com.google.gerrit.extensions.api.projects.DashboardInfo > dashboards ( ) throws java.lang.Exception { return project ( ) . dashboards ( ) . get ( ) ; }
Source:
public void shouldIndexInRemoteOnChangeIndexedEvent ( ) throws java.lang.Exception { org.easymock.EasyMock.expect ( restClientMock.index ( com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID ) ) . andReturn ( true ) ; replayAll ( ) ; indexEventHandler.onChangeIndexed ( cd ) ; verifyAll ( ) ; }

Target:
public void shouldIndexInRemoteOnChangeIndexedEvent ( ) throws java.lang.Exception { org.easymock.EasyMock.expect ( restClientMock.index ( com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID ) ) . andReturn ( true ) ; replayAll ( ) ; indexEventHandler.onChangeIndexed ( id.get ( ) ) ; verifyAll ( ) ; }
Source:
public void listOneGroupMember ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( GET_ONE ( "/groups/Administrators/members/admin" ) . name , admin.fullName ) ; }

Target:
public void listOneGroupMember ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET_ONE ( "/groups/Administrators/members/admin" ) . name ) . isEqualTo ( admin.fullName ) ; }
Source:
public java.lang.String getUrl ( java.lang.String project ) { final java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( "repo download " ) ; r.append ( project ) ; return r.toString ( ) ; }

Target:
public java.lang.String getUrl ( java.lang.String project ) { return "repo download " + project ; }
Source:
public java.util.Collection < com.google.gerrit.common.data.LabelType > getLabelSections ( ) { return labelSections.values ( ) ; }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.common.data.LabelType > getLabelSections ( ) { return labelSections ; }
Source:
protected final void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.warn ( ( ( ( "[" + ( args.submissionId ) ) + "]" ) + msg ) , t ) ; } }

Target:
protected final void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.warn ( ( ( args.submissionId ) + msg ) , t ) ; } }
Source:
public final java.lang.String usage ( ) { return usage ; }

Target:
public java.lang.String usage ( ) { return usage ; }
Source:
private com.google.reviewit.app.Gerrit getGerrit ( ) { if ( ( gerrit ) == null ) { gerrit = new com.google.reviewit.app.Gerrit ( getConfigManager ( ) ) ; } return gerrit ; }

Target:
private com.google.reviewit.app.Gerrit getGerrit ( ) { if ( ( gerrit ) == null ) { gerrit = new com.google.reviewit.app.Gerrit ( this , getConfigManager ( ) ) ; } return gerrit ; }
Source:
private static int checkLimit ( int limit , java.lang.String name , int defaultValue ) { if ( limit == 0 ) { return defaultValue ; } com.google.common.base.Preconditions.checkArgument ( ( limit > 0 ) , "%s must be positive: %s" , name , limit ) ; return limit ; }

Target:
private static void checkLimit ( int limit , java.lang.String name ) { com.google.common.base.Preconditions.checkArgument ( ( limit > 0 ) , "%s must be positive: %s" , name , limit ) ; }
Source:
public Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( refUpdate.project ) ; }

Target:
public Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( refUpdate.get ( ) . project ) ; }
Source:
private static boolean isAllowed ( com.google.gerrit.gpg.CheckResult result , java.util.Collection < org.eclipse.jgit.transport.ReceiveCommand > commands ) { if ( com.google.gerrit.gpg.SignedPushPreReceiveHook.onlyMagicBranches ( commands ) ) { return result.isOk ( ) ; } else { return result.isTrusted ( ) ; } }

Target:
private static boolean isAllowed ( com.google.gerrit.gpg.CheckResult result , java.util.Collection < org.eclipse.jgit.transport.ReceiveCommand > commands ) { if ( com.google.gerrit.gpg.SignedPushPreReceiveHook.onlyMagicBranches ( commands ) ) { return result.isOk ( ) ; } return result.isTrusted ( ) ; }
Source:
public static void createGroup ( java.lang.String groupName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupInfo > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( groupName ) . ifNoneMatch ( ) . data ( in ) . put ( cb ) ; }

Target:
public static void createGroup ( java.lang.String groupName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupInfo > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( groupName ) . ifNoneMatch ( ) . put ( in , cb ) ; }
Source:
public com.google.gerrit.server.project.RefControl create ( final com.google.gerrit.server.project.ProjectControl projectControl , final java.lang.String ref ) { return new com.google.gerrit.server.project.RefControl ( systemConfig , projectControl , ref ) ; }

Target:
public com.google.gerrit.server.project.RefControl create ( final com.google.gerrit.server.project.ProjectControl projectControl , final java.lang.String ref ) { return new com.google.gerrit.server.project.RefControl ( projectControl , ref ) ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; Util.ACCOUNT_SVC.myAgreements ( new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.account.AgreementInfo > ( ) { public void onSuccess ( final com.google.gerrit.client.account.AgreementInfo result ) { agreements.display ( result ) ; } } ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; Util.ACCOUNT_SVC.myAgreements ( new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.account.AgreementInfo > ( ) { public void onSuccess ( final com.google.gerrit.client.account.AgreementInfo result ) { agreements.display ( result ) ; } } ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( action ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( action ) ; }
Source:
com.google.gerrit.lucene.LuceneChangeIndex getIndex ( com.google.gerrit.lucene.LuceneChangeIndex.Factory factory , com.google.gerrit.server.config.SitePaths sitePaths ) { com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema = ( ( singleVersion ) != null ) ? com.google.gerrit.server.index.ChangeSchemas.get ( singleVersion ) : com.google.gerrit.server.index.ChangeSchemas.getLatest ( ) ; return factory.create ( schema , base ) ; }

Target:
com.google.gerrit.lucene.LuceneChangeIndex getIndex ( com.google.gerrit.lucene.LuceneChangeIndex.Factory factory ) { com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema = ( ( singleVersion ) != null ) ? com.google.gerrit.server.index.ChangeSchemas.get ( singleVersion ) : com.google.gerrit.server.index.ChangeSchemas.getLatest ( ) ; return factory.create ( schema , base ) ; }
Source:
private void setStyleName ( final int row , final int col , final java.lang.String name ) { getFlexCellFormatter ( ) . setStyleName ( row , col , name ) ; }

Target:
private void setStyleName ( final int row , final int col , final java.lang.String name ) { table.getFlexCellFormatter ( ) . setStyleName ( row , col , name ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.get ( ) . apply ( revision ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get patch" , e ) ; } }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult patch ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPatch.apply ( revision ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get patch" , e ) ; } }
Source:
private void assertGone ( javax.servlet.http.HttpServletRequest req ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = new com.google.gitiles.FakeHttpServletResponse ( ) ; servlet.service ( req , res ) ; org.junit.Assert.assertEquals ( javax.servlet.http.HttpServletResponse.SC_GONE , res.getStatus ( ) ) ; }

Target:
private void assertGone ( javax.servlet.http.HttpServletRequest req ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = new com.google.gitiles.FakeHttpServletResponse ( ) ; servlet.service ( req , res ) ; com.google.common.truth.Truth.assertThat ( res.getStatus ( ) ) . isEqualTo ( javax.servlet.http.HttpServletResponse.SC_GONE ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( diffPref ) ; setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( value ) ; setEnabled ( true ) ; }
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 newChange ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo ) throws java.lang.Exception { return newChange ( repo , null , null , null , null ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage input ) { return ( ( input.getAuthor ( ) ) == null ) && ( ( input.getWrittenOn ( ) . getTime ( ) ) >= ( before.getTime ( ) ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage input ) { return ( input.getAuthor ( ) ) == null ; }
Source:
public void printJson ( final java.lang.StringBuffer sb , final java.util.Date o ) { sb.append ( '"' ) ; sb.append ( o ) ; sb.append ( '"' ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.util.Date o ) { sb.append ( '"' ) ; sb.append ( o ) ; sb.append ( '"' ) ; }
Source:
public void setPushCertificate ( java.lang.String cert ) { com.google.gerrit.server.change.b5 ReceiveCommits ; java.util.Set push ; on ( sets ) ; pushCert = cert ; }

Target:
public void setPushCertificate ( java.lang.String cert ) { pushCert = cert ; }
Source:
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" ) ) ; }

Target:
public void testDefaultBehaviour ( ) { org.junit.Assert.assertEquals ( "a/b" , new com.google.gerrit.common.data.GitWebType ( ) . replacePathSeparator ( "a/b" ) ) ; }
Source:
void merge ( com.google.gerrit.server.git.MergeOp.Factory mof , com.google.gerrit.reviewdb.client.Branch.NameKey branch ) ;

Target:
void merge ( com.google.gerrit.reviewdb.client.Branch.NameKey branch ) ;
Source:
public static com.google.gerrit.client.rpc.RestApi vote ( int id , int reviewer , java.lang.String vote ) { return com.google.gerrit.client.changes.ChangeApi.reviewer ( id , reviewer ) . view ( "votes" ) . id ( vote ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi vote ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , int reviewer , java.lang.String vote ) { return com.google.gerrit.client.changes.ChangeApi.reviewer ( project , id , reviewer ) . view ( "votes" ) . id ( vote ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.get ( ) . apply ( revision , null ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( revision , null ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft ps" , e ) ; } }