auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChangeEdit.apply ( changeResource , new com.google.gerrit.server.change.DeleteChangeEdit.Input ( ) ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change edit" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChangeEdit.apply ( changeResource , new com.google.gerrit.server.change.DeleteChangeEdit.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete change edit" , e ) ; } }
Source:
public void run ( ) { try { synchronized ( list ) { list.add ( cmd ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( cmd ) ; } } }

Target:
public void run ( ) { SshScopes.current.set ( ctx ) ; try { synchronized ( list ) { list.add ( cmd ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( cmd ) ; } } }
Source:
public void add ( java.lang.String name , com.google.gerrit.extensions.common.AccountInfo account ) { if ( account != null ) { args.add ( name ) ; args.add ( format ( account ) ) ; } }

Target:
public void add ( java.lang.String name , com.google.gerrit.extensions.common.AccountInfo account ) { if ( account != null ) { args.add ( name ) ; args.add ( format ( account ) ) ; add ( ( name + "-username" ) , account.username ) ; } }
Source:
public boolean allRefsAreVisible ( ) { return canPerformOnAllRefs ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ; }

Target:
public boolean allRefsAreVisible ( ) { return ( visibleForReplication ( ) ) || ( canPerformOnAllRefs ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ) ; }
Source:
private void apply ( com.google.gerrit.server.index.ChangeIndex i , com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { if ( delete ) { i.delete ( cd ) ; } else { i.replace ( cd ) ; } }

Target:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( cd ) ; } }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > query ( com.google.gerrit.reviewdb.ReviewDb db , int lim , java.lang.String key ) throws com.google.gwtorm.client.OrmException { return db.changes ( ) . allClosedPrev ( s.getCode ( ) , key , lim ) ; }

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > query ( com.google.gerrit.reviewdb.ReviewDb db , int lim , java.lang.String key ) throws com.google.gerrit.common.errors.InvalidQueryException , com.google.gwtorm.client.OrmException { return searchQuery ( db , query , lim , key , com.google.gerrit.httpd.rpc.ChangeListServiceImpl.QUERY_PREV ) ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT , expectedError ) ; }

Target:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError ) ; }
Source:
private static long keyId ( byte [ ] fp ) { return java.nio.ByteBuffer.wrap ( fp ) . getLong ( ( ( fp.length ) - 8 ) ) ; }

