<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Disk Usage Reporting</title>

<script type="text/javascript">
	// Path to the directory that contains the reports.
	// Example: document.reportsBaseURL = '/path/to/me/';
	document.reportsBaseURL = '/php/diskusage-data/';
</script>

<link href="css/jquery.ui.tree.css" type="text/css" rel="stylesheet" />
<link href="css/layout.css" type="text/css" rel="stylesheet" />

<!-- External Scripts -->
<script type="text/javascript" src="js/external/jquery.min.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.position.js"></script>
<script type="text/javascript" src="js/external/jquery.sortelements.js"></script>
<script type="text/javascript" src="js/external/jquery.json.js"></script>
<script type="text/javascript" src="js/external/rsh.js"></script>

<!-- Disk Usage Reporting Scripts -->
<script type="text/javascript" src="js/general.js"></script>
<script type="text/javascript" src="js/jquery.ui.tree.js"></script>
<script type="text/javascript" src="js/viewer.js"></script>

<style type="text/css">
	tbody th {
		text-align: right;
	}
</style>

<!-- Disk Usage Reporting Scripts -->
<script type="text/javascript">
	
	// Override the JSON methods in RSH.
	window.dhtmlHistory.create({
		toJSON: function(o) {
			return $.toJSON(o);
		},
		fromJSON: function(s) {
			return $.evalJSON(s);
		}
	});
	
	// Initialize RSH once the page loads.
	window.onload = function() {
		dhtmlHistory.initialize();
		dhtmlHistory.addListener(function(newLocation, historyData) {
			$(document).trigger('dhtmlhistory', [ newLocation, historyData ]);
		});
	};
	
	// Set up history handling.
	$(document).bind('dhtmlhistory', function(e, location, data) {
		if (document.viewer) document.viewer.display(location);
	});
	
	$(function() {
		// Load the settings file.
		$.ajax({
			cache: false,
			url: document.reportsBaseURL + window.location.search.substring(1) + '/settings',
			type: 'GET',
			dataType: 'json',
			error: function(xhr, status, err){
				alert('Failed to get settings: ' + status);
			},
			success: function(settings, status, xhr){
				
				// Load the directory lookup file.
				$.ajax({
					cache: false,
					url: document.reportsBaseURL + window.location.search.substring(1) + '/directories',
					type: 'GET',
					dataType: 'json',
					error: function(xhr, status, err){
						alert('Failed to get directory lookup: ' + status);
					},
					success: function(dirLookup, status, xhr){
						
						document.viewer = new Viewer({
							directories: dirLookup,
							settings: settings,
							report: window.location.search.substring(1)
						});
						
						document.viewer.display(dhtmlHistory.getCurrentLocation(), function(){
							$('#Loading').hide();
							$('#Container').show();
							
							// Force a resize since the viewer is now displayed.
							document.resizeWindow();
						});
					}
				});
			}
		});
	
		// Load the location on first load.
		if (dhtmlHistory.isFirstLoad()) {
			
		}
		
		document.resizeWindow = function() {
			// Set the correct height for the container.
			var containerHeightDiff = $('#Container').outerHeight(true) - $('#Container').height();
			$('#Container').height($('body').height() - containerHeightDiff - $('#Container').offset().top - 10);
			
			var reportHeightDiff = $('#Report').outerHeight(true) - $('#Report').height();
			$('#Report').height($('#RightColumn').height() - reportHeightDiff - $('#Report').position().top);
		};
		
		$(window).bind("resize", function() {
			if (document.resizeTimerID) clearTimeout(document.resizeTimerID);
			document.resizeTimerID = setTimeout(function() {
				document.resizeWindow();
			}, 100);
		});
	});
</script>
</head>
<body>
	
<div id="Title">Disk Usage Report for: <span>College of Arts &amp; Sciences</span></div>

<div id="Loading">Loading...</div>

<div id="Container" style="display: none;">

	<div id="LeftColumn">
		<div id="DirectoryTree"></div>
	</div>
	
	<div id="RightColumn">
		
		<div id="ReportHead">
			<div id="Path"></div><commit_msg>Report name and created date now display from the settings file.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Disk Usage Reporting</title>

<script type="text/javascript">
	// Path to the directory that contains the reports.
	// Example: document.reportsBaseURL = '/path/to/me/';
	document.reportsBaseURL = '/php/diskusage-data/';
