<commit_before>var pack = require('../package.json');

module.exports = function(conf) {

    var base;

    var version = 'w'+pack.version + '_' + 'v'+pack.dependencies['gardr-validator'] + 'h'+pack.dependencies['gardr-host'];


    if (conf.get('env') === 'production'){

        base = 'http://ads-gardr.gardr.org';


        return {
            parentUrl: base+'/preview/parent.html?g='+version,
            iframeUrl: base+'/preview/built/iframe.html?g='+version,
            resourceDomainBase: base,
        };
    }

    base = 'http://localhost:'+conf.get('port');
    return {
        parentUrl: base+'/preview/parent.html?ts='+Date.now()+'&g='+version,
        iframeUrl: base+'/preview/built/iframe.html?ts='+Date.now()+'&g='+version,
        resourceDomainBase: base
    };

}<commit_msg>Emulate dev with different host<commit_after>var pack = require('../package.json');

module.exports = function(conf) {

    var base;

    var version = 'w'+pack.version + '_' + 'v'+pack.dependencies['gardr-validator'] + 'h'+pack.dependencies['gardr-host'];


    if (conf.get('env') === 'production'){

        base = 'http://ads-gardr.gardr.org';


        return {
            parentUrl: base+'/preview/parent.html?g='+version,
            iframeUrl: base+'/preview/built/iframe.html?g='+version,
            resourceDomainBase: base,
        };
    }

    base = 'http://127.0.0.1:'+conf.get('port');
    return {
        parentUrl: base+'/preview/parent.html?ts='+Date.now()+'&g='+version,
        iframeUrl: base+'/preview/built/iframe.html?ts='+Date.now()+'&g='+version,
        resourceDomainBase: base
    };

}
{'fraction_non_alphanumeric': 0.19913686806411837, 'fraction_numerical': 0.0036991368680641184, 'mean_word_length': 2.8642857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5663285', 'n_tokens_mistral': 564, 'n_tokens_neox': 526, 'n_words': 70}