<commit_before>import { expect } from "chai";
import { title, calculateSeating } from "./";

describe(title, function() {

    describe("Part 1:", function() {

        it("should return 330 as the total optimal happiness for the given example", function() {
            const input = [
                {guest: "Alice", neighbour: "Bob", value: 54},
                {guest: "Alice", neighbour: "Carol", value: 79},
                {guest: "Alice", neighbour: "David", value: 2},
                {guest: "Bob", neighbour: "Alice", value: 83},
                {guest: "Bob", neighbour: "Carol", value: 7},
                {guest: "Bob", neighbour: "David", value: 63},
                {guest: "Carol", neighbour: "Alice", value: 62},
                {guest: "Carol", neighbour: "Bob", value: 60},
                {guest: "Carol", neighbour: "David", value: 55},
                {guest: "David", neighbour: "Alice", value: 46},
                {guest: "David", neighbour: "Bob", value: -7},
                {guest: "David", neighbour: "Carol", value: 41}
            ];

            expect(calculateSeating(input)).to.eq(330);
        });

    });

});<commit_msg>Fixed some typos with the test spec. - Completed missed the words 'gain' and 'lose'. Oops...<commit_after>import { expect } from "chai";
import { title, calculateSeating } from "./";

describe(title, function() {

    describe("Part 1:", function() {

        it("should return 330 as the total optimal happiness for the given example", function() {
            const input = [
                {guest: "Alice", neighbour: "Bob", value: 54},
                {guest: "Alice", neighbour: "Carol", value: -79},
                {guest: "Alice", neighbour: "David", value: -2},
                {guest: "Bob", neighbour: "Alice", value: 83},
                {guest: "Bob", neighbour: "Carol", value: -7},
                {guest: "Bob", neighbour: "David", value: -63},
                {guest: "Carol", neighbour: "Alice", value: -62},
                {guest: "Carol", neighbour: "Bob", value: 60},
                {guest: "Carol", neighbour: "David", value: 55},
                {guest: "David", neighbour: "Alice", value: 46},
                {guest: "David", neighbour: "Bob", value: -7},
                {guest: "David", neighbour: "Carol", value: 41}
            ];

            expect(calculateSeating(input)).to.eq(330);
        });

    });

});
{'fraction_non_alphanumeric': 0.1741479634247714, 'fraction_numerical': 0.023275145469659187, 'mean_word_length': 2.0819462227912933, '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': '2453903', 'n_tokens_mistral': 788, 'n_tokens_neox': 682, 'n_words': 216}