<commit_before>require 'formula'

class CmuSphinxbase < Formula
  homepage 'http://cmusphinx.sourceforge.net/'
  url 'https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz'
  sha1 'c0c4d52e143d07cd593bd6bcaeb92b9a8a5a8c8e'

  depends_on 'pkg-config' => :build
  depends_on 'libsndfile' => :optional
  depends_on 'libsamplerate' => :optional

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>cmu-sphixbase: libsndfile is linked if found<commit_after>require "formula"

class CmuSphinxbase < Formula
  homepage "http://cmusphinx.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz"
  sha1 "c0c4d52e143d07cd593bd6bcaeb92b9a8a5a8c8e"

  depends_on "pkg-config" => :build
  # If these are found, they will be linked against and there is no configure
  # switch to turn them off.
  depends_on "libsndfile"
  depends_on "libsamplerate" => "with-libsndfile"

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.12128146453089245, 'fraction_numerical': 0.03813882532418002, 'mean_word_length': 3.0745341614906834, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4479016', 'n_tokens_mistral': 480, 'n_tokens_neox': 457, 'n_words': 86}