<commit_before>require 'formula'

class Autobench < Formula
  homepage 'http://www.xenoclast.org/autobench/'
  url 'http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz'
  sha1 '8c342b50ce36c13d46dc995bc5f08acdead21553'

  depends_on 'httperf'

  def install
    system "make", "PREFIX=#{prefix}",
                   "MANDIR=#{man1}",
                   "CC=#{ENV.cc}",
                   "CFLAGS=#{ENV.cflags}",
                   "install"
  end
end
<commit_msg>autobench: test added<commit_after>class Autobench < Formula
  homepage "http://www.xenoclast.org/autobench/"
  url "http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz"
  sha256 "d8b4d30aaaf652df37dff18ee819d8f42751bc40272d288ee2a5d847eaf0423b"

  depends_on "httperf"

  def install
    system "make", "PREFIX=#{prefix}",
                   "MANDIR=#{man1}",
                   "CC=#{ENV.cc}",
                   "CFLAGS=#{ENV.cflags}",
                   "install"
  end

  test do
    system "#{bin}/crfile", "-f", "#{testpath}/test", "-s", "42"
    assert File.exist? "test"
    assert_equal 42, File.size("test")
  end
end

{'fraction_non_alphanumeric': 0.152135231316726, 'fraction_numerical': 0.06761565836298933, 'mean_word_length': 2.5377358490566038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6845636', 'n_tokens_mistral': 473, 'n_tokens_neox': 414, 'n_words': 63}