<commit_before>import { Component, OnInit, AfterViewInit } from '@angular/core';
import { ActivatedRoute, Router} from '@angular/router';
import { GeneralDataService } from 'app/general-data.service';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit, AfterViewInit {

  public query : string = '';
  public allResults;
  public results = [];
  public searchType = 'name';
  public searchFocused = false;
  private searchTimer;
  private sub;
  private page = 0;
  public more = false;
  public less = false;
  public none = false;
  public loading = false;
  public recordCounts = {};
  private preload;

  constructor(
    private dataService: GeneralDataService,
    private $route: ActivatedRoute,
    private $router: Router
  ) { }

  ngOnInit() {
    this.preload = this.dataService.preloadData(['locations', 'locationtypes', 'verifiableorgtypes']);
    this.preload.then(() => {
      this.recordCounts = {
        orgs: this.dataService.getRecordCount('verifiableorgs'),
        certs: this.dataService.getRecordCount('verifiableclaims')
      };
    });
    this.$route.queryParams.subscribe(params => {
      this.setQuery(params.query);
    });
  }<commit_msg>fix JS compilation error<commit_after>import { Component, OnInit, AfterViewInit } from '@angular/core';
import { ActivatedRoute, Router} from '@angular/router';
import { GeneralDataService } from 'app/general-data.service';

@Component({
  selector: 'app-dashboard',
  templateUrl: './dashboard.component.html',
  styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit, AfterViewInit {

  public query : string = '';
  public allResults;
  public results = [];
  public searchType = 'name';
  public searchFocused = false;
  private searchTimer;
  private sub;
  private page = 0;
  public more = false;
  public less = false;
  public none = false;
  public loading = false;
  public recordCounts : {[key:string]:number} = {};
  private preload;

  constructor(
    private dataService: GeneralDataService,
    private $route: ActivatedRoute,
    private $router: Router
  ) { }

  ngOnInit() {
    this.preload = this.dataService.preloadData(['locations', 'locationtypes', 'verifiableorgtypes']);
    this.preload.then(() => {
      this.recordCounts = {
        orgs: this.dataService.getRecordCount('verifiableorgs'),
        certs: this.dataService.getRecordCount('verifiableclaims')
      };
    });
    this.$route.queryParams.subscribe(params => {
      this.setQuery(params.query);
    });
  }
{'fraction_non_alphanumeric': 0.13023782559456398, 'fraction_numerical': 0.0007550018875047187, 'mean_word_length': 3.981203007518797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2760486', 'n_tokens_mistral': 783, 'n_tokens_neox': 777, 'n_words': 178}