<commit_before><commit_msg>mitofy 20120322: New formula<commit_after>require 'formula'

class Mitofy < Formula
  homepage 'http://dogma.ccbb.utexas.edu/mitofy/'
  url 'http://dogma.ccbb.utexas.edu/mitofy/mitofy.tgz'
  sha1 'd55569b6ab186b1e50012f2ba8aa984a4ee2a34e'
  version '20120322'

  def install
    libexec.install Dir['*']

    # Install a shell script to launch mitofy.
    bin.mkdir
    open(bin / 'mitofy', 'w') do |file|
      file.write <<-EOS.undent
        #!/bin/sh
        exec perl -I#{libexec}/annotate #{libexec}/annotate/mitofy.pl "$@"
      EOS
    end
  end

  test do
    system 'mitofy'
  end
end
{'fraction_non_alphanumeric': 0.1288244766505636, 'fraction_numerical': 0.06602254428341385, 'mean_word_length': 3.038961038961039, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '1907076', 'n_tokens_mistral': 277, 'n_tokens_neox': 250, 'n_words': 49}