<commit_before>import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Rx';
import { MessageService } from '../../services/message/message.service';

@Component({
  selector: 'vmk-message-display',
  template: `<h3>Message: {{message}}</h3>`,
  styles: []
})
export class MessageDisplayComponent implements OnInit, OnDestroy {
  message: string = '';
  private _currentMessageSubscription: Subscription;

  constructor(private _messageService: MessageService) { }

  ngOnInit() {
    this._currentMessageSubscription = this._messageService.currentMessageObservable.subscribe(
      (currentMessage: string) =>  {
        this.message = currentMessage;
      }
    );
  }
  ngOnDestroy() {
    this._currentMessageSubscription.unsubscribe();
  }
}<commit_msg>Message Display Component: Finished logic - YAY!<commit_after>import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Rx';
import { MessageService } from '../../services/message/message.service';

@Component({
  selector: 'vmk-message-display',
  template: `<h3>Message: {{message}}</h3>`,
  styles: []
})
export class MessageDisplayComponent implements OnInit, OnDestroy {
  message: string = '';
  private _currentMessageSubscription: Subscription;

  constructor(private _messageService: MessageService) { }

  ngOnInit() {
    this.message = this._messageService.currentMessage;
    this._currentMessageSubscription = this._messageService.currentMessageObservable.subscribe(
      (currentMessage: string) =>  {
        this.message = currentMessage;
      }
    );
  }
  ngOnDestroy() {
    this._currentMessageSubscription.unsubscribe();
  }
}
{'fraction_non_alphanumeric': 0.13025458851391356, 'fraction_numerical': 0.002368265245707519, 'mean_word_length': 4.522875816993464, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '7390973', 'n_tokens_mistral': 469, 'n_tokens_neox': 469, 'n_words': 95}