<commit_before>import { Component, OnInit, ViewChild } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { AuthService } from '../../shared/services/auth.service';


@Component({
  selector: 'app-login',
  templateUrl: 'login.component.html',
  styleUrls: [
    'login.component.css'
  ]
})
export class LoginComponent implements OnInit {
  // @ViewChild('loginForm') public loginForm: NgForm;

  ngOnInit(): void {
    // if (sessionStorage.getItem('api-token')) {
    //
    //   this.router.navigate(['/dashboard'])
    // }
  }

  constructor(private authService: AuthService, private router: Router) {
  }

  login(formValue) {

    this.authService.login(formValue.username, formValue.password);
  }

}<commit_msg>Remove unused code<commit_after>import { Component, OnInit, ViewChild } from '@angular/core';
import { AuthService } from '../../shared/services/auth.service';


@Component({
  selector: 'app-login',
  templateUrl: 'login.component.html',
  styleUrls: [
    'login.component.css'
  ]
})
export class LoginComponent implements OnInit {

  ngOnInit(): void {
  }

  constructor(private authService: AuthService) {
  }

  login(formValue) {

    this.authService.login(formValue.username, formValue.password);
  }

}
{'fraction_non_alphanumeric': 0.15118110236220472, 'fraction_numerical': 0.0, 'mean_word_length': 3.9073359073359075, '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': '3417935', 'n_tokens_mistral': 398, 'n_tokens_neox': 390, 'n_words': 77}