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

RUBY_ARCHIVE="MagLev-$RUBY_VERSION.tar.gz"
RUBY_URL="http://glass-downloads.gemstone.com/maglev/$RUBY_ARCHIVE"

function configure_ruby() { return; }

function compile_ruby() { return; }

#
# Install Maglev into $INSTALL_DIR.
#
function install_ruby()
{
	log "Installing maglev $RUBY_VERSION ..."
	sh "$SRC_DIR/$RUBY_SRC_DIR/install.sh"

	# Determine the Gemstone name with code adapted from Maglev's update.sh.
	platform="$(uname -sm | tr ' ' '-')"
	[ $platform="Darwin-x86_64" ] && platform="Darwin-i386"
	gs_ver=$(grep GEMSTONE "$SRC_DIR/$RUBY_SRC_DIR/version.txt" | cut -f2 -d-)
	gemstone="GemStone-$gs_ver.$platform"

	# Move the Gemstone from $SRC_DIR to $RUBY_SRC_DIR and symlink gemstone.
	mv "$SRC_DIR/$gemstone" "$SRC_DIR/$RUBY_SRC_DIR"<commit_msg>run install.sh directly and move platform to PLATFORM<commit_after>#!/usr/bin/env bash

PLATFORM="$(uname -sm | tr ' ' '-')"
[ $PLATFORM="Darwin-x86_64" ] && PLATFORM="Darwin-i386"

RUBY_ARCHIVE="MagLev-$RUBY_VERSION.tar.gz"
RUBY_URL="http://glass-downloads.gemstone.com/maglev/$RUBY_ARCHIVE"

function configure_ruby() { return; }

function compile_ruby() { return; }

#
# Install Maglev into $INSTALL_DIR.
#
function install_ruby()
{
	log "Installing maglev $RUBY_VERSION ..."
	"$SRC_DIR/$RUBY_SRC_DIR/install.sh"

	# Determine the Gemstone name with code adapted from Maglev's update.sh.
	gs_ver=$(grep GEMSTONE "$SRC_DIR/$RUBY_SRC_DIR/version.txt" | cut -f2 -d-)
	gemstone="GemStone-$gs_ver.$PLATFORM"

	# Move the Gemstone from $SRC_DIR to $RUBY_SRC_DIR and symlink gemstone.
	mv "$SRC_DIR/$gemstone" "$SRC_DIR/$RUBY_SRC_DIR"
{'fraction_non_alphanumeric': 0.15332512315270935, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 5.226053639846743, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '657406', 'n_tokens_mistral': 677, 'n_tokens_neox': 622, 'n_words': 119}