<commit_before>require "formula"

class Aragorn < Formula
  homepage "http://mbio-serv2.mbioekol.lu.se/ARAGORN/"
  #doi "10.1093/nar/gkh152"

  url "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn1.2.36.tgz"
  sha1 "3fd5dafa5fa0a65c303d866fc4506bfbc38efbcb"

  def install
    mv "aragorn#{version}.c", "aragorn.c"
    system "make", "aragorn"
    bin.install "aragorn"
    man1.install "aragorn.1"
  end

  test do
    system "#{bin}/aragorn -h"
  end
end<commit_msg>Aragorn (sha256 + new real test)<commit_after>class Aragorn < Formula
  homepage "http://mbio-serv2.mbioekol.lu.se/ARAGORN/"
  # doi "10.1093/nar/gkh152"

  url "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn1.2.36.tgz"
  sha256 "ab06032589e45aa002f8616333568e9ab11034b3a675f922421e5f1c3e95e7b5"

  def install
    mv "aragorn#{version}.c", "aragorn.c"
    system "make", "aragorn"
    bin.install "aragorn"
    man1.install "aragorn.1"
  end

  test do
    (testpath/"test.fa").write <<-EOS.undent
      >sequence
      GGGGCTATAGCTCAGTTGGGAGAGCGCTGCAATCGCACTG
      CAGAGGTCGTCAGTTCGAACCTGACTAGCTCCACCA
    EOS
    assert_match "tRNA-Ala", shell_output("aragorn -w #{testpath}/test.fa")
  end
end
{'fraction_non_alphanumeric': 0.1328847771236333, 'fraction_numerical': 0.08830950378469302, 'mean_word_length': 3.741035856573705, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5947924', 'n_tokens_mistral': 598, 'n_tokens_neox': 527, 'n_words': 75}