<commit_before>import { Component } from '@angular/core';
import { Router } from '@angular/router';

import { SignInService } from './sign-in.service';

@Component({
  selector: 'sign-in',
  templateUrl: 'sign-in.component.html',
  providers: [ SignInService ]
})
export class SignInComponent {
  private success: boolean = true;
  private user: any = { username: '', password: '' };

  constructor(private signInService: SignInService, private router: Router) { }

  onSubmit() {
    this.signInService.logIn(this.user.username, this.user.password).subscribe(
      resp => this.router.navigate(['/child-checkin']),
      error =>  this.success = false);
  }
}<commit_msg>US3508: successful signin routes to events page<commit_after>import { Component } from '@angular/core';
import { Router } from '@angular/router';

import { SignInService } from './sign-in.service';

@Component({
  selector: 'sign-in',
  templateUrl: 'sign-in.component.html',
  providers: [ SignInService ]
})
export class SignInComponent {
  private success: boolean = true;
  private user: any = { username: '', password: '' };

  constructor(private signInService: SignInService, private router: Router) { }

  onSubmit() {
    this.signInService.logIn(this.user.username, this.user.password).subscribe(
      resp => this.router.navigate(['/admin/events']),
      error =>  this.success = false);
  }
}
{'fraction_non_alphanumeric': 0.15155910079767948, 'fraction_numerical': 0.0029006526468455403, 'mean_word_length': 4.287356321839081, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3866234', 'n_tokens_mistral': 420, 'n_tokens_neox': 414, 'n_words': 96}