<commit_before>module.exports = {
  "react/display-name": [2, { acceptTranspilerName: true }],
  "react/jsx-boolean-value": 1,
  "react/jsx-no-undef": 1,
  "react/jsx-quotes": 1,
  "react/jsx-sort-prop-types": 1,
  "react/jsx-sort-props": 0,
  "react/jsx-uses-react": 1,
  "react/jsx-uses-vars": 1,
  "react/no-did-mount-set-state": 1,
  "react/no-did-update-set-state": 1,
  "react/no-multi-comp": 0,
  "react/no-unknown-property": 1,
  "react/prop-types": 1,
  "react/react-in-jsx-scope": 1,
  "react/self-closing-comp": 1,
  "react/sort-comp": [
    1,
    {
      order: [
        "statics",
        "constructor",
        "lifecycle",
        "everything-else",
        "render"
      ]
    }
  ],
  "react/wrap-multilines": 1
}<commit_msg>Updated React rules<commit_after>module.exports = {
  // Prevent missing displayName in a React component definition
  "react/display-name": [2, { acceptTranspilerName: true }],
  // Enforce boolean attributes notation in JSX
  "react/jsx-boolean-value": 1,
  // Validate closing bracket location in JSX
  "react/jsx-closing-bracket-location": [1, { location: "tag-aligned" }],
  // Enforce or disallow spaces inside of curly braces in JSX attributes
  "react/jsx-curly-spacing": [1, "never", { allowMultiline: true }],
  // Validate props indentation in JSX
  "react/jsx-indent-props": [2, 2],
  // Limit maximum of props on a single line in JSX
  "react/jsx-max-props-per-line": 0,
  // Prevent duplicate props in JSX
  "react/jsx-no-duplicate-props": 2,
  // Prevent usage of unwrapped JSX strings
  "react/jsx-no-literals": 0,
  // Disallow undeclared variables in JSX
  "react/jsx-no-undef": 2,
  // Enforce quote style for JSX attributes
  "react/jsx-quotes": [1, "single", "avoid-escape"],
  // Enforce propTypes declarations alphabetical sorting
  "react/jsx-sort-prop-types": 0,
  // Enforce props alphabetical sorting
  "react/jsx-sort-props": 0,
  // Prevent React to be incorrectly marked as unused
  "react/jsx-uses-react": 0,
  // Prevent variables used in JSX to be incorrectly marked as unused
  "react/jsx-uses-vars": 2,
  // Prevent usage of dangerous JSX properties
  "react/no-danger": 2,
  // Prevent usage of setState in componentDidMount
  "react/no-did-mount-set-state": 1,
  // Prevent usage of setState in componentDidUpdate
  "react/no-did-update-set-state": 1,
  // Prevent multiple component definition per file
  "react/no-multi-comp": 0,
  // Prevent usage of setState
  "react/no-set-state": 0,
  // Prevent usage of unknown DOM property
  "react/no-unknown-property": 0,
  // Prevent missing props validation in a React component definition
  "react/prop-types": 1,
  // Prevent missing React when using JSX
  "react/react-in-jsx-scope": 2,
  // Restrict file extensions that may be required
  "react/require-extension": [2, { extensions: [".js"] }],
  // Prevent extra closing tags for components without children
  "react/self-closing-comp": 1,
  // Enforce component methods order
  "react/sort-comp": [
    1,
    {
      order: [
        "statics",
        "constructor",
        "lifecycle",
        "everything-else",
        "render"
      ]
    }
  ],
  // Prevent missing parentheses around multilines JSX
  "react/wrap-multilines": 2
}
{'fraction_non_alphanumeric': 0.14516129032258066, 'fraction_numerical': 0.013647642679900745, 'mean_word_length': 3.0262172284644193, 'pattern_counts': {'":': 43, '<': 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': '1946782', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1081, 'n_words': 286}