<commit_before>import { Component } from '@angular/core';
import { Location } from '@angular/common';

@Component({
  selector: 'llta-log-in-form',
  templateUrl: './logInForm.component.html',
  styleUrls: ['./logInForm.component.scss']
})
export class LogInFormComponent {
  userLogin: string = "admin";
  password: string = "password";

  inputLogin: string;
  inputPassword: string;

  showError: boolean = false;

  constructor(
    private location: Location
  ) {}

  onSubmit() {
    if (this.inputLogin == this.userLogin && this.inputPassword == this.password) {
      this.location.go('/create-test');
    } else {
      this.showError = true;
    }
  }
}<commit_msg>Fix navigation<commit_after>import { Component } from '@angular/core';
import { Location } from '@angular/common';
import { Router } from '@angular/router';

@Component({
  selector: 'llta-log-in-form',
  templateUrl: './logInForm.component.html',
  styleUrls: ['./logInForm.component.scss']
})
export class LogInFormComponent {
  userLogin: string = "admin";
  password: string = "password";

  inputLogin: string;
  inputPassword: string;

  showError: boolean = false;

  constructor(
      private router: Router,
  ) {}

  onSubmit() {
    if (this.inputLogin == this.userLogin && this.inputPassword == this.password) {
      return this.router.navigate(['/create-test']);
    } else {
      this.showError = true;
    }
  }
}
{'fraction_non_alphanumeric': 0.15209665955934612, 'fraction_numerical': 0.0, 'mean_word_length': 3.662251655629139, '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': '6263813', 'n_tokens_mistral': 445, 'n_tokens_neox': 437, 'n_words': 96}