<commit_before>'use strict';

// class methods
function updateVisualisation() {

	var sgv = this.env.sgv;
	var age = 0;
	var found = false;
	
	for (var t in this.env.treatments)
	{
		var treatment = this.env.treatments[t];
		
		if (treatment.eventType == "Site Change")
		{
			var treatmentDate = new Date(treatment.created_at);
			var hours = Math.abs(new Date() - treatmentDate) / 36e5;
			//hours = Math.round( hours * 10 ) / 10;
			
			hours = Math.round(hours);
			
			if (!found) {
				found = true;
				age = hours;<commit_msg>Small cleanup to cannula age code<commit_after>'use strict';

// class methods
function updateVisualisation() {

	var age = 0;
	var found = false;
	
	for (var t in this.env.treatments)
	{
		var treatment = this.env.treatments[t];
		
		if (treatment.eventType == "Site Change")
		{
			var treatmentDate = new Date(treatment.created_at);
			var hours = Math.round(Math.abs(new Date() - treatmentDate) / 36e5);
						
			if (!found) {
				found = true;
				age = hours;
{'fraction_non_alphanumeric': 0.133, 'fraction_numerical': 0.012, 'mean_word_length': 3.004, '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': '3779919', 'n_tokens_mistral': 416, 'n_tokens_neox': 329, 'n_words': 94}