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

import { HeroUniverse, HeroRole } from '../hero';

@Component({
  selector: 'app-hero-filter',
  templateUrl: './hero-filter.component.html',
  styleUrls: ['./hero-filter.component.scss']
})
export class HeroFilterComponent implements OnInit {
  @Output() changed = new EventEmitter<HeroFilter>();
  universes: Number[]; 
  roles: Number[];
  filter: HeroFilter = new HeroFilter();

  constructor() { }

  ngOnInit() {
    this.universes = Object
      .keys(HeroUniverse)
      .map(key => HeroUniverse[key])
      .filter(v => typeof v === "number") as Number[]

    this.roles = Object
      .keys(HeroRole)
      .map(key => HeroRole[key])
      .filter(v => typeof v === "number") as Number[]
  }

  notifyChange () {
    this.changed.emit(this.filter);
  }
}

export class HeroFilter {
  universe: HeroUniverse;
  role: HeroRole;
  terms: string;
}<commit_msg>Fix Number -> number<commit_after>import { Component, EventEmitter, OnInit, Output } from '@angular/core';

import { HeroUniverse, HeroRole } from '../hero';

@Component({
  selector: 'app-hero-filter',
  templateUrl: './hero-filter.component.html',
  styleUrls: ['./hero-filter.component.scss']
})
export class HeroFilterComponent implements OnInit {
  @Output() changed = new EventEmitter<HeroFilter>();
  universes: number[]; 
  roles: number[];
  filter: HeroFilter = new HeroFilter();

  constructor() { }

  ngOnInit() {
    this.universes = Object
      .keys(HeroUniverse)
      .map(key => HeroUniverse[key])
      .filter(v => typeof v === "number") as number[]

    this.roles = Object
      .keys(HeroRole)
      .map(key => HeroRole[key])
      .filter(v => typeof v === "number") as number[]
  }

  notifyChange () {
    this.changed.emit(this.filter);
  }
}

export class HeroFilter {
  universe: HeroUniverse;
  role: HeroRole;
  terms: string;
}
{'fraction_non_alphanumeric': 0.15753781950965048, 'fraction_numerical': 0.0, 'mean_word_length': 3.534278959810875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '6072092', 'n_tokens_mistral': 614, 'n_tokens_neox': 620, 'n_words': 144}