auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getAuthorizationUrl ( com.googlesource.gerrit.plugins.oauth.OAuthConfig config ) { return java.lang.String.format ( com.googlesource.gerrit.plugins.oauth.GitLabApi.AUTHORIZE_URL , rootUrl , config.getApiKey ( ) , config.getCallback ( ) ) ; }

Target:
public java.lang.String getAuthorizationUrl ( org.scribe.model.OAuthConfig config ) { return java.lang.String.format ( com.googlesource.gerrit.plugins.oauth.GitLabApi.AUTHORIZE_URL , rootUrl , config.getApiKey ( ) , config.getCallback ( ) ) ; }
Source:
private static org.eclipse.jgit.diff.RawTextComparator comparatorFor ( com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace ws ) { switch ( ws ) { case IGNORE_ALL_SPACE : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_ALL ; case IGNORE_SPACE_AT_EOL : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_TRAILING ; case IGNORE_SPACE_CHANGE : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_CHANGE ; case IGNORE_NONE : default : return org.eclipse.jgit.diff.RawTextComparator.DEFAULT ; } }

Target:
private static org.eclipse.jgit.diff.RawTextComparator comparatorFor ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { switch ( ws ) { case IGNORE_ALL : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_ALL ; case IGNORE_TRAILING : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_TRAILING ; case IGNORE_LEADING_AND_TRAILING : return org.eclipse.jgit.diff.RawTextComparator.WS_IGNORE_CHANGE ; case IGNORE_NONE : default : return org.eclipse.jgit.diff.RawTextComparator.DEFAULT ; } }
Source:
public void setChangedLines ( int insertions , int deletions ) { changedLines = com.google.common.base.Optional.of ( new com.google.gerrit.server.query.change.ChangeData.ChangedLines ( insertions , deletions ) ) ; }

Target:
public void setChangedLines ( int insertions , int deletions ) { changedLines = java.util.Optional.of ( new com.google.gerrit.server.query.change.ChangeData.ChangedLines ( insertions , deletions ) ) ; }
Source:
public com.google.gerrit.reviewdb.Account get ( final com.google.gerrit.reviewdb.Account.Id id ) { want ( id ) ; return out.get ( id ) ; }

Target:
public com.google.gerrit.reviewdb.Account get ( final com.google.gerrit.reviewdb.Account.Id id ) { if ( ! ( out.containsKey ( id ) ) ) { wants.add ( id ) ; fetchWants ( ) ; } return out.get ( id ) ; }
Source:
public java.util.List < org.apache.lucene.document.Document > call ( ) throws com.google.gwtorm.server.OrmException { return doRead ( ) ; }

Target:
public java.util.List < org.apache.lucene.document.Document > call ( ) throws java.io.IOException { return doRead ( fields ) ; }
Source:
public void onFailure ( java.lang.Throwable e ) { com.google.gerrit.client.rpc.GerritCallback.showFailure ( e ) ; }

Target:
public void onFailure ( java.lang.Throwable e ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( e ) ) { content = null ; modeCallback.onSuccess ( null ) ; } else { com.google.gerrit.client.rpc.GerritCallback.showFailure ( e ) ; } }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( rsrc , new com.google.gerrit.server.group.Index.Input ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index group" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( rsrc , new com.google.gerrit.server.group.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index group" , e ) ; } }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > putGpgKeys ( java.util.List < java.lang.String > add ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > putGpgKeys ( java.util.List < java.lang.String > add , java.util.List < java.lang.String > remove ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
private void forAll ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Tester tester ) throws java.lang.Exception { for ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder : com.google.common.collect.ImmutableList.of ( singly ( ) , batch ( ) ) ) { tester.test ( adder ) ; } }

Target:
public void addReviewerToReviewableChangeInNoteDbSingly ( ) throws java.lang.Exception { addReviewerToReviewableChangeInNoteDb ( singly ( ) ) ; }
Source:
static java.lang.String getDefaultTemplateMsgWithBursts ( java.lang.String rateLimitTypeName ) { return ( ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 0 ] ) + rateLimitTypeName ) + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 2 ] ) ; }

