<commit_before>class MeasuresController < ApplicationController
  
  def index
    @measures = mongo['measures'].find
    render 'dashboard'
  end
    <commit_msg>now grouping the measures by sub_id<commit_after>class MeasuresController < ApplicationController
  
  def index
    @measures = mongo['measures'].group([:id, :name], nil,
                                        {:subs => []},
                                        "function(obj,prev) {if (obj.sub_id != null) {prev.subs.push(obj.sub_id);}}")
    render 'dashboard'
  end
    
{'fraction_non_alphanumeric': 0.11645101663585952, 'fraction_numerical': 0.0, 'mean_word_length': 2.2848484848484847, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '114989', 'n_tokens_mistral': 151, 'n_tokens_neox': 146, 'n_words': 33}