<commit_before>import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Players } from '../../api/players.js';

import boardTemplate from './leaderBoard.html';
import listTemplate from './leaderBoardList.html';

class LeaderboardCtrl {
  constructor($scope) {
    $scope.viewModel(this);

    console.log('in leaderBoard controller');

    this.helpers({
      playersList() {
        return Players.find();
      }
    });
  }
}

export default angular.module('leaderBoard', [
  angularMeteor
])
  .component('leaderBoard', {
    templateUrl: 'imports/components/leaderBoard/leaderBoard.html',
  })
  .component('leaderBoardList', {
    templateUrl: 'imports/components/leaderBoard/leaderBoardList.html',
    controller: ['$scope', LeaderboardCtrl]
  })<commit_msg>Do not show retired player in leaderboard<commit_after>import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Players } from '../../api/players.js';

import boardTemplate from './leaderBoard.html';
import listTemplate from './leaderBoardList.html';

class LeaderboardCtrl {
  constructor($scope) {
    $scope.viewModel(this);

    console.log('in leaderBoard controller');

    this.helpers({
      playersList() {
        return Players.find({ retired: { $exists: false }});
      }
    });
  }
}

export default angular.module('leaderBoard', [
  angularMeteor
])
  .component('leaderBoard', {
    templateUrl: 'imports/components/leaderBoard/leaderBoard.html',
  })
  .component('leaderBoardList', {
    templateUrl: 'imports/components/leaderBoard/leaderBoardList.html',
    controller: ['$scope', LeaderboardCtrl]
  })
{'fraction_non_alphanumeric': 0.14294403892944038, 'fraction_numerical': 0.0, 'mean_word_length': 4.108695652173913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6806421', 'n_tokens_mistral': 493, 'n_tokens_neox': 470, 'n_words': 97}