<commit_before>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'ruby-debug'
describe "mean" do
  it 'should return 0 for empty values' do
    mean().should == 0
  end

  it 'should return 2.8 for *[3, 5, 3, 1, 2]' do
    mean(3, 5, 3, 1, 2).should == 2.8
  end
end

describe 'cum' do
  it 'should return [] for []' do
    cum().should == 0
  end

  it 'should return 3 for *[3]' do
    cum(3).should == 3
  end

  it 'should return 11 for *[3, 5]' do
    cum(3, 5).should == 11
  end
end

describe 'mean_cum' do
  it 'should return 5.5 for *[3, 5]' do
    mean_cum(3, 5).should == 5.5
  end
end<commit_msg>spec intent<commit_after>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'ruby-debug'
describe "mean" do
  it 'should return 0 for empty values' do
    mean().should == 0
  end

  it 'should return 2.8 for *[3, 5, 3, 1, 2]' do
    mean(3, 5, 3, 1, 2).should == 2.8
  end
end

describe 'cum' do
  it 'should return 0 for *[]' do
    cum().should == 0
  end

  it 'should return 3 for *[3]' do
    cum(3).should == 3
  end

  it 'should return 11 for *[3, 5]' do
    cum(3, 5).should == 11
  end
end

describe 'mean_cum' do
  it 'should return 5.5 for *[3, 5]' do
    mean_cum(3, 5).should == 5.5
  end
end
{'fraction_non_alphanumeric': 0.15134706814580032, 'fraction_numerical': 0.059429477020602216, 'mean_word_length': 2.850609756097561, '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': '4005104', 'n_tokens_mistral': 560, 'n_tokens_neox': 472, 'n_words': 177}