Target:
private static long keyId ( byte [ ] fp ) { return org.eclipse.jgit.util.NB.decodeInt64 ( fp , ( ( fp.length ) - 8 ) ) ; }
Source:
void index ( com.google.gerrit.reviewdb.client.Account.Id id , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( id ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.logger.debug ( "Account successfully indexed" , id ) ; }

Target:
void index ( com.google.gerrit.reviewdb.client.Account.Id id , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( id ) ; logger.debug ( "Account successfully indexed" , id ) ; }
Source:
public int hash ( com.google.gerrit.server.patch.CharText seq , int ptr ) { return seq.charAt ( ptr ) ; }

Target:
public int hash ( com.google.gerrit.server.diff.CharText seq , int ptr ) { return seq.charAt ( ptr ) ; }
Source:
private java.util.Collection < com.google.gerrit.server.index.project.ProjectIndex > getWriteIndexes ( ) { if ( ( indexes ) != null ) { return indexes.getWriteIndexes ( ) ; } return ( index ) != null ? java.util.Collections.singleton ( index ) : com.google.common.collect.ImmutableSet.of ( ) ; }

Target:
private java.util.Collection < com.google.gerrit.index.project.ProjectIndex > getWriteIndexes ( ) { if ( ( indexes ) != null ) { return indexes.getWriteIndexes ( ) ; } return ( index ) != null ? java.util.Collections.singleton ( index ) : com.google.common.collect.ImmutableSet.of ( ) ; }
Source:
public com.google.gerrit.server.patch.IntraLineDiff get ( org.eclipse.jgit.lib.ObjectId aId , com.google.gerrit.server.patch.Text aText , org.eclipse.jgit.lib.ObjectId bId , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits ) ;

Target:
public com.google.gerrit.server.patch.IntraLineDiff getIntraLineDiff ( org.eclipse.jgit.lib.ObjectId aId , com.google.gerrit.server.patch.Text aText , org.eclipse.jgit.lib.ObjectId bId , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits ) ;
Source:
private void expandSideAll ( ) { clearMarkerAndWidget ( ) ; removeFromParent ( ) ; updateSelection ( ) ; }

Target:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAll ( ) ; updateSelection ( ) ; otherBar.updateSelection ( ) ; cm.focus ( ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { put ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { goChange ( ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { if ( com.google.gerrit.client.changes.SubmitFailureDialog.isConflict ( err ) ) { new com.google.gerrit.client.changes.SubmitFailureDialog ( err.getMessage ( ) ) . center ( ) ; } else { super . onFailure ( err ) ; } goChange ( ) ; }
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public com.google.gerrit.server.patch.PatchList load ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( key.projectKey ) ) { return readPatchList ( key , repo ) ; } }

Target:
public com.google.gerrit.server.patch.PatchList call ( ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return readPatchList ( key , repo ) ; } }
Source:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return noteUtil.newIdent ( author , when , serverIdent ) ; }

Target:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account.Id authorId , java.util.Date when ) { return noteUtil.newIdent ( authorId , when , serverIdent ) ; }
Source:
public void noNotificationForDraftPatchSetsForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_PATCHSETS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%draft" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForPrivateChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "private change" , "a" , "a1" ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
public UiAction.Description getDescription ( com.google.gerrit.server.change.RevisionResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Description" ) . setVisible ( rsrc.getControl ( ) . canEditDescription ( ) ) ; }

Target:
public UiAction.Description getDescription ( com.google.gerrit.server.change.RevisionResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Description" ) . setVisible ( rsrc.permissions ( ) . testOrFalse ( ChangePermission.EDIT_DESCRIPTION ) ) ; }
Source:
public static com.google.gitiles.GitilesView.Builder zip ( ) { return new com.google.gitiles.GitilesView.Builder ( com.google.gitiles.GitilesView.Type.ZIP ) ; }

Target:
public java.lang.String getExtension ( ) { return extension ; }
Source:
com.google.gerrit.server.git.NotesBranchUtil create ( org.eclipse.jgit.lib.Repository db ) ;

Target:
com.google.gerrit.server.git.NotesBranchUtil create ( org.eclipse.jgit.lib.Repository db , org.eclipse.jgit.lib.ObjectInserter inserter ) ;
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { com.google.common.base.Preconditions.checkNotNull ( ctl ) ; return ctl ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { com.google.common.base.Preconditions.checkNotNull ( ctl ) ; return ctl.getNotes ( ) ; }
Source:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , new com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client.BuildsDropDownPanel.Factory ( ) ) ; }

Target:
public void onPluginLoad ( ) { com.google.gerrit.plugin.client.Plugin.get ( ) . panel ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , new com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client.BuildsDropDownPanel.Factory ( ) , "status" ) ; }
Source:
protected com.google.gerrit.client.account.ContactPanel createWidget ( ) { return new com.google.gerrit.client.account.ContactPanel ( this ) ; }

Target:
protected com.google.gerrit.client.account.ContactPanelFull createWidget ( ) { final com.google.gerrit.client.account.ContactPanelFull p = new com.google.gerrit.client.account.ContactPanelFull ( ) ; p.accountSettings = this ; return p ; }
Source:
public void testUpsertTwoNotExistsing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE ) ; java.sql.PreparedStatement insert = stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 , 1 ) ; createClassUnderTest ( ) . upsert ( com.google.gwtorm.jdbc.TestJdbcAccess.TWO_ROWS ) ; verifyIds ( insert , 1 , 2 ) ; }

Target:
public void testInsertOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement insert = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . insert ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( insert ) ; }
Source:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexer ) ; id = Account.Id.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }

