<commit_before>class SacdExtract < Formula
  desc "Extract DSD files from an SACD image"
  homepage "https://github.com/sacd-ripper/sacd-ripper/"
  url "https://github.com/sacd-ripper/sacd-ripper/archive/0.3.8.tar.gz"
  sha256 "8c65c5fa518cb2c9d7c7221b6cd322ef1553341c6eb47bc670979e0eb7cefcce"

  def install
    cd "tools/sacd_extract"
    system "cmake", "."
    system "make"
    bin.install "sacd_extract"
  end

  test do
    system bin/"sacd_extract", "--help"<commit_msg>sacd-extract: add cmake build dependency<commit_after>class SacdExtract < Formula
  desc "Extract DSD files from an SACD image"
  homepage "https://github.com/sacd-ripper/sacd-ripper/"
  url "https://github.com/sacd-ripper/sacd-ripper/archive/0.3.8.tar.gz"
  sha256 "8c65c5fa518cb2c9d7c7221b6cd322ef1553341c6eb47bc670979e0eb7cefcce"

  depends_on "cmake" => :build

  def install
    cd "tools/sacd_extract"
    system "cmake", "."
    system "make"
    bin.install "sacd_extract"
  end

  test do
    system bin/"sacd_extract", "--help"
{'fraction_non_alphanumeric': 0.11921182266009853, 'fraction_numerical': 0.08275862068965517, 'mean_word_length': 3.9082125603864735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '6151412', 'n_tokens_mistral': 460, 'n_tokens_neox': 408, 'n_words': 72}