<commit_before>class Brotli < Formula
  desc "Generic-purpose lossless compression algorithm by Google."
  homepage "https://github.com/google/brotli"
  url "https://github.com/google/brotli/archive/v0.3.0.tar.gz"
  sha256 "5d49eb1a6dd19304dd683c293abf66c8a419728f4c6d0f390fa7deb2a39eaae2"

  head "https://github.com/google/brotli.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "eb883283303c6689c5f7ecc26a66d1591b5aaa2919b3f243b0da880f33f8871a" => :el_capitan
    sha256 "fca2a2933a4f4b5d4e81dbcb6b6b2ae38ea72b26c3d2d1666f70a95f74048d63" => :yosemite
    sha256 "025ba928b046520276d955178429a894d4e3b6fb1917cc49f2a4486a5b1a28a3" => :mavericks
  end

  depends_on :python if MacOS.version <= :snow_leopard

  conflicts_with "bro", :because => "Both install a `bro` binary"

  def install
    system "make", "-C", "tools"
    bin.install "tools/bro" => "bro"
  end

  test do
    (testpath/"file.txt").write("Hello, World!")
    system "#{bin}/bro", "--input", "file.txt", "--output", "file.txt.br"
    system "#{bin}/bro", "--input", "file.txt.br", "--output", "out.txt", "--decompress"
    assert_equal (testpath/"file.txt").read, (testpath/"out.txt").read
  end
end
<commit_msg>brotli: update 0.3.0 bottle.<commit_after>class Brotli < Formula
  desc "Generic-purpose lossless compression algorithm by Google."
  homepage "https://github.com/google/brotli"
  url "https://github.com/google/brotli/archive/v0.3.0.tar.gz"
  sha256 "5d49eb1a6dd19304dd683c293abf66c8a419728f4c6d0f390fa7deb2a39eaae2"

  head "https://github.com/google/brotli.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "55d144b12585d2135be9ec4f7880798eabda037e14c48209b4bc7da064407da8" => :el_capitan
    sha256 "380c2852c24248fcbdeb2aa25848b958765131fa7126103603f7603ad1510b9b" => :yosemite
    sha256 "79e2367abe6f3e1958a8857052bd406312fc4db60ce603d594e708bd4dc6bd4a" => :mavericks
  end

  depends_on :python if MacOS.version <= :snow_leopard

  conflicts_with "bro", :because => "Both install a `bro` binary"

  def install
    system "make", "-C", "tools"
    bin.install "tools/bro" => "bro"
  end

  test do
    (testpath/"file.txt").write("Hello, World!")
    system "#{bin}/bro", "--input", "file.txt", "--output", "file.txt.br"
    system "#{bin}/bro", "--input", "file.txt.br", "--output", "out.txt", "--decompress"
    assert_equal (testpath/"file.txt").read, (testpath/"out.txt").read
  end
end

{'fraction_non_alphanumeric': 0.14481897627965043, 'fraction_numerical': 0.1489804411152726, 'mean_word_length': 4.603729603729604, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '780905', 'n_tokens_mistral': 1175, 'n_tokens_neox': 989, 'n_words': 157}