<commit_before>'use strict';

var Winston = require('winston'),
    consoleLoggingConfiguration = {
        level: 'debug',
        handleExceptions: true,
        json: false,
        colorize: true
    },
    logger = new Winston.Logger({
        transports: [
            new Winston.transports.Console(consoleLoggingConfiguration)
        ]
    });

function removeEndingNewLineCharacter(message) {
    var lastCharacter;

    if (message.length > 0) {
        lastCharacter = message[message.length-1];

        while(lastCharacter === '\n') {
            message = message.slice(0, -1);

            if(message.length > 0) {
                lastCharacter = message[message.length-1];
            }<commit_msg>Fix eslint errors (space-infix-ops).<commit_after>'use strict';

var Winston = require('winston'),
    consoleLoggingConfiguration = {
        level: 'debug',
        handleExceptions: true,
        json: false,
        colorize: true
    },
    logger = new Winston.Logger({
        transports: [
            new Winston.transports.Console(consoleLoggingConfiguration)
        ]
    });

function removeEndingNewLineCharacter(message) {
    var lastCharacter;

    if (message.length > 0) {
        lastCharacter = message[message.length - 1];

        while(lastCharacter === '\n') {
            message = message.slice(0, -1);

            if(message.length > 0) {
                lastCharacter = message[message.length - 1];
            }
{'fraction_non_alphanumeric': 0.11599176389842142, 'fraction_numerical': 0.008236101578586136, 'mean_word_length': 2.1626898047722345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5411722', 'n_tokens_mistral': 418, 'n_tokens_neox': 388, 'n_words': 81}