<commit_before>#!/usr/bin/env bash

set -e

docker rm -f registry.test || true
docker run -it -d --name registry.test -p 5000:5000 registry:2.6.0

docker pull alpine:3.5

for repo in `seq 1 20`;
do
    for tag in `seq 1 10`;
    do
        docker tag alpine:3.5 127.0.0.1:5000/company/alpine-${repo}:${tag}
        docker push 127.0.0.1:5000/company/alpine-${repo}:${tag}
    done
done

docker logs -f registry.test<commit_msg>Make sample shell script more robust<commit_after>#!/usr/bin/env bash

set -e

docker rm -f registry.test || true
docker run -it -d --name registry.test -p 5000:5000 registry:2.6.0

docker pull alpine:3.5 || true

for repo in `seq 1 20`;
do
    for tag in `seq 1 10`;
    do
        docker tag alpine:3.5 127.0.0.1:5000/company/alpine-${repo}:${tag}
        docker push 127.0.0.1:5000/company/alpine-${repo}:${tag}
    done
done

docker logs -f registry.test
{'fraction_non_alphanumeric': 0.14463276836158193, 'fraction_numerical': 0.09265536723163842, 'mean_word_length': 2.8521739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '7035776', 'n_tokens_mistral': 408, 'n_tokens_neox': 333, 'n_words': 101}