Target:
private static java.lang.String getDefaultTemplateMsg ( java.lang.String rateLimitTypeName ) { return ( ( ( "Exceeded rate limit of " + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.RATE_LIMIT_TOKEN ) ) + " " ) + rateLimitTypeName ) + " requests/hour" ; }
Source:
void onOpenForm ( ) { com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( error , false ) ; addReviewerIcon.setVisible ( false ) ; suggestBox.setFocus ( true ) ; }

Target:
void onOpenForm ( ) { com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( error , false ) ; addReviewerIcon.setVisible ( false ) ; suggestBox.setServeSuggestionsOnOracle ( true ) ; suggestBox.setFocus ( true ) ; }
Source:
protected void configureServlets ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.httpd.AllRequestFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.httpd.AllRequestFilter.FilterProxy.class ) ; }

Target:
protected void configureServlets ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.google.gerrit.httpd.AllRequestFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.httpd.AllRequestFilter.FilterProxy.class ) ; bind ( com.google.gerrit.server.plugins.StopPluginListener.class ) . annotatedWith ( com.google.inject.internal.UniqueAnnotations.create ( ) ) . to ( com.google.gerrit.httpd.AllRequestFilter.FilterProxy.class ) ; }
Source:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInput ( ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = createRobotCommentInputWithMandatoryFields ( ) ; in.url = "http://www.happy-robot.com" ; in.properties = new java.util.HashMap < > ( ) ; in.properties.put ( "key1" , "value1" ) ; in.properties.put ( "key2" , "value2" ) ; return in ; }

Target:
private com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput createRobotCommentInput ( com.google.gerrit.extensions.common.FixSuggestionInfo ... fixSuggestionInfos ) { com.google.gerrit.extensions.api.changes.ReviewInput.RobotCommentInput in = createRobotCommentInputWithMandatoryFields ( ) ; in.url = "http://www.happy-robot.com" ; in.properties = new java.util.HashMap < > ( ) ; in.properties.put ( "key1" , "value1" ) ; in.properties.put ( "key2" , "value2" ) ; in.fixSuggestions = java.util.Arrays.asList ( fixSuggestionInfos ) ; return in ; }
Source:
boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return canPerform ( Permission.SUBMIT , isChangeOwner ) ; }

Target:
boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT , isChangeOwner ) ) && ( isProjectStatePermittingWrite ( ) ) ; }
Source:
public static org.eclipse.jgit.lib.Config submitWholeTopicEnabled ( ) { return submitWholeTopicEnabledConfig ( ) ; }

Target:
public static org.eclipse.jgit.lib.Config mergeIfNecessary ( ) { return submitByMergeIfNecessary ( ) ; }
Source:
public void setText ( final java.lang.String t ) { text.setText ( t ) ; }

Target:
public com.google.gerrit.client.ErrorDialog setText ( final java.lang.String t ) { text.setText ( t ) ; return this ; }
Source:
void onReviewMode ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.REVIEW ; refreshFileTable ( ) ; editMode.setVisible ( true ) ; addFile.setVisible ( false ) ; reviewMode.setVisible ( false ) ; }

Target:
void onReviewMode ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { fileTableMode = FileTable.Mode.REVIEW ; refreshFileTable ( ) ; editMode.setVisible ( true ) ; addFile.setVisible ( false ) ; deleteFile.setVisible ( false ) ; reviewMode.setVisible ( false ) ; }
Source:
com.google.gerrit.client.diff.Scrollbar getScrollbar ( ) { return scrollbar ; }

Target:
void reset ( ) { lineMapper.reset ( ) ; for ( net.codemirror.lib.TextMarker m : markers ) { m.clear ( ) ; } for ( java.lang.Runnable r : undo ) { r.run ( ) ; } }
Source:
private java.lang.String getGerritUrl ( ) { if ( ( server.getCanonicalURL ( ) ) != null ) { return server.getCanonicalURL ( ) ; } return myUrl ; }

Target:
private java.lang.String getGerritUrl ( ) { if ( ( canonicalWebUrl ) != null ) { return canonicalWebUrl ; } return myUrl ; }
Source:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class ) ; }

