<commit_before>package kdtree

import (
	"testing"

	. "github.com/smartystreets/goconvey/convey"
)

func TestHeap(t *testing.T) {
	Convey("Given a heap", t, func() {
	        h := newHeap()

		Convey("When heap is empty", func() {

			Convey("The size should be 0", func() {
				size := h.size()
				So(size, ShouldEqual, 0)
			})

			Convey("The maximum node should be empty", func() {
				max := h.maximum()
				So(max.value, ShouldBeEmpty)
				So(max.length, ShouldEqual, 0)
				So(max.srcRowNo, ShouldEqual, 0)<commit_msg>format<commit_after>package kdtree

import (
	"testing"

	. "github.com/smartystreets/goconvey/convey"
)

func TestHeap(t *testing.T) {
	Convey("Given a heap", t, func() {
		h := newHeap()

		Convey("When heap is empty", func() {

			Convey("The size should be 0", func() {
				size := h.size()
				So(size, ShouldEqual, 0)
			})

			Convey("The maximum node should be empty", func() {
				max := h.maximum()
				So(max.value, ShouldBeEmpty)
				So(max.length, ShouldEqual, 0)
				So(max.srcRowNo, ShouldEqual, 0)
{'fraction_non_alphanumeric': 0.1576923076923077, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 3.3375, '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': '2928184', 'n_tokens_mistral': 451, 'n_tokens_neox': 381, 'n_words': 95}