<commit_before>class Tendermint < Formula
  desc "BFT state machine replication for applications in any programming languages"
  homepage "https://tendermint.com/"
  url "https://github.com/tendermint/tendermint/archive/v0.34.10.tar.gz"
  sha256 "3f7c45511699fe1ec51b3ac60fb753d8efb7e1ba0e37e1e597cfafb236319f97"
  license "Apache-2.0"
  head "https://github.com/tendermint/tendermint.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "a973978455a9e518b9ff7319056aef35c32225e7486fcd4ae605aabe19802225"
    sha256 cellar: :any_skip_relocation, big_sur:       "2a8166beb2fc4bec9aba75cf45526ebbb4f8d7b68dd105077023abe105dac9af"
    sha256 cellar: :any_skip_relocation, catalina:      "81fcf835463576610c2f65a6e35150ffb98ebb07b55d083f37a2cdb50a15b361"
    sha256 cellar: :any_skip_relocation, mojave:        "4988996ff563b1e2d1073ecb163b364a2fd0561dc42402887e32dbad9abc6c4d"
  end

  depends_on "go" => :build

  def install
    system "make", "build", "VERSION=#{version}"
    bin.install "build/tendermint"
  end

  test do
    mkdir(testpath/"staging")
    shell_output("#{bin}/tendermint init --home #{testpath}/staging")
    assert_predicate testpath/"staging/config/genesis.json", :exist?
    assert_predicate testpath/"staging/config/config.toml", :exist?<commit_msg>tendermint: update 0.34.10 bottle.<commit_after>class Tendermint < Formula
  desc "BFT state machine replication for applications in any programming languages"
  homepage "https://tendermint.com/"
  url "https://github.com/tendermint/tendermint/archive/v0.34.10.tar.gz"
  sha256 "3f7c45511699fe1ec51b3ac60fb753d8efb7e1ba0e37e1e597cfafb236319f97"
  license "Apache-2.0"
  head "https://github.com/tendermint/tendermint.git"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "5c01fa1879856a123a729c20b53f466465b8ebc6e1e442e21c12c981171d6723"
    sha256 cellar: :any_skip_relocation, big_sur:       "55f72fb633b41e407fdb5a0bb6ddc176376a92459cb542c37913dc9289255409"
    sha256 cellar: :any_skip_relocation, catalina:      "55f72fb633b41e407fdb5a0bb6ddc176376a92459cb542c37913dc9289255409"
    sha256 cellar: :any_skip_relocation, mojave:        "55f72fb633b41e407fdb5a0bb6ddc176376a92459cb542c37913dc9289255409"
  end

  depends_on "go" => :build

  def install
    system "make", "build", "VERSION=#{version}"
    bin.install "build/tendermint"
  end

  test do
    mkdir(testpath/"staging")
    shell_output("#{bin}/tendermint init --home #{testpath}/staging")
    assert_predicate testpath/"staging/config/genesis.json", :exist?
    assert_predicate testpath/"staging/config/config.toml", :exist?
{'fraction_non_alphanumeric': 0.09658873131467996, 'fraction_numerical': 0.1778459179762361, 'mean_word_length': 5.508728179551122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3908967', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1051, 'n_words': 146}