<commit_before>#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo -e "starting interactive build container..\n"

docker run -it --rm \
--volumes-from portage-data \
-v $(realpath -s $SCRIPT_DIR/../tmp/distfiles):/distfiles \
-v $(realpath -s $SCRIPT_DIR/../tmp/packages):/packages \
"gentoobb/bob:latest"
<commit_msg>Mount given image config dir.<commit_after>#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ -z $1 ]; then
    echo "usage: bob-interactive-sh image"
    exit 1
fi

REPO=$(realpath -s $SCRIPT_DIR/../bb-dock/${1})
if [ ! -d $REPO ]; then
    echo "error: can't find ${1} in bb-dock"
    exit 1
fi

echo -e "starting interactive build container with ${1} config..\n\nto start the build run: build-root ${1}\n"

docker run -it --rm \
    --volumes-from portage-data \
    -v $(realpath -s $SCRIPT_DIR/../tmp/distfiles):/distfiles \
    -v $(realpath -s $SCRIPT_DIR/../tmp/packages):/packages \
    -v ${REPO}):/config \
    "gentoobb/bob:latest"

{'fraction_non_alphanumeric': 0.2013685239491691, 'fraction_numerical': 0.008797653958944282, 'mean_word_length': 3.0796812749003983, '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': '6473716', 'n_tokens_mistral': 416, 'n_tokens_neox': 383, 'n_words': 97}