Target:
public void createBranchByProjectOwnerCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockCreateReference ( ) ; setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { gerritConfig = new org.eclipse.jgit.storage.file.FileBasedConfig ( sitePaths.gerrit_config.toFile ( ) , org.eclipse.jgit.util.FS.detect ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) . isEqualTo ( NoteDbMode.OFF ) ; gerritConfig = new org.eclipse.jgit.storage.file.FileBasedConfig ( sitePaths.gerrit_config.toFile ( ) , org.eclipse.jgit.util.FS.detect ( ) ) ; }
Source:
public void run ( ) { if ( ! ( session.isOpen ( ) ) ) { com.googlesource.gerrit.plugins.rabbitmq.message.MessagePublisher.LOGGER.info ( "#start: try to reconnect" ) ; session.connect ( ) ; } }

Target:
public void run ( ) { if ( ! ( isConnected ( ) ) ) { com.googlesource.gerrit.plugins.rabbitmq.message.MessagePublisher.LOGGER.info ( "#start: try to reconnect" ) ; session.connect ( ) ; } }
Source:
public final void setOwnerUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { owner_id ( com.google.gwt.http.client.URL.encodePathSegment ( uuid.get ( ) ) ) ; }

Target:
public final void setOwnerUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { owner_id ( com.google.gwt.http.client.URL.encodeQueryString ( uuid.get ( ) ) ) ; }
Source:
private void initEditor ( java.lang.String content ) { cm = net.codemirror.lib.CodeMirror.create ( editor , getConfig ( ) ) ; cm.setValue ( content ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { cm.setOption ( "mode" , mode ) ; }
Source:
protected static org.eclipse.jgit.lib.Config submitByRebaseConifg ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "change" , null , "submitWholeTopic" , true ) ; cfg.setEnum ( "project" , null , "submitType" , SubmitType.REBASE_IF_NECESSARY ) ; return cfg ; }

Target:
protected static org.eclipse.jgit.lib.Config submitByRebaseIfNecessaryConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "change" , null , "submitWholeTopic" , true ) ; cfg.setEnum ( "project" , null , "submitType" , SubmitType.REBASE_IF_NECESSARY ) ; return cfg ; }
Source:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.AbstractLuceneIndex.setReady ( sitePaths , name , schema.getVersion ( ) , ready ) ; }

Target:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.index.IndexUtils.setReady ( sitePaths , name , schema.getVersion ( ) , ready ) ; }
Source:
void changeShowSiteHeader ( boolean show , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > gerritCallback ) ;

Target:
void changePreferences ( com.google.gerrit.client.reviewdb.AccountGeneralPreferences pref , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > gerritCallback ) ;
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.sidePanel.adjustGutters ( cmB ) ; }

Target:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.overview.adjustGutters ( cmB ) ; }
Source:
protected void add ( com.google.gerrit.server.mail.RecipientType type , com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list ) { for ( com.google.gerrit.reviewdb.client.Account.Id user : list.accounts ) { add ( type , user ) ; } for ( com.google.gerrit.server.mail.Address addr : list.emails ) { add ( type , addr ) ; } }

Target:
protected void add ( com.google.gerrit.extensions.api.changes.RecipientType type , com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list ) { for ( com.google.gerrit.reviewdb.client.Account.Id user : list.accounts ) { add ( type , user ) ; } for ( com.google.gerrit.server.mail.Address addr : list.emails ) { add ( type , addr ) ; } }
Source:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource rsrc ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( org.eclipse.jgit.lib.Repository git = gitMgr.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.PreferencesConfig.readDefaultGeneralPreferences ( git ) ; } }

Target:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource rsrc ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( org.eclipse.jgit.lib.Repository git = gitMgr.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.Preferences.readDefaultGeneralPreferences ( git ) ; } }
Source:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) { com.google.common.base.Preconditions.checkNotNull ( project ) ; return projectJson.format ( project ) ; }