Target:
public void setUpMocks ( ) { servlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet ( indexer , indexTs ) ; id = Account.Id.parse ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ; org.mockito.Mockito.when ( req.getPathInfo ( ) ) . thenReturn ( ( "/index/account/" + ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServletTest.ACCOUNT_NUMBER ) ) ) ; }
Source:
public void deleteVote ( java.lang.String label ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteVote.apply ( new com.google.gerrit.server.change.VoteResource ( reviewer , label ) , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete vote" , e ) ; } }

Target:
public void deleteVote ( java.lang.String label ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteVote.apply ( new com.google.gerrit.server.change.VoteResource ( reviewer , label ) , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete vote" , e ) ; } }
Source:
public final native void set_commit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;

Target:
public final native boolean has_files ( ) ;
Source:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter.MARKDOWN.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; }

Target:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter.MARKDOWN.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter.PLAIN_TEXT.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }
Source:
public void onSuccess ( com.google.gwt.resources.client.TextResource resource ) { com.google.gwt.dom.client.StyleInjector.inject ( resource.getText ( ) ) ; }

Target:
public static void initLibrary ( com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { net.codemirror.lib.Loader.initLibrary ( cb ) ; }
Source:
public static void getMessage ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.String > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id.getParentKey ( ) . get ( ) ) . view ( "edit_message" ) . get ( com.google.gerrit.client.changes.ChangeFileApi.wrapper ( cb ) ) ; }

Target:
public static void getMessage ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.String > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id.getParentKey ( ) . get ( ) ) . view ( "edit:message" ) . get ( com.google.gerrit.client.changes.ChangeFileApi.wrapper ( cb ) ) ; }
Source:
com.google.gitiles.CommitJsonData.Commit toJsonData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit c , com.google.gitiles.DateFormatterBuilder.DateFormatter df ) throws java.io.IOException { return toJsonData ( req , c , com.google.gitiles.CommitJsonData.DEFAULT_FIELDS , df ) ; }

Target:
com.google.gitiles.CommitJsonData.Commit toJsonData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit c , com.google.gitiles.DateFormatter df ) throws java.io.IOException { return toJsonData ( req , c , com.google.gitiles.CommitJsonData.DEFAULT_FIELDS , df ) ; }
Source:
public java.lang.String getQueryString ( ) { return com.google.gerrit.util.http.testutil.FakeHttpServletRequest.paramsToString ( parameters ) ; }

Target:
public java.lang.String getQueryString ( ) { return queryString ; }
Source:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( com.google.gerrit.extensions.api.access.ProjectAccessInput p ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setAccess.apply ( checkExists ( ) , p ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put access rights" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( com.google.gerrit.extensions.api.access.ProjectAccessInput p ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setAccess.apply ( checkExists ( ) , p ) ; } catch ( java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put access rights" , e ) ; } }
Source:
public void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifySubmittedChanges ( oldVal ) ; notifySubmittedChanges.setChecked ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifySubmittedChanges ( oldVal ) ; notifySubmittedChanges.setValue ( oldVal ) ; super . onFailure ( caught ) ; }
Source:
public void testParse_Email1 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "author@example.com" ) ; org.junit.Assert.assertNull ( a.name ) ; org.junit.Assert.assertEquals ( "author@example.com" , a.email ) ; }

