<commit_before>require 'formula'

# My god! 20,000 files?!
# TODO trim that a bit? Seems crazy.

class Jruby <Formula
  @url='http://dist.codehaus.org/jruby/1.3.1/jruby-src-1.3.1.tar.gz'
  @homepage='http://jruby.org/'
  @md5='c7e2aa4a3065db445a8b3e17ecff9fe0'

  def install
    system "ant"

    Dir.chdir 'bin' do
      FileUtils.rm Dir['*.bat']
      Dir['*'].each do |file|
        FileUtils.mv file, "j#{file}" unless file.match /^[j_]/
      end
    end

    prefix.install Dir['*']
  end
end<commit_msg>JRuby - only keep darwin native libraries.<commit_after>require 'formula'

# My god! 20,000 files?!
# TODO trim that a bit? Seems crazy.

class Jruby <Formula
  @url='http://dist.codehaus.org/jruby/1.3.1/jruby-src-1.3.1.tar.gz'
  @homepage='http://jruby.org/'
  @md5='c7e2aa4a3065db445a8b3e17ecff9fe0'

  def install
    system "ant"

    Dir.chdir 'bin' do
      FileUtils.rm Dir['*.bat']
      Dir['*'].each do |file|
        FileUtils.mv file, "j#{file}" unless file.match /^[j_]/
      end
    end
    
    # Only keep the MacOSX native libraries
    Dir.chdir 'lib/native' do
      Dir['*'].each do |file|
        FileUtils.rm_f file unless file == 'darwin'
      end
    end

    prefix.install Dir['*']
  end
end
{'fraction_non_alphanumeric': 0.15609756097560976, 'fraction_numerical': 0.04552845528455285, 'mean_word_length': 2.719033232628399, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7023714', 'n_tokens_mistral': 519, 'n_tokens_neox': 482, 'n_words': 109}