<commit_before>// Copyright © 2014 Intel Corporation. All rights reserved.
// Use  of this  source  code is  governed by  an Apache v2
// license that can be found in the LICENSE-APACHE-V2 file.

module.exports.error = function(message) {

    console.error("ERROR: " + message);
};

module.exports.warning = function(message) {

    console.error("WARNING: " + message);
};<commit_msg>Console: Implement in terms of ConsoleIface<commit_after>// Copyright © 2014 Intel Corporation. All rights reserved.
// Use  of this  source  code is  governed by  an Apache v2
// license that can be found in the LICENSE-APACHE-V2 file.

var ConsoleIface = require("./ConsoleIface");

/**
 * Creates a logging console.
 * @constructor
 */
function StdioConsole() {}

StdioConsole.prototype = ConsoleIface.prototype;

StdioConsole.prototype.error = function(message) {

    console.error("ERROR: " + message);
};

StdioConsole.prototype.warning = function(message) {

    console.error("WARNING: " + message);
};

module.exports = new StdioConsole();
{'fraction_non_alphanumeric': 0.12077294685990338, 'fraction_numerical': 0.011594202898550725, 'mean_word_length': 3.980769230769231, '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': '2304155', 'n_tokens_mistral': 309, 'n_tokens_neox': 301, 'n_words': 94}