Target:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return projectJson.format ( project ) ; }
Source:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( ) throws com.google.gerrit.server.git.MergeException { return submitStrategyFactory.create ( destProject.getSubmitType ( ) , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch , destProject.isUseContentMerge ( ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.Project.SubmitType getSubmitType ( final com.google.gerrit.reviewdb.client.Change change , final com.google.gerrit.reviewdb.client.PatchSet ps ) { return destProject.getSubmitType ( ) ; }
Source:
public void run ( ) { cm.vim ( ) . handleKey ( "/" ) ; }

Target:
public void run ( ) { cm.execCommand ( "findNext" ) ; }
Source:
public void testParseBad ( ) throws java.io.IOException { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; new com.google.gerrit.server.git.DestinationList ( ) . parseLabel ( com.google.gerrit.server.git.DestinationListTest.LABEL , com.google.gerrit.server.git.DestinationListTest.L_BAD , sink ) ; }

Target:
public void testParseBad ( ) throws java.io.IOException { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; new com.google.gerrit.server.account.DestinationList ( ) . parseLabel ( com.google.gerrit.server.account.DestinationListTest.LABEL , com.google.gerrit.server.account.DestinationListTest.L_BAD , sink ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int start , int limit ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public java.lang.String apply ( java.lang.String in ) { return in ; }

Target:
public static com.google.gerrit.server.util.RegexListSearcher < java.lang.String > ofStrings ( java.lang.String re ) { return new com.google.gerrit.server.util.RegexListSearcher < > ( re , ( in ) -> in ) ; }
Source:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) . setAllEnabled ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) ; }

Target:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) . setFromEnv ( ) ; }
Source:
protected void configure ( ) { if ( ! ( groupsMigration.disableGroupReviewDb ( ) ) ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.audit.group.GroupAuditListener.class ) . to ( com.google.gerrit.server.group.DbGroupMemberAuditListener.class ) ; } }

