<commit_before>#!/bin/sh

if [ x"$WARPDRIVE_DEBUG" != x"" ]; then
    set -x
    env
fi

set -eo pipefail

APP_ROOT=/opt/app-root

VERSION=0

while [ "$#" != "0" ]; do
    case "$1" in
        --version=*)
            VERSION=`echo $1 | sed -e 's/--version=//'`
            ;;
        --version)
            VERSION=$2
            shift
            ;;
        --app-root=*)
            APP_ROOT=`echo $1 | sed -e 's/--app-root=//'`
            ;;
        --app-root)
            APP_ROOT=$2
            shift
            ;;
    esac

    shift
done

BINDIR=${BINDIR:-$APP_ROOT/bin}
TMPDIR=${TMPDIR:-$APP_ROOT/tmp}

case "$VERSION" in
    0)
        VERSION=0.26.0
        ;;
esac

PACKAGE=https://codeload.github.com/GrahamDumpleton/warpdrive/tar.gz/$VERSION

curl -SL --fail -o /tmp/warpdrive.tar.gz $PACKAGE \
  && tar -xC $APP_ROOT  --strip-components=1 -f /tmp/warpdrive.tar.gz \
    warpdrive-$VERSION/warpdrive warpdrive-$VERSION/s2i \
  && rm -f /tmp/warpdrive.tar.gz

mkdir -p $APP_ROOT/bin
mkdir -p $APP_ROOT/tmp

chmod g+ws $APP_ROOT/bin<commit_msg>Update default version to 0.26.1.<commit_after>#!/bin/sh

if [ x"$WARPDRIVE_DEBUG" != x"" ]; then
    set -x
    env
fi

set -eo pipefail

APP_ROOT=/opt/app-root

VERSION=0

while [ "$#" != "0" ]; do
    case "$1" in
        --version=*)
            VERSION=`echo $1 | sed -e 's/--version=//'`
            ;;
        --version)
            VERSION=$2
            shift
            ;;
        --app-root=*)
            APP_ROOT=`echo $1 | sed -e 's/--app-root=//'`
            ;;
        --app-root)
            APP_ROOT=$2
            shift
            ;;
    esac

    shift
done

BINDIR=${BINDIR:-$APP_ROOT/bin}
TMPDIR=${TMPDIR:-$APP_ROOT/tmp}

case "$VERSION" in
    0)
        VERSION=0.26.1
        ;;
esac

PACKAGE=https://codeload.github.com/GrahamDumpleton/warpdrive/tar.gz/$VERSION

curl -SL --fail -o /tmp/warpdrive.tar.gz $PACKAGE \
  && tar -xC $APP_ROOT  --strip-components=1 -f /tmp/warpdrive.tar.gz \
    warpdrive-$VERSION/warpdrive warpdrive-$VERSION/s2i \
  && rm -f /tmp/warpdrive.tar.gz

mkdir -p $APP_ROOT/bin
mkdir -p $APP_ROOT/tmp

chmod g+ws $APP_ROOT/bin
{'fraction_non_alphanumeric': 0.1707202993451824, 'fraction_numerical': 0.014967259120673527, 'mean_word_length': 1.7423076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1941588', 'n_tokens_mistral': 859, 'n_tokens_neox': 826, 'n_words': 155}