<commit_before>var jsonGlobals = require('./jsonGlobals');
exports.jsonGlobals = function (req,res) {
	var origin = req.get('Origin') || '';
	var referer = req.get('Referer') || '';
	referer = referer.match(/\/_system\/apps\/.*?\//) || '';
	if (referer === null) referer = '';
	builderPath = referer.replace(/http(s??):\/\//,'');
	//set JSON content type and CORS headers for the response
	res.header('Content-Type','application/json');
	res.header('Access-Control-Allow-Headers', 'Content-Type');
	res.header('Access-Control-Allow-Origin', origin);
<commit_msg>first push<commit_after>var jsonGlobals = require('./jsonGlobals');
exports.jsonGlobals = function (req,res) {
	var origin = req.get('Origin') || '';
	var referer = req.get('Referer') || '';
	referer = referer.match(/\/_system\/apps\/.*?\//) || '';
	if (typeof referer !== 'string') referer = '';
	builderPath = referer.replace(/http(s??):\/\//,'');
	//set JSON content type and CORS headers for the response
	res.header('Content-Type','application/json');
	res.header('Access-Control-Allow-Headers', 'Content-Type');
	res.header('Access-Control-Allow-Origin', origin);

{'fraction_non_alphanumeric': 0.2226148409893993, 'fraction_numerical': 0.0, 'mean_word_length': 4.693467336683417, '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': '2901629', 'n_tokens_mistral': 374, 'n_tokens_neox': 376, 'n_words': 72}