<commit_before>class Lmdb < Formula
  desc "Lightning memory-mapped database: key-value data store"
  homepage "https://symas.com/mdb-and-sqlite/"
  url "https://github.com/LMDB/lmdb/archive/LMDB_0.9.22.tar.gz"
  sha256 "f3927859882eb608868c8c31586bb7eb84562a40a6bf5cc3e13b6b564641ea28"
  version_scheme 1
  revision 1 if OS.linux?
  head "https://github.com/LMDB/lmdb.git", :branch => "mdb.master"

  bottle do
    cellar :any
    sha256 "446eacbb6ae70705b8ef850a143a19378f840ed4070a6beb7ec80c0876913987" => :high_sierra
    sha256 "5eb74dfb0f982df132fb1c4edd45de857cba72bf461b213c4565b54a8cb9fe67" => :sierra
    sha256 "6ca8e50908dfd7feb3e405c6f348a950c798747d57d02bd426e76b1cf1b8500f" => :el_capitan
  end

  def install
    cd "libraries/liblmdb" do
      args = *("SOEXT=.dylib" if OS.mac?)
      system "make", *args
      system "make", "test", *args
      system "make", "install", "prefix=#{prefix}", *args
    end
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/mdb_dump -V")<commit_msg>lmdb: Remove revision for Linux<commit_after>class Lmdb < Formula
  desc "Lightning memory-mapped database: key-value data store"
  homepage "https://symas.com/mdb-and-sqlite/"
  url "https://github.com/LMDB/lmdb/archive/LMDB_0.9.22.tar.gz"
  sha256 "f3927859882eb608868c8c31586bb7eb84562a40a6bf5cc3e13b6b564641ea28"
  version_scheme 1
  head "https://github.com/LMDB/lmdb.git", :branch => "mdb.master"

  bottle do
    cellar :any
    sha256 "446eacbb6ae70705b8ef850a143a19378f840ed4070a6beb7ec80c0876913987" => :high_sierra
    sha256 "5eb74dfb0f982df132fb1c4edd45de857cba72bf461b213c4565b54a8cb9fe67" => :sierra
    sha256 "6ca8e50908dfd7feb3e405c6f348a950c798747d57d02bd426e76b1cf1b8500f" => :el_capitan
  end

  def install
    cd "libraries/liblmdb" do
      args = *("SOEXT=.dylib" if OS.mac?)
      system "make", *args
      system "make", "test", *args
      system "make", "install", "prefix=#{prefix}", *args
    end
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/mdb_dump -V")
{'fraction_non_alphanumeric': 0.11576354679802955, 'fraction_numerical': 0.17586206896551723, 'mean_word_length': 4.459677419354839, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5782122', 'n_tokens_mistral': 1056, 'n_tokens_neox': 870, 'n_words': 137}