<commit_before><div class="mdl-grid notifications-grid" style="max-width:600px">

  <div class="mdl-cell mdl-cell--12-col">

      <div *ngFor="#notification of notifications" class="mdl-card mdl-shadow--2dp item">

        <div class="avatar">
          <a [routerLink]="['/Channel', {username: notification.fromObj.username}]">
            <img [src]="'/icon/' + notification.fromObj.guid + '/small'" class="mdl-shadow--2dp"/>
          </a>
        </div>

        <div [ngSwitch]="notification.notification_view" class="body">

          <!-- subscribed -->
          <template ngSwitchWhen="friends">
            <a [routerLink]="['/Channel', {username: notification.fromObj.username}]">
              <p *ngIf="notification.fromObj.subscribed">You have a match! {{notification.fromObj.name}} subscribed to you</p>
              <p *ngIf="!notification.fromObj.subscribed">{{notification.fromObj.name}} subscribed to you</p>
            </a>
          </template>

          <!-- group inivite -->
          <template ngSwitchWhen="group_invite">
            <a [routerLink]="['/Groups-Profile', {guid: notification.params.group.guid, filter: 'activity'}]">
                <p>{{notification.params.user}} invited you to join <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.params.group.name}}</span></p>
            </a>
          </template>

          <!-- group kick -->
          <template ngSwitchWhen="group_kick">
            <a [routerLink]="['/Groups-Profile', {guid: notification.params.group.guid, filter: 'activity'}]">
                <p>You were kicked off from <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.params.group.name}}</span></p>
            </a>
          </template>

          <!-- comment -->
          <template ngSwitchWhen="comment" *ngIf="notification.entityObj">

            <!-- Activity -->
            <a *ngIf="notification.entityObj.type == 'activity'"
              [routerLink]="['/Activity', {guid: notification.entityObj.guid}]">
              <p *ngIf="notification.entityObj.owner_guid == session.getLoggedInUser().guid && !notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">your activity</span>
              </p>
              <p *ngIf="notification.entityObj.owner_guid != session.getLoggedInUser().guid  && !notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.entityObj.ownerObj.name}}'s activity</span>
              </p>
              <p *ngIf="notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.entityObj.title}}</span>
              </p>
            </a>
<commit_msg>(fix): adds in groups activity notification<commit_after><div class="mdl-grid notifications-grid" style="max-width:600px">

  <div class="mdl-cell mdl-cell--12-col">

      <div *ngFor="#notification of notifications" class="mdl-card mdl-shadow--2dp item">

        <div class="avatar">
          <a [routerLink]="['/Channel', {username: notification.fromObj.username}]" *ngIf="notification.fromObj">
            <img [src]="'/icon/' + notification.fromObj.guid + '/small'" class="mdl-shadow--2dp"/>
          </a>
        </div>

        <div [ngSwitch]="notification.notification_view" class="body">

          <!-- subscribed -->
          <template ngSwitchWhen="friends">
            <a [routerLink]="['/Channel', {username: notification.fromObj.username}]">
              <p *ngIf="notification.fromObj.subscribed">You have a match! {{notification.fromObj.name}} subscribed to you</p>
              <p *ngIf="!notification.fromObj.subscribed">{{notification.fromObj.name}} subscribed to you</p>
            </a>
          </template>

          <!-- group inivite -->
          <template ngSwitchWhen="group_invite">
            <a [routerLink]="['/Groups-Profile', {guid: notification.params.group.guid, filter: 'activity'}]">
                <p>{{notification.params.user}} invited you to join <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.params.group.name}}</span></p>
            </a>
          </template>

          <!-- group kick -->
          <template ngSwitchWhen="group_kick">
            <a [routerLink]="['/Groups-Profile', {guid: notification.params.group.guid, filter: 'activity'}]">
                <p>You were kicked off from <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.params.group.name}}</span></p>
            </a>
          </template>

          <!-- group activity -->
          <template ngSwitchWhen="group_activity">
            <a [routerLink]="['/Activity', {guid: notification.entityObj.guid}]">
              <p>
                <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.fromObj.name}}</span>
                posted in  <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.params.group.name}}</span>
              </p>
            </a>
          </template>

          <!-- comment -->
          <template ngSwitchWhen="comment" *ngIf="notification.entityObj">

            <!-- Activity -->
            <a *ngIf="notification.entityObj.type == 'activity'"
              [routerLink]="['/Activity', {guid: notification.entityObj.guid}]">
              <p *ngIf="notification.entityObj.owner_guid == session.getLoggedInUser().guid && !notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">your activity</span>
              </p>
              <p *ngIf="notification.entityObj.owner_guid != session.getLoggedInUser().guid  && !notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.entityObj.ownerObj.name}}'s activity</span>
              </p>
              <p *ngIf="notification.entityObj.title">
                {{notification.fromObj.name}} commented on <span class="pseudo-link mdl-color-text--blue-grey-400">{{notification.entityObj.title}}</span>
              </p>
            </a>

{'fraction_non_alphanumeric': 0.1752495642528918, 'fraction_numerical': 0.007922674694977025, 'mean_word_length': 2.4969529085872577, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 120, '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': '922456', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1767, 'n_words': 302}