Target:
protected void configure ( ) { if ( ! ( groupsMigration.disableGroupReviewDb ( ) ) ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.audit.group.GroupAuditListener.class ) . to ( com.google.gerrit.server.group.DbGroupAuditListener.class ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( createPathFilter ( ) ) ; serveRegex ( "^(/)$" , "^(/[^+].*)" ) . with ( com.google.gitiles.GitilesServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( createPathFilter ( ) ) ; filter ( "/*" ) . through ( new com.googlesource.gerrit.plugins.gitiles.LoginFilter ( userProvider , urls ) ) ; serveRegex ( "^(/)$" , "^(/[^+].*)" ) . with ( com.google.gitiles.GitilesServlet.class ) ; }
Source:
public Change.Id apply ( com.google.gerrit.server.query.change.ChangeData cd ) { return cd.getId ( ) ; }

Target:
public Change.Id apply ( java.lang.String refPart ) { return Change.Id.fromRefPart ( refPart ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { renderSubmitType ( result.asString ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { loadSubmitType ( status , canSubmit ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.notedb.ChangeNotes notes = notesFactory.create ( db , project , patchSetId.getParentKey ( ) ) . load ( ) ; return approvalsUtil.getSubmitter ( db , notes , patchSetId ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { com.google.gerrit.server.notedb.ChangeNotes notes = notesFactory.createChecked ( db , project , patchSetId.getParentKey ( ) ) . load ( ) ; return approvalsUtil.getSubmitter ( db , notes , patchSetId ) ; }
Source:
private void verifyComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) { com.google.common.base.Preconditions.checkArgument ( comment.getAuthor ( ) . equals ( accountId ) , ( "The author for the following comment does not match the author of" + " this ChangeDraftUpdate (%s): %s" ) , accountId , comment ) ; }

Target:
private void verifyComment ( com.google.gerrit.reviewdb.client.Comment comment ) { com.google.common.base.Preconditions.checkArgument ( comment.author.getId ( ) . equals ( accountId ) , ( "The author for the following comment does not match the author of" + " this ChangeDraftUpdate (%s): %s" ) , accountId , comment ) ; }
Source:
protected void loadNext ( ) { Util.LIST_SVC.allOpenNext ( pos , pageSize , new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.data.SingleListChangeInfo > ( ) { public void onSuccess ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; } } ) ; }

Target:
protected void loadNext ( ) { Util.LIST_SVC.allOpenNext ( pos , pageSize , loadCallback ( ) ) ; }
Source:
void addOption ( com.google.gerrit.common.changes.ListChangesOption o ) { json.addOption ( o ) ; }

Target:
void addOption ( com.google.gerrit.extensions.common.ListChangesOption o ) { json.addOption ( o ) ; }
Source:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision ) ; } }

Target:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision , publish , deleteRevision , deleteChange ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { event.getValue ( ) . setSubmitTypeRecord ( com.google.gerrit.common.data.SubmitTypeRecord.OK ( Project.SubmitType.valueOf ( result.asString ( ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { event.getValue ( ) . setSubmitTypeRecord ( com.google.gerrit.common.data.SubmitTypeRecord.OK ( com.google.gerrit.extensions.common.SubmitType.valueOf ( result.asString ( ) ) ) ) ; }
Source:
private void alias ( final java.lang.String from , final java.lang.String to ) { commands.put ( to , commands.get ( from ) ) ; }

Target:
public void setErrorStream ( final java.io.OutputStream err ) { this . err = err ; }
Source:
public com.google.gerrit.server.account.GroupControl controlFor ( com.google.gerrit.common.data.GroupDescription.Basic group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group ) ; }

Target:
public com.google.gerrit.server.account.GroupControl controlFor ( com.google.gerrit.common.data.GroupDescription.Basic group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group , groupBackend ) ; }
Source:
static com.google.gerrit.server.notedb.InsertedObject create ( int type , java.io.InputStream in ) throws java.io.IOException { return com.google.gerrit.server.notedb.InsertedObject.create ( type , com.google.protobuf.ByteString.readFrom ( in ) ) ; }

Target:
static com.google.gerrit.server.git.InsertedObject create ( int type , java.io.InputStream in ) throws java.io.IOException { return com.google.gerrit.server.git.InsertedObject.create ( type , com.google.protobuf.ByteString.readFrom ( in ) ) ; }
Source:
public org.apache.sshd.common.file.FileSystemView getNormalizedView ( ) { return null ; }

Target:
public org.apache.sshd.common.file.FileSystemView createFileSystemView ( org.apache.sshd.common.Session session ) throws java.io.IOException { return new org.apache.sshd.common.file.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( org.apache.sshd.common.file.SshFile baseDir , java.lang.String file ) { return null ; } @ java.lang.Override public org.apache.sshd.common.file.SshFile getFile ( java.lang.String file ) { return null ; } } ; }
Source:
public void signRequest ( com.googlesource.gerrit.plugins.oauth.Token accessToken , com.googlesource.gerrit.plugins.oauth.OAuthRequest request ) { request.addQuerystringParameter ( OAuthConstants.ACCESS_TOKEN , accessToken.getToken ( ) ) ; }

Target:
public void signRequest ( org.scribe.model.Token accessToken , org.scribe.model.OAuthRequest request ) { request.addQuerystringParameter ( OAuthConstants.ACCESS_TOKEN , accessToken.getToken ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.extensions.restapi.TopLevelResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.extensions.restapi.TopLevelResource > list ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return list.get ( ) ; }
Source:
public void submit ( java.lang.Iterable < com.google.gerrit.common.data.SubmitRecord > submitRecords ) { status = com.google.gerrit.reviewdb.client.PatchLineComment.Status.SUBMITTED ; this . submitRecords = com.google.common.collect.ImmutableList.copyOf ( submitRecords ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( this . submitRecords.isEmpty ( ) ) ) , "no submit records specified at submit time" ) ; }

Target:
public void merge ( java.lang.Iterable < com.google.gerrit.common.data.SubmitRecord > submitRecords ) { this . status = com.google.gerrit.reviewdb.client.PatchLineComment.Status.MERGED ; this . submitRecords = com.google.common.collect.ImmutableList.copyOf ( submitRecords ) ; com.google.common.base.Preconditions.checkArgument ( ( ! ( this . submitRecords.isEmpty ( ) ) ) , "no submit records specified at submit time" ) ; }
Source:
protected void configureCommands ( ) { command ( "print" ) . to ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; alias ( "say-hello" , com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }
Source:
private void fill ( com.google.gerrit.server.change.AccountInfo info , com.google.gerrit.reviewdb.client.Account account ) { info.name = account.getFullName ( ) ; if ( detailed ) { info._account_id = account.getId ( ) . get ( ) ; info.email = account.getPreferredEmail ( ) ; } }

Target:
public static com.google.gerrit.server.account.AccountInfo parse ( com.google.gerrit.reviewdb.client.Account a , boolean detailed ) { com.google.gerrit.server.account.AccountInfo ai = new com.google.gerrit.server.account.AccountInfo ( a.getId ( ) ) ; ai.fill ( a , detailed ) ; return ai ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initParent ( ) ; initRights ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( com.google.gerrit.client.admin.ProjectAccessScreen.uiBinder.createAndBindUi ( this ) ) ; driver = com.google.gwt.core.client.GWT.create ( com.google.gerrit.client.admin.ProjectAccessScreen.Driver.class ) ; accessEditor.setEditing ( false ) ; driver.initialize ( accessEditor ) ; }
Source:
protected void ccAllApprovals ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : getReviewers ( ) . values ( ) ) { add ( RecipientType.CC , id ) ; } } catch ( com.google.gwtorm.server.OrmException err ) { com.google.gerrit.server.mail.ChangeEmail.log.warn ( "Cannot CC users that reviewed updated change" , err ) ; } }

Target:
protected void ccAllApprovals ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : changeData.reviewers ( ) . values ( ) ) { add ( RecipientType.CC , id ) ; } } catch ( com.google.gwtorm.server.OrmException err ) { com.google.gerrit.server.mail.ChangeEmail.log.warn ( "Cannot CC users that reviewed updated change" , err ) ; } }
Source:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneIndexModule.SingleVersionListener.class ) ; }

