<commit_before>class Circos < Formula
  homepage "http://circos.ca"
  url "http://circos.ca/distribution/circos-0.67-7.tgz"
  sha256 "6e1fc82e1f2f74056fa3229eb43f069e5813e911e9d75e6267f5e1e569a87b49"

  depends_on "gd"
  depends_on "Config::General" => :perl
  depends_on "Font::TTF::Font" => :perl
  depends_on "GD::Polyline" => :perl
  depends_on "Math::Bezier" => :perl
  depends_on "Math::VecStat" => :perl
  depends_on "Readonly" => :perl
  depends_on "Set::IntSpan" => :perl
  depends_on "Text::Format" => :perl

  def install
    inreplace "bin/circos", "#!/bin/env perl", "#!/usr/bin/env perl"
    libexec.install Dir["*"]
    bin.install_symlink "../libexec/bin/circos" => "circos"
  end

  def caveats; <<-EOS.undent
    GD::Polyline fails to install with cpan.
    To install gd and circos, run the following commands:
      brew remove gd
      brew install gd --with-freetype
      brew install cpanminus
      sudo chown -R "$USER":admin /Library/Perl
      cpanm Config::General Font::TTF::Font Math::Bezier Math::VecStat Readonly Set::IntSpan Text::Format
      cpanm --force GD::Polyline
      brew install circos
    Alternatively, download and install GD.pm manually:
      perl Makefile.PL && make install
    EOS
  end

  test do
    system "cd #{libexec}/bin && ./test.modules"
    system "#{bin}/circos --version |grep -q ^circos"
    system "#{bin}/circos -conf #{libexec}/example/etc/circos.conf"
  end
end<commit_msg>circos 0.67-7: Update dependencies for linuxbrew<commit_after>class Circos < Formula
  homepage "http://circos.ca"
  url "http://circos.ca/distribution/circos-0.67-7.tgz"
  sha256 "6e1fc82e1f2f74056fa3229eb43f069e5813e911e9d75e6267f5e1e569a87b49"

  depends_on "gd"
  depends_on "Config::General" => :perl
  depends_on "Font::TTF::Font" => :perl
  depends_on "GD::Polyline" => :perl
  depends_on "Math::Bezier" => :perl
  depends_on "Math::VecStat" => :perl
  depends_on "Readonly" => :perl
  depends_on "Set::IntSpan" => :perl
  depends_on "Text::Format" => :perl
  depends_on "SVG" => :perl unless OS.mac?
  depends_on "Statistics::Basic" => :perl unless OS.mac?
  depends_on "Params::Validate" => :perl unless OS.mac?
  depends_on "Math::Round" => :perl unless OS.mac?
  depends_on "Regexp::Common" => :perl unless OS.mac?

  def install
    inreplace "bin/circos", "#!/bin/env perl", "#!/usr/bin/env perl"
    libexec.install Dir["*"]
    bin.install_symlink "../libexec/bin/circos" => "circos"
  end

  def caveats; <<-EOS.undent
    GD::Polyline fails to install with cpan.
    To install gd and circos, run the following commands:
      brew remove gd
      brew install gd --with-freetype
      brew install cpanminus
      sudo chown -R "$USER":admin /Library/Perl
      cpanm Config::General Font::TTF::Font Math::Bezier Math::VecStat Readonly Set::IntSpan Text::Format
      cpanm --force GD::Polyline
      brew install circos
    Alternatively, download and install GD.pm manually:
      perl Makefile.PL && make install
    EOS
  end

  test do
    system "cd #{libexec}/bin && ./test.modules"
    system "#{bin}/circos --version |grep -q ^circos"
    system "#{bin}/circos -conf #{libexec}/example/etc/circos.conf"
  end
end
{'fraction_non_alphanumeric': 0.13890634820867379, 'fraction_numerical': 0.03268384663733501, 'mean_word_length': 3.6331877729257642, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 26, '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': '6452234', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1146, 'n_words': 281}