<commit_before>#!/bin/bash
set -xeuo pipefail

# map values from snap-ci
export CACHE_DIR=$SNAP_CACHE_DIR

# install dependencies
sudo yum install perl-Image-ExifTool
sudo yum install ImageMagick

# update rbenv
rbenv update > /dev/null
rbenv --version
eval "$(rbenv init -)"

# install ruby
rbenv download $RUBY_VERSION
rbenv shell $RUBY_VERSION
ruby --version
gem --version

# install bundler
gem install bundler
bundle --version

# configure bundler
rbenv rehash
bundle config path $CACHE_DIR/gems/$RUBY_VERSION
bundle install
<commit_msg>update rubygems and bundle update<commit_after>#!/bin/bash
set -xeuo pipefail

# map values from snap-ci
export CACHE_DIR=$SNAP_CACHE_DIR

# install dependencies
sudo yum install perl-Image-ExifTool
sudo yum install ImageMagick

# update rbenv
rbenv update > /dev/null
rbenv --version
eval "$(rbenv init -)"

# install ruby
rbenv download $RUBY_VERSION
rbenv shell $RUBY_VERSION
ruby --version
gem --version

# install bundler
gem install bundler
bundle --version

# configure bundler
rbenv rehash
bundle config path $CACHE_DIR/gems/$RUBY_VERSION
gem update --system 'version'
bundle update

{'fraction_non_alphanumeric': 0.07766990291262135, 'fraction_numerical': 0.0, 'mean_word_length': 4.815384615384615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7016848', 'n_tokens_mistral': 395, 'n_tokens_neox': 372, 'n_words': 126}