<commit_before>
var assert = require ("assert");
var Trendyways = require ("../trendyways.min.js");

describe ("Functions", function () {

	it ("gets the max value from a simple serie", function () {
		var serie = [0,6,2,7,8,9]
   	assert.equal (9, max (serie));
	});

	it ("gets the min value from a sample serie", function () {
		var serie = [0,6,2,7,8,9]
   	assert.equal (0, min (serie));
	});

	it ("gets the mean from zero values", function () {
   	var serie = [];
   	assert.equal (0, mean(serie));
	});

  it ("gets the mean of a simple serie", function () {
   	var serie = [2,6,5,7,10,9,12,5]
   	assert.equal (7, mean(serie));<commit_msg>Using the non-minified trendyways lib in order to get meaningful coverage info<commit_after>
var assert = require ("assert");
var Trendyways = require ("../trendyways.js");

describe ("Functions", function () {

	it ("gets the max value from a simple serie", function () {
		var serie = [0,6,2,7,8,9]
   	assert.equal (9, max (serie));
	});

	it ("gets the min value from a sample serie", function () {
		var serie = [0,6,2,7,8,9]
   	assert.equal (0, min (serie));
	});

	it ("gets the mean from zero values", function () {
   	var serie = [];
   	assert.equal (0, mean(serie));
	});

  it ("gets the mean of a simple serie", function () {
   	var serie = [2,6,5,7,10,9,12,5]
   	assert.equal (7, mean(serie));
{'fraction_non_alphanumeric': 0.1792799412196914, 'fraction_numerical': 0.03820720058780309, 'mean_word_length': 3.5704697986577183, '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': '5473277', 'n_tokens_mistral': 497, 'n_tokens_neox': 500, 'n_words': 158}