<commit_before>var _ = require('underscore')
  , fs = require('fs')
  , path = require('path')
  , mkdirp = require('mkdirp')
  , File = require('./file')
  , DepTree = require('./deptree')
;

var rLeadingSlash = /^\//
  , rJSExt = /\.js$/
  , rLineComment  = new RegExp('[ \\t]*//.*', 'g')
  , rTrailingWhitespace  = /\s+$/g
;

var _utils = {
    readFileSyncRel: function(pathRelativeToThisFile) {
        return fs.readFileSync(path.resolve(__dirname, pathRelativeToThisFile), { encoding: 'utf8' });
    },

    indent: function(str) {
        var indent = '    ';
        return indent + str.split('\n').join('\n' + indent);
    },<commit_msg>Handle splitting Windows-style newlines (\r\n)<commit_after>var _ = require('underscore')
  , fs = require('fs')
  , path = require('path')
  , mkdirp = require('mkdirp')
  , File = require('./file')
  , DepTree = require('./deptree')
;

var rLeadingSlash = /^\//
  , rJSExt = /\.js$/
  , rLineComment  = new RegExp('[ \\t]*//.*', 'g')
  , rTrailingWhitespace  = /\s+$/g
;

var _utils = {
    readFileSyncRel: function(pathRelativeToThisFile) {
        return fs.readFileSync(path.resolve(__dirname, pathRelativeToThisFile), { encoding: 'utf8' });
    },

    indent: function(str) {
        var indent = '    ';
        return indent + str.replace(/\r\n/g, '\n').split('\n').join('\n' + indent);
    },
{'fraction_non_alphanumeric': 0.20296296296296296, 'fraction_numerical': 0.0014814814814814814, 'mean_word_length': 2.938775510204082, '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': '5076043', 'n_tokens_mistral': 492, 'n_tokens_neox': 478, 'n_words': 85}