<commit_before>require "language/node"

class AwsCdk < Formula
  desc "AWS Cloud Development Kit - framework for defining AWS infra as code"
  homepage "https://github.com/aws/aws-cdk"
  url "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.15.0.tgz"
  sha256 "06d3eaa6803304cdcaf31e49c2a3d2afdab22ccb087743e7fed4460e2ac26a16"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "928136e0a788003ac566251be3cf1f3eadf595a070145b28ffae2a95bb7b33b7"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "928136e0a788003ac566251be3cf1f3eadf595a070145b28ffae2a95bb7b33b7"
    sha256 cellar: :any_skip_relocation, monterey:       "928d929b11ff055cb3ec98f18903097c62c7b58f9d914ad56adeb798ad9de582"
    sha256 cellar: :any_skip_relocation, big_sur:        "928d929b11ff055cb3ec98f18903097c62c7b58f9d914ad56adeb798ad9de582"
    sha256 cellar: :any_skip_relocation, catalina:       "928d929b11ff055cb3ec98f18903097c62c7b58f9d914ad56adeb798ad9de582"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "349d4ac7c1c5a110dc518b41153638fcb57fccc97941677502bd0a7735b28f48"
  end

  depends_on "node"

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

    # Replace universal binaries with native slices.
    deuniversalize_machos
  end

  test do
    # `cdk init` cannot be run in a non-empty directory
    mkdir "testapp" do
      shell_output("#{bin}/cdk init app --language=javascript")
      list = shell_output("#{bin}/cdk list")
      cdkversion = shell_output("#{bin}/cdk --version")
      assert_match "TestappStack", list
      assert_match version.to_s, cdkversion
    end
  end
end<commit_msg>aws-cdk: update 2.15.0 bottle.<commit_after>require "language/node"

class AwsCdk < Formula
  desc "AWS Cloud Development Kit - framework for defining AWS infra as code"
  homepage "https://github.com/aws/aws-cdk"
  url "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.15.0.tgz"
  sha256 "06d3eaa6803304cdcaf31e49c2a3d2afdab22ccb087743e7fed4460e2ac26a16"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a247de47a1c0140cb2e963b0405ded57d501b2a50959c64b9d7dd11a7a23bec6"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a247de47a1c0140cb2e963b0405ded57d501b2a50959c64b9d7dd11a7a23bec6"
    sha256 cellar: :any_skip_relocation, monterey:       "ad83714e7eaabf423b4586c04093061203ada33bdc4dd78bf03ea2458de5373e"
    sha256 cellar: :any_skip_relocation, big_sur:        "ad83714e7eaabf423b4586c04093061203ada33bdc4dd78bf03ea2458de5373e"
    sha256 cellar: :any_skip_relocation, catalina:       "ad83714e7eaabf423b4586c04093061203ada33bdc4dd78bf03ea2458de5373e"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "c1f9e46d7f9d87f14fcdd07929538059af57d6a426ec22232e555039e13c2dc5"
  end

  depends_on "node"

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

    # Replace universal binaries with native slices.
    deuniversalize_machos
  end

  test do
    # `cdk init` cannot be run in a non-empty directory
    mkdir "testapp" do
      shell_output("#{bin}/cdk init app --language=javascript")
      list = shell_output("#{bin}/cdk list")
      cdkversion = shell_output("#{bin}/cdk --version")
      assert_match "TestappStack", list
      assert_match version.to_s, cdkversion
    end
  end
end
{'fraction_non_alphanumeric': 0.0862914862914863, 'fraction_numerical': 0.1800865800865801, 'mean_word_length': 4.975862068965517, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5855753', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1424, 'n_words': 222}