<commit_before>/* eslint-env browser */
'use strict'

let d3 = require('d3')
let $ = require('jquery')
let phylogician = require('./phylogician.js')
let tntTree = require('tnt.tree')

let tooltip = d3.select('body').append('div')
	.attri('id', 'tooltip1')
	.attr('class', 'tooltip')
	.style('display', 'none')
	.style('left', (d3.event.pageX + 30) + 'px')
	.style('top', (d3.event.pageY + 30) + 'px')

tntTree.on('mouseover', function(node) {
	if (document.getElementById('tooltip1').style.display === 'none') {
		tooltip.style('display', 'block')
		console.log('Tooltip display is now set as "block"')
	}
	else {
		tooltip.style('display', 'none')
	}
	// can add html here or append
})
<commit_msg>minor typo<commit_after>/* eslint-env browser */
'use strict'

let d3 = require('d3')
let $ = require('jquery')
let phylogician = require('./phylogician.js')
let tntTree = require('tnt.tree')

let tooltip = d3.select('body').append('div')
	.attr('id', 'tooltip1')
	.attr('class', 'tooltip')
	.style('display', 'none')
	.style('left', (d3.event.pageX + 30) + 'px')
	.style('top', (d3.event.pageY + 30) + 'px')

tntTree.on('mouseover', function(node) {
	if (document.getElementById('tooltip1').style.display === 'none') {
		tooltip.style('display', 'block')
		console.log('Tooltip display is now set as "block"')
	}
	else {
		tooltip.style('display', 'none')
	}
	// can add html here or append
})

{'fraction_non_alphanumeric': 0.21664275466284075, 'fraction_numerical': 0.015781922525107604, 'mean_word_length': 4.717213114754099, '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': '2078477', 'n_tokens_mistral': 527, 'n_tokens_neox': 511, 'n_words': 113}