<commit_before><?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.comment.actions">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
    <action id="view_comments" link="/incl/tabs/document_comments.xhtml"
      enabled="true" order="80" label="action.view.comments">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>commentable</filter-id>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_anonymous</filter-id>
    </action>

    <!--  add the comment creation button -->
    <action id="newComment" link="#{commentManagerActions.addComment}"
      enabled="true" label="command.add">
      <category>COMMENT_ACTIONS</category>
    </action>

    <action id="cancelComment" link="#{commentManagerActions.cancelComment}"
      enabled="true" label="command.cancel">
      <category>COMMENT_ACTIONS</category>
    </action>
  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">
    <filter id="comment">
      <rule grant="true">
        <type>Comment</type>
      </rule>
    </filter>

    <filter id="commentable">
      <rule grant="true">
        <facet>Commentable</facet>
      </rule>
    </filter>

    <filter id="canAddComment">
      <rule grant="true">
        <permission>AddChildren</permission>
      </rule>
    </filter>
  </extension>

</component>
<commit_msg>NXP-7555: Switch order between cancel and add button<commit_after><?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.comment.actions">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
    <action id="view_comments" link="/incl/tabs/document_comments.xhtml"
      enabled="true" order="80" label="action.view.comments">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>commentable</filter-id>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_anonymous</filter-id>
    </action>

    <!--  add the comment creation button -->
    <action id="newComment" link="#{commentManagerActions.addComment}"
      enabled="true" label="command.add" order="10">
      <category>COMMENT_ACTIONS</category>
    </action>

    <action id="cancelComment" link="#{commentManagerActions.cancelComment}"
      enabled="true" label="command.cancel" order="20">
      <category>COMMENT_ACTIONS</category>
    </action>
  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">
    <filter id="comment">
      <rule grant="true">
        <type>Comment</type>
      </rule>
    </filter>

    <filter id="commentable">
      <rule grant="true">
        <facet>Commentable</facet>
      </rule>
    </filter>

    <filter id="canAddComment">
      <rule grant="true">
        <permission>AddChildren</permission>
      </rule>
    </filter>
  </extension>

</component>

{'fraction_non_alphanumeric': 0.1646655231560892, 'fraction_numerical': 0.0061749571183533445, 'mean_word_length': 3.549141965678627, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 2, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4159877', 'n_tokens_mistral': 922, 'n_tokens_neox': 898, 'n_words': 139}