<commit_before>import { Component, OnInit, OnDestroy } from '@angular/core';

@Component({
  selector: 'app-clock',
  templateUrl: './clock.component.html',
  styleUrls: ['./clock.component.css']
})
export class ClockComponent implements OnInit, OnDestroy {

  public now: Date;
  public ticTac: boolean;
  private _timer: NodeJS.Timer;

  constructor() { }

  ngOnInit(): void {
    this.now = new Date();

    this._timer = setInterval(() => {
      this.now = new Date();
      this.ticTac = !this.ticTac;
    }, 1000);
  }

  ngOnDestroy(): void {
    clearInterval(this._timer);
  }

}<commit_msg>REFACTOR(Clock) Minor changes<commit_after>import { Component, OnInit, OnDestroy } from '@angular/core';

@Component({
  selector: 'app-clock',
  templateUrl: './clock.component.html',
  styleUrls: ['./clock.component.css']
})
export class ClockComponent implements OnInit, OnDestroy {

  public now: Date;
  public ticTac: boolean;
  private _timer: NodeJS.Timer;

  constructor() { }

  ngOnInit(): void {
    this._getNow();
  }

  ngOnDestroy(): void {
    clearTimeout(this._timer);
  }

  private _getNow(): void {
    this.now = new Date();
    this.ticTac = !this.ticTac;

    this._timer = setTimeout(() => this._getNow(), 1000);
  }

}
{'fraction_non_alphanumeric': 0.15637530072173217, 'fraction_numerical': 0.006415396952686447, 'mean_word_length': 3.5547445255474455, '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': '5987541', 'n_tokens_mistral': 433, 'n_tokens_neox': 409, 'n_words': 94}