<commit_before>#!/bin/bash
# creates the logdirs and logfiles, and adjusts their permissions

for instance in cronos cronos-dev; do
    logpath="/var/log/${instance}"
    [[ -d ${logpath} ]] || mkdir ${logpath}
    for level in info warning error critical; do
        logfile=${logpath}/${level}.log
        [[ -n ${logfile} ]] && touch ${logfile}
    done
    chmod -R 640 ${logpath}
    chown -R root:${instance} ${logpath}
done<commit_msg>dirs need perms 750<commit_after>#!/bin/bash
# creates the logdirs and logfiles, and adjusts their permissions

for instance in cronos cronos-dev; do
    logpath="/var/log/${instance}"
    [[ -d ${logpath} ]] || mkdir ${logpath}
    for level in info warning error critical; do
        logfile=${logpath}/${level}.log
        [[ -n ${logfile} ]] && touch ${logfile}
    done
    chmod 750 ${logpath}
    chmod 640 ${logpath}/*
    chown -R root:${instance} ${logpath}
done
{'fraction_non_alphanumeric': 0.15317286652078774, 'fraction_numerical': 0.01312910284463895, 'mean_word_length': 3.236111111111111, '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': '3494395', 'n_tokens_mistral': 318, 'n_tokens_neox': 299, 'n_words': 92}