Target:
public void testParse_NameEmail5 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A U Thor <author@example.com>" ) ; com.google.common.truth.Truth.assertThat ( a.name ) . isEqualTo ( "A U Thor" ) ; com.google.common.truth.Truth.assertThat ( a.email ) . isEqualTo ( "author@example.com" ) ; }
Source:
public com.google.gerrit.server.group.MembersCollection.MemberInfo apply ( com.google.gerrit.server.group.MemberResource resource ) { return com.google.gerrit.server.group.MembersCollection.parse ( resource.getUser ( ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.server.group.MembersCollection.MemberInfo apply ( com.google.gerrit.server.group.MemberResource resource ) { return com.google.gerrit.server.group.MembersCollection.parse ( resource.getMember ( ) . getAccount ( ) ) ; }
Source:
private void doReplay ( ) { org.easymock.EasyMock.replay ( schemaFactory , schema , subscriptions , urlProvider , repoManager , replication ) ; }

Target:
private void doVerify ( ) { org.easymock.EasyMock.verify ( schemaFactory , schema , subscriptions , urlProvider , sshProvider , repoManager , replication ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.account ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.account ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.account ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.account ; com.google.gerrit.client.Gerrit.xsrfToken = result.xsrfToken ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( ) ; }
Source:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings createPluginSettings ( ) { return new io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings ( pluginUserName , branch , fileRef , localFilePath , allowMaintainersSubmit , autoAddReviewers , autoSubmit ) ; }

Target:
public io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings createPluginSettings ( ) { return new io.fd.maintainer.plugin.service.dto.PluginBranchSpecificSettings ( pluginUserName , branch , fileRef , localFilePath , allowMaintainersSubmit , autoAddReviewers , autoSubmit , dislikeWarnings ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.googlesource.gerrit.plugins.imagare.ImageResource.IMAGE_KIND ) ; bind ( com.googlesource.gerrit.plugins.imagare.ImagesCollection.class ) ; child ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "images" ) . to ( com.googlesource.gerrit.plugins.imagare.ImagesCollection.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.googlesource.gerrit.plugins.imagare.ImageResource.IMAGE_KIND ) ; bind ( com.googlesource.gerrit.plugins.imagare.ImagesCollection.class ) ; child ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "images" ) . to ( com.googlesource.gerrit.plugins.imagare.ImagesCollection.class ) ; get ( com.google.gerrit.server.config.ConfigResource.CONFIG_KIND , "config" ) . to ( com.googlesource.gerrit.plugins.imagare.GetConfig.class ) ; }
Source:
public boolean isExpandAllComments ( ) { return diffPrefs.isExpandAllComments ( ) ; }

Target:
public boolean isIgnoreWhitespace ( ) { return ( diffPrefs.ignoreWhitespace ) != ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.IGNORE_NONE ) ; }
Source:
protected java.util.Optional < com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken > createToken ( java.util.List < java.lang.String > values ) { return java.util.Optional.of ( new com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken ( values.get ( 0 ) ) ) ; }

Target:
protected java.util.Optional < com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken > createToken ( java.util.List < java.lang.String > values ) { return java.util.Optional.of ( new com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken ( values.get ( 0 ) , java.lang.Long.valueOf ( values.get ( 1 ) ) ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( authConfig , accountCache , realm , null , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , accountCache , realm , null , null , id ) ; }
Source:
private boolean isProjectStatePermittingWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.ACTIVE ) ; }

Target:
private boolean isProjectStatePermittingWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ; }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_OK , null ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null ) ; }
Source:
public void listTagsOfNonExistingProject ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/projects/non-existing/tags" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listTagsOfNonExistingProject ( ) throws java.lang.Exception { adminSession.get ( "/projects/non-existing/tags" ) . assertNotFound ( ) ; }
Source:
public void setUserName ( java.lang.String user ) { userName = user ; }

Target:
public void setUserName ( @ com.google.gerrit.common.Nullable java.lang.String user ) { userName = java.util.Optional.ofNullable ( com.google.common.base.Strings.emptyToNull ( user ) ) ; }
Source:
public void onSuccess ( java.util.List < com.google.gerrit.reviewdb.client.Change > changes ) { for ( com.google.gerrit.reviewdb.client.Change c : changes ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = executor.submit ( new com.google.gerrit.server.index.change.ReindexAfterUpdate.Index ( event , c.getId ( ) ) ) ; } }

Target:
public void onSuccess ( java.util.List < com.google.gerrit.reviewdb.client.Change > changes ) { for ( com.google.gerrit.reviewdb.client.Change c : changes ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = executor.submit ( new com.google.gerrit.server.index.change.ReindexAfterRefUpdate.Index ( event , c.getId ( ) ) ) ; } }
Source:
public final native int getTo ( ) ;

Target:
public final native net.codemirror.lib.CodeMirror side ( com.google.gerrit.client.diff.DisplaySide side ) ;
Source:
public java.util.Map < java.util.Map.Entry < java.lang.String , java.lang.String > , com.google.common.base.Optional < com.google.gerrit.reviewdb.client.PatchSetApproval > > get ( ) { return com.google.common.collect.Maps.newLinkedHashMap ( ) ; }

Target:
public java.util.Map < java.util.Map.Entry < java.lang.String , java.lang.String > , com.google.common.base.Optional < com.google.gerrit.reviewdb.client.PatchSetApproval > > get ( ) { return new java.util.LinkedHashMap < > ( ) ; }
Source:
public final native java.lang.String ownerUuid ( ) ;

Target:
private final native java.lang.String owner_uuid ( ) ;
Source:
public com.google.gerrit.sshd.SshKeyCacheEntryCollection get ( java.lang.String username ) { return cache.get ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; }

