<commit_before>"use strict";

var assert = require('assert');

var calcStats = function(data) {
  return { 
    count: 0
  };
};

var testEmptyStats = function() {
  var stats = calcStats([]);
  assert.equal(undefined, stats.minValue);
  assert.equal(undefined, stats.maxValue);
  assert.equal(0, stats.count);
  assert.equal(undefined, stats.average);
};

var test = function() {
  testEmptyStats();
};

test();<commit_msg>refactor the big test case into smaller bits<commit_after>"use strict";

var assert = require('assert');

var calcStats = function(data) {
  return { 
    count: 0
  };
};

var testEmptyStats = function() {
  var stats = calcStats([]);
  assert.equal(undefined, stats.minValue);
  assert.equal(undefined, stats.maxValue);
  assert.equal(0, stats.count);
  assert.equal(undefined, stats.average);
};

var testMinimum = function() {
  var emptyList = calcStats([]);
    assert.equal(undefined, emptyList.minValue);
};

var test = function() {
  testEmptyStats();

  testMinimum();
};

test();
{'fraction_non_alphanumeric': 0.15877712031558186, 'fraction_numerical': 0.0039447731755424065, 'mean_word_length': 4.486486486486487, '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': '77869', 'n_tokens_mistral': 330, 'n_tokens_neox': 320, 'n_words': 75}