<commit_before>module.exports = {
    parser: 'babel-eslint',
    env: {
        browser: true, // We write for browser
        es6: true, // using ES6 syntax
        commonjs: true, // sometimes requiring modules in CommonJS
        mocha: true // We use Mocha for tests
    },
    extends: [
        'eslint-config-airbnb/base',
        'eslint-config-airbnb/rules/strict',
        'eslint-config-airbnb/rules/react'
    ].map(require.resolve),
    plugins: [
        'flow-vars'
    ],
    rules: {
        'semi': [2, 'never'],
        'indent': [2, 4, {
            'SwitchCase': 1
        }],
        'comma-dangle': [2, 'never'],
        'jsx-quotes': [2, 'prefer-double'],
        'padded-blocks': [0, 'never'],
        'id-length': [2, {'exceptions': ['b']}],
        'new-cap': [2, {
            'newIsCap': true,
            'capIsNewExceptions': ['List', 'Map', 'Set']
        }],
        'no-console': 2,
        'no-debugger': 2,
        'guard-for-in': 0,
        'object-curly-spacing': [2, 'always'],
        'template-curly-spacing': [2, 'always'],

        // React
        'react/jsx-indent-props': [2, 4],
        'react/sort-comp': [2, {
            order: [
                'flow-types',
                'static-methods',
                'lifecycle',
                'everything-else',
                'render'
            ],
            groups: {
                'flow-types': [
                    'props',
                    'state'
                ]
            }
        }],

        // flow-vars plugin
        'flow-vars/define-flow-type': 1,
        'flow-vars/use-flow-type': 1
    }
};<commit_msg>Added jest + reformatted code<commit_after>module.exports = {
  parser: 'babel-eslint',
  env: {
    es6: true,
    browser: true,
    commonjs: true,
    mocha: true,
    jest: true
  },
  extends: [
    'eslint-config-airbnb/base',
    'eslint-config-airbnb/rules/strict',
    'eslint-config-airbnb/rules/react'
  ].map(require.resolve),
  plugins: [
    'flow-vars'
  ],
  rules: {
    'semi': [2, 'never'],
    'indent': [2, 4, {
      'SwitchCase': 1
    }],
    'comma-dangle': [2, 'never'],
    'jsx-quotes': [2, 'prefer-double'],
    'padded-blocks': [0, 'never'],
    'id-length': [2, { 'exceptions': ['b'] }],
    'new-cap': [2, {
      'newIsCap': true,
      'capIsNewExceptions': ['List', 'Map', 'Set']
    }],
    'no-console': 2,
    'no-debugger': 2,
    'guard-for-in': 0,
    'object-curly-spacing': [2, 'always'],
    'template-curly-spacing': [2, 'always'],

    // React
    'react/jsx-indent-props': [2, 4],
    'react/sort-comp': [2, {
      order: [
        'flow-types',
        'static-methods',
        'lifecycle',
        'everything-else',
        'render'
      ],
      groups: {
        'flow-types': [
          'props',
          'state'
        ]
      }
    }],

    // flow-vars plugin
    'flow-vars/define-flow-type': 1,
    'flow-vars/use-flow-type': 1
  }
};
{'fraction_non_alphanumeric': 0.18935516888433981, 'fraction_numerical': 0.013988399863527807, 'mean_word_length': 1.6225402504472273, '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': '2285978', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1022, 'n_words': 188}