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

requirements_dev() {
    venv/bin/pip -v install -q -Ur $1
}

requirements_prd() {
    pip3 install -r $1
}

install_dev() {
    venv/bin/pip -v install -q -e $1
}

install_prd() {
    ( cd $1 && python3 setup.py --quiet install )
}

die() {
    echo $*
    exit 1
}

# legal values: dev or prd
MODE=$1
shift
OP=$1
shift

[ $MODE == "dev" ] || [ $MODE == "prd" ] || die "mode must be dev or prd, got $MODE"
[ $OP == "requirements" ] || [ $OP == "install" ] || die "op must be install or requirements, got $OP"

FILES=$*

do_requirements() {
    requirements_${MODE} $1
}

do_install() {
    case "$1" in
        */requirements.txt) install_${MODE} "$(dirname $1)/.";;<commit_msg>fuck travis<commit_after>#!/usr/bin/env sh

requirements_dev() {
    venv/bin/pip -v install -q -Ur $1
}

requirements_prd() {
    pip3 install -r $1
}

install_dev() {
    venv/bin/pip -v install -q -e $1
}

install_prd() {
    ( cd $1 && python3 setup.py --quiet install )
}

die() {
    echo $*
    exit 1
}

echo ARGs=$*

# legal values: dev or prd
MODE=$1
shift
OP=$1
shift

echo MODE=$MODE
echo OP=$OP

[ $MODE == "dev" ] || [ $MODE == "prd" ] || die "mode must be dev or prd, got $MODE"
[ $OP == "requirements" ] || [ $OP == "install" ] || die "op must be install or requirements, got $OP"

FILES=$*

do_requirements() {
    requirements_${MODE} $1
}

do_install() {
    case "$1" in
        */requirements.txt) install_${MODE} "$(dirname $1)/.";;
{'fraction_non_alphanumeric': 0.1901840490797546, 'fraction_numerical': 0.016359918200409, 'mean_word_length': 2.904255319148936, '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': '4471585', 'n_tokens_mistral': 598, 'n_tokens_neox': 582, 'n_words': 164}