<commit_before>class Trf < Formula
  homepage "http://tandem.bu.edu/trf/trf.html"
  # doi '10.1093/nar/27.2.573'
  version "4.07b"

  if OS.mac?
    url "http://tandem.bu.edu/cgi-bin/trf/trf.download.pl?fileselect=29"
    sha256 "385ef13d0fcf53532fc0bdfe386c6789323a144b95c0e4b42c54b382bc5a7672"
  elsif OS.linux?
    url "http://tandem.bu.edu/cgi-bin/trf/trf.download.pl?fileselect=26"
    sha1 "b4f24766f27f3b5f02957fa565da3bd114c37f9a"
  else
    raise "Unknown operating system"
  end

  def install
    bin.install "trf.download.pl" => "trf"
  end

  test do
    system "trf 2>&1 |grep -q trf"
  end
end<commit_msg>trf: audit fixes<commit_after>class Trf < Formula
  homepage "http://tandem.bu.edu/trf/trf.html"
  # doi '10.1093/nar/27.2.573'
  version "4.07b"

  if OS.mac?
    url "http://tandem.bu.edu/cgi-bin/trf/trf.download.pl?fileselect=29"
    sha256 "385ef13d0fcf53532fc0bdfe386c6789323a144b95c0e4b42c54b382bc5a7672"
  elsif OS.linux?
    url "http://tandem.bu.edu/cgi-bin/trf/trf.download.pl?fileselect=26"
    sha256 "a3a760c7b74c9603fbc08d95e8fa696c00f35a2f179b0bd63b2b13757ad3b471"
  else
    raise "Unknown operating system"
  end

  def install
    bin.install "trf.download.pl" => "trf"
  end

  test do
    assert_match "trf", shell_output("#{bin}/trf 2>&1")
  end
end
{'fraction_non_alphanumeric': 0.13023255813953488, 'fraction_numerical': 0.15426356589147286, 'mean_word_length': 3.6945454545454544, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1800667', 'n_tokens_mistral': 708, 'n_tokens_neox': 583, 'n_words': 85}