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

set -e

mkdir -p out/
name=ipfs provsn_template "config.tpl" "out/ipfs.config"

cat > out/ipfs.opts <<-EOF
-d
--name ipfs
--restart always
--net host
--user ipfs
--env IPFS_PATH=/data/ipfs
--env IPFS_LOGGING=info
--entrypoint /usr/local/bin/start_ipfs
--log-driver=json-file
--log-opt max-size=100m
--log-opt max-file=2
-v $(lookup ipfs_repo):/data/ipfs
ipfs:$(lookup ipfs_ref | head -c 7)
EOF
<commit_msg>ipfs: pass options to container daemon<commit_after>#!/usr/bin/env bash

set -e

mkdir -p out/
name=ipfs provsn_template "config.tpl" "out/ipfs.config"

cat > out/ipfs.opts <<-EOF
-d
--name ipfs
--restart always
--net host
--user ipfs
--env IPFS_PATH=/data/ipfs
--env IPFS_LOGGING=info
--entrypoint /usr/local/bin/start_ipfs
--log-driver=json-file
--log-opt max-size=100m
--log-opt max-file=2
-v $(lookup ipfs_repo):/data/ipfs
ipfs:$(lookup ipfs_ref | head -c 7)
--enable-gc
EOF

{'fraction_non_alphanumeric': 0.16938110749185667, 'fraction_numerical': 0.010857763300760043, 'mean_word_length': 3.519607843137255, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1299029', 'n_tokens_mistral': 402, 'n_tokens_neox': 389, 'n_words': 92}