<commit_before>import { Component } from 'angular2/core';
import GistService from '../services/gist.service';

@Component({
  selector: 'starter',
  providers: [GistService],
  template: `
    <div class="container">
      <div class="jumbotron">
        <h2>{{ name }}</h2>
        <button (click)="getGistsAuthor()" class="btn btn-info">Click and see the console !</button>
      </div>
      <div class="jumbotron">
        <ul>
          <li *ngFor="#author of gistsAuthor">{{ author }}</li>
        </ul>
      </div>
    </div>
  `,
})
export default class StarterComponent {

  /**
   * @name name
   * @type {string}
   */
  name: string = 'Github Gists';

  /**
   * @name gistsAuthor
   * @type {Array<string>}
   */
  gistsAuthor: Array<string> = [];

  /**
   * @constructor
   * @param  {GistService} _GistService
   */
  constructor(private _GistService: GistService) {}

  /**
   * @name   getGists
   * @return {void}
   */
  getGistsAuthor(): void {
    this._GistService.getGists()
      .map((res: any) => {
        return res
          .filter((res: any) => res.owner)
          .map((res: any) => res.owner.login);
      })
      .subscribe((res: any) => {
        this.gistsAuthor = res;
      });
  }

}<commit_msg>refactor(StarterComponent): update variables names and template<commit_after>import { Component } from 'angular2/core';
import GistService from '../services/gist.service';

@Component({
  selector: 'starter',
  providers: [GistService],
  template: `
    <div class="container">
      <div class="jumbotron">
        <h2>{{ name }}</h2>
        <button (click)="getGistsAuthors()" class="btn btn-info">Click for load 10 last gists authors !</button>
      </div>
      <div *ngIf="gistsAuthors.length" class="jumbotron">
        <ul>
          <li *ngFor="#author of gistsAuthors">{{ author }}</li>
        </ul>
      </div>
    </div>
  `,
})
export default class StarterComponent {

  /**
   * @name name
   * @type {string}
   */
  name: string = 'Github Gists Authors';

  /**
   * @name gistsAuthors
   * @type {Array<string>}
   */
  gistsAuthors: Array<string> = [];

  /**
   * @constructor
   * @param  {GistService} _GistService
   */
  constructor(private _GistService: GistService) {}

  /**
   * @name   getGists
   * @return {void}
   */
  getGistsAuthors(): void {
    this._GistService.getGists()
      .map((res: any) => {
        return res
          .filter((res: any) => res.owner)
          .map((res: any) => res.owner.login);
      })
      .subscribe((res: any) => {
        this.gistsAuthors = this.gistsAuthors.concat(res);
      });
  }

}
{'fraction_non_alphanumeric': 0.17428023032629558, 'fraction_numerical': 0.003071017274472169, 'mean_word_length': 2.4886211512717535, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 43, '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': '4722580', 'n_tokens_mistral': 900, 'n_tokens_neox': 874, 'n_words': 187}