<commit_before>Template._stats.helpers({
  statistics: function(){
    var user = Session.get('userObject'),
        completedBets = Bets.find({ status: 'completed' }).count(),
        wins = Bets.find({ winner: user }).count(),
        losses = completedBets - wins;

    return [wins, losses]
  }
});<commit_msg>adds the points var to display points<commit_after>Template._stats.helpers({
  statistics: function(){
    var user = Session.get('userObject'),
        completedBets = Bets.find({ status: 'completed' }).count(),
        wins = Bets.find({ winner: user }).count(),
        var points = Points.findOne({ wonBy: user });
        losses = completedBets - wins;

    return [wins, losses]
  }
});
{'fraction_non_alphanumeric': 0.15864022662889518, 'fraction_numerical': 0.0, 'mean_word_length': 3.1834319526627217, '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': '497563', 'n_tokens_mistral': 207, 'n_tokens_neox': 210, 'n_words': 55}