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

# run as root/sudo

SRC=/home/pi/.docker.http-proxy.conf
DST=/etc/systemd/system/docker.service.d/http-proxy.conf

test -e $SRC || exit 0

mkdir -p $(dirname $DST)
cp -f $SRC $DST
systemctl daemon-reload
systemctl is-active docker &>/dev/null && sudo systemctl restart docker<commit_msg>only run if not equal<commit_after>#!/usr/bin/env bash

# run as root/sudo

SRC=/home/pi/.docker.http-proxy.conf
DST=/etc/systemd/system/docker.service.d/http-proxy.conf

test -e $SRC || exit 0

cmp $SRC $DST || exit 0

mkdir -p $(dirname $DST)
cp -f $SRC $DST
systemctl daemon-reload
systemctl is-active docker &>/dev/null && sudo systemctl restart docker
{'fraction_non_alphanumeric': 0.14727540500736377, 'fraction_numerical': 0.004418262150220913, 'mean_word_length': 3.927536231884058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2246193', 'n_tokens_mistral': 273, 'n_tokens_neox': 247, 'n_words': 68}