<commit_before>#!/bin/sh
#
# usage: executor.sh {km-executor-parameters...}
#
env

echo mounts after unshare:
cat /proc/$$/mounts

sandbox=${MESOS_SANDBOX:-${MESOS_DIRECTORY}}
test -n "$sandbox" || die failed to identify mesos sandbox. neither MESOS_DIRECTORY or MESOS_SANDBOX was specified

cp ${sandbox}/opt/.version ${sandbox}

execlineb_home=$sandbox
. ${sandbox}/opt/functions.sh

PATH=${sandbox}/bin:$PATH
PATH=${sandbox}/sbin:$PATH
PATH=${sandbox}/usr/bin:$PATH
PATH=${sandbox}/usr/sbin:$PATH
export PATH
LD_LIBRARY_PATH=${sandbox}/lib
export LD_LIBRARY_PATH
#LD_DEBUG=all
#export LD_DEBUG
<commit_msg>fixes #249<commit_after>#!/bin/sh
#
# usage: executor.sh {km-executor-parameters...}
#
env

echo mounts after unshare:
cat /proc/$$/mounts

sandbox=${MESOS_SANDBOX:-${MESOS_DIRECTORY}}
test -n "$sandbox" || die failed to identify mesos sandbox. neither MESOS_DIRECTORY or MESOS_SANDBOX was specified

cp ${sandbox}/opt/.version ${sandbox}

execlineb_home=$sandbox
. ${sandbox}/opt/functions.sh

PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
PATH=${sandbox}/bin:$PATH
PATH=${sandbox}/sbin:$PATH
PATH=${sandbox}/usr/bin:$PATH
PATH=${sandbox}/usr/sbin:$PATH
export PATH
LD_LIBRARY_PATH=${sandbox}/lib
export LD_LIBRARY_PATH
#LD_DEBUG=all
#export LD_DEBUG

{'fraction_non_alphanumeric': 0.16627634660421545, 'fraction_numerical': 0.00234192037470726, 'mean_word_length': 6.162011173184357, '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': '5803816', 'n_tokens_mistral': 545, 'n_tokens_neox': 480, 'n_words': 90}