<commit_before>require 'formula'

class Parrot <Formula
  head 'bzr://https://launchpad.net/parrot/trunk'
  url 'ftp://ftp.parrot.org/pub/parrot/releases/devel/2.4.0/parrot-2.4.0.tar.gz'
  homepage 'http://www.parrot.org/'
  md5 '596c62109f80e1c4b6a5919553dc801b'

  depends_on 'pcre'

  def install
    system "perl", "Configure.pl", "--prefix=#{prefix}", "--debugging=0",
                                   "--without-opengl", "--cc=#{ENV.cc}"
    system "make"
    system "make install"

    l = %x{otool -L #{bin}/parrot}[/\S*blib\/lib\S*/]

    %w{parrot parrot-nqp parrot-prove parrot_config parrot_debugger
       parrot_nci_thunk_gen pbc_disassemble pbc_dump pbc_merge pbc_to_exe
    }.each do |fn|
      system "install_name_tool -change #{l} #{lib}/libparrot.dylib #{bin+fn}"
    end
  end
end<commit_msg>Update parrot to 2.5.0<commit_after>require 'formula'

class Parrot <Formula
  head 'bzr://https://launchpad.net/parrot/trunk'
  url 'ftp://ftp.parrot.org/pub/parrot/releases/devel/2.5.0/parrot-2.5.0.tar.gz'
  homepage 'http://www.parrot.org/'
  md5 'c64fe3a619afbda92e92d8df93b0d05d'

  depends_on 'icu4c' => :optional
  depends_on 'pcre' => :optional

  def install
    system "perl", "Configure.pl", "--prefix=#{prefix}", "--debugging=0",
                                   "--without-opengl", "--cc=#{ENV.cc}"

    system "make"
    system "make install"

    l = %x{otool -L #{bin}/parrot}[/\S*blib\/lib\S*/]
    %w{ops2c parrot parrot-nqp parrot-prove parrot_config parrot_debugger
      parrot_nci_thunk_gen pbc_disassemble pbc_dump pbc_merge pbc_to_exe
    }.each do |fn|
      system "install_name_tool -change #{l} #{lib}/libparrot.dylib #{bin+fn}"
    end
  end
end
{'fraction_non_alphanumeric': 0.16203429923122412, 'fraction_numerical': 0.03548196333530455, 'mean_word_length': 3.009478672985782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6565540', 'n_tokens_mistral': 721, 'n_tokens_neox': 668, 'n_words': 117}