<commit_before>#!/usr/bin/env bash

RUBY_ARCHIVE="rubinius-$RUBY_VERSION.tar.bz2"
RUBY_SRC_DIR="rubinius-$RUBY_VERSION"
RUBY_MIRROR="${RUBY_MIRROR:-http://releases.rubini.us}"
RUBY_URL="${RUBY_URL:-$RUBY_MIRROR/$RUBY_ARCHIVE}"

#
# Install optional dependencies for Rubinius.
#
function install_optional_deps()
{
	log "Installing bundler ..."
	$SUDO gem install bundler
}

#
# Configures Rubinius.
#
function configure_ruby()
{
	log "Bundling rubinius $RUBY_VERSION ..."
	bundle install --path vendor/gems

	log "Configuring rubinius $RUBY_VERSION ..."
	if [[ "$PACKAGE_MANAGER" == "brew" ]]; then
		bundle exec ./configure --prefix="$INSTALL_DIR" \
			    		--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)" \
			    		"${CONFIGURE_OPTS[@]}"
	else
		bundle exec ./configure --prefix="$INSTALL_DIR" "${CONFIGURE_OPTS[@]}"
	fi
}

#
# Compiles Rubinius.
#
function compile_ruby()
{
	log "Compiling rubinius $RUBY_VERSION ..."
	bundle exec rake build
}

#
# Installs Rubinius into $INSTALL_DIR.
#
function install_ruby()
{
	log "Installing rubinius $RUBY_VERSION ..."
	bundle exec rake install
}<commit_msg>Try to keep code within 80 columns.<commit_after>#!/usr/bin/env bash

RUBY_ARCHIVE="rubinius-$RUBY_VERSION.tar.bz2"
RUBY_SRC_DIR="rubinius-$RUBY_VERSION"
RUBY_MIRROR="${RUBY_MIRROR:-http://releases.rubini.us}"
RUBY_URL="${RUBY_URL:-$RUBY_MIRROR/$RUBY_ARCHIVE}"

#
# Install optional dependencies for Rubinius.
#
function install_optional_deps()
{
	log "Installing bundler ..."
	$SUDO gem install bundler
}

#
# Configures Rubinius.
#
function configure_ruby()
{
	log "Bundling rubinius $RUBY_VERSION ..."
	bundle install --path vendor/gems

	log "Configuring rubinius $RUBY_VERSION ..."
	if [[ "$PACKAGE_MANAGER" == "brew" ]]; then
		bundle exec ./configure --prefix="$INSTALL_DIR" \
			    		--with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)" \
			    		"${CONFIGURE_OPTS[@]}"
	else
		bundle exec ./configure --prefix="$INSTALL_DIR" \
					"${CONFIGURE_OPTS[@]}"
	fi
}

#
# Compiles Rubinius.
#
function compile_ruby()
{
	log "Compiling rubinius $RUBY_VERSION ..."
	bundle exec rake build
}

#
# Installs Rubinius into $INSTALL_DIR.
#
function install_ruby()
{
	log "Installing rubinius $RUBY_VERSION ..."
	bundle exec rake install
}
{'fraction_non_alphanumeric': 0.15800591465990704, 'fraction_numerical': 0.0016899028305872412, 'mean_word_length': 4.345372460496614, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6600504', 'n_tokens_mistral': 951, 'n_tokens_neox': 861, 'n_words': 180}