<commit_before>class Vale < Formula
  desc "Syntax-aware linter for prose"
  homepage "https://errata-ai.github.io/vale/"
  url "https://github.com/errata-ai/vale/archive/v2.6.5.tar.gz"
  sha256 "3e73a80bfc81cc7c61dbb451d4ff7686044632d4ede7df190ecb104a989b6c4b"
  license "MIT"

  bottle do
    cellar :any_skip_relocation
    sha256 "a2967f35b98de02e0b187c472e7363d2f051afe800688ed2c836aa510008b9df" => :big_sur
    sha256 "7bfe867b7d7f214fe8295895b5847d627916018fcad42e295d7e77b22ee30c21" => :catalina
    sha256 "784eace57f70b174063890e65793a86265e955213be840a24ccc54bcdc59f3da" => :mojave
  end

  depends_on "go" => :build

  def install
    ldflags = "-X main.version=#{version} -s -w"
    system "go", "build", *std_go_args, "-ldflags=#{ldflags}"
  end

  test do<commit_msg>vale: update 2.6.5 bottle.<commit_after>class Vale < Formula
  desc "Syntax-aware linter for prose"
  homepage "https://errata-ai.github.io/vale/"
  url "https://github.com/errata-ai/vale/archive/v2.6.5.tar.gz"
  sha256 "3e73a80bfc81cc7c61dbb451d4ff7686044632d4ede7df190ecb104a989b6c4b"
  license "MIT"

  bottle do
    cellar :any_skip_relocation
    sha256 "b7dc33a601468c62dde94b20214e343f6a0d95e3ccfaaf303751e620c6fe14a4" => :big_sur
    sha256 "543af6e4a7660e556924f268c090112fc1ccc508b74ce313c2ec30212b807443" => :catalina
    sha256 "96e3a3fc46d20ab9612ec2425c2039fcc9f5307eb492ef99fb2245c45d76a2c4" => :mojave
  end

  depends_on "go" => :build

  def install
    ldflags = "-X main.version=#{version} -s -w"
    system "go", "build", *std_go_args, "-ldflags=#{ldflags}"
  end

  test do
{'fraction_non_alphanumeric': 0.10779961953075459, 'fraction_numerical': 0.2270133164235891, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3166364', 'n_tokens_mistral': 907, 'n_tokens_neox': 715, 'n_words': 98}