<commit_before>#!/usr/bin/env bash
set -e

cd buildpack
git tag v`cat VERSION`
export BUNDLE_GEMFILE=cf.Gemfile
bundle install
bundle exec buildpack-packager --uncached
bundle exec buildpack-packager --cached

timestamp=$(date +%s)
ruby <<RUBY
require "fileutils"
Dir.glob("*.zip").map do |filename|
  filename.match(/(.*)_buildpack(-cached)?-v(.*).zip/) do |match|
    language = match[1]
    cached = match[2]
    version = match[3]
    FileUtils.mv(filename, "#{language}_buildpack#{cached}-v#{version}+$timestamp.zip")
  end
end
RUBY

echo md5: "`md5sum *_buildpack-v*.zip`" sha256: "`sha256sum *_buildpack-v*.zip`"
echo md5: "`md5sum *_buildpack-cached-v*.zip`" sha256: "`sha256sum *_buildpack-cached-v*.zip`"<commit_msg>One file hash per line<commit_after>#!/usr/bin/env bash
set -e

cd buildpack
git tag v`cat VERSION`
export BUNDLE_GEMFILE=cf.Gemfile
bundle install
bundle exec buildpack-packager --uncached
bundle exec buildpack-packager --cached

timestamp=$(date +%s)
ruby <<RUBY
require "fileutils"
Dir.glob("*.zip").map do |filename|
  filename.match(/(.*)_buildpack(-cached)?-v(.*).zip/) do |match|
    language = match[1]
    cached = match[2]
    version = match[3]
    FileUtils.mv(filename, "#{language}_buildpack#{cached}-v#{version}+$timestamp.zip")
  end
end
RUBY

echo md5: "`md5sum *_buildpack-v*.zip`"
echo sha256: "`sha256sum *_buildpack-v*.zip`"
echo md5: "`md5sum *_buildpack-cached-v*.zip`"
echo sha256: "`sha256sum *_buildpack-cached-v*.zip`"
{'fraction_non_alphanumeric': 0.17131203263086336, 'fraction_numerical': 0.02583276682528892, 'mean_word_length': 5.0081632653061225, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6579044', 'n_tokens_mistral': 579, 'n_tokens_neox': 544, 'n_words': 123}