Target:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneIndexModule.SingleVersionListener.class ) ; bind ( new com.google.inject.TypeLiteral < java.util.Map < java.lang.String , java.lang.Integer > > ( ) { } ) . annotatedWith ( com.google.inject.name.Names.named ( com.google.gerrit.lucene.LuceneIndexModule.SINGLE_VERSIONS ) ) . toInstance ( singleVersions ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; return modify ( edit , new com.google.gerrit.server.edit.tree.RenameFileModification ( editCommit , file , newFile ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSet lookupCurrentPatchSet ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gwtorm.server.OrmException { return patchSetUtil.current ( reviewDb.get ( ) , changeControl.getNotes ( ) ) ; }
Source:
private void toggleShowIntraline ( ) { prefs.intralineDifference ( ( ! ( prefs.intralineDifference ( ) ) ) ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; prefsAction.update ( ) ; }

Target:
private void toggleShowIntraline ( ) { prefs.intralineDifference ( ( ! ( java.lang.Boolean.valueOf ( prefs.intralineDifference ( ) ) ) ) ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; prefsAction.update ( ) ; }
Source:
Account.Id parse ( java.lang.String id ) { return Account.Id.parse ( id ) ; }

Target:
Account.Id parse ( java.lang.String id ) { return new com.google.gerrit.reviewdb.client.Account.Id ( java.lang.Integer.parseInt ( id ) ) ; }
Source:
public static java.sql.Timestamp roundToSecond ( java.sql.Timestamp t ) { return new java.sql.Timestamp ( ( ( ( t.getTime ( ) ) / 1000 ) * 1000 ) ) ; }

Target:
public static java.sql.Timestamp truncateToSecond ( java.sql.Timestamp t ) { return new java.sql.Timestamp ( ( ( ( t.getTime ( ) ) / 1000 ) * 1000 ) ) ; }
Source:
com.google.gerrit.server.project.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl r = new com.google.gerrit.server.project.ProjectControl ( uploadGroups , receiveGroups , permissionFilter , changeControlFactory , permissionBackend , who , state ) ; r.allSections = allSections ; return r ; }

Target:
com.google.gerrit.server.permissions.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.permissions.ProjectControl r = new com.google.gerrit.server.permissions.ProjectControl ( uploadGroups , receiveGroups , permissionFilter , changeControlFactory , permissionBackend , who , state ) ; r.allSections = allSections ; return r ; }
Source:
public synchronized javax.sql.DataSource get ( ) { return ds ; }

Target:
public synchronized javax.sql.DataSource get ( ) { if ( ( ds ) == null ) { ds = open ( site , cfg , ctx , dst ) ; } return ds ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( systemConfig , remotePeerProvider , dbProvider , 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 ( systemConfig , accountCache , remotePeerProvider , dbProvider , id ) ; }
Source:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.REPO_SIZE_CACHE , Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; }

Target:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.REPO_SIZE_CACHE , Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; bind ( com.googlesource.gerrit.plugins.quota.RepoSizeCache.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.class ) ; }
Source:
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 ) ; } }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) throws java.io.IOException { new com.google.gerrit.server.index.ChangeIndexer.DeleteTask ( id ) . call ( ) ; }
Source:
void createGroup ( java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.AccountGroup.Id > callback ) ;

Target:
void visibleGroups ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupList > callback ) ;
Source:
private static int deny ( com.google.gerrit.common.data.PermissionRule a ) { return a.getDeny ( ) ? 1 : 0 ; }

