<commit_before>require 'formula'

class Cap3 < Formula
  homepage 'http://seq.cs.iastate.edu/cap3.html'
  if OS.mac? then
    url 'http://seq.cs.iastate.edu/CAP3/cap3.macosx.intel64.tar'
    sha1 '42606cea94a70bcbcb128fe7d427c35a7ebc5f19'
  elsif OS.linux? then
    url 'http://seq.cs.iastate.edu/CAP3/cap3.linux.x86_64.tar'
    sha1 'c062ff742abb422f25f6e7db76482694b34dab8f'
  end
  version '2007-12-21'

  def install
    bin.install 'cap3', 'formcon'
    doc.install %w[README aceform doc example]
  end

  test do
    system 'cap3 2>&1 |grep -q cap3'
  end
end<commit_msg>cap3 2015-02-11: Modernize, fix sha256<commit_after>class Cap3 < Formula
  homepage "http://seq.cs.iastate.edu/cap3.html"
  if OS.mac? then
    url "http://seq.cs.iastate.edu/CAP3/cap3.macosx.intel64.tar"
    sha256 "4b6e8fa6b39147b23ada6add080854ea9fadace9a9c8870a97ac79ff1c75338e"
  elsif OS.linux? then
    url "http://seq.cs.iastate.edu/CAP3/cap3.linux.x86_64.tar"
    sha256 "3aff30423e052887925b32f31bdd76764406661f2be3750afbf46341c3d38a06"
  end
  version "2015-02-11"

  def install
    bin.install "cap3", "formcon"
    doc.install %w[README aceform doc example]
  end

  test do
    system "cap3 2>&1 |grep -q cap3"
  end
end
{'fraction_non_alphanumeric': 0.11716171617161716, 'fraction_numerical': 0.1617161716171617, 'mean_word_length': 3.6653846153846152, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2569123', 'n_tokens_mistral': 636, 'n_tokens_neox': 534, 'n_words': 91}