<commit_before>var fs = require("fs");
var path = require("path");
var chai = require("chai");
var expect = chai.expect;
var vm = require("vm");


describe("Functions into modules/default/newsfeed/newsfeed.js", function() {

	Module = {}
	Module.definitions = {};
	Module.register = function (name, moduleDefinition) {
		Module.definitions[name] = moduleDefinition;
	};

	// load newsfeed.js
	require("../../../modules/default/newsfeed/newsfeed.js");

	describe("capitalizeFirstLetter", function() {
		words = {
			'rodrigo': 'Rodrigo',
			'123m': '123m',
			'magic mirror': 'Magic mirror',
			',a': ',a',
			"ñandú": "Ñandú",
			".!": ".!"
		};

		Object.keys(words).forEach(word => {
			it(`for ${word} should return ${words[word]}`, function() {
				expect(Module.definitions.newsfeed.capitalizeFirstLetter(word)).to.equal(words[word]);
			});
		});
	});

});
<commit_msg>Fix lint newsfeed_spec<commit_after>var fs = require("fs");
var path = require("path");
var chai = require("chai");
var expect = chai.expect;
var vm = require("vm");


describe("Functions into modules/default/newsfeed/newsfeed.js", function() {

	Module = {}
	Module.definitions = {};
	Module.register = function (name, moduleDefinition) {
		Module.definitions[name] = moduleDefinition;
	};

	// load newsfeed.js
	require("../../../modules/default/newsfeed/newsfeed.js");

	describe("capitalizeFirstLetter", function() {
		words = {
			"rodrigo": "Rodrigo",
			"123m": "123m",
			"magic mirror": "Magic mirror",
			",a": ",a",
			"ñandú": "Ñandú",
			".!": ".!"
		};

		Object.keys(words).forEach(word => {
			it(`for ${word} should return ${words[word]}`, function() {
				expect(Module.definitions.newsfeed.capitalizeFirstLetter(word)).to.equal(words[word]);
			});
		});
	});

});

{'fraction_non_alphanumeric': 0.2092097782831154, 'fraction_numerical': 0.006822057987492893, 'mean_word_length': 4.222551928783383, 'pattern_counts': {'":': 8, '<': 3, '<?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': '6329346', 'n_tokens_mistral': 673, 'n_tokens_neox': 588, 'n_words': 108}