<commit_before>class Monero < Formula
  desc "Official Monero wallet and CPU miner"
  homepage "https://www.getmonero.org/"
  url "https://github.com/monero-project/monero.git",
      tag:      "v0.17.1.8",
      revision: "36dfd41e01ebc852e094f268433344404c042591"
  license "BSD-3-Clause"

  bottle do
    cellar :any
    sha256 "cd937cf6e43810761956e01ebd01302f553b1e87f5aeae3a234c18fde94430a9" => :big_sur
    sha256 "33ebb1e03f8782f128c2051ee96cb611287d82711263d75f8ed07bfcee7d154e" => :arm64_big_sur
    sha256 "f619eb94312c568c58be229d6610105e7870a465231d5d546074b1d34534401b" => :catalina
    sha256 "322a72217ba8156a3d7ae06245988b3ff4e83fc3cb9df4d3f0891f43d8239ecc" => :mojave
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "hidapi"
  depends_on "libsodium"
  depends_on "openssl@1.1"
  depends_on "protobuf"
  depends_on "readline"
  depends_on "unbound"
  depends_on "zeromq"

  conflicts_with "wownero", because: "both install a wallet2_api.h header"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"

    # Fix conflict with miniupnpc.
    # This has been reported at https://github.com/monero-project/monero/issues/3862
    rm lib/"libminiupnpc.a"
  end

  plist_options manual: "monerod"

  def plist
    <<~EOS<commit_msg>monero: update 0.17.1.8 bottle.<commit_after>class Monero < Formula
  desc "Official Monero wallet and CPU miner"
  homepage "https://www.getmonero.org/"
  url "https://github.com/monero-project/monero.git",
      tag:      "v0.17.1.8",
      revision: "36dfd41e01ebc852e094f268433344404c042591"
  license "BSD-3-Clause"

  bottle do
    cellar :any
    sha256 "6c5706ea94e88c49dda866f221800c3da06096c929e5be3011b19ad837ed41ee" => :big_sur
    sha256 "390d322983dc65f9d536aa4e487d2d72e8263671ce6f3e660b3fb923f65baa4b" => :arm64_big_sur
    sha256 "2bcff924a39f9659b377b2656aeebc69dacc221860ae70dc3a6b905d5641e8d5" => :catalina
    sha256 "7a3f17da9689961b37793fc780dae69bc675fd365b275299ba9b24b721b16da8" => :mojave
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "boost"
  depends_on "hidapi"
  depends_on "libsodium"
  depends_on "openssl@1.1"
  depends_on "protobuf"
  depends_on "readline"
  depends_on "unbound"
  depends_on "zeromq"

  conflicts_with "wownero", because: "both install a wallet2_api.h header"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"

    # Fix conflict with miniupnpc.
    # This has been reported at https://github.com/monero-project/monero/issues/3862
    rm lib/"libminiupnpc.a"
  end

  plist_options manual: "monerod"

  def plist
    <<~EOS
{'fraction_non_alphanumeric': 0.09940431868950111, 'fraction_numerical': 0.16827997021593447, 'mean_word_length': 4.395582329317269, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 3, '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': '3661721', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1146, 'n_words': 190}