<commit_before>/* call using the following enclosure:
(function(){
  var url = 'https://rawgit.com/jamesona/SEO-Tools/am-dashboard/dashboard.js';
  document.head.appendChild(document.createElement('script')).src=url;
})();
*/

function Dashboard() {
  
	this.createElement = function(parent, tag, attributes){
		var element = parent.appendChild(document.createElement(tag));
		for (var attribute in attributes){
			if (attributes.hasOwnProperty(attribute)){
				element[attribute] = attributes[attribute];
			}
		}
    return element;
  };
	
	this.getCSS = function httpGet() {
			if (window.XMLHttpRequest)
			{// code for IE7+, Firefox, Chrome, Opera, Safari
					xmlhttp=new XMLHttpRequest();
			}
			else
			{// code for IE6, IE5
					xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange=function()
			{
					if (xmlhttp.readyState==4 && xmlhttp.status==200)
					{
							return xmlhttp.responseText;
					}
			};
			xmlhttp.open("GET", "https://rawgit.com/jamesona/SEO-Tools/am-dashboard/dashboard.css", false );
			xmlhttp.send();    
	};
	
	
  this.Nav = this.createElement(document.body, 'ul', {
		className: 'navbar navbar-inverse navbar-fixed-bottom',
		id: 'dashboard',
	});
	this.Style = this.createElement(this.Nav, 'style', {
		innerHTML: this.getCSS(),
	});
  this.Tools = this.createElement(this.Nav, 'li');
  this.Tickets = this.createElement(this.Nav, 'li');
  this.Calendar = this.createElement(this.Nav, 'li');
  this.Critical = this.createElement(this.Nav, 'li');
	
}
<commit_msg>Update dashboard.js<commit_after>/* call using the following enclosure:
(function(){
  var url = 'https://rawgit.com/jamesona/SEO-Tools/am-dashboard/dashboard.js';
  document.head.appendChild(document.createElement('script')).src=url;
})();
*/

function Dashboard() {
  
	this.createElement = function(parent, tag, attributes){
		var element = parent.appendChild(document.createElement(tag));
		for (var attribute in attributes){
			if (attributes.hasOwnProperty(attribute)){
				element[attribute] = attributes[attribute];
			}
		}
    return element;
  };
	
	this.getCSS = function httpGet() {
			if (window.XMLHttpRequest)
			{// code for IE7+, Firefox, Chrome, Opera, Safari
					xmlhttp=new XMLHttpRequest();
			}
			else
			{// code for IE6, IE5
					xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange=function()
			{
					if (xmlhttp.readyState==4 && xmlhttp.status==200)
					{
							return xmlhttp.responseText;
					}
			};
			xmlhttp.open("GET", "https://rawgit.com/jamesona/SEO-Tools/am-dashboard/dashboard.css", false );
			xmlhttp.send();    
	};
	
	
  this.Nav = this.createElement(document.body, 'ul', {
		className: 'navbar navbar-inverse navbar-fixed-bottom',
		id: 'dashboard',
	});
	this.Style = this.createElement(this.Nav, 'style', {
		innerHTML: this.getCSS(),
	});
  this.Tools = this.createElement(this.Nav, 'li');
  this.Tickets = this.createElement(this.Nav, 'li');
  this.Calendar = this.createElement(this.Nav, 'li');
  this.Critical = this.createElement(this.Nav, 'li');
}

{'fraction_non_alphanumeric': 0.1606910039113429, 'fraction_numerical': 0.0045632333767926985, 'mean_word_length': 3.8483412322274884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '740021', 'n_tokens_mistral': 1131, 'n_tokens_neox': 988, 'n_words': 177}