Target:
private static int action ( com.google.gerrit.common.data.PermissionRule a ) { switch ( a.getAction ( ) ) { case DENY : return 0 ; default : return 1 + ( a.getAction ( ) . ordinal ( ) ) ; } }
Source:
public static com.google.gerrit.client.rpc.RestApi self ( ) { return new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . view ( "self" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi self ( ) { return com.google.gerrit.client.account.AccountApi.accounts ( ) . view ( "self" ) ; }
Source:
void onShow ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }

Target:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; } }
Source:
org.parboiled.Rule Term ( ) { return Sequence ( Factor ( ) , ZeroOrMore ( AnyOf ( "*/" ) , Factor ( ) ) ) ; }

Target:
org.parboiled.Rule Term ( ) { return sequence ( Factor ( ) , zeroOrMore ( anyOf ( "*/" ) , Factor ( ) ) ) ; }
Source:
public void display ( final com.google.gerrit.reviewdb.client.Change chg , final com.google.gerrit.reviewdb.client.PatchSetInfo info , final com.google.gerrit.common.data.AccountInfoCache acc ) { infoBlock.display ( chg , acc ) ; messageBlock.display ( info.getMessage ( ) ) ; }

Target:
public void display ( com.google.gerrit.reviewdb.client.Change chg , java.lang.Boolean starred , com.google.gerrit.reviewdb.client.PatchSetInfo info , final com.google.gerrit.common.data.AccountInfoCache acc ) { infoBlock.display ( chg , acc ) ; messageBlock.display ( chg.getId ( ) , starred , info.getMessage ( ) ) ; }
Source:
private java.io.File configFile ( javax.servlet.http.HttpServletRequest req ) { return new java.io.File ( site_path , req.getPathInfo ( ) ) ; }

Target:
private java.io.File configFile ( javax.servlet.http.HttpServletRequest req ) { return new java.io.File ( site_path , ( ( req.getServletPath ( ) ) + ( req.getPathInfo ( ) ) ) ) ; }
Source:
public com.google.gerrit.extensions.common.GpgKeyInfo apply ( com.google.gerrit.gpg.server.GpgKey rsrc ) throws java.io.IOException { return com.google.gerrit.gpg.server.GpgKeys.toJson ( rsrc.getKeyRing ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.GpgKeyInfo apply ( com.google.gerrit.gpg.server.GpgKey rsrc ) throws java.io.IOException { try ( com.google.gerrit.gpg.PublicKeyStore store = storeProvider.get ( ) ) { return com.google.gerrit.gpg.server.GpgKeys.toJson ( rsrc.getKeyRing ( ) , checker , store ) ; } }
Source:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( new com.google.gerrit.reviewdb.client.Change.Id ( result._number ( ) ) ) ) ; hide ( ) ; }
Source:
public static com.google.gerrit.server.index.IndexConfig.Builder builder ( ) { return new com.google.gerrit.server.index.AutoValue_IndexConfig.Builder ( ) . maxLimit ( java.lang.Integer.MAX_VALUE ) . maxPages ( java.lang.Integer.MAX_VALUE ) . maxTerms ( com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_TERMS ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig.Builder builder ( ) { return new com.google.gerrit.server.index.AutoValue_IndexConfig.Builder ( ) . maxLimit ( java.lang.Integer.MAX_VALUE ) . maxPages ( java.lang.Integer.MAX_VALUE ) . maxTerms ( com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_TERMS ) . separateChangeSubIndexes ( false ) ; }
Source:
public boolean canRunReceivePack ( ) { return com.google.gerrit.common.CollectionsUtil.isAnyIncludedIn ( receiveGroups , getEffectiveUserGroups ( ) ) ; }

Target:
private java.util.List < com.google.gerrit.server.project.SectionMatcher > access ( ) { if ( ( allSections ) == null ) { allSections = state.getAllSections ( ) ; } return allSections ; }
Source:
protected void display ( com.google.gerrit.client.info.AccountInfo account ) { currentEmail = account.email ( ) ; nameTxt.setText ( account.name ( ) ) ; save.setEnabled ( false ) ; new com.google.gerrit.client.ui.OnEditEnabler ( save , nameTxt ) ; }

Target:
protected void display ( com.google.gerrit.client.info.AccountInfo account ) { currentEmail = account.email ( ) ; nameTxt.setText ( account.name ( ) ) ; save.setEnabled ( false ) ; onEditEnabler.updateOriginalValue ( nameTxt ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > query ( com.google.gerrit.extensions.api.changes.Changes.QueryParameter queryParameter ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ( java.lang.String query ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public static com.google.gerrit.common.data.PermissionRule blockLabel ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String labelName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.blockLabel ( project , labelName , ( - 1 ) , 1 , group , ref ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule blockLabel ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String labelName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.blockLabel ( project , labelName , ( - 1 ) , 1 , group , ref ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; }

Target:
public void preDisplay ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; }
Source:
public void copySettingsFrom ( final com.google.gerrit.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; submitType = update.submitType ; }

Target:
public void copySettingsFrom ( final com.google.gerrit.reviewdb.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; requireChangeID = update.requireChangeID ; submitType = update.submitType ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreRebaseEmptyPatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreRebaseEmptyPatchSet ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true , true , true ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewTag ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { tagTable.deleteChecked ( ) ; }
Source:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name ) throws java.lang.Exception { return createProjectWithPush ( name , null ) ; }

Target:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws java.lang.Exception { return createProjectWithPush ( name , parent , true , getSubmitType ( ) ) ; }
Source:
public void addGpgKey ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; info.id = id ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , info ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ) ; org.bouncycastle.openpgp.PGPPublicKey stored = getOnlyKeyFromStore ( key ) ; com.google.common.truth.Truth.assertThat ( stored.getFingerprint ( ) ) . isEqualTo ( key.getPublicKey ( ) . getFingerprint ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }

Target:
public void addGpgKey ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyMapContains ( key , addGpgKey ( key.getPublicKeyArmored ( ) ) ) ; assertKeys ( key ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }
Source:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { renderSkips ( context ) ; } } ) ; }

Target:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; diffTable.overview.refresh ( ) ; } } ) ; }
Source:
void downloadRequired ( ) { this . required = true ; download ( ) ; }

