<commit_before>module.exports = {
  "extends": "semistandard",
  "rules": {
    "indent": ["error", 4, {
      "SwitchCase": 1
    }],
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "never"
    }],
    "one-var": "off",
    "no-multi-spaces": ["error", {
      "exceptions": {
        "VariableDeclarator": true,
        "ImportDeclaration": true
      }
    }],
    "backbone/collection-model": "error",
    "backbone/defaults-on-top": "off",
    "backbone/event-scope": "off",
    "backbone/events-on-top": ["error", ["tagName", "className"]],
    "backbone/events-sort": "off",
    "backbone/initialize-on-top": ["error", {
      View: ["tagName", "className", "events"],
      Model: ["defaults", "url", "urlRoot"],
      Collection: ["model", "url"]
    }],
    "backbone/model-defaults": "off",
    "backbone/no-changed-set": "off",
    "backbone/no-collection-models": "off",
    "backbone/no-constructor": "error",
    "backbone/no-el-assign": "off",
    "backbone/no-model-attributes": "error",
    "backbone/no-native-jquery": "off",
    "backbone/no-silent": "off",
    "backbone/no-view-collection-models": "error",
    "backbone/no-view-model-attributes": "off",
    "backbone/no-view-onoff-binding": "off",
    "backbone/no-view-qualified-jquery": "off",
    "backbone/render-return": "off",
    "underscore/collection-return": "error",
    "underscore/matches-shorthand": ["error", "always"],
    "underscore/no-unnecessary-bind": "error",
    "underscore/prefer-compact": "error",
    "underscore/prefer-constant": "error",
    "underscore/prefer-filter": "error",
    "underscore/prefer-findwhere": "error",
    "underscore/prefer-invoke": "error",
    "underscore/prefer-map": "error",
    "underscore/prefer-matches": "error",
    "underscore/prefer-noop": "off",
    "underscore/prefer-pluck": "error",
    "underscore/prefer-reject": "error",
    "underscore/prefer-times": "error",
    "underscore/prefer-underscore-method": "off",
    "underscore/prefer-underscore-typecheck": "error",
    "underscore/prefer-where": "error",
    "underscore/preferred-alias": "error",
    "underscore/prop-shorthand": ["error", "always"]
  },
  "env": {
    "browser": true,
    "jquery": true
  },
  "plugins": [
    "backbone",
    "underscore"
  ],
  "globals": {},
  "settings": {
    "backbone": {
      "Collection": [
       "Collection"
      ],
      "Model": [
        "Model",
        "AccessControlledModel"
      ],
      "View": [
        "View",
        "MetadatumEditWidget"
      ]
    }
  }
};
<commit_msg>Add new rules from downstream Girder<commit_after>module.exports = {
  "extends": "semistandard",
  "rules": {
    "arrow-parens": "error",
    "eqeqeq": ["error",
      "always", {"null": "always"}
    ],
    "indent": ["error", 4, {
      "SwitchCase": 1
    }],
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "never"
    }],
    "one-var": "off",
    "no-multi-spaces": ["error", {
      "exceptions": {
        "VariableDeclarator": true,
        "ImportDeclaration": true
      }
    }],
    "no-throw-literal": "off",  // This would be desirable, but interferes with use in Promise.then
    "backbone/collection-model": "error",
    "backbone/defaults-on-top": "error",
    "backbone/event-scope": "off",
    "backbone/events-on-top": ["error", ["tagName", "className"]],
    "backbone/events-sort": "off",
    "backbone/initialize-on-top": ["error", {
      View: ["tagName", "className", "events"],
      Model: ["defaults", "url", "urlRoot"],
      Collection: ["model", "url"]
    }],
    "backbone/model-defaults": "off",
    "backbone/no-changed-set": "error",
    "backbone/no-collection-models": "error",
    "backbone/no-constructor": "error",
    "backbone/no-el-assign": "error",
    "backbone/no-model-attributes": "error",
    "backbone/no-native-jquery": "off",
    "backbone/no-silent": "error",
    "backbone/no-view-collection-models": "error",
    "backbone/no-view-model-attributes": "error",
    "backbone/no-view-onoff-binding": "off",
    "backbone/no-view-qualified-jquery": "error",
    "backbone/render-return": "error",
    "import/named": "error",
    "import/order": ["error", {
      "groups": ["builtin", "external", ["parent", "sibling", "index"]],
      "newlines-between": "always-and-inside-groups"
    }],
    "promise/always-return": "error",
    "promise/no-nesting": "error",
    "underscore/collection-return": "error",
    "underscore/identity-shorthand": ["error", "always"],
    "underscore/jquery-each": ["error", "never"],
    "underscore/jquery-proxy": ["error", "never"],
    "underscore/matches-shorthand": ["error", "always"],
    "underscore/no-return-value-from-each-iteratee": "error",
    "underscore/no-unnecessary-bind": "error",
    "underscore/prefer-compact": "error",
    "underscore/prefer-constant": "error",
    "underscore/prefer-filter": "error",
    "underscore/prefer-findwhere": "error",
    "underscore/prefer-invoke": "error",
    "underscore/prefer-map": "error",
    "underscore/prefer-matches": "error",
    "underscore/prefer-noop": "off",
    "underscore/prefer-pluck": "error",
    "underscore/prefer-reject": "error",
    "underscore/prefer-times": "error",
    "underscore/prefer-underscore-method": "off",
    "underscore/prefer-underscore-typecheck": "error",
    "underscore/prefer-where": "error",
    "underscore/preferred-alias": "error",
    "underscore/prop-shorthand": ["error", "always"]
  },
  "env": {
    "browser": true,
    "jquery": true
  },
  "plugins": [
    "backbone",
    "underscore"
  ],
  "globals": {},
  "settings": {
    "backbone": {
      "Collection": [
       "Collection"
      ],
      "Model": [
        "Model",
        "AccessControlledModel"
      ],
      "View": [
        "View",
        "MetadatumEditWidget"
      ]
    }
  }
};

{'fraction_non_alphanumeric': 0.2102843521198706, 'fraction_numerical': 0.0006810829218457347, 'mean_word_length': 3.1337086558761436, 'pattern_counts': {'":': 134, '<': 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': '6128043', 'n_tokens_mistral': 2085, 'n_tokens_neox': 2023, 'n_words': 319}