<commit_before>#!/bin/bash
set -e

# Don't change secret on every retart
if [[ ! -f /data/gogs/conf/app.ini ]]; then
    mkdir -p /data/gogs/conf
    mkdir -p /data/gogs/log
    mkdir -p /data/gogs/data
    mkdir -p /data/ssh
    SECRET=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12`
    sed "s/\$SECRET/$SECRET/" /app/gogs/app.ini >  /data/gogs/conf/app.ini
fi

sed -i "s/\$DOMAIN/$VIRTUAL_HOST/" /data/gogs/conf/app.ini

chown -R git /data/

/bin/s6-svscan /app/gogs/docker/s6/<commit_msg>Fix Gogs entrypoint<commit_after>#!/bin/bash
set -e

# Don't change secret on every restart
if [[ ! -f /data/gogs/conf/app.ini ]]; then
    mkdir -p /data/gogs/conf
    SECRET=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 12`
    sed "s/\$SECRET/$SECRET/" /app/gogs/app.ini >  /data/gogs/conf/app.ini
fi

sed -i "s/\$DOMAIN/$VIRTUAL_HOST/" /data/gogs/conf/app.ini

chown -R git /data/gogs/conf

docker/start.sh $@
{'fraction_non_alphanumeric': 0.18660812294182216, 'fraction_numerical': 0.010976948408342482, 'mean_word_length': 2.480916030534351, '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': '3687834', 'n_tokens_mistral': 431, 'n_tokens_neox': 405, 'n_words': 87}