<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-1.15.30.tgz"
  sha256 "d1d8231f41759aae4300042fcbef210fa3221088dcd5ca61d1face6d010b61f4"
  license "MIT"
  head "https://github.com/contentful/contentful-cli.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "a2eea7f63d80828f1d13f90892b61edcd2e6222f5d27fd763914398fb9d6952c"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
    sha256 cellar: :any_skip_relocation, monterey:       "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, big_sur:        "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, catalina:       "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
  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
    output = shell_output("#{bin}/contentful space list 2>&1", 1)
    assert_match "🚨  Error: You have to be logged in to do this.", output
    assert_match "You can log in via contentful login", output
    assert_match "Or provide a management token via --management-token argument", output
  end
end
<commit_msg>contentful-cli 1.15.45<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-1.15.45.tgz"
  sha256 "9beeedd8f252598d38471716548b10dea79774ae48a24ab9435070048b92fa3e"
  license "MIT"
  head "https://github.com/contentful/contentful-cli.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "a2eea7f63d80828f1d13f90892b61edcd2e6222f5d27fd763914398fb9d6952c"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
    sha256 cellar: :any_skip_relocation, monterey:       "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, big_sur:        "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, catalina:       "3c4dff6d3810a018b23a436497734f498b22bef5602df0c2a0c442e808a2909b"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "0db86d362e7139905cb29ce0dfaaa2211f9a9b049589b9e3da5f4f170c775564"
  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
    output = shell_output("#{bin}/contentful space list 2>&1", 1)
    assert_match "🚨  Error: You have to be logged in to do this.", output
    assert_match "You can log in via contentful login", output
    assert_match "Or provide a management token via --management-token argument", output
  end
end

{'fraction_non_alphanumeric': 0.0832637148426622, 'fraction_numerical': 0.21052631578947367, 'mean_word_length': 5.868068833652008, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7025402', 'n_tokens_mistral': 1902, 'n_tokens_neox': 1498, 'n_words': 225}