<commit_before>#!/bin/sh

config_dir="$HOME/.i3/configs"
config="$HOME/.i3/config"
i3_regen_config="$(readlink -f $0) $@"

if [ "$(echo -e)" = "-e" ]; then
	ECHO=echo
else
	ECHO="echo -e"
fi

gen_config() {
	cat << EOF > "$config"
# THIS FILE WAS GENERATED AUTOMATICALLY WITH THIS COMMAND:
# $i3_regen_config

# DO NOT EDIT THIS FILE DIRECTLY, AS IT IS OVERWRITTEN BY ~/.xsession, AS WELL<commit_msg>configs/i3/gen_config.sh: Get script directory instead of hardcoding<commit_after>#!/bin/sh

dir="$(dirname $(readlink -f $0))"
config_dir="$dir/configs"
config="$dir/config"
i3_regen_config="$(readlink -f $0) $@"

if [ "$(echo -e)" = "-e" ]; then
	ECHO=echo
else
	ECHO="echo -e"
fi

gen_config() {
	cat << EOF > "$config"
# THIS FILE WAS GENERATED AUTOMATICALLY WITH THIS COMMAND:
# $i3_regen_config

# DO NOT EDIT THIS FILE DIRECTLY, AS IT IS OVERWRITTEN BY ~/.xsession, AS WELL
{'fraction_non_alphanumeric': 0.16704545454545455, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 4.611464968152866, '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': '4201287', 'n_tokens_mistral': 374, 'n_tokens_neox': 341, 'n_words': 95}