<commit_before>import { Component, OnInit } from '@angular/core';
import { URLSearchParams } from '@angular/http';
import { Router } from '@angular/router';
import { A2BBAuthService } from '../services/a2bb-auth.service';

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {
  info: string = null;
  user: string = null;
  password: string = null;

  constructor(private _router: Router, private _authService: A2BBAuthService) { }

  ngOnInit() {
    this._authService.reset();
  }

  signIn() {
    this.info = 'Authenticating...';

    const bodyParams = new URLSearchParams();
    bodyParams.set('client_id', 'a2bb_api');
    bodyParams.set('scope', 'A2BB_API offline_access');

    this._authService.getTokens(this.user, this.password, bodyParams).then((b) => {
      if (b === true) {
        this._router.navigate(['/dashboard']);
      }
    }).catch((err) => {
      if (err.error_description === 'invalid_username_or_password') {
        this.info = 'Invalid user/pass!';
      } else {
        this.info = 'Unknown error: ' + JSON.stringify(err);
      }
    });
  }

}<commit_msg>Fix client name.<commit_after>import { Component, OnInit } from '@angular/core';
import { URLSearchParams } from '@angular/http';
import { Router } from '@angular/router';
import { A2BBAuthService } from '../services/a2bb-auth.service';

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {
  info: string = null;
  user: string = null;
  password: string = null;

  constructor(private _router: Router, private _authService: A2BBAuthService) { }

  ngOnInit() {
    this._authService.reset();
  }

  signIn() {
    this.info = 'Authenticating...';

    const bodyParams = new URLSearchParams();
    bodyParams.set('client_id', 'a2bb.ro_api');
    bodyParams.set('scope', 'A2BB_API offline_access');

    this._authService.getTokens(this.user, this.password, bodyParams).then((b) => {
      if (b === true) {
        this._router.navigate(['/dashboard']);
      }
    }).catch((err) => {
      if (err.error_description === 'invalid_username_or_password') {
        this.info = 'Invalid user/pass!';
      } else {
        this.info = 'Unknown error: ' + JSON.stringify(err);
      }
    });
  }

}
{'fraction_non_alphanumeric': 0.16336633663366337, 'fraction_numerical': 0.004125412541254125, 'mean_word_length': 3.44954128440367, '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': '4604523', 'n_tokens_mistral': 781, 'n_tokens_neox': 773, 'n_words': 156}