<commit_before>#!/bin/bash

get_name (){

echo $(python -c 'import json; print json.load(open("'$1'package.json"))["name"]')
}

setup_submodule (){
    for dep in $(cat test/dep_modules.txt); do
        mname=$(basename $dep | sed 's/.git//g')
        git clone $dep ~/$mname
        rmname=$(get_name ~/$mname/)
        cp -r  ~/$mname/module ~/shinken/modules/$rmname
        [ -f ~/$mname/requirements.txt ] && pip install -r ~/$mname/requirements.txt
    done
}

name=$(get_name)

pip install pycurl
pip install coveralls
git clone https://github.com/naparuba/shinken.git ~/shinken
[ -f test/dep_modules.txt ] && setup_submodule
[ -f requirements.txt ] && pip install -r requirements.txt
rm ~/shinken/test/test_*.py
cp test/test_*.py ~/shinken/test/
[ -d test/etc ] && cp -r test/etc ~/shinken/test/
cp -r module ~/shinken/modules/$name
ln -sf ~/shinken/modules ~/shinken/test/modules
#cd ~/shinken

<commit_msg>Need to copy all, not only test_*.<commit_after>#!/bin/bash

get_name (){

echo $(python -c 'import json; print json.load(open("'$1'package.json"))["name"]')
}

setup_submodule (){
    for dep in $(cat test/dep_modules.txt); do
        mname=$(basename $dep | sed 's/.git//g')
        git clone $dep ~/$mname
        rmname=$(get_name ~/$mname/)
        cp -r  ~/$mname/module ~/shinken/modules/$rmname
        [ -f ~/$mname/requirements.txt ] && pip install -r ~/$mname/requirements.txt
    done
}

name=$(get_name)

pip install pycurl
pip install coveralls
git clone https://github.com/naparuba/shinken.git ~/shinken
[ -f test/dep_modules.txt ] && setup_submodule
[ -f requirements.txt ] && pip install -r requirements.txt
rm ~/shinken/test/test_*.py
cp test/*.py ~/shinken/test/
[ -d test/etc ] && cp -r test/etc ~/shinken/test/
cp -r module ~/shinken/modules/$name
ln -sf ~/shinken/modules ~/shinken/test/modules
#cd ~/shinken


{'fraction_non_alphanumeric': 0.17803030303030304, 'fraction_numerical': 0.0010822510822510823, 'mean_word_length': 3.1457399103139014, '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': '652876', 'n_tokens_mistral': 708, 'n_tokens_neox': 694, 'n_words': 162}