<commit_before>const ENV_REG_EXP = /(inin[dt]ca|[a-zA-Z]*\.mypurecloud\..*|localhost)/i;
import config from '../config/environment';

function purecloudEnvironmentTld(){
    let env = ENV_REG_EXP.exec(window.location.hostname)[1];

    if(env === 'localhost'){
        env = "inindca.com";
    }

    return env;

}

function purecloudEnvironment(){
    return window.location.hostname.replace(".", "");
}

function architectRegion() {
    return config.oauthProps[purecloudEnvironment()].architectEnumString;
}

export{
    architectRegion,
    purecloudEnvironmentTld,
    purecloudEnvironment<commit_msg>fix domain name mapping<commit_after>const ENV_REG_EXP = /(inin[dt]ca|[a-zA-Z]*\.mypurecloud\..*|localhost)/i;
import config from '../config/environment';

function purecloudEnvironmentTld(){
    let env = ENV_REG_EXP.exec(window.location.hostname)[1];

    if(env === 'localhost'){
        env = "inindca.com";
    }

    return env;

}

function purecloudEnvironment(){
    return window.location.hostname.replace(/\./g, "");
}

function architectRegion() {
    return config.oauthProps[purecloudEnvironment()].architectEnumString;
}

export{
    architectRegion,
    purecloudEnvironmentTld,
    purecloudEnvironment
{'fraction_non_alphanumeric': 0.14600326264274063, 'fraction_numerical': 0.0016313213703099511, 'mean_word_length': 4.266094420600858, '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': '5981728', 'n_tokens_mistral': 395, 'n_tokens_neox': 388, 'n_words': 62}