<commit_before>require "language/node"

class FirebaseCli < Formula
  desc "Firebase command-line tools"
  homepage "https://firebase.google.com/docs/cli/"
  url "https://registry.npmjs.org/firebase-tools/-/firebase-tools-8.8.0.tgz"
  sha256 "8d2aca5d433d50354dfb434b46e94dc5e9d9b10c4e3ab15dafb074b4106e6e7b"
  license "MIT"
  head "https://github.com/firebase/firebase-tools.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "bce430525013cc70bb8a48190bc9405ca244eaecff49cca6d22f9f6a066ce8d7" => :catalina
    sha256 "5c928837329913e69c689926711114babb282fe6b9d9ce8407c84e7781646a7a" => :mojave
    sha256 "1671923c36d336a4a901f61aba82ada31e9158ebbfd80ca85c160de3d493c261" => :high_sierra
  end

  depends_on "node"

  uses_from_macos "expect" => :test

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

  test do<commit_msg>firebase-cli 8.8.1<commit_after>require "language/node"

class FirebaseCli < Formula
  desc "Firebase command-line tools"
  homepage "https://firebase.google.com/docs/cli/"
  url "https://registry.npmjs.org/firebase-tools/-/firebase-tools-8.8.1.tgz"
  sha256 "a193f77175b5613482e1005f11eddb76b7bd976a394ec7fbb7cb43fee6691dd0"
  license "MIT"
  head "https://github.com/firebase/firebase-tools.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "bce430525013cc70bb8a48190bc9405ca244eaecff49cca6d22f9f6a066ce8d7" => :catalina
    sha256 "5c928837329913e69c689926711114babb282fe6b9d9ce8407c84e7781646a7a" => :mojave
    sha256 "1671923c36d336a4a901f61aba82ada31e9158ebbfd80ca85c160de3d493c261" => :high_sierra
  end

  depends_on "node"

  uses_from_macos "expect" => :test

  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.10563002680965147, 'fraction_numerical': 0.1898123324396783, 'mean_word_length': 5.412371134020619, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5359348', 'n_tokens_mistral': 982, 'n_tokens_neox': 783, 'n_words': 98}