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

set -o xtrace  # trace what gets executed
set -o errexit # exit when a command fails.
set -o nounset # exit when your script tries to use undeclared variables

MAJOR_VERSION=2.1
VERSION=2.1.2
DOWNLOAD_SHA256=f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635

mkdir -p /var/cache/install-flags/ruby
if [ ! -f "/var/cache/install-flags/ruby/${VERSION}" ]; then
	apt-get update \
	&& apt-get install -y bison libgdbm-dev ruby autoconf zlib1g-dev libreadline-dev libssl-dev \
	&& rm -rf /var/lib/apt/lists/* \
	&& mkdir -p /usr/src/ruby \
	&& curl -fSL -o ruby.tar.gz "http://cache.ruby-lang.org/pub/ruby/${MAJOR_VERSION}/ruby-${VERSION}.tar.gz" \
	&& echo "${DOWNLOAD_SHA256} *ruby.tar.gz" | sha256sum -c - \
	&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
	&& rm ruby.tar.gz \
	&& cd /usr/src/ruby \
	&& autoconf \
	&& ./configure --disable-install-doc \
	&& make -j"$(nproc)" \
	&& make install \
	&& apt-get purge -y --auto-remove bison ruby autoconf \
	&& rm -r /usr/src/ruby \
	&& touch "/var/cache/install-flags/ruby/${VERSION}"
fi

# skip installing gem documentation
echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"<commit_msg>adding make to rails base<commit_after>#!/usr/bin/env bash

set -o xtrace  # trace what gets executed
set -o errexit # exit when a command fails.
set -o nounset # exit when your script tries to use undeclared variables

MAJOR_VERSION=2.1
VERSION=2.1.2
DOWNLOAD_SHA256=f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635

mkdir -p /var/cache/install-flags/ruby
if [ ! -f "/var/cache/install-flags/ruby/${VERSION}" ]; then
	apt-get update \
	&& apt-get install -y bison libgdbm-dev make ruby-dev rubygems-integration autoconf zlib1g-dev libreadline-dev libssl-dev \
	&& rm -rf /var/lib/apt/lists/* \
	&& mkdir -p /usr/src/ruby \
	&& curl -fSL -o ruby.tar.gz "http://cache.ruby-lang.org/pub/ruby/${MAJOR_VERSION}/ruby-${VERSION}.tar.gz" \
	&& echo "${DOWNLOAD_SHA256} *ruby.tar.gz" | sha256sum -c - \
	&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
	&& rm ruby.tar.gz \
	&& cd /usr/src/ruby \
	&& autoconf \
	&& ./configure --disable-install-doc \
	&& make -j"$(nproc)" \
	&& make install \
	&& apt-get purge -y --auto-remove bison ruby autoconf \
	&& rm -r /usr/src/ruby \
	&& touch "/var/cache/install-flags/ruby/${VERSION}"
fi

# skip installing gem documentation
echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc"
{'fraction_non_alphanumeric': 0.17049180327868851, 'fraction_numerical': 0.04918032786885246, 'mean_word_length': 3.2013769363166955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1982950', 'n_tokens_mistral': 1065, 'n_tokens_neox': 972, 'n_words': 217}