<commit_before><m-dropdownMenu
  triggerClass="m-composerTitleBar__menuButton"
  menuClass="m-composerTitleBar__menu"
  [anchorPosition]="anchorPosition"
  [menu]="mainMenu"
  [hidden]="isPosting$ | async"
  hasSubmenu="true"
  data-cy="meatball-menu-trigger"
>
  <!-- ------------------------------------ -->
  <!-- MAIN MENU TRIGGER -->
  <!-- ------------------------------------ -->
  <m-icon *ngIf="!displayAsButton" iconId="more_vert"></m-icon>
  <m-button *ngIf="displayAsButton" overlay="true" size="xsmall" iconOnly="true"
    ><i class="material-icons">more_vert</i></m-button
  >
</m-dropdownMenu>

<!-- ------------------------------------ -->
<!-- MAIN MENU ITEMS -->
<!-- ------------------------------------ -->
<ng-template #mainMenu>
  <ul data-cy="meatball-menu">
    <!-- VISIBILITY SUBMENU TRIGGER -->
    <m-dropdownMenu
      [menu]="visibilitySubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-visibility"
    >
      <m-dropdownMenu__item *ngIf="canChangeVisibility" hasSubmenu="true"
        ><span>Visibility</span>
      </m-dropdownMenu__item>
    </m-dropdownMenu>

    <!-- LICENSE SUBMENU TRIGGER -->
    <m-dropdownMenu
      [menu]="licenseSubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-visibility"
    >
      <m-dropdownMenu__item hasSubmenu="true"
        ><span>License</span>
      </m-dropdownMenu__item>
    </m-dropdownMenu>

    <!-- PERMAWEB SUBMENU TRIGGER -->
    <m-dropdownMenu
      *ngIf="shouldShowPermawebOption()"
      [menu]="permawebSubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-permaweb"<commit_msg>Fix duplicated data attribute tripping over E2E tests<commit_after><m-dropdownMenu
  triggerClass="m-composerTitleBar__menuButton"
  menuClass="m-composerTitleBar__menu"
  [anchorPosition]="anchorPosition"
  [menu]="mainMenu"
  [hidden]="isPosting$ | async"
  hasSubmenu="true"
  data-cy="meatball-menu-trigger"
>
  <!-- ------------------------------------ -->
  <!-- MAIN MENU TRIGGER -->
  <!-- ------------------------------------ -->
  <m-icon *ngIf="!displayAsButton" iconId="more_vert"></m-icon>
  <m-button *ngIf="displayAsButton" overlay="true" size="xsmall" iconOnly="true"
    ><i class="material-icons">more_vert</i></m-button
  >
</m-dropdownMenu>

<!-- ------------------------------------ -->
<!-- MAIN MENU ITEMS -->
<!-- ------------------------------------ -->
<ng-template #mainMenu>
  <ul data-cy="meatball-menu">
    <!-- VISIBILITY SUBMENU TRIGGER -->
    <m-dropdownMenu
      [menu]="visibilitySubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-visibility"
    >
      <m-dropdownMenu__item *ngIf="canChangeVisibility" hasSubmenu="true"
        ><span>Visibility</span>
      </m-dropdownMenu__item>
    </m-dropdownMenu>

    <!-- LICENSE SUBMENU TRIGGER -->
    <m-dropdownMenu
      [menu]="licenseSubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-license"
    >
      <m-dropdownMenu__item hasSubmenu="true"
        ><span>License</span>
      </m-dropdownMenu__item>
    </m-dropdownMenu>

    <!-- PERMAWEB SUBMENU TRIGGER -->
    <m-dropdownMenu
      *ngIf="shouldShowPermawebOption()"
      [menu]="permawebSubmenu"
      [anchorPosition]="submenuAnchorPosition"
      data-cy="meatball-menu-permaweb"
{'fraction_non_alphanumeric': 0.2433956663698427, 'fraction_numerical': 0.00029682398337785694, 'mean_word_length': 2.4317718940936865, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '2146786', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1070, 'n_words': 132}