<commit_before>require "language/node"

class AskCli < Formula
  desc "CLI tool for Alexa Skill Kit"
  homepage "https://www.npmjs.com/package/ask-cli"
  url "https://registry.npmjs.org/ask-cli/-/ask-cli-1.7.6.tgz"
  sha256 "cbe126dc5d9f0d23d5a29192af4b509277d19ccdc596bca86ad36333f49bc597"

  bottle do
    cellar :any_skip_relocation
    sha256 "4f75cdb3997ff3930241c2957f9b9248a9bdc9a114043baa51cd65f26755cdb1" => :mojave
    sha256 "49b1fed5eac9e00a101c90ddbf93679a40d87b0228b27a8ce71976565ca041b7" => :high_sierra
    sha256 "6ebbf27120e306b1e2c7dcf731ef0639ac330778afee76291c8ff4b88c269c17" => :sierra
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.write_exec_script libexec/"bin/ask"
  end

  test do
    output = shell_output("#{bin}/ask deploy 2>&1", 1)
    assert_match %r{\AInvalid json: [^ ]+\/.ask\/cli_config\Z}, output<commit_msg>ask-cli 1.7.7<commit_after>require "language/node"

class AskCli < Formula
  desc "CLI tool for Alexa Skill Kit"
  homepage "https://www.npmjs.com/package/ask-cli"
  url "https://registry.npmjs.org/ask-cli/-/ask-cli-1.7.7.tgz"
  sha256 "05cfd48ebc1a55dc40784ac8149f9cc431d726ae296108e4bc9751e3cd24805a"

  bottle do
    cellar :any_skip_relocation
    sha256 "4f75cdb3997ff3930241c2957f9b9248a9bdc9a114043baa51cd65f26755cdb1" => :mojave
    sha256 "49b1fed5eac9e00a101c90ddbf93679a40d87b0228b27a8ce71976565ca041b7" => :high_sierra
    sha256 "6ebbf27120e306b1e2c7dcf731ef0639ac330778afee76291c8ff4b88c269c17" => :sierra
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.write_exec_script libexec/"bin/ask"
  end

  test do
    output = shell_output("#{bin}/ask deploy 2>&1", 1)
    assert_match %r{\AInvalid json: [^ ]+\/.ask\/cli_config\Z}, output
{'fraction_non_alphanumeric': 0.11105092091007585, 'fraction_numerical': 0.19339111592632718, 'mean_word_length': 5.01628664495114, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '2835300', 'n_tokens_mistral': 999, 'n_tokens_neox': 798, 'n_words': 110}