<commit_before>// libs
import { Component, ElementRef, ViewChild, OnInit, Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';

// app
import { RouterExtensions, Config } from '../../shared/core/index';
import { IAppState, getNames } from '../../shared/ngrx/index';
import * as nameList from '../../shared/sample/index';


@Component({
  moduleId: module.id,
  selector: 'sd-game_name',
  templateUrl: 'game_name.component.html',
  styleUrls: ['game_name.component.css']
})

@Injectable()
export class GameNameComponent implements OnInit {
  public names$: Observable<any>;
  public newName: string;
  public welcomeUser: string = "Welcome";

  constructor(private store: Store<IAppState>, public routerext: RouterExtensions) {}

  ngOnInit() {
    this.names$ = this.store.let(getNames);
    this.newName = '';
  }

  chooseLocation() {
    // Try this in the {N} app
    // {N} can use these animation options
    this.routerext.navigate(['/register'], {
      transition: {
        duration: 1000,
        name: 'slideTop',
      }
    });
  }
  }
}<commit_msg>no message<commit_after>// libs
import { Component, ElementRef, ViewChild, OnInit, Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';

// app
import { RouterExtensions, Config } from '../../shared/core/index';
import { IAppState, getNames } from '../../shared/ngrx/index';
import * as nameList from '../../shared/sample/index';


@Component({
  moduleId: module.id,
  selector: 'sd-game_name',
  templateUrl: 'game_name.component.html',
  styleUrls: ['game_name.component.css']
})

@Injectable()
export class GameNameComponent implements OnInit {
  public names$: Observable<any>;
  public newName: string;
  public welcomeUser: string = "Welcome";

  constructor(private store: Store<IAppState>, public routerext: RouterExtensions) {}

  ngOnInit() {
    this.names$ = this.store.let(getNames);
    this.newName = '';
  }

  chooseLocation() {
    // Try this in the {N} app
    // {N} can use these animation options
    this.routerext.navigate(['/register'], {
      transition: {
        duration: 1000,
        name: 'slideTop',
      }
    });
  }
}
{'fraction_non_alphanumeric': 0.15504220346512662, 'fraction_numerical': 0.003553976010661928, 'mean_word_length': 3.4950099800399204, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2493841', 'n_tokens_mistral': 707, 'n_tokens_neox': 703, 'n_words': 177}