<commit_before>isDevEnv = function () {
    if (String(process.env.ROOT_URL).indexOf("localhost") >= 0) {
        return true;
    } else {
        return false;
    }
};

isTestEnv = function(){
    if (String(process.env.ROOT_URL).indexOf(Meteor.settings.test_host_url) >= 0){
        return true;
    }
    return false;
};

ServiceConfiguration.configurations.remove({
    service: 'google'
});


if (!isDevEnv() && !isTestEnv()) {
    console.log("ENV -> Production");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_prod_id'],
        secret: Meteor.settings['google_prod_secret']
    });
}
else if (!isDevEnv() && isTestEnv()){
    console.log("ENV -> Test");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_test_id'],
        secret: Meteor.settings['google_test_secret']
    });
}
else if(isDevEnv() && !isTestEnv()) {
    console.log("ENV -> Development (local)");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_dev_id'],
        secret: Meteor.settings['google_dev_secret']
    });
} else {
    console.log('isDev -> ', isDevEnv());
    console.log('isTest -> ', isTestEnv());
    console.error("ENV -> DID NOT SETUP A SERVICECONFIGURATION");
}
<commit_msg>fixed google service<commit_after>isDevEnv = function () {
    var rv = false
    if (String(process.env.ROOT_URL).indexOf("localhost") >= 0) {
        rv = true;
    }
    console.log("isDev -> ", rv);
    return rv
};

isTestEnv = function(){
    var rv = false
    if (String(process.env.ROOT_URL).indexOf("http://bag.meteor.com") >= 0){
        rv = true;
    }
    console.log("isTest -> ", rv);
    return rv;
};

isProdEnv = function(){
    var rv = false
    if (String(process.env.ROOT_URL).indexOf("http://brown-bag.meteor.com") >= 0){
        rv = true;
    }
    console.log("isProd -> ", rv);
    return rv;
}

ServiceConfiguration.configurations.remove({
    service: 'google'
});


if (isProdEnv()) {
    console.log("ENV -> Production");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_prod_id'],
        secret: Meteor.settings['google_prod_secret']
    });
}
else if (isTestEnv()){
    console.log("ENV -> Test");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_test_id'],
        secret: Meteor.settings['google_test_secret']
    });
}
else if(isDevEnv()) {
    console.log("ENV -> Development (local)");
    ServiceConfiguration.configurations.insert({
        service: 'google',
        clientId: Meteor.settings['google_dev_id'],
        secret: Meteor.settings['google_dev_secret']
    });
} else {
    console.log('isDev -> ', isDevEnv());
    console.log('isTest -> ', isTestEnv());
    console.error("ENV -> DID NOT SETUP A SERVICECONFIGURATION");
}

{'fraction_non_alphanumeric': 0.1659432387312187, 'fraction_numerical': 0.001669449081803005, 'mean_word_length': 3.1668984700973573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4415794', 'n_tokens_mistral': 948, 'n_tokens_neox': 928, 'n_words': 164}