<commit_before><div class="m-boost-rotator-tools">
  <span
    i1n="@@BOOST_ROTATOR__SHOWING_BOOSTS"
    *ngIf="router.url == '/newsfeed/boost'"
  >
    Showing boosts
  </span>
  <div class="m-layout--spacer"></div>
  <ul class="m-boost-rotator-tabs">
    <li
      routerLink="/newsfeed/boost"
      *ngIf="router.url !== '/newsfeed/boost'"
      class="m-boostRotator__tab--boost-feed"
    >
      <a i18n="@@M__COMMON__BOOSTFEED">Boostfeed</a>
    </li>
    <ng-container *ngIf="boosts.length > 0; else noBoosts">
      <li (click)="prev()">
        <i class="material-icons mdl-color-text--blue-grey-400">chevron_left</i>
      </li>
      <li (click)="next()">
        <i class="material-icons mdl-color-text--blue-grey-400"
          >chevron_right</i
        >
      </li>
    </ng-container>
    <ng-template #noBoosts>
      <li>
        <i style="height: 32px;display: block;"></i>
      </li>
    </ng-template>
    <li class="m-boost-rotator-tabs--settings">
      <m-newsfeed--dropdown [showBoost]="true"></m-newsfeed--dropdown>
    </li>
  </ul>
</div>

<div
  *ngIf="!disabled"
  #rotatorEl
  [class.m-newsfeed__boostRotator]="useNewNavigation"
  [style.min-height]="height"
>
  <ng-container *ngFor="let entity of boosts; let i = index">
    <ng-container *mIfFeature="'navigation'; else legacyActivity">
      <m-activity
        @fastFade
        [entity]="entity"
        [displayOptions]="{
          showOnlyCommentsInput: false,
          showComments: false,
          fixedHeight: true,
          fixedHeightContainer: true
        }"
        [allowAutoplayOnScroll]="true"
        [attr.data-minds-activity-guid]="entity.guid"
        [slot]="i + 1"
        [canRecordAnalytics]="false"
        *ngIf="i === currentPosition"
      ></m-activity>
    </ng-container>
    <ng-template #legacyActivity>
      <minds-activity
        [object]="entity"
        [boostToggle]="true"
        [class]="
          'mdl-card m-border item m-boost-rotator-item m-boost-rotator-item-' +
          i
        "
        visible="true"<commit_msg>(fix): do not shows boosts if list is empty - closes #3007<commit_after><div class="m-boost-rotator-tools">
  <span
    i1n="@@BOOST_ROTATOR__SHOWING_BOOSTS"
    *ngIf="router.url == '/newsfeed/boost'"
  >
    Showing boosts
  </span>
  <div class="m-layout--spacer"></div>
  <ul class="m-boost-rotator-tabs">
    <li
      routerLink="/newsfeed/boost"
      *ngIf="router.url !== '/newsfeed/boost'"
      class="m-boostRotator__tab--boost-feed"
    >
      <a i18n="@@M__COMMON__BOOSTFEED">Boostfeed</a>
    </li>
    <ng-container *ngIf="boosts.length > 0; else noBoosts">
      <li (click)="prev()">
        <i class="material-icons mdl-color-text--blue-grey-400">chevron_left</i>
      </li>
      <li (click)="next()">
        <i class="material-icons mdl-color-text--blue-grey-400"
          >chevron_right</i
        >
      </li>
    </ng-container>
    <ng-template #noBoosts>
      <li>
        <i style="height: 32px;display: block;"></i>
      </li>
    </ng-template>
    <li class="m-boost-rotator-tabs--settings">
      <m-newsfeed--dropdown [showBoost]="true"></m-newsfeed--dropdown>
    </li>
  </ul>
</div>

<div
  *ngIf="!disabled && boosts.length"
  #rotatorEl
  [class.m-newsfeed__boostRotator]="useNewNavigation"
  [style.min-height]="height"
>
  <ng-container *ngFor="let entity of boosts; let i = index">
    <ng-container *mIfFeature="'navigation'; else legacyActivity">
      <m-activity
        @fastFade
        [entity]="entity"
        [displayOptions]="{
          showOnlyCommentsInput: false,
          showComments: false,
          fixedHeight: true,
          fixedHeightContainer: true
        }"
        [allowAutoplayOnScroll]="true"
        [attr.data-minds-activity-guid]="entity.guid"
        [slot]="i + 1"
        [canRecordAnalytics]="false"
        *ngIf="i === currentPosition"
      ></m-activity>
    </ng-container>
    <ng-template #legacyActivity>
      <minds-activity
        [object]="entity"
        [boostToggle]="true"
        [class]="
          'mdl-card m-border item m-boost-rotator-item m-boost-rotator-item-' +
          i
        "
        visible="true"
{'fraction_non_alphanumeric': 0.17385057471264367, 'fraction_numerical': 0.007183908045977011, 'mean_word_length': 2.469269102990033, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '2404901', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1452, 'n_words': 224}