<commit_before>#!/bin/bash
#
# Script to maintain ip rules on the host when starting up a transparent
# proxy server for docker.

CACHEDIR=${CACHEDIR:-/tmp/squid3}
CERTDIR=${CACHEDIR:-/tmp/squid3_cert}
CONTAINER_NAME=${CONTAINER_NAME:-docker-proxy}
if [ "$1" = 'ssl' ]; then
    WITH_SSL=yes
else
    WITH_SSL=no
fi

set -e

sudo docker images | grep -q "^${CONTAINER_NAME} " \<commit_msg>Fixed run.sh options, and persisting cache and key by default<commit_after>#!/bin/bash
#
# Script to maintain ip rules on the host when starting up a transparent
# proxy server for docker.

CACHEDIR=${CACHEDIR:-/var/lib/docker-proxy/cache}
CERTDIR=${CERTDIR:-/var/lib/docker-proxy/ssl}
CONTAINER_NAME=${CONTAINER_NAME:-docker-proxy}
if [ "$1" = 'ssl' ]; then
    WITH_SSL=yes
else
    WITH_SSL=no
fi

set -e

sudo docker images | grep -q "^${CONTAINER_NAME} " \
{'fraction_non_alphanumeric': 0.1388235294117647, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 4.420382165605096, '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': '3117064', 'n_tokens_mistral': 327, 'n_tokens_neox': 309, 'n_words': 83}