<commit_before>require "language/node"

class VercelCli < Formula
  desc "Command-line interface for Vercel"
  homepage "https://vercel.com/home"
  url "https://registry.npmjs.org/vercel/-/vercel-28.4.8.tgz"
  sha256 "97094a250f62bd79e4f9ba60751b8b00e20536268d40ac9a8be2c3c5e8d8faef"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "febc7c4267db532a0fc04bb09af5c57f5d2108215c5e9e048998ac37b0ffcdac"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "febc7c4267db532a0fc04bb09af5c57f5d2108215c5e9e048998ac37b0ffcdac"
    sha256 cellar: :any_skip_relocation, monterey:       "51cf4e6dad70ccabda67ff11d61404068ac5a65a332a88e42f66159f1db7a077"
    sha256 cellar: :any_skip_relocation, big_sur:        "11766c0d495917692fb83f01343e038e60b271776b0e48eb8300f02cb2b1d3ab"
    sha256 cellar: :any_skip_relocation, catalina:       "11766c0d495917692fb83f01343e038e60b271776b0e48eb8300f02cb2b1d3ab"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "8f43bcf97842f820b8c609984e71856bc3cd7e05496cc599e01e542d53fc9d49"
  end

  depends_on "node"

  on_macos do
    depends_on "macos-term-size"
  end

  def install
    rm Dir["dist/{*.exe,xsel}"]
    inreplace "dist/index.js", "= getUpdateCommand",
                               "= async()=>'brew upgrade vercel-cli'"
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]

    dist_dir = libexec/"lib/node_modules/vercel/dist"
    rm_rf dist_dir/"term-size"

    if OS.mac?
      # Replace the vendored pre-built term-size with one we build ourselves
      ln_sf (Formula["macos-term-size"].opt_bin/"term-size").relative_path_from(dist_dir), dist_dir
    end
  end
<commit_msg>vercel-cli: update 28.4.8 bottle.<commit_after>require "language/node"

class VercelCli < Formula
  desc "Command-line interface for Vercel"
  homepage "https://vercel.com/home"
  url "https://registry.npmjs.org/vercel/-/vercel-28.4.8.tgz"
  sha256 "97094a250f62bd79e4f9ba60751b8b00e20536268d40ac9a8be2c3c5e8d8faef"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "d9caac8c3f339769fbaa20362b78d5e2c335ac3d74f3117dd5019c529f4918ed"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "d9caac8c3f339769fbaa20362b78d5e2c335ac3d74f3117dd5019c529f4918ed"
    sha256 cellar: :any_skip_relocation, monterey:       "27e7fca3c5dd26ff20d5c69c82fe07a8bcb2f7fd84e6d0265c90ca0a97234e41"
    sha256 cellar: :any_skip_relocation, big_sur:        "3132d51506f886440a87b25a8631985f3a16f82e60d141c6671694335da1e887"
    sha256 cellar: :any_skip_relocation, catalina:       "3132d51506f886440a87b25a8631985f3a16f82e60d141c6671694335da1e887"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "4fb4ed22b384ef4be96c0ddfbf2cb3a04736835a87d746c77114f7ebe43b4571"
  end

  depends_on "node"

  on_macos do
    depends_on "macos-term-size"
  end

  def install
    rm Dir["dist/{*.exe,xsel}"]
    inreplace "dist/index.js", "= getUpdateCommand",
                               "= async()=>'brew upgrade vercel-cli'"
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]

    dist_dir = libexec/"lib/node_modules/vercel/dist"
    rm_rf dist_dir/"term-size"

    if OS.mac?
      # Replace the vendored pre-built term-size with one we build ourselves
      ln_sf (Formula["macos-term-size"].opt_bin/"term-size").relative_path_from(dist_dir), dist_dir
    end
  end

{'fraction_non_alphanumeric': 0.09555048488305762, 'fraction_numerical': 0.18397033656588704, 'mean_word_length': 4.730392156862745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3585044', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1477, 'n_words': 193}