<commit_before>const fs = require("fs");
const path = require("path");
const { parse } = require("../boot/parser");

describe("Parsing (validation only)", () => {
  const root = path.join(__dirname, "fixtures/parsing");
  const files = fs.readdirSync(root).map(name => ({
    name: name,
    contents: fs.readFileSync(path.join(root, name), "utf8")
  }));

  for (const file of files) {
    it(file.name, () => {
      parse(file.contents);
    });
  }
});
<commit_msg>Fixes the compiler path in tests<commit_after>const fs = require("fs");
const path = require("path");
const { parse } = require("../bootstrap/parser");

describe("Parsing (validation only)", () => {
  const root = path.join(__dirname, "fixtures/parsing");
  const files = fs.readdirSync(root).map(name => ({
    name: name,
    contents: fs.readFileSync(path.join(root, name), "utf8")
  }));

  for (const file of files) {
    it(file.name, () => {
      parse(file.contents);
    });
  }
});

{'fraction_non_alphanumeric': 0.1995841995841996, 'fraction_numerical': 0.002079002079002079, 'mean_word_length': 3.767326732673267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2614746', 'n_tokens_mistral': 319, 'n_tokens_neox': 316, 'n_words': 69}