<commit_before>/*jslint browser:true */
/*globals $, console */
var proxy = proxy || {};
var semtag = semtag || {};
proxy.get = function (url, callback) {
	"use strict";
	var data;
	$.getJSON('/proxy?q=' +  url, function (response) {
		data = response;
	}).success(function () {
		callback(null, data);
	}).error(function (data) {
		callback(data);
	});
};
(function () {
	'use strict';
	var getPage = function () {
		document.getElementById('content').innerHTML = '<div class="span6"><h4>Loading</h4></div>';
		var url = $('#url').val();
		proxy.get(url, function (error, dom) {
			if (error) {
				document.getElementById('content').innerHTML = '<div class="span6"><h4>No such page found</h4></div>';
			} else {
				semtag.dom = {};
				semtag.dom.URI = dom.URI || '';
				semtag.dom.head = dom.head || '';
				document.getElementById('content').innerHTML = dom.body;
				$(document.getElementById('content')).click(function (e) {
					e.preventDefault();
				});
			}

		});
	};
	$('#get').click(getPage);
	$('#url').keypress(function (e) {
		if (e.keyCode === 13) {
			getPage();
		}
	});
}());<commit_msg>Updated app object semtag -> madame<commit_after>/*jslint browser:true */
/*globals $, console */
var proxy = proxy || {};
var madame = madame || {};
proxy.get = function (url, callback) {
	"use strict";
	var data;
	$.getJSON('/proxy?q=' +  url, function (response) {
		data = response;
	}).success(function () {
		callback(null, data);
	}).error(function (data) {
		callback(data);
	});
};
(function () {
	'use strict';
	var getPage = function () {
		document.getElementById('content').innerHTML = '<div class="span6"><h4>Loading</h4></div>';
		var url = $('#url').val();
		proxy.get(url, function (error, dom) {
			if (error) {
				document.getElementById('content').innerHTML = '<div class="span6"><h4>No such page found</h4></div>';
			} else {
				madame.dom = {};
				madame.dom.URI = dom.URI || '';
				madame.dom.head = dom.head || '';
				document.getElementById('content').innerHTML = dom.body;
				$(document.getElementById('content')).click(function (e) {
					e.preventDefault();
				});
			}

		});
	};
	$('#get').click(getPage);
	$('#url').keypress(function (e) {
		if (e.keyCode === 13) {
			getPage();
		}
	});
}());
{'fraction_non_alphanumeric': 0.2281639928698752, 'fraction_numerical': 0.0071301247771836, 'mean_word_length': 3.7263157894736842, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, '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': '5959743', 'n_tokens_mistral': 851, 'n_tokens_neox': 765, 'n_words': 148}