<commit_before>var Canvas = require('canvas');
var Image = Canvas.Image;
var jsdom = require("jsdom").jsdom;
var document = jsdom(null, null);
var window = document.createWindow();
var navigator = require('navigator');
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var $ = require('jQuery');
var jq = require('jQuery').create();
var jQuery = require('jQuery').create(window);<commit_msg>Настройка среды для nodejs.<commit_after>if (typeof window === 'undefined') {
	//Run under nodejs
	var Canvas = require('canvas');
	var Image = Canvas.Image;
	var jsdom = require('jsdom')['jsdom'];
	var document = jsdom(null, null);
	var window = document.createWindow();
	var navigator = require('navigator');
	var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
	var $ = require('jQuery');
	var jq = require('jQuery').create();
	var jQuery = require('jQuery').create(window);
}
else {
	//Run under browser
	window.exports = {};
}

{'fraction_non_alphanumeric': 0.16684266103484688, 'fraction_numerical': 0.0, 'mean_word_length': 6.074626865671642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4696130', 'n_tokens_mistral': 288, 'n_tokens_neox': 289, 'n_words': 74}