<commit_before>require "language/node"

class ContentfulCli < Formula
  desc "Contentful command-line tools"
  homepage "https://github.com/contentful/contentful-cli"
  url "https://registry.npmjs.org/contentful-cli/-/contentful-cli-0.34.1.tgz"
  sha256 "5117b489b4a5d41856083bd7228973dbea0ae77ff526384ed0f028d926347974"
  head "https://github.com/contentful/contentful-cli.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "f9625ae75a2b80382b082ebdedaaf07bf2822cb4068aaeedf8496eeec3341dd1" => :mojave
    sha256 "13b3704abbf8737ee5f9e058f76e695c5f56c652fd925fdf305a96d2367a7823" => :high_sierra
    sha256 "eaa4757286c446c5bfc611554897ba655816a47b4a371ddf88ecdc1a1ec53114" => :sierra
  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<commit_msg>contentful-cli 0.34.2<commit_after>require "language/node"

class ContentfulCli < Formula
  desc "Contentful command-line tools"
  homepage "https://github.com/contentful/contentful-cli"
  url "https://registry.npmjs.org/contentful-cli/-/contentful-cli-0.34.2.tgz"
  sha256 "23c0ad06dd2c814fc9924899e6df807423645b8b704eb04ba3ed3c44db6537f4"
  head "https://github.com/contentful/contentful-cli.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "f9625ae75a2b80382b082ebdedaaf07bf2822cb4068aaeedf8496eeec3341dd1" => :mojave
    sha256 "13b3704abbf8737ee5f9e058f76e695c5f56c652fd925fdf305a96d2367a7823" => :high_sierra
    sha256 "eaa4757286c446c5bfc611554897ba655816a47b4a371ddf88ecdc1a1ec53114" => :sierra
  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
{'fraction_non_alphanumeric': 0.1013437849944009, 'fraction_numerical': 0.19988801791713326, 'mean_word_length': 5.692883895131086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '4118035', 'n_tokens_mistral': 942, 'n_tokens_neox': 745, 'n_words': 88}