<commit_before>#!/bin/bash

set -e

REPO_PATH=`pwd`
SHARED_PATH=/tmp/`ls -1 /tmp/ | grep -E ^drone_shared | head -n 1`

echo "Drone systems check..."
echo "----------------------------------------------------"
echo Current path: ${REPO_PATH}
echo Shared path: ${SHARED_PATH}

echo -e "Docker info:\n"
docker -H unix:///var/run/docker.sock info
echo
echo "----------------------------------------------------"

pip install -r requirements.txt

mv ${REPO_PATH} ${SHARED_PATH}
cd ${SHARED_PATH}/mltsp

python setup.py build_ext -i
pip install -e .

cp mltsp.yaml.example mltsp.yaml

python -c "import mltsp; mltsp.install()"

rabbitmq-server &

make db && sleep 1 && make init
make test_no_docker
<commit_msg>Fix configuration in Docker script<commit_after>#!/bin/bash

set -e

REPO_PATH=`pwd`
SHARED_PATH=/tmp/`ls -1 /tmp/ | grep -E ^drone_shared | head -n 1`

echo "Drone systems check..."
echo "----------------------------------------------------"
echo Current path: ${REPO_PATH}
echo Shared path: ${SHARED_PATH}

echo -e "Docker info:\n"
docker -H unix:///var/run/docker.sock info
echo
echo "----------------------------------------------------"

pip install --upgrade -r requirements.txt

mv ${REPO_PATH} ${SHARED_PATH}
cd ${SHARED_PATH}/mltsp

python setup.py build_ext -i
pip install -e .

mltsp --install

rabbitmq-server &

make db && sleep 1
mltsp --init-db

make test_no_docker

{'fraction_non_alphanumeric': 0.27036770007209804, 'fraction_numerical': 0.004325883201153569, 'mean_word_length': 2.0505494505494504, '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': '5166781', 'n_tokens_mistral': 499, 'n_tokens_neox': 467, 'n_words': 137}