<commit_before><div [hidden]="group || error" style="width:100%; text-align:center; ">
  <div
    class="mdl-spinner mdl-js-spinner is-active"
    [mdl]
    style="margin: 16px auto;"
  ></div>
</div>

<div class="m-error-splash" *ngIf="error && !group">
  <img [src]="cdnAssetsUrl + 'assets/logos/logo.svg'" />
  <h3 class="mdl-color-text--red-300">{{error}}</h3>
  <span class="mdl-color-text--blue-grey-300">Check the url is correct</span>
  <router-outlet></router-outlet>
</div>

<m-explicit-overlay
  [entity]="group"
  message="This group contains content that is NSFW"
  i18n-message="@@GROUPS__THIS_GROUP_CONTAINS_NSFW"
></m-explicit-overlay>

<div
  class="m-group__grid"
  [class.m-pageLayout__container]="hasNewNavigation"
  *ngIf="group && (group['is:member'] || group.membership == 2)"
>
  <!-- Sidebar -->
  <div
    class="m-groupGrid__left"
    [m-pageLayout__pane]="showRight ? 'main' : null"
    *mIfBrowser
  >
    <m-videochat></m-videochat>

    <header
      *ngIf="group && (group['is:member'] || group.membership == 2)"
      [ngClass]="[ 'm-group--' + filter + '-view' ]"
      [class.m-group--view-mode]="!editing"
    >
      <minds-banner
        [object]="group"
        [editMode]="editing"
        [top]="group.banner_position"
        [done]="editDone"
        (added)="add_banner($event)"
      >
      </minds-banner>
    </header>

    <div class="m-group__infoWrapper">
      <div class="m-group__info m-border">
        <minds-avatar
          [object]="group"
          [editMode]="editing"
          (added)="upload_avatar($event)"
        >
        </minds-avatar>

        <minds-groups-settings-button
          [(group)]="group"
          class="m-button"
          (change)="onOptionsChange($event)"
        >
        </minds-groups-settings-button>

        <div class="m-groupInfo__member-previews">
          <m-group--member-previews [group]="group"></m-group--member-previews>
        </div>

        <!-- Name -->
        <div
          class="m-groupInfo__name m-group-info-name mdl-color-text--blue-grey-800"
        >
          <div [hidden]="editing || !group.name">
            <h1>
              <a
                class="m-isomorphic-link"
                [routerLink]="['/groups/profile', group.guid]"
              >
                {{group.name}}
              </a>
            </h1>
            <div class="m-groupInfo__actionButtons">
              <minds-groups-join-button
                [group]="group"
                (membership)="change_membership($event)"
                *ngIf="(!group['is:creator'] || (session.isAdmin()) && !group['is:invited'])"
              >
              </minds-groups-join-button>
              <button
                class="m-btn m-btn--slim m-btn--with-icon"
                [class.m-pulsating--small]="group.hasGathering$ | async"
                style="margin-left: 8;"
                (click)="videochat.activate(group)"
                *ngIf="!group.videoChatDisabled"
              >
                <span class="m-gatheringIcon">Gathering</span>
                <i class="material-icons">video_call</i>
              </button>
            </div>
          </div><commit_msg>Check if user is member before showing gathering button #2710<commit_after><div [hidden]="group || error" style="width:100%; text-align:center; ">
  <div
    class="mdl-spinner mdl-js-spinner is-active"
    [mdl]
    style="margin: 16px auto;"
  ></div>
</div>

<div class="m-error-splash" *ngIf="error && !group">
  <img [src]="cdnAssetsUrl + 'assets/logos/logo.svg'" />
  <h3 class="mdl-color-text--red-300">{{error}}</h3>
  <span class="mdl-color-text--blue-grey-300">Check the url is correct</span>
  <router-outlet></router-outlet>
</div>

<m-explicit-overlay
  [entity]="group"
  message="This group contains content that is NSFW"
  i18n-message="@@GROUPS__THIS_GROUP_CONTAINS_NSFW"
></m-explicit-overlay>

<div
  class="m-group__grid"
  [class.m-pageLayout__container]="hasNewNavigation"
  *ngIf="group && (group['is:member'] || group.membership == 2)"
>
  <!-- Sidebar -->
  <div
    class="m-groupGrid__left"
    [m-pageLayout__pane]="showRight ? 'main' : null"
    *mIfBrowser
  >
    <m-videochat></m-videochat>

    <header
      *ngIf="group && (group['is:member'] || group.membership == 2)"
      [ngClass]="[ 'm-group--' + filter + '-view' ]"
      [class.m-group--view-mode]="!editing"
    >
      <minds-banner
        [object]="group"
        [editMode]="editing"
        [top]="group.banner_position"
        [done]="editDone"
        (added)="add_banner($event)"
      >
      </minds-banner>
    </header>

    <div class="m-group__infoWrapper">
      <div class="m-group__info m-border">
        <minds-avatar
          [object]="group"
          [editMode]="editing"
          (added)="upload_avatar($event)"
        >
        </minds-avatar>

        <minds-groups-settings-button
          [(group)]="group"
          class="m-button"
          (change)="onOptionsChange($event)"
        >
        </minds-groups-settings-button>

        <div class="m-groupInfo__member-previews">
          <m-group--member-previews [group]="group"></m-group--member-previews>
        </div>

        <!-- Name -->
        <div
          class="m-groupInfo__name m-group-info-name mdl-color-text--blue-grey-800"
        >
          <div [hidden]="editing || !group.name">
            <h1>
              <a
                class="m-isomorphic-link"
                [routerLink]="['/groups/profile', group.guid]"
              >
                {{group.name}}
              </a>
            </h1>
            <div class="m-groupInfo__actionButtons">
              <minds-groups-join-button
                [group]="group"
                (membership)="change_membership($event)"
                *ngIf="(!group['is:creator'] || (session.isAdmin()) && !group['is:invited'])"
              >
              </minds-groups-join-button>
              <button
                class="m-btn m-btn--slim m-btn--with-icon"
                [class.m-pulsating--small]="group.hasGathering$ | async"
                style="margin-left: 8;"
                (click)="videochat.activate(group)"
                *ngIf="!group.videoChatDisabled && group['is:member']"
              >
                <span class="m-gatheringIcon">Gathering</span>
                <i class="material-icons">video_call</i>
              </button>
            </div>
          </div>
{'fraction_non_alphanumeric': 0.18003731343283583, 'fraction_numerical': 0.00777363184079602, 'mean_word_length': 2.0459280303030303, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '2356656', 'n_tokens_mistral': 2202, 'n_tokens_neox': 2115, 'n_words': 285}