<commit_before>/*
 * This file is part of the Spludo Framework.
 * Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/
 *
 * Licensed under the terms of MIT License. For the full copyright and license
 * information, please see the LICENSE file in the root folder.
 */

var sys = require("sys");
var fs = require("fs");

var file_name = process.ARGV[2];

var i = 0;
var line = "";
var incident = null;
var tmp = null;

var file_contents = fs.readFileSync(file_name).split("\n");

var output = [];

output.push('<checkstyle version="1.1.0">');
<commit_msg>Fixed reading the .txt file, because of Buffer does not have a .split method.<commit_after>/*
 * This file is part of the Spludo Framework.
 * Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/
 *
 * Licensed under the terms of MIT License. For the full copyright and license
 * information, please see the LICENSE file in the root folder.
 */

var sys = require("sys");
var fs = require("fs");

var file_name = process.ARGV[2];

var i = 0;
var line = "";
var incident = null;
var tmp = null;

var file_contents = fs.readFileSync(file_name).toString().split("\n");

var output = [];

output.push('<checkstyle version="1.1.0">');

{'fraction_non_alphanumeric': 0.1397489539748954, 'fraction_numerical': 0.021757322175732216, 'mean_word_length': 4.025210084033613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '914509', 'n_tokens_mistral': 395, 'n_tokens_neox': 372, 'n_words': 141}