<commit_before>
/** @ngInject */
interface IHomeController {
  texts: any;
  _api: any;
  getTexts(): Promise<any>;
}

export class HomeController implements IHomeController {

  texts: any;
  _api: any;
  /* @ngInject */
  constructor(Api: any, $scope: angular.IScope) {
    console.log('Helo home');
    this._api = Api;
    this.getTexts().then((res: any) => {
      this.texts = res.home_page;
      $scope.$apply();
    });

  }

  /** @ngInject */
  getTexts() {
    return this._api.getTexts()

  }
}<commit_msg>issues/25 use main_page_text from texts for main page text<commit_after>
/** @ngInject */
interface IHomeController {
  texts: any;
  _api: any;
  getTexts(): Promise<any>;
}

export class HomeController implements IHomeController {

  texts: any;
  _api: any;
  /* @ngInject */
  constructor(Api: any, $scope: angular.IScope) {
    console.log('Helo home');
    this._api = Api;
    this.getTexts().then((res: any) => {
      this.texts = res.home_page;
      $scope.$apply();
    });

  }

  /** @ngInject */
  getTexts() {
    return this._api.getTexts().then((res: any) => {
      this.texts = res.main_page_text;
    });

  }
}
{'fraction_non_alphanumeric': 0.16681146828844484, 'fraction_numerical': 0.0017376194613379669, 'mean_word_length': 2.972413793103448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3735693', 'n_tokens_mistral': 412, 'n_tokens_neox': 411, 'n_words': 85}