<commit_before>// Put `items.json` in your `APIGymnastics` directory...
var items = require('items.json');

// TODO: Setup mocha and chai...
var test = require('mocha').it,
  expect = require('chai').expect;

test('this is the easy one', function(){
  expect(Array.isArray(items)).to.be.true; // What.

  // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray

  expect(items.length).to.equal(FILL_ME_IN); // It's haunting me now...
});

test('finding the average price', function(){
  var yourAnswer = "start with `items`; use `Array` methods";

  expect(yourAnswer).to.be.closeTo(23.63, 0.01);
});

test('finding that perfect $15 item', function(){
  /**
   * @param {Array} items to search through
   * @return {Array} of `items` with `price` between `min` and `max` USD
   */
  function pricedBetween(items, min, max){
    // Just a suggestion, really...<commit_msg>error message when running test<commit_after>// Put `items.json` in your `APIGymnastics` directory...
var items = require('items.json');

// TODO: Setup mocha and chai...
var test = require('mocha').it,
  expect = require('chai').expect;

test('this is the easy one', function(){
  expect(Array).to.exist;
  expect(Array.isArray(items)).to.be.true; // What.

  // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray

  expect(items.length).to.equal(FILL_ME_IN); // It's haunting me now...
});

test('finding the average price', function(){
  var yourAnswer = "start with `items`; use `Array` methods";

  expect(yourAnswer).to.be.closeTo(23.63, 0.01);
});

test('finding that perfect $15 item', function(){
  /**
   * @param {Array} items to search through
   * @return {Array} of `items` with `price` between `min` and `max` USD
   */
  function pricedBetween(items, min, max){
    // Just a suggestion, really...
{'fraction_non_alphanumeric': 0.17606382978723403, 'fraction_numerical': 0.009574468085106383, 'mean_word_length': 3.8984375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6304169', 'n_tokens_mistral': 641, 'n_tokens_neox': 604, 'n_words': 166}