<commit_before>#!/bin/bash -e
CUST_APP_NAME=$1
ENV=$2

#-------------------------------------------------------------------------------
# run the appliction specific web_commands.sh 
#-------------------------------------------------------------------------------
if [[ -e "${HOME}/${CUST_APP_NAME}/${CUST_APP_NAME}-utils/config/${ENV}/web-commands.sh" ]]; then
    sudo "${HOME}/${CUST_APP_NAME}/${CUST_APP_NAME}-utils/config/${ENV}/web-commands.sh"
fi

cp requirements.txt /installs/requirements.txt
cp requirements2.txt /installs/requirements2.txt
cp web.sh /installs/web.sh

sudo pip install -r requirements.txt

#
# Scipy and Sckit-learn must be installed AFTER numpy, in a separate pip install step
# (https://github.com/scikit-learn/scikit-learn/issues/4164#issuecomment-100391246)
# This also means that they cannot be built as wheels, so they are not in the normal requirements.txt file
#
sudo pip install -r requirements2.txt

echo "Installed customer-specific web and worker portion"<commit_msg>correct the 000000-stack web.sh<commit_after>#!/bin/bash -e

cp requirements.txt /installs/requirements.txt
cp requirements2.txt /installs/requirements2.txt
cp web.sh /installs/web.sh

sudo pip install -r requirements.txt

#
# Scipy and Sckit-learn must be installed AFTER numpy, in a separate pip install step
# (https://github.com/scikit-learn/scikit-learn/issues/4164#issuecomment-100391246)
# This also means that they cannot be built as wheels, so they are not in the normal requirements.txt file
# In order to ensure that wheels are not used, must use the --no-cache-dir option.
#
sudo pip install --no-cache-dir -r requirements2.txt

echo "Installed customer-specific web and worker portion"
{'fraction_non_alphanumeric': 0.19307511737089203, 'fraction_numerical': 0.023474178403755867, 'mean_word_length': 2.9105504587155964, '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': '4856190', 'n_tokens_mistral': 528, 'n_tokens_neox': 499, 'n_words': 157}