Target:
com.google.gerrit.sshd.SshKeyCacheImpl.EntryList get ( java.lang.String username ) { return com.google.gerrit.server.util.FutureUtil.get ( cache.get ( new com.google.gerrit.sshd.SshKeyCacheImpl.Username ( username ) ) ) ; }
Source:
public void onFailure ( java.lang.Throwable e ) { enableEdit ( true ) ; super . onFailure ( e ) ; }

Target:
public void onFailure ( java.lang.Throwable e ) { enableEdit ( true ) ; pendingGroup = null ; super . onFailure ( e ) ; }
Source:
public void setCharacterEncoding ( java.lang.String name ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setIntHeader ( java.lang.String name , int value ) { headers.removeAll ( name ) ; addIntHeader ( name , value ) ; }
Source:
void ownedProjects ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.Project > > callback ) ;

Target:
void visibleProjects ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.Project > > callback ) ;
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.index.IndexCollection indexes ) { com.google.gerrit.server.index.change.ChangeIndex index = ( indexes != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.index.change.ChangeIndexCollection indexes ) { com.google.gerrit.server.index.change.ChangeIndex index = ( indexes != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }
Source:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return newWriter ( res ) ; }

Target:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return com.google.gitiles.BaseServlet.newWriter ( req , res ) ; }
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 ) ; history.addComments ( id , result ) ; }
Source:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , note ( ) , toc ( ) } ; }

Target:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , hr ( ) , iframe ( ) , note ( ) , toc ( ) } ; }
Source:
com.google.gerrit.reviewdb.AccountGroup get ( com.google.gerrit.reviewdb.AccountGroup.ExternalNameKey name ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.AccountGroup > byExternalName ( com.google.gerrit.reviewdb.AccountGroup.ExternalNameKey name ) throws com.google.gwtorm.client.OrmException ;
Source:
private static com.google.gerrit.acceptance.RestResponse deletePatchSet ( java.lang.String changeId , com.google.gerrit.reviewdb.client.PatchSet ps , com.google.gerrit.acceptance.RestSession s ) throws java.lang.Exception { return s.delete ( ( ( ( "/changes/" + changeId ) + "/revisions/" ) + ( ps.getRevision ( ) . get ( ) ) ) ) ; }

Target:
private void deletePatchSet ( java.lang.String changeId , com.google.gerrit.reviewdb.client.PatchSet ps ) throws java.lang.Exception { gApi.changes ( ) . id ( changeId ) . revision ( ps.getId ( ) . get ( ) ) . delete ( ) ; }
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "Cannot delete branch" ) ; branch ( ) . delete ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "delete not permitted" ) ; branch ( ) . delete ( ) ; }
Source:
private void assertCreateChange ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { boolean create = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ; com.google.common.truth.Truth.assertThat ( create ) . named ( ( "can create change " + ref ) ) . isTrue ( ) ; }

Target:
private void assertCreateChange ( java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { boolean create = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ; com.google.common.truth.Truth.assertThat ( create ) . named ( ( "can create change " + ref ) ) . isTrue ( ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gerrit.client.rpc.HttpCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }
Source:
public abstract org.eclipse.jgit.lib.Repository createRepository ( java.lang.String name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException ;

Target:
public abstract org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.reviewdb.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException ;
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; who.username = account.getUserName ( ) ; return who ; }

Target:
public com.google.gerrit.server.data.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.data.AccountAttribute who = new com.google.gerrit.server.data.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; who.username = account.getUserName ( ) ; return who ; }
Source:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws java.sql.SQLException { try ( java.sql.Statement stmt = ( ( com.google.gwtorm.jdbc.JdbcSchema ) ( db ) ) . getConnection ( ) . createStatement ( ) ) { stmt.execute ( ( "CREATE INDEX patch_sets_byRevision" + " ON patch_sets (revision)" ) ) ; } }

Target:
protected void migrateData ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws java.sql.SQLException { try ( java.sql.Statement stmt = newStatement ( db ) ) { stmt.execute ( ( "CREATE INDEX patch_sets_byRevision" + " ON patch_sets (revision)" ) ) ; } }
Source:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.common.data.ContributorAgreement cla ) { }

Target:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , java.lang.String claName ) { }
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
public void listBranches ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }
Source:
public com.google.gerrit.server.config.PluginConfig getWithInheritance ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String pluginName ) throws com.google.gerrit.server.project.NoSuchProjectException { return get ( projectName , pluginName ) . withInheritance ( projectStateFactory ) ; }

