<commit_before>'use strict';
// These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns.
module.exports = {
    'rules': {
        // Enforces getter/setter pairs in objects
        'accessor-pairs': 0,
        // Enforces return statements in callbacks of array's methods
        'array-callback-return': 2,
        // treat `var` statements as if they were block scoped
        'block-scoped-var': 2,
        // specify the maximum cyclomatic complexity allowed in a program
        'complexity': 0,
        // require `return` statements to either always or never specify values
        'consistent-return': 1,
        // specify curly brace conventions for all control statements
        'curly': [2, 'multi-line', 'consistent'],
        // require `default` case in `switch` statements
        'default-case': 2,
        // enforces consistent newlines before or after dots
        'dot-location': 0,
        // encourages use of dot notation whenever possible
        'dot-notation': 0,
        // require the use of `===` and `!==`
        'eqeqeq': [2, 'allow-null'],
        // make sure `for-in` loops have an `if` statement
        'guard-for-in': 2,
        // disallow the use of `alert`, `confirm`, and `prompt`
        'no-alert': 0,
        // disallow use of `arguments.caller` or `arguments.callee`
        'no-caller': 2,
        // disallow lexical declarations in case clauses (recommended)
        'no-case-declarations': 2,
        // disallow division operators explicitly at beginning of regular expression
        'no-div-regex': 2,
        // disallow `else` after a `return` in an `if`
        'no-else-return': 0,
        // disallow use of labels for anything other than loops and switches (recommended)
        'no-empty-label': 2,
        // disallow use of empty destructuring patterns (recommended)
        'no-empty-pattern': 2,
        // disallow comparisons to null without a type-checking operator
        'no-eq-null': 0,
        // disallow use of `eval()`
        'no-eval': 2,
        // disallow adding to native types
        'no-extend-native': 2,
        // disallow unnecessary function binding
        'no-extra-bind': 2,
        // disallow fallthrough of `case` statements (recommended)
        'no-fallthrough': 2,
        // disallow the use of leading or trailing decimal points in numeric literals
        'no-floating-decimal': 2,
        // disallow the type conversions with shorter notations
        'no-implicit-coercion': 1,
        // disallow `var` and named functions in global scope
        'no-implicit-globals': 0,
        // disallow use of `eval()`-like methods
        'no-implied-eval': 2,
        // disallow `this` keywords outside of classes or class-like objects
        'no-invalid-this': 1,
        // disallow usage of `__iterator__` property
        'no-iterator': 2,
        // disallow use of labeled statements
        'no-labels': 2,
        // disallow unnecessary nested blocks
        'no-lone-blocks': 2,
        // disallow creation of functions within loops
        'no-loop-func': 2,
        // disallow the use of magic numbers
        'no-magic-numbers': [1, {
            'ignore': [],
            'ignoreArrayIndexes': true,
            'enforceConst': false,
            'detectObjects': false,
        }],
        // disallow use of multiple spaces (fixable)
        'no-multi-spaces': 2,
        // disallow use of multiline strings
        'no-multi-str': 0,
        // disallow reassignments of native objects
        'no-native-reassign': [2, {'exceptions': []}],
        // disallow use of new operator for `Function` object
        'no-new-func': 2,
        // disallows creating new instances of `String`,`Number`, and `Boolean`
        'no-new-wrappers': 2,
        // disallow use of the `new` operator when not part of an assignment or comparison
        'no-new': 2,
        // disallow use of octal escape sequences in string literals, such as `var foo = "Copyright \251";`
        'no-octal-escape': 2,
        // disallow use of octal literals (recommended)
        'no-octal': 2,
        // disallow reassignment of function parameters
        'no-param-reassign': [1, {'props': true}],
        // disallow use of `process.env`
        'no-process-env': 0,
        // disallow usage of `__proto__` property
        'no-proto': 2,
        // disallow declaring the same variable more than once (recommended)
        'no-redeclare': 2,
        // disallow use of assignment in `return` statement
        'no-return-assign': [2, 'always'],
        // disallow use of `javascript:` urls.
        'no-script-url': 0,
        // disallow comparisons where both sides are exactly the same
        'no-self-compare': 2,
        // disallow use of the comma operator
        'no-sequences': 2,
        // restrict what can be thrown as an exception
        'no-throw-literal': 2,
        // disallow unmodified conditions of loops
        'no-unmodified-loop-condition': 2,
        // disallow usage of expressions in statement position
        'no-unused-expressions': 2,
        // disallow unnecessary `.call()` and `.apply()`
        'no-useless-call': 2,
        // disallow unnecessary concatenation of literals or template literals
        'no-useless-concat': 2,
        // disallow use of the `void` operator
        'no-void': 2,
        // disallow usage of configurable warning terms in comments - e.g. `TODO` or `FIXME`
        'no-warning-comments': 0,<commit_msg>update best_practices<commit_after>'use strict';
// These are rules designed to prevent you from making mistakes. They either prescribe a better way of doing something or help you avoid footguns.
module.exports = {
    'rules': {
        // Enforces getter/setter pairs in objects
        'accessor-pairs': 0,
        // Enforces return statements in callbacks of array's methods
        'array-callback-return': 2,
        // treat `var` statements as if they were block scoped
        'block-scoped-var': 2,
        // specify the maximum cyclomatic complexity allowed in a program
        'complexity': 0,
        // require `return` statements to either always or never specify values
        'consistent-return': 1,
        // specify curly brace conventions for all control statements
        'curly': [2, 'multi-line', 'consistent'],
        // require `default` case in `switch` statements
        'default-case': 2,
        // enforces consistent newlines before or after dots
        'dot-location': 0,
        // encourages use of dot notation whenever possible
        'dot-notation': 0,
        // require the use of `===` and `!==`
        'eqeqeq': [2, 'allow-null'],
        // make sure `for-in` loops have an `if` statement
        'guard-for-in': 2,
        // disallow the use of `alert`, `confirm`, and `prompt`
        'no-alert': 0,
        // disallow use of `arguments.caller` or `arguments.callee`
        'no-caller': 2,
        // disallow lexical declarations in case clauses (recommended)
        'no-case-declarations': 2,
        // disallow division operators explicitly at beginning of regular expression
        'no-div-regex': 2,
        // disallow `else` after a `return` in an `if`
        'no-else-return': 0,
        // disallow use of empty functions
        'no-empty-function': 1,
        // disallow use of empty destructuring patterns (recommended)
        'no-empty-pattern': 2,
        // disallow comparisons to null without a type-checking operator
        'no-eq-null': 0,
        // disallow use of `eval()`
        'no-eval': 2,
        // disallow adding to native types
        'no-extend-native': 2,
        // disallow unnecessary function binding
        'no-extra-bind': 2,
        // disallow unnecessary labels
        'no-extra-label': 2,
        // disallow fallthrough of `case` statements (recommended)
        'no-fallthrough': 2,
        // disallow the use of leading or trailing decimal points in numeric literals
        'no-floating-decimal': 2,
        // disallow the type conversions with shorter notations
        'no-implicit-coercion': 1,
        // disallow `var` and named functions in global scope
        'no-implicit-globals': 0,
        // disallow use of `eval()`-like methods
        'no-implied-eval': 2,
        // disallow `this` keywords outside of classes or class-like objects
        'no-invalid-this': 1,
        // disallow usage of `__iterator__` property
        'no-iterator': 2,
        // disallow use of labeled statements
        'no-labels': 2,
        // disallow unnecessary nested blocks
        'no-lone-blocks': 2,
        // disallow creation of functions within loops
        'no-loop-func': 2,
        // disallow the use of magic numbers
        'no-magic-numbers': [1, {
            'ignore': [],
            'ignoreArrayIndexes': true,
            'enforceConst': false,
            'detectObjects': false,
        }],
        // disallow use of multiple spaces (fixable)
        'no-multi-spaces': 2,
        // disallow use of multiline strings
        'no-multi-str': 0,
        // disallow reassignments of native objects
        'no-native-reassign': [2, {'exceptions': []}],
        // disallow use of the `new` operator when not part of an assignment or comparison
        'no-new': 2,
        // disallow use of new operator for `Function` object
        'no-new-func': 2,
        // disallows creating new instances of `String`,`Number`, and `Boolean`
        'no-new-wrappers': 2,
        // disallow use of octal literals (recommended)
        'no-octal': 2,
        // disallow use of octal escape sequences in string literals, such as `var foo = "Copyright \251";`
        'no-octal-escape': 2,
        // disallow reassignment of function parameters
        'no-param-reassign': [1, {'props': true}],
        // disallow use of `process.env`
        'no-process-env': 0,
        // disallow usage of `__proto__` property
        'no-proto': 2,
        // disallow declaring the same variable more than once (recommended)
        'no-redeclare': 2,
        // disallow use of assignment in `return` statement
        'no-return-assign': [2, 'always'],
        // disallow use of `javascript:` urls.
        'no-script-url': 0,
        // disallow assignments where both sides are exactly the same (recommended)
        'no-self-assign': 2,
        // disallow comparisons where both sides are exactly the same
        'no-self-compare': 2,
        // disallow use of the comma operator
        'no-sequences': 2,
        // restrict what can be thrown as an exception
        'no-throw-literal': 2,
        // disallow unmodified conditions of loops
        'no-unmodified-loop-condition': 2,
        // disallow usage of expressions in statement position
        'no-unused-expressions': 2,
        // disallow unused labels (recommended)
        'no-unused-labels': 2,
        // disallow unnecessary `.call()` and `.apply()`
        'no-useless-call': 2,
        // disallow unnecessary concatenation of literals or template literals
        'no-useless-concat': 2,
        // disallow use of the `void` operator
        'no-void': 2,
        // disallow usage of configurable warning terms in comments - e.g. `TODO` or `FIXME`
        'no-warning-comments': 0,
{'fraction_non_alphanumeric': 0.11358633441930087, 'fraction_numerical': 0.01065422206568636, 'mean_word_length': 2.082225237449118, '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': '320803', 'n_tokens_mistral': 3267, 'n_tokens_neox': 3076, 'n_words': 1126}