<commit_before>/* eslint-env node */

module.exports = {

    plugins: [ "jest" ],

    env: {
        // Whitelist the environment variables provided by Jest
        "jest/globals": true,
    },

    rules: {
        /*
         * Jest has a feature that allows you to skip tests by appending .skip
         * or prepending x to a test-suite or a test-case. Sometimes tests are
         * skipped as part of a debugging process and aren't intended to be
         * committed. This rule reminds you to remove .skip or the x prefix
         * from your tests.
         */
        "jest/no-disabled-tests": "warn",

        /*
         * Jest has a feature that allows you to focus tests by appending
         * .only or prepending f to a test-suite or a test-case. This feature
         * is really helpful to debug a failing test, so you don’t have to
         * execute all of your tests. After you have fixed your test and
         * before committing the changes you have to remove .only to ensure
         * all tests are executed on your build system.
         */
        "jest/no-focused-tests": "error",

        /*
         * Having identical titles for two different tests or test suites may
         * create confusion. For example, when a test with the same title as
         * another test in the same test suite fails, it is harder to know
         * which one failed and thus harder to fix.
         */
        "jest/no-identical-title": "error",

        /*
         * Ensure expect() is called with a single argument and there is an
         * actual expectation made.
         */
        "jest/valid-expect": "error",
    },
}<commit_msg>`jest/prefer-to-have-length` - use `toHaveLength`, not check `.length`<commit_after>/* eslint-env node */

module.exports = {

    plugins: [ "jest" ],

    env: {
        // Whitelist the environment variables provided by Jest
        "jest/globals": true,
    },

    rules: {
        /*
         * Jest has a feature that allows you to skip tests by appending .skip
         * or prepending x to a test-suite or a test-case. Sometimes tests are
         * skipped as part of a debugging process and aren't intended to be
         * committed. This rule reminds you to remove .skip or the x prefix
         * from your tests.
         */
        "jest/no-disabled-tests": "warn",

        /*
         * Jest has a feature that allows you to focus tests by appending
         * .only or prepending f to a test-suite or a test-case. This feature
         * is really helpful to debug a failing test, so you don’t have to
         * execute all of your tests. After you have fixed your test and
         * before committing the changes you have to remove .only to ensure
         * all tests are executed on your build system.
         */
        "jest/no-focused-tests": "error",

        /*
         * Having identical titles for two different tests or test suites may
         * create confusion. For example, when a test with the same title as
         * another test in the same test suite fails, it is harder to know
         * which one failed and thus harder to fix.
         */
        "jest/no-identical-title": "error",

        /*
         * Ensure expect() is called with a single argument and there is an
         * actual expectation made.
         */
        "jest/valid-expect": "error",

        /*
         * In order to have a better failure message, toHaveLength() should be
         * used upon asserting expectations on object's length property.
         */
        "jest/prefer-to-have-length": "error",
    },
}
{'fraction_non_alphanumeric': 0.07910863509749304, 'fraction_numerical': 0.0, 'mean_word_length': 1.8843373493975903, 'pattern_counts': {'":': 11, '<': 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': '4174196', 'n_tokens_mistral': 950, 'n_tokens_neox': 906, 'n_words': 434}