<commit_before>import { FlagsComponent } from './../flags/flags.component';
import { CliService } from './../cli.service';
import { TerminalService } from './../../terminal/terminal.service';
import { Validators } from '@angular/forms';
import { FormControl } from '@angular/forms';
import { FormGroup } from '@angular/forms';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: "app-cli-test",
  templateUrl: "./test.component.html",
  styleUrls: [
    "./test.component.css",
    "../flags/flags.component.css"
  ]
})
export class CliTestComponent extends FlagsComponent implements OnInit {

  constructor(
    public term: TerminalService,
    public cli: CliService
  ) {
    super();
    this.form = this.buildForm(FlagsComponent.Flags.TEST);
  }

  ngOnInit() {}

  serve() {
    this.term.send(`ng test ${ this.cli.serialize(this.form.value)}`);
  }

  stop() {
    this.term.stop();
  }
}<commit_msg>fix: add "run" method in "test" component<commit_after>import { FlagsComponent } from './../flags/flags.component';
import { CliService } from './../cli.service';
import { TerminalService } from './../../terminal/terminal.service';
import { Validators } from '@angular/forms';
import { FormControl } from '@angular/forms';
import { FormGroup } from '@angular/forms';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: "app-cli-test",
  templateUrl: "./test.component.html",
  styleUrls: [
    "./test.component.css",
    "../flags/flags.component.css"
  ]
})
export class CliTestComponent extends FlagsComponent implements OnInit {

  constructor(
    public term: TerminalService,
    public cli: CliService
  ) {
    super();
    this.form = this.buildForm(FlagsComponent.Flags.TEST);
  }

  ngOnInit() {}

  run() {
    this.term.send(`ng test ${ this.cli.serialize(this.form.value)}`);
  }

  stop() {
    this.term.stop();
  }
}
{'fraction_non_alphanumeric': 0.17177589852008457, 'fraction_numerical': 0.0, 'mean_word_length': 3.539568345323741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3951842', 'n_tokens_mistral': 596, 'n_tokens_neox': 578, 'n_words': 128}