<commit_before>'use strict';

module.exports = {
	'env': {
		'browser': true,
		'es6': true,
		'node': true,
		'mocha': true
	},
	'globals': {
		'$': true,
		'chrome': true,
		'Require': true,
		'define': true
	},
	'rules': {
		/**
		 * Possible errors
		 */
		// Disallow assignment operators in conditional expressions
		'no-cond-assign': 'error',
		// Disallow constant expressions in conditions
		'no-constant-condition': 'error',
		// Disallow duplicate arguments in function definitions
		'no-dupe-args': 'error',
		// Disallow duplicate keys in object literals
		'no-dupe-keys': 'error',
		// Disallow duplicate case labels
		'no-duplicate-case': 'error',
		// Disallow empty block statements
		'no-empty': 'error',
		// Disallow reassigning exceptions in `catch` clauses
		'no-ex-assign': 'error',
		// Disallow unnecessary boolean casts
		'no-extra-boolean-cast': 'error',
		// Disallow unnecessary semicolons
		'no-extra-semi': 'error',
		// Disallow reassigning function declarations
		'no-func-assign': 'error',
		// Disallow calling global object properties as functions
		'no-obj-calls': 'error',
		// Disallow template literal placeholder syntax in regular string
		'no-template-curly-in-string': 'error',
		// Disallow unreachable code after return, throw, continue,
		// and break statements
		'no-unreachable': 'error',
		// Require calls to `isNaN()` when checking for `NaN`
		'no-unsafe-negation': 'error',
		// Disallow negating the left operand of relational operators
		'use-isnan': 'error',
		// Enforce comparing `typeof` expressions against valid strings
		'valid-typeof': 'error',

		/**
		 * Best practices
		 */
		// Enforce consistent brace style for all control statements
		'curly': 'error',
		// Require the use of === and !==
		'eqeqeq': 'error',
		// Disallow `else` blocks after `return` statements in `if` statements
		'no-else-return': 'error',
		// Disallow empty functions
		// 'no-empty-function': 'error',
		// Disallow assignments to native objects or read-only global variables
		'no-global-assign': 'error',
		// Disallow function declarations and expressions inside loop statements
		'no-loop-func': 'error',
		// Disallow new operators with the String, Number, and Boolean objects
		'no-new-wrappers': 'error',
		// Disallow variable redeclaration
		'no-redeclare': 'error',
		// Disallow assignments where both sides are exactly the same
		'no-self-assign': 'error',
		// Disallow redundant return statements
		'no-useless-return': 'error',

		/**
		 * Strict mode
		 */
		// Require global strict mode directive
		'strict': ['error', 'global'],

		/**
		 * Variables
		 */
		// Disallow the use of undeclared variables
		'no-undef': 'error',
		// Disallow unused variables
		'no-unused-vars': 'error',

		/**
		 * Stylistic Issues
		 */
		// Require 'one true brace style', in which the opening brace
		// of a block is placed on the same line as its corresponding
		// statement or declaration
		// 'brace-style': ['error', '1tbs'],
		// Require space after comma
		'comma-spacing': ['error', {'after': true}],
		// Require or Disallow newline at the end of files
		'eol-last': ['error', 'always'],
		// Disallow spacing between function identifiers and their invocations
		'func-call-spacing': 'error',
		// use tabs as indentation
		'indent': ['error', 'tab', {
			// enforces indentation level for case clauses in switch statements
			'SwitchCase': 1,
		}],
		// Require space after colon in object literal properties
		'key-spacing': ['error', {'afterColon': true}],
		// Require space before and after keywords
		'keyword-spacing': ['error'],
		// Require Unix line endings
		'linebreak-style': ['error', 'unix'],
		// Disallow empty block statements
		'no-empty': ['error', {'allowEmptyCatch': true}],
		// Disallow `if` statements as the only statement in `else` blocks
		'no-lonely-if': 'error',
		// Disallow mixed spaces and tabs for indentation
		'no-mixed-spaces-and-tabs': 'error',
		// Disallow multiple spaces
		'no-multi-spaces': 'error',
		// Disallow nested ternary expressions
		'no-nested-ternary': 'error',
		// Disallow trailing whitespace at the end of lines
		'no-trailing-spaces': 'error',
		// Disallow ternary operators when simpler alternatives exist
		'no-unneeded-ternary': 'error',
		// Disallow whitespace before properties
		'no-whitespace-before-property': 'error',
		// Require single quotes
		'quotes': ['error', 'single'],
		// Require space before blocks
		'space-before-blocks': ['error', 'always'],
		// Disallow spaces inside of parentheses
		'space-in-parens': 'error',
		// Require spacing around infix operators
		'space-infix-ops': 'error',
		// Require semicolon at the end of statement
		'semi': ['error', 'always'],

		/**
		 * ECMAScript 6
		 */
		// Disallow reassigning class members
		'no-class-assign': 'error',
		// Disallow modifying variables that are declared using `const`
		'no-const-assign': 'error',
		// Disallow spacing around embedded expressions of template strings
		'template-curly-spacing': 'error',

		/**<commit_msg>Update ESLint rules<commit_after>'use strict';

module.exports = {
	'env': {
		'browser': true,
		'es6': true,
		'node': true,
		'mocha': true
	},
	'globals': {
		'$': true,
		'chrome': true,
		'Require': true,
		'define': true
	},
	'rules': {
		/**
		 * Possible errors
		 */
		// Disallow assignment operators in conditional expressions
		'no-cond-assign': 'error',
		// Disallow constant expressions in conditions
		'no-constant-condition': 'error',
		// Disallow duplicate arguments in function definitions
		'no-dupe-args': 'error',
		// Disallow duplicate keys in object literals
		'no-dupe-keys': 'error',
		// Disallow duplicate case labels
		'no-duplicate-case': 'error',
		// Disallow empty block statements
		'no-empty': 'error',
		// Disallow reassigning exceptions in `catch` clauses
		'no-ex-assign': 'error',
		// Disallow unnecessary boolean casts
		'no-extra-boolean-cast': 'error',
		// Disallow unnecessary semicolons
		'no-extra-semi': 'error',
		// Disallow reassigning function declarations
		'no-func-assign': 'error',
		// Disallow calling global object properties as functions
		'no-obj-calls': 'error',
		// Disallow template literal placeholder syntax in regular string
		'no-template-curly-in-string': 'error',
		// Disallow unreachable code after return, throw, continue,
		// and break statements
		'no-unreachable': 'error',
		// Require calls to `isNaN()` when checking for `NaN`
		'no-unsafe-negation': 'error',
		// Disallow negating the left operand of relational operators
		'use-isnan': 'error',
		// Enforce valid JSDoc comments
		// 'valid-jsdoc': ['error', { 'requireReturn': false }],
		// Enforce comparing `typeof` expressions against valid strings
		'valid-typeof': 'error',

		/**
		 * Best practices
		 */
		// Enforce consistent brace style for all control statements
		'curly': 'error',
		// Require the use of === and !==
		'eqeqeq': 'error',
		// Disallow `else` blocks after `return` statements in `if` statements
		'no-else-return': 'error',
		// Disallow empty functions
		// 'no-empty-function': 'error',
		// Disallow assignments to native objects or read-only global variables
		'no-global-assign': 'error',
		// Disallow function declarations and expressions inside loop statements
		'no-loop-func': 'error',
		// Disallow new operators with the String, Number, and Boolean objects
		'no-new-wrappers': 'error',
		// Disallow variable redeclaration
		'no-redeclare': 'error',
		// Disallow assignments where both sides are exactly the same
		'no-self-assign': 'error',
		// Disallow redundant return statements
		'no-useless-return': 'error',

		/**
		 * Strict mode
		 */
		// Require global strict mode directive
		'strict': ['error', 'global'],

		/**
		 * Variables
		 */
		// Disallow deleting variables
		'no-delete-var': 'error',
		// Disallow the use of undeclared variables
		'no-undef': 'error',
		// Disallow unused variables
		'no-unused-vars': 'error',

		/**
		 * Stylistic Issues
		 */
		// Require 'one true brace style', in which the opening brace
		// of a block is placed on the same line as its corresponding
		// statement or declaration
		// 'brace-style': ['error', '1tbs'],
		// Require space after comma
		'comma-spacing': ['error', {'after': true}],
		// Require or Disallow newline at the end of files
		'eol-last': ['error', 'always'],
		// Disallow spacing between function identifiers and their invocations
		'func-call-spacing': 'error',
		// use tabs as indentation
		'indent': ['error', 'tab', {
			// enforces indentation level for case clauses in switch statements
			'SwitchCase': 1,
		}],
		// Require space after colon in object literal properties
		'key-spacing': ['error', {'afterColon': true}],
		// Require space before and after keywords
		'keyword-spacing': ['error'],
		// Require Unix line endings
		'linebreak-style': ['error', 'unix'],
		// Disallow empty block statements
		'no-empty': ['error', {'allowEmptyCatch': true}],
		// Disallow `if` statements as the only statement in `else` blocks
		'no-lonely-if': 'error',
		// Disallow mixed spaces and tabs for indentation
		'no-mixed-spaces-and-tabs': 'error',
		// Disallow multiple spaces
		'no-multi-spaces': 'error',
		// Disallow nested ternary expressions
		'no-nested-ternary': 'error',
		// Disallow trailing whitespace at the end of lines
		'no-trailing-spaces': 'error',
		// Disallow ternary operators when simpler alternatives exist
		'no-unneeded-ternary': 'error',
		// Disallow whitespace before properties
		'no-whitespace-before-property': 'error',
		// Require single quotes
		'quotes': ['error', 'single'],
		// Require space before blocks
		'space-before-blocks': ['error', 'always'],
		// Disallow spaces inside of parentheses
		'space-in-parens': 'error',
		// Require spacing around infix operators
		'space-infix-ops': 'error',
		// Require semicolon at the end of statement
		'semi': ['error', 'always'],

		/**
		 * ECMAScript 6
		 */
		// Disallow reassigning class members
		'no-class-assign': 'error',
		// Disallow modifying variables that are declared using `const`
		'no-const-assign': 'error',
		// Disallow duplicate class members
		'no-dupe-class-members': 'error',
		// Disallow `this` or `super` before calling super() in constructors
		'no-this-before-super': 'error',
		// Disallow spacing around embedded expressions of template strings
		'template-curly-spacing': 'error',

		/**
{'fraction_non_alphanumeric': 0.14531310026892047, 'fraction_numerical': 0.000768344218209758, 'mean_word_length': 3.5254237288135593, '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': '2517943', 'n_tokens_mistral': 3497, 'n_tokens_neox': 3061, 'n_words': 1032}