<commit_before>class Grin < Formula
  desc "Minimal implementation of the Mimblewimble protocol"
  homepage "https://grin.mw/"
  # TODO: remove the `cargo update` line when this is next updated (5.2.x).
  url "https://github.com/mimblewimble/grin/archive/v5.1.2.tar.gz"
  sha256 "a4856335d88630e742b75e877f1217d7c9180b89f030d2e1d1c780c0f8cc475c"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "ccbb426ce7d3830eca71f3b82cc20fbfbfd05b96716ce24e4b805700310adc23"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "151ca3ab278be9cb9d7a10b2c4cc5c5a0105a3a1624b688a10decba5d35ccadd"
    sha256 cellar: :any_skip_relocation, monterey:       "93e0600ef02de4d29f87b918a013e447642c8a9611f88003a7f716876c2af8b8"
    sha256 cellar: :any_skip_relocation, big_sur:        "73575795db90d1014d77b9305d72eef7ea75b79a197f1add5253d93c9f4458eb"
    sha256 cellar: :any_skip_relocation, catalina:       "724f041a16b20c09efc90ae96f37f03f221253bf2fa1c27dbbf8e1f086831421"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "f6abb67fa62bc612ebc6ba360aebaf5acaf2432b858c60d5556db50420eecc67"
  end

  depends_on "llvm" => :build # for libclang
  depends_on "rust" => :build

  uses_from_macos "ncurses"

  def install
    # Fixes compile with newer Rust.
    # REMOVE ME in the next release.
    system "cargo", "update", "--package", "socket2", "--precise", "0.3.16"

    ENV["CLANG_PATH"] = Formula["llvm"].opt_bin/"clang"<commit_msg>grin: update 5.1.2 bottle.<commit_after>class Grin < Formula
  desc "Minimal implementation of the Mimblewimble protocol"
  homepage "https://grin.mw/"
  # TODO: remove the `cargo update` line when this is next updated (5.2.x).
  url "https://github.com/mimblewimble/grin/archive/v5.1.2.tar.gz"
  sha256 "a4856335d88630e742b75e877f1217d7c9180b89f030d2e1d1c780c0f8cc475c"
  license "Apache-2.0"

  bottle do
    rebuild 1
    sha256 cellar: :any_skip_relocation, arm64_ventura:  "8d3e499b338d6eb3a0921258ea0876261a18a7957b4338b382278f7f099ec062"
    sha256 cellar: :any_skip_relocation, arm64_monterey: "8d6664533cd67da4715371d48f3bc8eecef589cfdd2efe5e19af14472f91f0bc"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "064eb5619f52ca1f2123ee82e6017e6380889b38b87b9654f01a946ef31bf0b8"
    sha256 cellar: :any_skip_relocation, monterey:       "cf3066f5430c31b31d00f9c1f56b0e4c5824efd00606231d719dbe24ad1c4de4"
    sha256 cellar: :any_skip_relocation, big_sur:        "4d4bea4bf9a3195bbe5aec65908e60834b2a55579f88c7ec9fe5856b2d8a009d"
    sha256 cellar: :any_skip_relocation, catalina:       "45d21d3e03f2af974b5ddd36636c013cef9beedbecab2cfb0606168a77981f4d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "cdcbd7bcb60160cbd90c54e362650a191b64fb33d356991896c0778ced854ecf"
  end

  depends_on "llvm" => :build # for libclang
  depends_on "rust" => :build

  uses_from_macos "ncurses"

  def install
    # Fixes compile with newer Rust.
    # REMOVE ME in the next release.
    system "cargo", "update", "--package", "socket2", "--precise", "0.3.16"

    ENV["CLANG_PATH"] = Formula["llvm"].opt_bin/"clang"
{'fraction_non_alphanumeric': 0.08799741184082821, 'fraction_numerical': 0.22322872856680687, 'mean_word_length': 5.59275053304904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '602994', 'n_tokens_mistral': 1715, 'n_tokens_neox': 1363, 'n_words': 199}