<commit_before>require 'formula'

class TaLib < Formula
  homepage 'http://ta-lib.org/index.html'
  url 'http://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz'
  sha1 'b326b91e79ca1e569e95aad91e87a38640dd5f1b'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
    bin.install 'src/tools/ta_regtest/.libs/ta_regtest'
  end

  def test
    system "#{bin}/ta_regtest"
  end
end<commit_msg>ta-lib: support universal builds<commit_after>require 'formula'

class TaLib < Formula
  homepage 'http://ta-lib.org/index.html'
  url 'http://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz'
  sha1 'b326b91e79ca1e569e95aad91e87a38640dd5f1b'

  option :universal

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
    bin.install 'src/tools/ta_regtest/.libs/ta_regtest'
  end

  def test
    system "#{bin}/ta_regtest"
  end
end
{'fraction_non_alphanumeric': 0.14847161572052403, 'fraction_numerical': 0.05414847161572053, 'mean_word_length': 3.0210526315789474, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5727722', 'n_tokens_mistral': 459, 'n_tokens_neox': 417, 'n_words': 67}