<commit_before>#!/bin/sh
# Install SBT, a build tool for Scale - http://www.scala-sbt.org/
# manual installation taken from http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
#
# You can either add this here, or configure the version on the environment tab
# of your project settings.
SBT_VERSION="0.13.8"

set -e
mkdir -p "${HOME}/cache/sbt"
wget --continue -O "${HOME}/cache/sbt/sbt-${SBT_VERSION}.jar" "https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar"

echo 'SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"' > "${HOME}/bin/sbt"
echo "java $SBT_OPTS -jar ${HOME}/cache/sbt/sbt-${SBT_VERSION}.jar \"$@\"" >> "${HOME}/bin/sbt"
chmod u+x "${HOME}/bin/sbt"<commit_msg>Improvements for the SBT download script<commit_after>#!/bin/bash
# Install SBT, a build tool for Scale - http://www.scala-sbt.org/
# manual installation taken from http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
#
# Include in your builds via
# https://raw.githubusercontent.com/codeship/scripts/master/packages/sbt.sh | bash -s
SBT_VERSION=${SBT_VERSION:="0.13.8"}

set -e
CACHED_DOWNLOAD="${HOME}/cache/sbt-${SBT_VERSION}.jar"

wget --continue --output-document "${CACHED_DOWNLOAD}" "https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar"
echo 'SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"' > "${HOME}/bin/sbt"
echo "java $SBT_OPTS -jar ${CACHED_DOWNLOAD} \"$@\"" >> "${HOME}/bin/sbt"
chmod u+x "${HOME}/bin/sbt"
{'fraction_non_alphanumeric': 0.18847839699436444, 'fraction_numerical': 0.022542266750156543, 'mean_word_length': 4.7898550724637685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7437867', 'n_tokens_mistral': 667, 'n_tokens_neox': 622, 'n_words': 110}