<commit_before>if [[ -f build_docker_images.sh ]]; then
    cd ..
fi

for image in `ls -d dockerfiles/*`; do
    echo '**********************************************'
    echo Building: $image
    echo '**********************************************'

    docker build $image
done<commit_msg>Build docker base images first<commit_after>#!/bin/bash

if [[ -f build_docker_images.sh ]]; then
    cd ..
fi

echo '**********************************************'
echo "Updating base Ubuntu image..."
echo '**********************************************'
docker pull ubuntu

base_images=`ls -d dockerfiles/base*`
images=`ls -d dockerfiles/* | grep -v base_`


build_image () {
    container="mltp/`basename $1`"
    echo '**********************************************'
    echo Building: $container
    echo '**********************************************'

    docker build -t $container $image
}


for image in $base_images; do
    build_image $image
done

for image in $images; do
    build_image $image
done
{'fraction_non_alphanumeric': 0.36381709741550694, 'fraction_numerical': 0.0009940357852882703, 'mean_word_length': 4.56353591160221, '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': '3489882', 'n_tokens_mistral': 290, 'n_tokens_neox': 266, 'n_words': 80}