<commit_before>
function __sod_push() {
    local IFS=':'
    local a=("$2" ${!1-})
    export "$1=${a[*]}"
}

function __sod_pop() {
    local IFS=':'
    local a=(${!1})
    for i in ${!a[@]}; do
        if [[ "${a[$i]}" == "$2" ]]; then
            unset a[$i]
            break
        fi
    done
    export "$1=${a[*]-}"
}

function __sod_set() {
    export "$1=$2"
}

function __sod_unset() {
    unset $1
}

function module() {
    while read line; do
        eval "$line"
    done < <(sod "$@")
}
<commit_msg>simpler bash __sod_push<commit_after>
function __sod_push() {
    export "$1=$2${!1:+:}${!1-}"
}

function __sod_pop() {
    local IFS=':'
    local a=(${!1})
    for i in ${!a[@]}; do
        if [[ "${a[$i]}" == "$2" ]]; then
            unset a[$i]
            break
        fi
    done
    export "$1=${a[*]-}"
}

function __sod_set() {
    export "$1=$2"
}

function __sod_unset() {
    unset $1
}

function module() {
    while read line; do
        eval "$line"
    done < <(sod "$@")
}

{'fraction_non_alphanumeric': 0.22354104846686448, 'fraction_numerical': 0.018793273986152326, 'mean_word_length': 2.123456790123457, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6556582', 'n_tokens_mistral': 415, 'n_tokens_neox': 409, 'n_words': 97}