<commit_before>require "language/node"

class GruntCli < Formula
  desc "JavaScript Task Runner"
  homepage "https://gruntjs.com/"
  url "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.3.1.tgz"
  sha256 "10f0d0d9bac0f189ff22b0f1319fa9defd423ddf306adc49c334a8affc72e672"

  bottle do
    cellar :any_skip_relocation
    sha256 "1e3ab1d1b423cbbea629afa86caf1bd60d1988cd33e356fa1b9d8be2503b8a77" => :mojave
    sha256 "f863a44ad1095e592b36493171143c99a7187bc83325d312b9059400c06b2b9d" => :high_sierra
    sha256 "bc83b14e511d552cf9858264525b962a854a2d6c15512c468b1b5dc80b9d597d" => :sierra
    sha256 "e90e6ebd81896e57a481fb454fb2cb7e25e0e98baa9fab4c05ef71a3b7a00664" => :el_capitan
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/"package.json").write <<~EOS
      {
        "name": "grunt-homebrew-test",
        "version": "1.0.0",
        "devDependencies": {
          "grunt": ">=0.4.0"
        }
      }
    EOS

    (testpath/"Gruntfile.js").write <<~EOS
      module.exports = function(grunt) {
        grunt.registerTask("default", "Write output to file.", function() {
          grunt.file.write("output.txt", "Success!");
        })
      };
    EOS

    system "npm", "install", *Language::Node.local_npm_install_args
    system bin/"grunt"
    assert_predicate testpath/"output.txt", :exist?, "output.txt was not generated"
  end
end
<commit_msg>grunt-cli: update 1.3.1 bottle for Linuxbrew.<commit_after>require "language/node"

class GruntCli < Formula
  desc "JavaScript Task Runner"
  homepage "https://gruntjs.com/"
  url "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.3.1.tgz"
  sha256 "10f0d0d9bac0f189ff22b0f1319fa9defd423ddf306adc49c334a8affc72e672"

  bottle do
    cellar :any_skip_relocation
    sha256 "1e3ab1d1b423cbbea629afa86caf1bd60d1988cd33e356fa1b9d8be2503b8a77" => :mojave
    sha256 "f863a44ad1095e592b36493171143c99a7187bc83325d312b9059400c06b2b9d" => :high_sierra
    sha256 "bc83b14e511d552cf9858264525b962a854a2d6c15512c468b1b5dc80b9d597d" => :sierra
    sha256 "e90e6ebd81896e57a481fb454fb2cb7e25e0e98baa9fab4c05ef71a3b7a00664" => :el_capitan
    sha256 "c9b70b48ebd1fb63e4750616a332889e90d6c86dfca643829e358f836b160c73" => :x86_64_linux
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/"package.json").write <<~EOS
      {
        "name": "grunt-homebrew-test",
        "version": "1.0.0",
        "devDependencies": {
          "grunt": ">=0.4.0"
        }
      }
    EOS

    (testpath/"Gruntfile.js").write <<~EOS
      module.exports = function(grunt) {
        grunt.registerTask("default", "Write output to file.", function() {
          grunt.file.write("output.txt", "Success!");
        })
      };
    EOS

    system "npm", "install", *Language::Node.local_npm_install_args
    system bin/"grunt"
    assert_predicate testpath/"output.txt", :exist?, "output.txt was not generated"
  end
end

{'fraction_non_alphanumeric': 0.12400635930047695, 'fraction_numerical': 0.15675675675675677, 'mean_word_length': 3.7811550151975686, 'pattern_counts': {'":': 8, '<': 13, '<?xml version=': 0, '>': 14, 'https://': 4, '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': '6570868', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1288, 'n_words': 174}