<commit_before>var virusTooltip = d3.tip()
	.direction('se')
	.attr('class', 'd3-tip')
	.offset([0, 12])
	.html(function(d) {

		string = "";

		// safe to assume the following attributes
		if (typeof d.strain != "undefined") {
			string += d.strain;
		}
		string += "<div class=\"smallspacer\"></div>";

		string += "<div class=\"smallnote\">";

		// check if vaccine strain
		if (vaccineStrains.indexOf(d.strain) != -1) {
			string += "Vaccine strain<br>";
			var vaccine_date = new Date(vaccineChoice[d.strain]);

			string += "First chosen " + vaccine_date.toLocaleString("en-us", { month: "short" }) + " " + vaccine_date.getFullYear() + "<br>";
			string += "<div class=\"smallspacer\"></div>";
		}

		if (typeof d.country != "undefined") {
			string += d.country.replace(/([A-Z])/g, ' $1');
		}
		if (typeof d.date != "undefined") {
			string += ", " + d.date;
		}
		if ((typeof d.db != "undefined") && (typeof d.accession != "undefined") && (d.db == "GISAID")) {
			string += "<br>GISAID ID: EPI" + d.accession;
		}
		if (typeof d.lab != "undefined") {
			if (d.lab != "") {
				string += "<br>Source: " + d.lab.substring(0,25);
				if (d.lab.length>25) string += '...';
			}
		}
		string += "</div>";
		// following may or may not be present
		if ((typeof focusNode != "undefined")){
			string += "<div class=\"smallspacer\"></div>";
			string += "HI against serum from "+focusNode.strain;
			string += "<div class=\"smallspacer\"></div>";
			string += "<div class=\"smallnote\">"
			string += '<table class="table table-condensed"><thead><tr><td>Serum</td><td>&#916log<sub>2</sub></td><td>heterol.</td><td>autol.</td></tr></thead><tbody>';
			if (typeof focusNode.HI_titers[d.clade] != "undefined"){
				for (var tmp_serum in focusNode.HI_titers[d.clade]){
					var autoHI = focusNode.autologous_titers[tmp_serum];
					var rawHI = focusNode.HI_titers_raw[d.clade][tmp_serum];<commit_msg>changed autol to homol in tooltip<commit_after>var virusTooltip = d3.tip()
	.direction('se')
	.attr('class', 'd3-tip')
	.offset([0, 12])
	.html(function(d) {

		string = "";

		// safe to assume the following attributes
		if (typeof d.strain != "undefined") {
			string += d.strain;
		}
		string += "<div class=\"smallspacer\"></div>";

		string += "<div class=\"smallnote\">";

		// check if vaccine strain
		if (vaccineStrains.indexOf(d.strain) != -1) {
			string += "Vaccine strain<br>";
			var vaccine_date = new Date(vaccineChoice[d.strain]);

			string += "First chosen " + vaccine_date.toLocaleString("en-us", { month: "short" }) + " " + vaccine_date.getFullYear() + "<br>";
			string += "<div class=\"smallspacer\"></div>";
		}

		if (typeof d.country != "undefined") {
			string += d.country.replace(/([A-Z])/g, ' $1');
		}
		if (typeof d.date != "undefined") {
			string += ", " + d.date;
		}
		if ((typeof d.db != "undefined") && (typeof d.accession != "undefined") && (d.db == "GISAID")) {
			string += "<br>GISAID ID: EPI" + d.accession;
		}
		if (typeof d.lab != "undefined") {
			if (d.lab != "") {
				string += "<br>Source: " + d.lab.substring(0,25);
				if (d.lab.length>25) string += '...';
			}
		}
		string += "</div>";
		// following may or may not be present
		if ((typeof focusNode != "undefined")){
			string += "<div class=\"smallspacer\"></div>";
			string += "HI against serum from "+focusNode.strain;
			string += "<div class=\"smallspacer\"></div>";
			string += "<div class=\"smallnote\">"
			string += '<table class="table table-condensed"><thead><tr><td>Serum</td><td>&#916log<sub>2</sub></td><td>heterol.</td><td>homol.</td></tr></thead><tbody>';
			if (typeof focusNode.HI_titers[d.clade] != "undefined"){
				for (var tmp_serum in focusNode.HI_titers[d.clade]){
					var autoHI = focusNode.autologous_titers[tmp_serum];
					var rawHI = focusNode.HI_titers_raw[d.clade][tmp_serum];
{'fraction_non_alphanumeric': 0.22443628736234925, 'fraction_numerical': 0.008390141583639224, 'mean_word_length': 3.652439024390244, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 67, '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': '5410850', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1352, 'n_words': 282}