<commit_before>#!/bin/sh

DIR_NAME=$1
REPOSITORY_ADDR=$2
DOCKER_IMAGE=$3
DOCKER_CONTAINER=$4
HOST_PORT=$6
LOG_PATH=$7
APP_CONTAINER=$8
PHP_CONTAINER=$9

./updateRepository.sh ${DIR_NAME} ${REPOSITORY_ADDR}

if [ ! -d ${LOG_PATH} ]; then
  sudo mkdir -p ${LOG_PATH}
fi

cd ${DIR_NAME}
sudo docker build -t ${DOCKER_IMAGE} .
sudo docker stop ${DOCKER_CONTAINER}
sudo docker rm ${DOCKER_CONTAINER}
sudo docker run -d -p ${HOST_PORT}:80 --name ${DOCKER_CONTAINER} \
	--link ${PHP_CONTAINER}:phpfpm \
	--volumes-from ${APP_CONTAINER} \<commit_msg>Fixed typo<commit_after>#!/bin/sh

DIR_NAME=$1
REPOSITORY_ADDR=$2
DOCKER_IMAGE=$3
DOCKER_CONTAINER=$4
HOST_PORT=$5
LOG_PATH=$6
APP_CONTAINER=$7
PHP_CONTAINER=$8

./updateRepository.sh ${DIR_NAME} ${REPOSITORY_ADDR}

if [ ! -d ${LOG_PATH} ]; then
  sudo mkdir -p ${LOG_PATH}
fi

cd ${DIR_NAME}
sudo docker build -t ${DOCKER_IMAGE} .
sudo docker stop ${DOCKER_CONTAINER}
sudo docker rm ${DOCKER_CONTAINER}
sudo docker run -d -p ${HOST_PORT}:80 --name ${DOCKER_CONTAINER} \
	--link ${PHP_CONTAINER}:phpfpm \
	--volumes-from ${APP_CONTAINER} \
{'fraction_non_alphanumeric': 0.15541165587419056, 'fraction_numerical': 0.018501387604070305, 'mean_word_length': 5.440476190476191, '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': '150920', 'n_tokens_mistral': 495, 'n_tokens_neox': 455, 'n_words': 97}