<commit_before>require 'formula'

class BulkExtractor < Formula
  homepage 'http://afflib.org/software/bulk_extractor'
  url 'https://github.com/downloads/simsong/bulk_extractor/bulk_extractor-1.2.0.tar.gz'
  md5 '95172e2a149681054b712890e8fdad57'

  depends_on 'afflib' => :optional
  depends_on 'exiv2' => :optional
  depends_on 'libewf' => :optional

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"

    # Install documentation
    (share+name+'doc').install Dir['doc/*.{html,txt,pdf}']<commit_msg>bulk_extractor 1.2.1<commit_after>require 'formula'

class BulkExtractor < Formula
  homepage 'http://afflib.org/software/bulk_extractor'
  url 'https://github.com/downloads/simsong/bulk_extractor/bulk_extractor-1.2.1.tar.gz'
  md5 '44f51d5a89b70cd4985cef2c57718801'

  depends_on 'afflib' => :optional
  depends_on 'exiv2' => :optional
  depends_on 'libewf' => :optional
  depends_on 'autoconf' if MacOS.xcode_version >= "4.3"
  depends_on 'automake' if MacOS.xcode_version >= "4.3"

  def install
    system "autoreconf", "-i"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"

    # Install documentation
    (share+name+'doc').install Dir['doc/*.{html,txt,pdf}']
{'fraction_non_alphanumeric': 0.1493411420204978, 'fraction_numerical': 0.046120058565153735, 'mean_word_length': 3.7797202797202796, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '798171', 'n_tokens_mistral': 518, 'n_tokens_neox': 487, 'n_words': 80}