<commit_before>const chai = require('chai');
const expect = chai.expect;
const utils = require('../src/utils');

describe('groupFilesByType', () => {

  it('should group files by its type', () => {
    const files = [
      'fonts/a.ttf',
      'fonts/b.ttf',
      'images/a.jpg',
      'images/c.jpeg'
    ];

    const groupedFiles = utils.groupByType(files);

    expect(groupedFiles.font).to.contain('fonts/a.ttf');
    expect(groupedFiles.image).to.contain('images/a.jpg');
  });

});
<commit_msg>Fix failing tests<commit_after>const chai = require('chai');
const expect = chai.expect;
const groupFilesByType = require('../src/groupFilesByType');

describe('groupFilesByType', () => {

  it('should group files by its type', () => {
    const files = [
      'fonts/a.ttf',
      'fonts/b.ttf',
      'images/a.jpg',
      'images/c.jpeg',
    ];

    const groupedFiles = groupFilesByType(files);

    expect(groupedFiles.font).to.contain('fonts/a.ttf');
    expect(groupedFiles.image).to.contain('images/a.jpg');
  });

});

{'fraction_non_alphanumeric': 0.18992248062015504, 'fraction_numerical': 0.0, 'mean_word_length': 3.3041666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1648786', 'n_tokens_mistral': 374, 'n_tokens_neox': 357, 'n_words': 56}