<commit_before>#!/bin/bash
#
# eXist-db
#

cd /tmp

# Get XML documents
/usr/bin/git clone https://github.com/beijingren/dublin-store.git

# Start the server
# TODO: should be daemon mode
/usr/local/existdb/tools/wrapper/bin/wrapper-linux-x86-64 -c ../conf/wrapper.conf

/bin/sleep 30s

# Load documents into the db
# TODO: fix password in production
for f in $(find /tmp/dublin-store -name "*.xml"); do
/usr/local/existdb/bin/client.sh -u admin -P glen32 -m /db/docker -p ${f};
done

# TODO: should be server log
/usr/bin/tail -f /usr/local/existdb/tools/wrapper/logs/wrapper.log<commit_msg>Load fixed data for now<commit_after>#!/bin/bash
#
# eXist-db
#

cd /tmp

# Get XML documents
/usr/bin/git clone https://github.com/beijingren/dublin-store.git

# Start the server
# TODO: should be daemon mode
/usr/local/existdb/tools/wrapper/bin/wrapper-linux-x86-64 -c ../conf/wrapper.conf

/bin/sleep 30s

# Load documents into the db
# TODO: fix password in production
for f in $(find /tmp/dublin-store -name "*.xml"); do
done
/usr/local/existdb/bin/client.sh -u admin -P glen32 -m /db/docker -p /tmp/dublin-store/db/test_001.xml;

# TODO: should be server log
/usr/bin/tail -f /usr/local/existdb/tools/wrapper/logs/wrapper.log
{'fraction_non_alphanumeric': 0.14963205233033525, 'fraction_numerical': 0.01553556827473426, 'mean_word_length': 3.3870967741935485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '4193627', 'n_tokens_mistral': 481, 'n_tokens_neox': 455, 'n_words': 121}