<commit_before>require "language/node"

class Esbuild < Formula
  desc "Extremely fast JavaScript bundler and minifier"
  homepage "https://esbuild.github.io/"
  url "https://registry.npmjs.org/esbuild/-/esbuild-0.14.40.tgz"
  sha256 "a20d94c3f20b0c28e07ee8b1b6dc2693ccc40b00383089e83a38683d441cdb1b"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "97a5dfd003d3113040877523977b7112a3edf93b19e46d4631e074a2598a9447"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "97a5dfd003d3113040877523977b7112a3edf93b19e46d4631e074a2598a9447"
    sha256 cellar: :any_skip_relocation, monterey:       "395cc12922abd08270196e50b868c8f8ca029dea88ba738de16376a8df907a06"
    sha256 cellar: :any_skip_relocation, big_sur:        "395cc12922abd08270196e50b868c8f8ca029dea88ba738de16376a8df907a06"
    sha256 cellar: :any_skip_relocation, catalina:       "395cc12922abd08270196e50b868c8f8ca029dea88ba738de16376a8df907a06"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "57da66b504681991f8613f7d8f52bfbff611baca2c241075f689b31481227c7b"
  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>esbuild: update 0.14.40 bottle.<commit_after>require "language/node"

class Esbuild < Formula
  desc "Extremely fast JavaScript bundler and minifier"
  homepage "https://esbuild.github.io/"
  url "https://registry.npmjs.org/esbuild/-/esbuild-0.14.40.tgz"
  sha256 "a20d94c3f20b0c28e07ee8b1b6dc2693ccc40b00383089e83a38683d441cdb1b"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "9651eeb48a9f80142d2ae7711f3dc1827071c4feb4da54df16998a4bf605b35d"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9651eeb48a9f80142d2ae7711f3dc1827071c4feb4da54df16998a4bf605b35d"
    sha256 cellar: :any_skip_relocation, monterey:       "55689d67800bd3c82319fba2afad845c682c3d67cfcafadc7865587321bc2da4"
    sha256 cellar: :any_skip_relocation, big_sur:        "55689d67800bd3c82319fba2afad845c682c3d67cfcafadc7865587321bc2da4"
    sha256 cellar: :any_skip_relocation, catalina:       "55689d67800bd3c82319fba2afad845c682c3d67cfcafadc7865587321bc2da4"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "fc11bdeb63a47ab51c24949e94facad350267882ffbd2b68a83e424d72373b2c"
  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.07758620689655173, 'fraction_numerical': 0.2547021943573668, 'mean_word_length': 6.4, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4374067', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1112, 'n_words': 134}