Target:
public com.google.gerrit.server.config.PluginConfig getFromProjectConfigWithInheritance ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String pluginName ) throws com.google.gerrit.server.project.NoSuchProjectException { return getFromProjectConfig ( projectName , pluginName ) . withInheritance ( projectStateFactory ) ; }
Source:
public abstract boolean yesno ( java.lang.String fmt , java.lang.Object ... args ) ;

Target:
public abstract boolean yesno ( java.lang.Boolean def , java.lang.String fmt , java.lang.Object ... args ) ;
Source:
private java.lang.String createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , owner.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , owner.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
com.google.gerrit.server.account.externalids.ExternalId get ( com.google.gerrit.server.account.externalids.ExternalId.Key key ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdNotes.loadReadOnly ( repo ) . get ( key ) . orElse ( null ) ; } }

Target:
java.util.Optional < com.google.gerrit.server.account.externalids.ExternalId > get ( com.google.gerrit.server.account.externalids.ExternalId.Key key ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdNotes.loadReadOnly ( repo ) . get ( key ) ; } }
Source:
private static boolean isApproved ( com.google.gerrit.client.changes.ChangeInfo.LabelInfo label , com.google.gerrit.client.changes.ChangeInfo.ApprovalInfo ai ) { return ( ( label.approved ( ) ) != null ) && ( ( label.approved ( ) . _accountId ( ) ) == ( ai._accountId ( ) ) ) ; }

Target:
private static boolean isApproved ( com.google.gerrit.client.info.ChangeInfo.LabelInfo label , com.google.gerrit.client.info.ChangeInfo.ApprovalInfo ai ) { return ( ( label.approved ( ) ) != null ) && ( ( label.approved ( ) . _accountId ( ) ) == ( ai._accountId ( ) ) ) ; }
Source:
private final native void setIgnoreWhitespaceRaw ( java.lang.String i ) ;

Target:
public final native void lineWrapping ( java.lang.Boolean w ) ;
Source:
private void renderSubmitType ( java.lang.String action ) { try { com.google.gerrit.reviewdb.client.Project.SubmitType type = Project.SubmitType.valueOf ( action ) ; submitActionText.setInnerText ( com.google.gerrit.client.admin.Util.toLongString ( type ) ) ; } catch ( java.lang.IllegalArgumentException e ) { submitActionText.setInnerText ( action ) ; } }

Target:
private void renderSubmitType ( java.lang.String action ) { try { com.google.gerrit.extensions.common.SubmitType type = com.google.gerrit.extensions.common.SubmitType.valueOf ( action ) ; submitActionText.setInnerText ( com.google.gerrit.client.admin.Util.toLongString ( type ) ) ; } catch ( java.lang.IllegalArgumentException e ) { submitActionText.setInnerText ( action ) ; } }
Source:
public void subsetOfBranchesVisibleNotIncludingHead ( ) throws java.lang.Exception { deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "refs/changes/02/2/1" , "refs/heads/branch" ) ; }

Target:
public void subsetOfBranchesVisibleIncludingHead ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/heads/master" ) ; }
Source:
public boolean accept ( java.io.File pathname ) { java.lang.String n = pathname.getName ( ) ; return ( ! ( n.startsWith ( ".last_" ) ) ) && ( ! ( n.startsWith ( ".next_" ) ) ) ; }

Target:
public boolean accept ( java.nio.file.Path entry ) throws java.io.IOException { java.lang.String n = entry.getFileName ( ) . toString ( ) ; return ( ! ( n.startsWith ( ".last_" ) ) ) && ( ! ( n.startsWith ( ".next_" ) ) ) ; }
Source:
private static com.google.gerrit.reviewdb.ApprovalCategoryValue value ( final com.google.gerrit.reviewdb.ApprovalCategory cat , final int value , final java.lang.String name ) { return new com.google.gerrit.reviewdb.ApprovalCategoryValue ( new com.google.gerrit.reviewdb.ApprovalCategoryValue.Id ( cat.getId ( ) , ( ( short ) ( value ) ) ) , name ) ; }

