<commit_before>require "language/node"

class Pyright < Formula
  desc "Static type checker for Python"
  homepage "https://github.com/microsoft/pyright"
  url "https://registry.npmjs.org/pyright/-/pyright-1.1.205.tgz"
  sha256 "08473254a2c9037c12d38ec624383c284b294775fe4810ed8921578cd6ca2bd7"
  license "MIT"
  head "https://github.com/microsoft/pyright.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "6a4f9d389264d480a2f530cbf367cccd9cc27ab9c2ec39b7217b256994d168b6"
  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>pyright: update 1.1.205 bottle.<commit_after>require "language/node"

class Pyright < Formula
  desc "Static type checker for Python"
  homepage "https://github.com/microsoft/pyright"
  url "https://registry.npmjs.org/pyright/-/pyright-1.1.205.tgz"
  sha256 "08473254a2c9037c12d38ec624383c284b294775fe4810ed8921578cd6ca2bd7"
  license "MIT"
  head "https://github.com/microsoft/pyright.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "980c25ef5df21af596191777ce6a7760c316d5aabbfba92dc1490cedb94ed349"
  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.11631205673758865, 'fraction_numerical': 0.13900709219858157, 'mean_word_length': 5.055793991416309, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '871636', 'n_tokens_mistral': 668, 'n_tokens_neox': 546, 'n_words': 90}