<commit_before>class StorjUplink < Formula
  desc "Uplink CLI for the Storj network"
  homepage "https://storj.io"
  url "https://github.com/storj/storj/archive/refs/tags/v1.67.3.tar.gz"
  sha256 "10d1a0cc310a83ee50bd9af6a6d3866a5c483de814e340b32d27c81daaf89a7a"
  license "AGPL-3.0-only"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "067e9fbbb0e80cfc102120749cb418c07835fa3679db6a4fe725614d1cd5e9f4"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a6225da91d12b861ff6ba767c303ed2543a26771f544831e6768969a2eaae29d"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "afbb39f561e05f3d1d8160584fad2ed47c1739905bee1651ae12a3576477eb0f"
    sha256 cellar: :any_skip_relocation, monterey:       "250721420fbce3af49616fd40af99c91fd0cae872c5803e15c349eabbedeac6c"
    sha256 cellar: :any_skip_relocation, big_sur:        "8ff72c0a69e9c2b280cbb76a15ff0ce22d3ffb5cfd5153f23c07771a6d769fb1"
    sha256 cellar: :any_skip_relocation, catalina:       "362094ad0afae505851092382a194d8e83bb94619f5d327298db8214dce7a807"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "d4d707c5ed7765a30bc75388ed0a86988e7415b41028e97c99a27d69424d0d37"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(output: bin/"uplink"), "./cmd/uplink"
  end

  test do
    (testpath/"config.ini").write <<~EOS
      [metrics]<commit_msg>storj-uplink: update 1.67.3 bottle.<commit_after>class StorjUplink < Formula
  desc "Uplink CLI for the Storj network"
  homepage "https://storj.io"
  url "https://github.com/storj/storj/archive/refs/tags/v1.67.3.tar.gz"
  sha256 "10d1a0cc310a83ee50bd9af6a6d3866a5c483de814e340b32d27c81daaf89a7a"
  license "AGPL-3.0-only"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "9711161a44fc5951ec94e36ef6596f446f0a8e967fc40c94b1e46a8d4bfb2468"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "252720d84696221338c3da72aed4dae4678aa1b1310ce6711f870c40485c8bc0"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "670cd86cb148767eac1a29e86fef5b4453af58b78d496422c669b2c99e6c10a6"
    sha256 cellar: :any_skip_relocation, monterey:       "503f800928a00260e6f0a91afdfda553a17ba942cbbc13c945a338adeb67b753"
    sha256 cellar: :any_skip_relocation, big_sur:        "ea4ac354f01971d979d6dd3df3a4b10ba8444175e9fa5a6bfb185cee794d68bd"
    sha256 cellar: :any_skip_relocation, catalina:       "8032f679b9557b2b12ca8c0cfad03c7d470509488a72b23a957d30570588b23f"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "2a4b015e84854a504ba887bc534e741de43e4467c8b98b78f53f0c22a383fbb8"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(output: bin/"uplink"), "./cmd/uplink"
  end

  test do
    (testpath/"config.ini").write <<~EOS
      [metrics]
{'fraction_non_alphanumeric': 0.08053461274845784, 'fraction_numerical': 0.25051405071967103, 'mean_word_length': 5.788372093023256, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4475844', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1344, 'n_words': 162}