<commit_before>var fs = require('fs');

exports.plugin = function(cli)
{
    //cli.help = function(){};
    
    
    cli.openHelp = function(filePath, prefix)
    {
        if(!prefix) prefix = '';
        
        var helpTxt = fs.readFileSync(filePath,'utf8'), coloredText;
			
        
        //colored text
        while(coloredText = helpTxt.match(/<(.*?)>([\w\W]*?)<\/\1>/))
        {
            var colorAttrs = coloredText[1].split(' '),
                text = coloredText[2];
                
            colorAttrs.forEach(function (attr)
            {
                text = text[attr];
            });
                
            helpTxt = helpTxt.replace(coloredText[0],text);
        }
        
        helpTxt.split('\n').forEach(function(line)
        {
            console.log(prefix+line);
        });
    }
    
    
    /*cli.on('help', function()
    {
        cli.help();
    });*/
}<commit_msg>console.log helpTxt vs splitting lines<commit_after>var fs = require('fs');

exports.plugin = function(cli)
{
    //cli.help = function(){};
    
    
    cli.openHelp = function(filePath, prefix)
    {
        if(!prefix) prefix = '';
        
        var helpTxt = fs.readFileSync(filePath,'utf8'), coloredText;
			
        
        //colored text
        while(coloredText = helpTxt.match(/<(.*?)>([\w\W]*?)<\/\1>/))
        {
            var colorAttrs = coloredText[1].split(' '),
                text = coloredText[2];
                
            colorAttrs.forEach(function (attr)
            {
                text = text[attr];
            });
                
            helpTxt = helpTxt.replace(coloredText[0],text);
        }
        
        /*helpTxt.split('\n').forEach(function(line)
        {
            console.log(prefix+line);
        });*/
        
        console.log(helpTxt);
    }
    
    
    /*cli.on('help', function()
    {
        cli.help();
    });*/
}
{'fraction_non_alphanumeric': 0.16178010471204188, 'fraction_numerical': 0.005235602094240838, 'mean_word_length': 1.3917396745932415, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2598539', 'n_tokens_mistral': 587, 'n_tokens_neox': 573, 'n_words': 77}