<commit_before>import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';

import { Subscription } from 'rxjs';

import { Client, Upload } from '../../../services/api';
import { MindsActivityObject } from '../../../interfaces/entities';
import { Session } from '../../../services/session';
import { ContextService } from '../../../services/context.service';

@Component({
  selector: 'm-newsfeed--single',
  templateUrl: 'single.component.html'
})

export class NewsfeedSingleComponent {

  minds = window.Minds;
  inProgress: boolean = false;
  activity: any;
  error: string = '';
  paramsSubscription: Subscription;

  constructor(
    public client: Client,
    public upload: Upload,
    public router: Router,
    public route: ActivatedRoute,
    public context: ContextService,
    public session: Session
  ) {
  }

  ngOnInit() {
    this.context.set('activity');

    this.paramsSubscription = this.route.params.subscribe(params => {
      if (params['guid']) {<commit_msg>(fix) if i tap a dead notif and then tap a good notif this happens<commit_after>import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';

import { Subscription } from 'rxjs';

import { Client, Upload } from '../../../services/api';
import { MindsActivityObject } from '../../../interfaces/entities';
import { Session } from '../../../services/session';
import { ContextService } from '../../../services/context.service';

@Component({
  selector: 'm-newsfeed--single',
  templateUrl: 'single.component.html'
})

export class NewsfeedSingleComponent {

  minds = window.Minds;
  inProgress: boolean = false;
  activity: any;
  error: string = '';
  paramsSubscription: Subscription;

  constructor(
    public client: Client,
    public upload: Upload,
    public router: Router,
    public route: ActivatedRoute,
    public context: ContextService,
    public session: Session
  ) {
  }

  ngOnInit() {
    this.context.set('activity');

    this.paramsSubscription = this.route.params.subscribe(params => {
      if (params['guid']) {
        this.error = '';
{'fraction_non_alphanumeric': 0.15258215962441316, 'fraction_numerical': 0.0, 'mean_word_length': 3.486315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3102511', 'n_tokens_mistral': 605, 'n_tokens_neox': 610, 'n_words': 163}