<commit_before>{ eslint ? { outPath = ./.; name = "eslint"; }
, pkgs ? import <nixpkgs> {}
}:
let
  nodePackages = import "${pkgs.path}/pkgs/top-level/node-packages.nix" {
    inherit pkgs;
    inherit (pkgs) stdenv nodejs fetchurl fetchgit;
    neededNatives = [ pkgs.python ] ++ pkgs.lib.optional pkgs.stdenv.isLinux pkgs.utillinux;
    self = nodePackages;
    generated = ./generated.nix;
  };
in rec {
  tarball = pkgs.runCommand "eslint-2.9.0.tgz" { buildInputs = [ pkgs.nodejs ]; } ''
    mv `HOME=$PWD npm pack ${eslint}` $out
  '';
  build = nodePackages.buildNodePackage {
    name = "eslint-2.9.0";
    src = [ tarball ];
    buildInputs = nodePackages.nativeDeps."eslint" or [];
    deps = [ nodePackages.by-spec."chalk"."^1.1.3" nodePackages.by-spec."concat-stream"."^1.4.6" nodePackages.by-spec."debug"."^2.1.1" nodePackages.by-spec."doctrine"."^1.2.1" nodePackages.by-spec."es6-map"."^0.1.3" nodePackages.by-spec."escope"."^3.6.0" nodePackages.by-spec."espree"."3.1.4" nodePackages.by-spec."estraverse"."^4.2.0" nodePackages.by-spec."esutils"."^2.0.2" nodePackages.by-spec."file-entry-cache"."^1.1.1" nodePackages.by-spec."glob"."^7.0.3" nodePackages.by-spec."globals"."^9.2.0" nodePackages.by-spec."ignore"."^3.1.2" nodePackages.by-spec."imurmurhash"."^0.1.4" nodePackages.by-spec."inquirer"."^0.12.0" nodePackages.by-spec."is-my-json-valid"."^2.10.0" nodePackages.by-spec."is-resolvable"."^1.0.0" nodePackages.by-spec."js-yaml"."^3.5.1" nodePackages.by-spec."json-stable-stringify"."^1.0.0" nodePackages.by-spec."lodash"."^4.0.0" nodePackages.by-spec."mkdirp"."^0.5.0" nodePackages.by-spec."optionator"."^0.8.1" nodePackages.by-spec."path-is-absolute"."^1.0.0" nodePackages.by-spec."path-is-inside"."^1.0.1" nodePackages.by-spec."pluralize"."^1.2.1" nodePackages.by-spec."progress"."^1.1.8" nodePackages.by-spec."require-uncached"."^1.0.2" nodePackages.by-spec."shelljs"."^0.6.0" nodePackages.by-spec."strip-json-comments"."~1.0.1" nodePackages.by-spec."table"."^3.7.8" nodePackages.by-spec."text-table"."~0.2.0" nodePackages.by-spec."user-home"."^2.0.0" ];
    peerDependencies = [];
  };
}<commit_msg>eslint: clean up a bit<commit_after>{ fetchFromGitHub, pkgs }:
let
  src = fetchFromGitHub {
    owner = "eslint";
    repo = "eslint";
    rev = "v2.9.0";
    sha256 = "0bm3l7ifhli2gwmyyxmjhffzq8lqrvvxwc7ca4zv6cyrxn71r9nk";
  };
  nodePackages = import "${pkgs.path}/pkgs/top-level/node-packages.nix" {
    inherit pkgs;
    inherit (pkgs) stdenv nodejs fetchurl fetchgit;
    neededNatives = [ pkgs.python ] ++ pkgs.lib.optional pkgs.stdenv.isLinux pkgs.utillinux;
    self = nodePackages;
    generated = ./generated.nix;
  };
in nodePackages.buildNodePackage {
  inherit src;
  name = "eslint-2.9.0";
  buildInputs = nodePackages.nativeDeps."eslint" or [];
  deps = [
    nodePackages.by-spec."chalk"."^1.1.3"
    nodePackages.by-spec."concat-stream"."^1.4.6"
    nodePackages.by-spec."debug"."^2.1.1"
    nodePackages.by-spec."doctrine"."^1.2.1"
    nodePackages.by-spec."es6-map"."^0.1.3"
    nodePackages.by-spec."escope"."^3.6.0"
    nodePackages.by-spec."espree"."3.1.4"
    nodePackages.by-spec."estraverse"."^4.2.0"
    nodePackages.by-spec."esutils"."^2.0.2"
    nodePackages.by-spec."file-entry-cache"."^1.1.1"
    nodePackages.by-spec."glob"."^7.0.3"
    nodePackages.by-spec."globals"."^9.2.0"
    nodePackages.by-spec."ignore"."^3.1.2"
    nodePackages.by-spec."imurmurhash"."^0.1.4"
    nodePackages.by-spec."inquirer"."^0.12.0"
    nodePackages.by-spec."is-my-json-valid"."^2.10.0"
    nodePackages.by-spec."is-resolvable"."^1.0.0"
    nodePackages.by-spec."js-yaml"."^3.5.1"
    nodePackages.by-spec."json-stable-stringify"."^1.0.0"
    nodePackages.by-spec."lodash"."^4.0.0"
    nodePackages.by-spec."mkdirp"."^0.5.0"
    nodePackages.by-spec."optionator"."^0.8.1"
    nodePackages.by-spec."path-is-absolute"."^1.0.0"
    nodePackages.by-spec."path-is-inside"."^1.0.1"
    nodePackages.by-spec."pluralize"."^1.2.1"
    nodePackages.by-spec."progress"."^1.1.8"
    nodePackages.by-spec."require-uncached"."^1.0.2"
    nodePackages.by-spec."shelljs"."^0.6.0"
    nodePackages.by-spec."strip-json-comments"."~1.0.1"
    nodePackages.by-spec."table"."^3.7.8"
    nodePackages.by-spec."text-table"."~0.2.0"
    nodePackages.by-spec."user-home"."^2.0.0" ];
  peerDependencies = [];
}
{'fraction_non_alphanumeric': 0.22307157748436415, 'fraction_numerical': 0.05188788510539727, 'mean_word_length': 3.5357142857142856, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '305646', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1829, 'n_words': 166}