<commit_before>require 'formula'

# OrganellarGenomeDRAW
class Ogdraw < Formula
  homepage 'http://ogdraw.mpimp-golm.mpg.de/'
  #doi "10.1007/s00294-007-0161-y" => "2007", "10.1093/nar/gkt289" => "2013"
  #tag "bioinformatics"
  url 'http://ogdraw.mpimp-golm.mpg.de/resources/GeneMap-1.1.1.tar.gz'
  sha1 '16ea480aa13d702cc30a7160b8a3668c51627989'

  depends_on 'imagemagick'

  depends_on 'Bio::Perl' => :perl
  depends_on 'Bio::Restriction::Analysis' => :perl
  depends_on 'Bio::Root::Root' => :perl
  depends_on 'Bio::SeqFeature::Generic' => :perl
  depends_on 'Bio::SeqIO' => :perl
  depends_on 'Image::Magick' => :perl
  depends_on 'PostScript::Simple' => :perl
  depends_on 'XML::Generator' => :perl

  def install
    system *%W[perl Makefile.PL PREFIX=#{prefix}]
    system *%w[make install]
  end

  def caveats; <<-EOS.undent
    Set the PERL5LIB environment variable:
      export PERL5LIB=#{HOMEBREW_PREFIX}/lib/perl5/site_perl:${PERL5LIB}
    EOS
  end

  test do
    system 'drawgenemap'
  end
end<commit_msg>ogdraw: Set PERL5LIB in the test<commit_after>require 'formula'

# OrganellarGenomeDRAW
class Ogdraw < Formula
  homepage 'http://ogdraw.mpimp-golm.mpg.de/'
  #doi "10.1007/s00294-007-0161-y" => "2007", "10.1093/nar/gkt289" => "2013"
  #tag "bioinformatics"
  url 'http://ogdraw.mpimp-golm.mpg.de/resources/GeneMap-1.1.1.tar.gz'
  sha1 '16ea480aa13d702cc30a7160b8a3668c51627989'

  depends_on 'imagemagick'

  depends_on 'Bio::Perl' => :perl
  depends_on 'Bio::Restriction::Analysis' => :perl
  depends_on 'Bio::Root::Root' => :perl
  depends_on 'Bio::SeqFeature::Generic' => :perl
  depends_on 'Bio::SeqIO' => :perl
  depends_on 'Image::Magick' => :perl
  depends_on 'PostScript::Simple' => :perl
  depends_on 'XML::Generator' => :perl

  def install
    system *%W[perl Makefile.PL PREFIX=#{prefix}]
    system *%w[make install]
  end

  def caveats; <<-EOS.undent
    Set the PERL5LIB environment variable:
      export PERL5LIB=#{HOMEBREW_PREFIX}/lib/perl5/site_perl:${PERL5LIB}
    EOS
  end

  test do
    system "PERL5LIB=/usr/local/lib/perl5/site_perl #{bin}/drawgenemap"
  end
end
{'fraction_non_alphanumeric': 0.15293560606060605, 'fraction_numerical': 0.06960227272727272, 'mean_word_length': 4.376590330788804, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '2420369', 'n_tokens_mistral': 972, 'n_tokens_neox': 846, 'n_words': 151}