<commit_before>require 'base_packager'
require 'json'

class BuildpackPackager < BasePackager
  def dependencies
    [
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/node-0.4.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/libyaml-0.1.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/bundler-1.5.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby_versions.yml',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.1.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.1.0.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-build-1.8.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.4.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.4.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.11.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.11.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.11.tgz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk1.7.0_25.tar.gz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk1.7.0_45.tar.gz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk7-latest.tar.gz'
    ]
  end

  def excluded_files
    [
      /\.git/,
      /repos/
    ]
  end
end

BuildpackPackager.new("ruby", ARGV.first.to_sym).package<commit_msg>Exclude files and directories not needed for the buildpack package<commit_after>require 'base_packager'
require 'json'

class BuildpackPackager < BasePackager
  def dependencies
    [
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/node-0.4.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/libyaml-0.1.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/bundler-1.5.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby_versions.yml',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.1.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.1.0.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-build-1.8.7.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.1.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.2.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.3.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.4.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.4.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.5.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.6.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.8.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.9.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.10.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.8.7-jruby-1.7.11.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-1.9.3-jruby-1.7.11.tgz',
      'https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0-jruby-1.7.11.tgz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk1.7.0_25.tar.gz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk1.7.0_45.tar.gz',
      'http://heroku-jdk.s3.amazonaws.com/openjdk7-latest.tar.gz'
    ]
  end

  def excluded_files
    [
      /\.git/,
      /repos/,
      /spec/,
      /cf_spec/,
      /cf.Gemfile*/
    ]
  end
end

BuildpackPackager.new("ruby", ARGV.first.to_sym).package
{'fraction_non_alphanumeric': 0.21695568400770712, 'fraction_numerical': 0.07193320488118175, 'mean_word_length': 2.809197651663405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 74, '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': '5737828', 'n_tokens_mistral': 3688, 'n_tokens_neox': 3472, 'n_words': 127}