<commit_before>require 'formula'

class Stress < Formula
  homepage 'http://rpmfind.net/linux/RPM/fedora/18/x86_64/s/stress-1.0.4-8.fc18.x86_64.html'
  url 'ftp://ftp.oregonstate.edu/.2/gentoo/distfiles/stress-1.0.4.tar.gz'
  sha1 '7ccb6d76d27ddd54461a21411f2bc8491ba65168'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>stress: update homepage + add test<commit_after>class Stress < Formula
  homepage "http://people.seas.harvard.edu/~apw/stress/"
  url "http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz"
  mirror "https://mirrors.kernel.org/debian/pool/main/s/stress/stress_1.0.4.orig.tar.gz"
  sha256 "057e4fc2a7706411e1014bf172e4f94b63a12f18412378fca8684ca92408825b"

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

  test do
    system bin/"stress", "--cpu", "2", "--io", "1", "--vm", "1", "--vm-bytes", "128M", "--timeout", "1s", "--verbose"
  end
end
{'fraction_non_alphanumeric': 0.1781818181818182, 'fraction_numerical': 0.09909090909090909, 'mean_word_length': 3.1547169811320757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5686412', 'n_tokens_mistral': 485, 'n_tokens_neox': 412, 'n_words': 63}