<commit_before>#!/bin/bash -e


if [ -z $(which python3-pip) ]; then 
    PIP_CMD=$(which pip) 
    PYTHON_CMD=$(which python)
else
    PIP_CMD=$(which python3-pip) 
    PYTHON_CMD=$(which python3)
fi

sudo ${PIP_CMD} install -r pipreqs
if [ -z "$APP_MODE" -o "$APP_MODE" == "dev" ]; then
    sudo ${PIP_CMD} install -r pipreqs-dev
fi
${PYTHON_CMD} manage.py migrate
exit 0<commit_msg>Do not run migrate inside of setupenv.sh, fabfile does that<commit_after>#!/bin/bash -e


if [ -z $(which python3-pip) ]; then 
    PIP_CMD=$(which pip) 
    PYTHON_CMD=$(which python)
else
    PIP_CMD=$(which python3-pip) 
    PYTHON_CMD=$(which python3)
fi

sudo ${PIP_CMD} install -r pipreqs
if [ -z "$APP_MODE" -o "$APP_MODE" == "dev" ]; then
    sudo ${PIP_CMD} install -r pipreqs-dev
fi
exit 0
{'fraction_non_alphanumeric': 0.15306122448979592, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 3.590643274853801, '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': '5156926', 'n_tokens_mistral': 335, 'n_tokens_neox': 306, 'n_words': 85}