Target:
void downloadOptional ( ) { required = false ; download ( ) ; }
Source:
protected void onExit ( int rc ) { eventListenerRegistration.remove ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
protected void onExit ( int rc ) { removeEventListenerRegistration ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }
Source:
protected abstract T updateProjectConfig ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract T updateProjectConfig ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public void remove ( byte [ ] fingerprint ) { com.google.gerrit.server.git.gpg.Fingerprint fp = new com.google.gerrit.server.git.gpg.Fingerprint ( fingerprint ) ; toAdd.remove ( fp ) ; toRemove.add ( fp ) ; }

Target:
public void remove ( byte [ ] fingerprint ) { com.google.gerrit.gpg.Fingerprint fp = new com.google.gerrit.gpg.Fingerprint ( fingerprint ) ; toAdd.remove ( fp ) ; toRemove.add ( fp ) ; }
Source:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , diffTable.style.padding ( ) , ( nextLine - 1 ) , cnt , Unit.EM , null ) ; }

Target:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , DiffTable.style.padding ( ) , ( nextLine - 1 ) , cnt , Unit.EM , null ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( name ) ; }

Target:
public com.google.gerrit.reviewdb.client.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.LabelId ( name ) ; }
Source:
public void noCache ( ) { httpResponse.setHeader ( "Cache-Control" , "no-cache" ) ; httpResponse.setDateHeader ( "Expires" , java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void noCache ( ) { httpResponse.setHeader ( "Expires" , "Fri, 01 Jan 1980 00:00:00 GMT" ) ; httpResponse.setHeader ( "Pragma" , "no-cache" ) ; httpResponse.setHeader ( "Cache-Control" , "no-cache, must-revalidate" ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm max ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) return t.max ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( java.lang.Math.max ( this . val , t.intValue ( ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm max ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) return t.max ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( java.lang.Math.max ( this . val , t.intValue ( ) ) ) ; }
Source:
protected com.google.gerrit.server.index.QueryOptions createOptions ( com.google.gerrit.server.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( indexConfig , start , limit , requestedFields ) ; }

Target:
protected com.google.gerrit.index.QueryOptions createOptions ( com.google.gerrit.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( indexConfig , start , limit , requestedFields ) ; }