<commit_before>import { expect } from "chai";
import { exec } from "../../src/syntax";

describe.only("syntax", () => {
  describe("exec", () => {
    const input_string = "“<NAME>”";
    const input_comment = "#Ignore this#";

    it("quines FrameStrings", () => {
      const result = exec(input_string);
      expect(result).to.equal(input_string);
    });

    it("eliminates inline comments", () => {
      const result = exec(input_comment);
      expect(result).to.equal("()");
    });

    it("eliminates end-of-ine comments", () => {
      const input = "#Ignore this\n";
      const result = exec(input);

      expect(result).to.equal("()");
    });

    it("lexes both FrameStrings and comments", () => {
      const input = input_string + input_comment;
      const result = exec(input);

      expect(result).to.equal(input_string);
    });

    it.skip("evaluates FrameStrings", () => {
      const part1 = "“Hello, ”";
      const part2 = "“World!”";
      const input = `${part1}${part2}`
      const result = exec(input);

      expect(result).to.equal("“Hello, World!”");<commit_msg>Undo skip<commit_after>import { expect } from "chai";
import { exec } from "../../src/syntax";

describe.only("syntax", () => {
  describe("exec", () => {
    const input_string = "“<NAME>”";
    const input_comment = "#Ignore this#";

    it("quines FrameStrings", () => {
      const result = exec(input_string);
      expect(result).to.equal(input_string);
    });

    it("eliminates inline comments", () => {
      const result = exec(input_comment);
      expect(result).to.equal("()");
    });

    it("eliminates end-of-ine comments", () => {
      const input = "#Ignore this\n";
      const result = exec(input);

      expect(result).to.equal("()");
    });

    it("lexes both FrameStrings and comments", () => {
      const input = input_string + input_comment;
      const result = exec(input);

      expect(result).to.equal(input_string);
    });

    it("evaluates FrameStrings", () => {
      const part1 = "“Hello, ”";
      const part2 = "“World!”";
      const input = `${part1}${part2}`
      const result = exec(input);

      expect(result).to.equal("“Hello, World!”");
{'fraction_non_alphanumeric': 0.19453302961275626, 'fraction_numerical': 0.0036446469248291574, 'mean_word_length': 2.928443649373882, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1177312', 'n_tokens_mistral': 691, 'n_tokens_neox': 674, 'n_words': 140}