<commit_before>#! /bin/bash

cwd=$(pwd)

# https://everest.github.io/doc_tutorial_new_modules.html
cd ~/checkout/everest-workspace/everest-utils/ev-dev-tools
pip3 install .

cd ~/checkout/everest-workspace/
edm --update

cd $cwd

echo $cwd

python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter new
python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader new

# Both writer and reader
conf_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ConfigFile)
cp config-sil.json $conf_file

# Writer
interface_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path InterfaceFile)
cp writer/js_example_writer.json $interface_file

code_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ModulesCodeFile)
cp writer/index.js $code_file

manifest_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ManifestFile)
cp writer/manifest.json $manifest_file

# Reader
interface_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader get_path InterfaceFile)
cp reader/js_example_reader.json $interface_file

code_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader get_path ModulesCodeFile)
cp reader/index.js $code_file

manifest_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ManifestFile)
cp reader/manifest.json $manifest_file

<<COMMENT

cd ~/checkout/everest-workspace/everest-core/build
cmake .. && make -j$(nproc) install
# ./~/checkout/everest-workspace/everest-core/run_sil.sh
./../run_sil.sh

COMMENT<commit_msg>build still fails<commit_after>#! /bin/bash

cwd=$(pwd)

# https://everest.github.io/doc_tutorial_new_modules.html
cd ~/checkout/everest-workspace/everest-utils/ev-dev-tools
pip3 install .

cd ~/checkout/everest-workspace/
edm --update

cd $cwd

echo $cwd

python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter new
python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader new

# Both writer and reader
conf_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ConfigFile)
cp config-sil.json $conf_file

# Writer
interface_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path InterfaceFile)
cp writer/js_example_writer.json $interface_file

code_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ModulesCodeFile)
cp writer/index.js $code_file

manifest_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ManifestFile)
cp writer/manifest.json $manifest_file

# Reader
interface_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader get_path InterfaceFile)
cp reader/js_example_reader.json $interface_file

code_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleReader get_path ModulesCodeFile)
cp reader/index.js $code_file

manifest_file=$(python3 setup_module.py true ~/checkout/everest-workspace/ ExampleWriter get_path ManifestFile)
cp reader/manifest.json $manifest_file

# Build
cd ~/checkout/everest-workspace/everest-core/build
cmake .. && make -j$(nproc) install
# ./~/checkout/everest-workspace/everest-core/run_sil.sh
./../run_sil.sh
{'fraction_non_alphanumeric': 0.10571768910065515, 'fraction_numerical': 0.005955926146515783, 'mean_word_length': 5.897330595482546, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4600019', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1110, 'n_words': 228}