Target:
private static com.google.gerrit.reviewdb.client.ApprovalCategoryValue value ( final com.google.gerrit.reviewdb.client.ApprovalCategory cat , final int value , final java.lang.String name ) { return new com.google.gerrit.reviewdb.client.ApprovalCategoryValue ( new com.google.gerrit.reviewdb.client.ApprovalCategoryValue.Id ( cat.getId ( ) , ( ( short ) ( value ) ) ) , name ) ; }
Source:
public com.google.gerrit.lucene.LuceneChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.lucene.LuceneChangeIndex ( cfg , sitePaths , fillArgs , readOnly ) ; }

Target:
public com.google.gerrit.lucene.LuceneChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , @ com.google.gerrit.server.index.IndexExecutor com.google.common.util.concurrent.ListeningScheduledExecutorService executor , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.lucene.LuceneChangeIndex ( cfg , sitePaths , executor , fillArgs , readOnly ) ; }
Source:
public void testStringASCII ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.add ( "hi" ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEquals ( new byte [ ] { 'h' , 'i' } , ib ) ; }

Target:
public void testStringASCII ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.add ( "hi" ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEqualToBuilderResult ( new byte [ ] { 'h' , 'i' } , ib ) ; }
Source:
private void updateSkipNum ( ) { numSkipLines -= com.google.gerrit.client.diff.SkipBar.NUM_ROWS_TO_EXPAND ; skipNum.setText ( java.lang.String.valueOf ( numSkipLines ) ) ; checkAndUpdateArrows ( ) ; }

Target:
private void updateSkipNum ( ) { numSkipLines -= com.google.gerrit.client.diff.SkipBar.NUM_ROWS_TO_EXPAND ; skipNum.setText ( PatchUtil.M.patchSkipRegion ( java.lang.Integer.toString ( numSkipLines ) ) ) ; checkAndUpdateArrows ( ) ; }
Source:
public void setIntHeader ( java.lang.String name , int value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addIntHeader ( java.lang.String name , int value ) { headers.put ( name , java.lang.Integer.toString ( value ) ) ; }
Source:
private PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { return ( side == ( com.google.gerrit.client.diff.SideBySide2.DisplaySide.A ) ) && ( ( base ) != null ) ? base : revision ; }

Target:
private PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ? base : revision ; }
Source:
protected void onClick ( final com.google.gwt.user.client.Event event ) { movePointerTo ( id ) ; super . onClick ( event ) ; }

Target:
public void go ( ) { movePointerTo ( id ) ; super . go ( ) ; }
Source:
public T get ( ) { return com.google.gerrit.sshd.SshScope.getContext ( ) . get ( key , creator ) ; }

Target:
public T get ( ) { return com.google.gerrit.sshd.SshScope.requireContext ( ) . get ( key , creator ) ; }
Source:
public void setContext ( final short s ) { context = s ; }

Target:
public void setContext ( final short context ) { assert ( 0 <= context ) || ( context == ( com.google.gerrit.reviewdb.AccountDiffPreference.WHOLE_FILE_CONTEXT ) ) ; this . context = context ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { topic.onEdit ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { if ( topic.canEdit ( ) ) { topic.onEdit ( ) ; } } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; injector = com.google.inject.Guice.createInjector ( new com.googlesource.gerrit.plugins.hooks.workflow.ActionControllerTest.TestModule ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; injector = com.google.inject.Guice.createInjector ( new com.googlesource.gerrit.plugins.hooks.workflow.ActionControllerTest.TestModule ( ) ) ; setupCommonMocks ( ) ; }
Source:
protected abstract java.util.concurrent.Callable < ? > deleteTask ( com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.SubmittedTogetherInfo info = apply ( resource , options ) ; if ( options.isEmpty ( ) ) { return info.changes ; } return info ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.ChangeResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.SubmittedTogetherInfo info = applyInfo ( resource ) ; if ( options.isEmpty ( ) ) { return info.changes ; } return info ; }
Source:
public void start ( ) { final org.eclipse.jgit.storage.file.WindowCacheConfig c = new org.eclipse.jgit.storage.file.WindowCacheConfig ( ) ; c.fromConfig ( cfg ) ; org.eclipse.jgit.storage.file.WindowCache.reconfigure ( c ) ; }

Target:
protected void configure ( org.eclipse.jgit.transport.OpenSshConfig.Host hc , com.jcraft.jsch.Session session ) { }