<commit_before>require 'formula'

class Mp3fs < Formula
  homepage 'http://khenriks.github.com/mp3fs/'
  url 'https://github.com/downloads/khenriks/mp3fs/mp3fs-0.32.tar.gz'
  sha1 'e6aef12f753721c87bdecfb4dca7e3721a808828'

  depends_on 'pkg-config' => :build
  depends_on 'lame'
  depends_on 'fuse4x'
  depends_on 'libid3tag'
  depends_on 'flac'

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

  def test
    system "#{bin}/mp3fs -V | grep MP3FS && true || false"
  end
end<commit_msg>mp3fs: improve test<commit_after>require 'formula'

class Mp3fs < Formula
  homepage 'http://khenriks.github.com/mp3fs/'
  url 'https://github.com/downloads/khenriks/mp3fs/mp3fs-0.32.tar.gz'
  sha1 'e6aef12f753721c87bdecfb4dca7e3721a808828'

  depends_on 'pkg-config' => :build
  depends_on 'lame'
  depends_on 'fuse4x'
  depends_on 'libid3tag'
  depends_on 'flac'

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

  test do
    require 'open3'
    Open3.popen3("#{bin}/mp3fs", "-V") do |_, stdout, _|
      /MP3FS version #{Regexp.escape(version)}/ === stdout.read
    end
  end
end
{'fraction_non_alphanumeric': 0.13917122752150118, 'fraction_numerical': 0.05785770132916341, 'mean_word_length': 3.155844155844156, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '756703', 'n_tokens_mistral': 529, 'n_tokens_neox': 505, 'n_words': 91}