<commit_before>import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MdDialog, MdDialogRef } from '@angular/material';

import { AuthenticationService, AlertService } from '../../shared/services';

@Component({
  selector: 'lpa-login-dialog',
  templateUrl: './login-dialog.component.html',
  styleUrls: ['./login-dialog.component.scss']
})
export class LoginDialogComponent implements OnInit {
  loginForm: FormGroup;
  loginWarning = false;

  constructor(
    private authenticationService: AuthenticationService,
    private alertService: AlertService,
    private fb: FormBuilder,
    private dlgRef: MdDialogRef<LoginDialogComponent>
  ) {
    this.createForm();
  }

  ngOnInit() {
  }

  private createForm() {
    this.loginForm = this.fb.group({
      name: ['', [Validators.required, Validators.minLength(3)]],
      password: ['', [Validators.required, Validators.minLength(8)]]
    });
  }

  public login() {
    this.loginWarning = false;
    console.log('login button pressed');
    const name2Check = this.loginForm.value.name;
    const pass2Check = this.loginForm.value.password;<commit_msg>Removed use of AlertService - redundant<commit_after>import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MdDialog, MdDialogRef } from '@angular/material';

import { AuthenticationService} from '../../shared/services';

@Component({
  selector: 'lpa-login-dialog',
  templateUrl: './login-dialog.component.html',
  styleUrls: ['./login-dialog.component.scss']
})
export class LoginDialogComponent implements OnInit {
  loginForm: FormGroup;
  loginWarning = false;

  constructor(
    private authenticationService: AuthenticationService,
    private fb: FormBuilder,
    private dlgRef: MdDialogRef<LoginDialogComponent>
  ) {
    this.createForm();
  }

  ngOnInit() {
  }

  private createForm() {
    this.loginForm = this.fb.group({
      name: ['', [Validators.required, Validators.minLength(3)]],
      password: ['', [Validators.required, Validators.minLength(8)]]
    });
  }

  public login() {
    this.loginWarning = false;
    console.log('login button pressed');
    const name2Check = this.loginForm.value.name;
    const pass2Check = this.loginForm.value.password;
{'fraction_non_alphanumeric': 0.13498504912430584, 'fraction_numerical': 0.0034173430158052115, 'mean_word_length': 4.204444444444444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1687322', 'n_tokens_mistral': 701, 'n_tokens_neox': 682, 'n_words': 149}