<commit_before>'use strict';

module.exports = {
    get: function (config) {

        if (!config.exchangeClass) {
            throw 'Exchange not configured!';
        }

        return require('./exchanges/' + config.exchangeClass)
            .getInstance(config);
    }
};<commit_msg>Logging exchange config error instead of throwing exception<commit_after>'use strict';

var winston = require('winston');

module.exports = {
    get: function (config) {

        if (!config.exchangeClass) {
            winston.error('Exchange not configured!');
        }

        return require('./exchanges/' + config.exchangeClass)
            .getInstance(config);
    }
};
{'fraction_non_alphanumeric': 0.13023952095808383, 'fraction_numerical': 0.0, 'mean_word_length': 2.5026178010471205, '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': '4844868', 'n_tokens_mistral': 184, 'n_tokens_neox': 172, 'n_words': 41}