<commit_before>require 'formula'

# Originally:
#   homepage 'http://www.spinnaker.de/lbdb/'

class Lbdb < Formula
  homepage 'https://github.com/tgray/lbdb/'
  url 'https://github.com/tgray/lbdb/archive/v0.38.2.tar.gz'
  sha1 '2a278fe7bffad6e7572c1c76f9568e4737c68e07'

  head 'https://github.com/tgray/lbdb.git'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"<commit_msg>lbdb: fix compilation on Mountain Lion and Mavericks<commit_after>require 'formula'

# Originally:
#   homepage 'http://www.spinnaker.de/lbdb/'

class Lbdb < Formula
  homepage 'https://github.com/tgray/lbdb/'
  url 'https://github.com/tgray/lbdb/archive/v0.38.2.tar.gz'
  sha1 '2a278fe7bffad6e7572c1c76f9568e4737c68e07'

  head 'https://github.com/tgray/lbdb.git'

  def patches
    p = []
    if MacOS.version >= :mountain_lion
      p << 'https://github.com/chrisbarrett/lbdb/commit/db0440670194568bbfe2137fc063eb30cf26cb2a.diff'
      p << 'https://github.com/chrisbarrett/lbdb/commit/b89ac6ee50e2c03c32635269d9818c045b0abb6f.diff'
      p << 'https://github.com/chrisbarrett/lbdb/commit/6cbef5feb4fd921deb08eb52b4169647909946ae.diff'
    end
    p
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
{'fraction_non_alphanumeric': 0.14415094339622642, 'fraction_numerical': 0.10037735849056603, 'mean_word_length': 3.3192182410423454, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 4, 'https://': 9, 'lorem ipsum': 0, 'www.': 2, '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': '7021947', 'n_tokens_mistral': 587, 'n_tokens_neox': 511, 'n_words': 65}