<commit_before>﻿// You're lucky I have too much respect for bandwidth to reproduce
// the profanity filled rant that accompanied the following functions...
function GetDay(date) {
	switch (date.getDay()) {
		case 0:
			return 'Sunday';
		case 1:
			return 'Monday';
		case 2:
			return 'Tuesday';
		case 3:
			return 'Wednesday';
		case 4:
			return 'Thursday';
		case 5:
			return 'Friday';
		case 6:
			return 'Saturday';
	}
}

function GetMonth(date) {
	switch (date.getMonth()) {
		case 0:
			return 'January';
		case 1:
			return 'February';
		case 2:
			return 'March';
		case 3:
			return 'April';
		case 4:
			return 'May';
		case 5:
			return 'June';
		case 6:
			return 'July';
		case 7:
			return 'August';
		case 8:
			return 'September';
		case 9:
			return 'October';
		case 10:
			return 'November';
		case 11:
			return 'December';
	}
}

function FormatDate(date) {
	var AmPm = 'AM';
	var hours = date.getHours();
	if (hours > 12) {
		AmPm = 'Pm';
		hours -= 12;
	}

	var minutes = date.getMinutes();
	if (minutes < 10) {
		minutes = '0' + new String(date.getMinutes());
	}

	return GetDay(date) + ', ' + GetMonth(date) + ' ' + date.getDate() + ' at ' + hours + ':' + minutes + ' ' + AmPm;
}

function Profile(data) {
	var Self = this;
	Self.Id = ko.observable();
	Self.DisplayName = ko.observable();
	Self.Link = ko.observable();

	if (data) {
		Self.Id(data.Id);
		Self.DisplayName(data.DisplayName);

		Self.Link('/speakers.html?id=' + data.Id);
	}
}

function TimeSlot(data) {
	var Self = this;
	Self.StartTime = ko.observable();
	Self.EndTime = ko.observable();
	Self.DisplayDateTime = ko.pureComputed(function () {
		return FormatDate(new Date(this.StartTime()));
	}, Self);

	if (data) {
		Self.StartTime(data.StartTime);
		Self.EndTime(data.EndTime);
	}
}<commit_msg>Changed where I parse the date from the server.<commit_after>﻿// You're lucky I have too much respect for bandwidth to reproduce
// the profanity filled rant that accompanied the following functions...
function GetDay(date) {
	switch (date.getDay()) {
		case 0:
			return 'Sunday';
		case 1:
			return 'Monday';
		case 2:
			return 'Tuesday';
		case 3:
			return 'Wednesday';
		case 4:
			return 'Thursday';
		case 5:
			return 'Friday';
		case 6:
			return 'Saturday';
	}
}

function GetMonth(date) {
	switch (date.getMonth()) {
		case 0:
			return 'January';
		case 1:
			return 'February';
		case 2:
			return 'March';
		case 3:
			return 'April';
		case 4:
			return 'May';
		case 5:
			return 'June';
		case 6:
			return 'July';
		case 7:
			return 'August';
		case 8:
			return 'September';
		case 9:
			return 'October';
		case 10:
			return 'November';
		case 11:
			return 'December';
	}
}

function FormatDate(date) {
	var AmPm = 'AM';
	var hours = date.getHours();
	if (hours > 12) {
		AmPm = 'Pm';
		hours -= 12;
	}

	var minutes = date.getMinutes();
	if (minutes < 10) {
		minutes = '0' + new String(date.getMinutes());
	}

	return GetDay(date) + ', ' + GetMonth(date) + ' ' + date.getDate() + ' at ' + hours + ':' + minutes + ' ' + AmPm;
}

function Profile(data) {
	var Self = this;
	Self.Id = ko.observable();
	Self.DisplayName = ko.observable();
	Self.Link = ko.observable();

	if (data) {
		Self.Id(data.Id);
		Self.DisplayName(data.DisplayName);

		Self.Link('/speakers.html?id=' + data.Id);
	}
}

function TimeSlot(data) {
	var Self = this;
	Self.StartTime = ko.observable();
	Self.EndTime = ko.observable();
	Self.DisplayDateTime = ko.pureComputed(function () {
		return FormatDate(this.StartTime());
	}, Self);

	if (data) {
		Self.StartTime(new Date(data.StartTime));
		Self.EndTime(new Date(data.EndTime));
	}
}
{'fraction_non_alphanumeric': 0.15857694429123, 'fraction_numerical': 0.015444015444015444, 'mean_word_length': 3.2421052631578946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6859279', 'n_tokens_mistral': 1566, 'n_tokens_neox': 1308, 'n_words': 357}