</script>

<link href="css/jquery.ui.tree.css" type="text/css" rel="stylesheet" />
<link href="css/layout.css" type="text/css" rel="stylesheet" />

<!-- External Scripts -->
<script type="text/javascript" src="js/external/jquery.min.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="js/external/jquery.ui.position.js"></script>
<script type="text/javascript" src="js/external/jquery.sortelements.js"></script>
<script type="text/javascript" src="js/external/jquery.json.js"></script>
<script type="text/javascript" src="js/external/rsh.js"></script>

<!-- Disk Usage Reporting Scripts -->
<script type="text/javascript" src="js/general.js"></script>
<script type="text/javascript" src="js/jquery.ui.tree.js"></script>
<script type="text/javascript" src="js/viewer.js"></script>

<style type="text/css">
	tbody th {
		text-align: right;
	}
</style>

<!-- Disk Usage Reporting Scripts -->
<script type="text/javascript">
	
	// Override the JSON methods in RSH.
	window.dhtmlHistory.create({
		toJSON: function(o) {
			return $.toJSON(o);
		},
		fromJSON: function(s) {
			return $.evalJSON(s);
		}
	});
	
	// Initialize RSH once the page loads.
	window.onload = function() {
		dhtmlHistory.initialize();
		dhtmlHistory.addListener(function(newLocation, historyData) {
			$(document).trigger('dhtmlhistory', [ newLocation, historyData ]);
		});
	};
	
	// Set up history handling.
	$(document).bind('dhtmlhistory', function(e, location, data) {
		if (document.viewer) document.viewer.display(location);
	});
	
	$(function() {
		// Load the settings file.
		$.ajax({
			cache: false,
			url: document.reportsBaseURL + window.location.search.substring(1) + '/settings',
			type: 'GET',
			dataType: 'json',
			error: function(xhr, status, err){
				alert('Failed to get settings: ' + status);
			},
			success: function(settings, status, xhr){
				
				$('#Title > span').append(' for: ').append($('<b>').text(settings.name));
				$('#Created').text('Created: ' + settings.created).show();
				
				// Load the directory lookup file.
				$.ajax({
					cache: false,
					url: document.reportsBaseURL + window.location.search.substring(1) + '/directories',
					type: 'GET',
					dataType: 'json',
					error: function(xhr, status, err){
						alert('Failed to get directory lookup: ' + status);
					},
					success: function(dirLookup, status, xhr){
						
						document.viewer = new Viewer({
							directories: dirLookup,
							settings: settings,
							report: window.location.search.substring(1)
						});
						
						document.viewer.display(dhtmlHistory.getCurrentLocation(), function(){
							$('#Loading').hide();
							$('#Container').show();
							
							// Force a resize since the viewer is now displayed.
							document.resizeWindow();
						});
					}
				});
			}
		});
	
		// Load the location on first load.
		if (dhtmlHistory.isFirstLoad()) {
			
		}
		
		document.resizeWindow = function() {
			// Set the correct height for the container.
			var containerHeightDiff = $('#Container').outerHeight(true) - $('#Container').height();
			$('#Container').height($('body').height() - containerHeightDiff - $('#Container').offset().top - 10);
			
			var reportHeightDiff = $('#Report').outerHeight(true) - $('#Report').height();
			$('#Report').height($('#RightColumn').height() - reportHeightDiff - $('#Report').position().top);
		};
		
		$(window).bind("resize", function() {
			if (document.resizeTimerID) clearTimeout(document.resizeTimerID);
			document.resizeTimerID = setTimeout(function() {
				document.resizeWindow();
			}, 100);
		});
	});
</script>
</head>
<body>
	
<div id="Title">Disk Usage Report <span></span><div id="Created" style="display: none;"></div>
</div>

<div id="Loading">Loading...</div>

<div id="Container" style="display: none;">

	<div id="LeftColumn">
		<div id="DirectoryTree"></div>
	</div>
	
	<div id="RightColumn">
		
		<div id="ReportHead">
			<div id="Path"></div>
{'fraction_non_alphanumeric': 0.19094314676068752, 'fraction_numerical': 0.0033054208902600266, 'mean_word_length': 3.877485222998388, 'pattern_counts': {'":': 0, '<': 118, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1909127', 'n_tokens_mistral': 3300, 'n_tokens_neox': 2790, 'n_words': 586}