<commit_before>import { Component, OnInit } from '@angular/core';
import { StocksService } from '../../services/stocks.service';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.css']
})
export class DashboardComponent implements OnInit {
  public stocks:any;
  constructor(stocksService: StocksService) { 
   stocksService
    .load()
    .subscribe(res => this.stocks = JSON.parse(res.text().replace("//","")));
  }

  ngOnInit() {
  }
}<commit_msg>Move stocksService load to ngOnInit<commit_after>import { Component, OnInit } from '@angular/core';
import { StocksService } from '../../services/stocks.service';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.css']
})
export class DashboardComponent implements OnInit {
  public stocks:any;
  constructor(private stocksService: StocksService) { 
  }

  ngOnInit() {
    this.stocksService
    .load()
    .subscribe(res => this.stocks = JSON.parse(res.text().replace("//","")));
  }
}
{'fraction_non_alphanumeric': 0.16788990825688074, 'fraction_numerical': 0.0, 'mean_word_length': 4.296116504854369, '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': '6434263', 'n_tokens_mistral': 333, 'n_tokens_neox': 338, 'n_words': 67}