<commit_before><?php

/*
 * parses the config and populates some defaults
 */

function parse_config() {
    $cfg = $GLOBALS['dw_config'];

    // check that email adresses are set
    if (!isset($cfg['email']))
        $cfg['email'] = array();
    if (!isset($cfg['email']['admin']))
        $cfg['email']['admin'] = 'admin@' . $cfg['domain'];
    if (!isset($cfg['email']['log']))
        $cfg['email']['log'] = 'admin@' . $cfg['domain'];
    if (!isset($cfg['email']['pwd_reset']))
        $cfg['email']['pwd_reset'] = 'password-reset@' . $cfg['domain'];
    if (!isset($cfg['email']['activate']))
        $cfg['email']['activate'] = 'activate-reset@' . $cfg['domain'];

    $GLOBALS['dw_config'] = $cfg;
}<commit_msg>default for invite email<commit_after><?php

/*
 * parses the config and populates some defaults
 */

function parse_config() {
    $cfg = $GLOBALS['dw_config'];

    // check that email adresses are set
    if (!isset($cfg['email']))
        $cfg['email'] = array();
    if (!isset($cfg['email']['admin']))
        $cfg['email']['admin'] = 'admin@' . $cfg['domain'];
    if (!isset($cfg['email']['log']))
        $cfg['email']['log'] = 'admin@' . $cfg['domain'];
    if (!isset($cfg['email']['pwd_reset']))
        $cfg['email']['pwd_reset'] = 'password-reset@' . $cfg['domain'];
    if (!isset($cfg['email']['activate']))
        $cfg['email']['activate'] = 'activate@' . $cfg['domain'];
    if (!isset($cfg['email']['invite']))
        $cfg['email']['invite'] = 'invite@' . $cfg['domain'];

    $GLOBALS['dw_config'] = $cfg;
}
{'fraction_non_alphanumeric': 0.2651612903225806, 'fraction_numerical': 0.0, 'mean_word_length': 3.8620689655172415, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6313721', 'n_tokens_mistral': 503, 'n_tokens_neox': 497, 'n_words': 96}