<commit_before>require 'formula'

class OpenCobol < Formula
  url 'http://downloads.sourceforge.net/project/open-cobol/open-cobol/1.0/open-cobol-1.0.tar.gz'
  homepage 'http://www.opencobol.org/'
  md5 '947e0d9c4ee7fa8f077ea4bca2f894e5'

  depends_on 'gmp'
  depends_on 'berkeley-db'

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

  def test
    system "cobc"<commit_msg>open-cobol: use full path in test<commit_after>require 'formula'

class OpenCobol < Formula
  url 'http://downloads.sourceforge.net/project/open-cobol/open-cobol/1.0/open-cobol-1.0.tar.gz'
  homepage 'http://www.opencobol.org/'
  md5 '947e0d9c4ee7fa8f077ea4bca2f894e5'

  depends_on 'gmp'
  depends_on 'berkeley-db'

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

  def test
    system "#{bin}/cobc --help"
{'fraction_non_alphanumeric': 0.15700934579439252, 'fraction_numerical': 0.041121495327102804, 'mean_word_length': 3.103448275862069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3840136', 'n_tokens_mistral': 426, 'n_tokens_neox': 405, 'n_words': 67}