<commit_before>#!/bin/bash

[ -n "$DEBUG" ] && set -o xtrace
set -o nounset
set -o errexit
shopt -s nullglob

cd $(dirname "${0}")

source ./common.sh

# Defaults for debugging the setup script
id=${id:-test}
network_netmask=${network_netmask:-255.255.255.252}
network_host_ip=${network_host_ip:-10.0.0.1}
network_host_iface="w-${id}-0"
network_container_ip=${network_container_ip:-10.0.0.2}
network_container_iface="w-${id}-1"
user_uid=${user_uid:-10000}
rootfs_path=${rootfs_path:-../../base/rootfs}

# Write configuration
cat > config <<-EOS
id=${id}
network_netmask=${network_netmask}
network_host_ip=${network_host_ip}
network_host_iface=${network_host_iface}
network_container_ip=${network_container_ip}
network_container_iface=${network_container_iface}<commit_msg>Environment variable rootfs_path is mandatory<commit_after>#!/bin/bash

[ -n "$DEBUG" ] && set -o xtrace
set -o nounset
set -o errexit
shopt -s nullglob

cd $(dirname "${0}")

source ./common.sh

# Defaults for debugging the setup script
id=${id:-test}
network_netmask=${network_netmask:-255.255.255.252}
network_host_ip=${network_host_ip:-10.0.0.1}
network_host_iface="w-${id}-0"
network_container_ip=${network_container_ip:-10.0.0.2}
network_container_iface="w-${id}-1"
user_uid=${user_uid:-10000}
rootfs_path=$rootfs_path

# Write configuration
cat > config <<-EOS
id=${id}
network_netmask=${network_netmask}
network_host_ip=${network_host_ip}
network_host_iface=${network_host_iface}
network_container_ip=${network_container_ip}
network_container_iface=${network_container_iface}
{'fraction_non_alphanumeric': 0.15755627009646303, 'fraction_numerical': 0.03858520900321544, 'mean_word_length': 7.596685082872928, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '3990824', 'n_tokens_mistral': 591, 'n_tokens_neox': 571, 'n_words': 93}