<commit_before>require "language/node"

class Vite < Formula
  desc "Next generation frontend tooling. It's fast!"
  homepage "https://vitejs.dev/"
  url "https://registry.npmjs.org/vite/-/vite-3.1.2.tgz"
  sha256 "45703e9ec51bd2fe59d1430fbb670e3c9aa171d39259633dd77b1188d3405a12"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "6e4948d900884dc481c55a8444e46aea2e0b5bc046910994f736269ba4b05a87"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "6e4948d900884dc481c55a8444e46aea2e0b5bc046910994f736269ba4b05a87"
    sha256 cellar: :any_skip_relocation, monterey:       "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, big_sur:        "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, catalina:       "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "08e9c2d298ac671a6c33176cb368d8ba5f64f576ab2ff44afaca58162b1c7d2e"
  end

  depends_on "node"

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

  test do
    port = free_port
    fork do
      system bin/"vite", "preview", "--port", port
    end
    sleep 2
    assert_match "Cannot GET /", shell_output("curl -s localhost:#{port}")
  end
end<commit_msg>vite 3.1.3<commit_after>require "language/node"

class Vite < Formula
  desc "Next generation frontend tooling. It's fast!"
  homepage "https://vitejs.dev/"
  url "https://registry.npmjs.org/vite/-/vite-3.1.3.tgz"
  sha256 "53863a89f7ba8c26fdb3e1c745eb4620b336f32d3707635dd6db59413b1fe3f6"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "6e4948d900884dc481c55a8444e46aea2e0b5bc046910994f736269ba4b05a87"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "6e4948d900884dc481c55a8444e46aea2e0b5bc046910994f736269ba4b05a87"
    sha256 cellar: :any_skip_relocation, monterey:       "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, big_sur:        "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, catalina:       "f3e9028e667ebd29bf4310abfac0ec2b257bb50054ba31d630b2858cf9fd9942"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "08e9c2d298ac671a6c33176cb368d8ba5f64f576ab2ff44afaca58162b1c7d2e"
  end

  depends_on "node"

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

  test do
    port = free_port
    fork do
      system bin/"vite", "preview", "--port", port
    end
    sleep 2
    assert_match "Cannot GET /", shell_output("curl -s localhost:#{port}")
  end
end
{'fraction_non_alphanumeric': 0.08627182471756248, 'fraction_numerical': 0.21739130434782608, 'mean_word_length': 5.324675324675325, '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': '2829271', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1242, 'n_words': 176}