<commit_before>#include "BinaryTree.hpp"

template<typename T>
BinaryTree<T>::BinaryTree()
{
	root = nullptr;
}

template<class T>
Node<T>*Tree<T>::root_()const
{
	return root;
}

template<typename T>
BinaryTree<T>::~BinaryTree()
{
	deleteNode(root);
}

template<typename T>
void BinaryTree<T>::deleteNode(Node<T>* temp)
{
	if (!temp)
		return;
	if (temp->left)
	{
		deleteNode(temp->left);
		temp->left = nullptr;
	}

	if (temp->right)
	{
		deleteNode(temp->right);
		temp->right = nullptr;
	}
	delete temp;
}

template<typename T>
void BinaryTree<T>::insert_node(const T&x)<commit_msg>Update BinaryTree.cpp<commit_after>#include "BinaryTree.hpp"

template<typename T>
BinaryTree<T>::BinaryTree()
{
	root = nullptr;
}

template<class T>
Node<T>*BinaryTree<T>::root_()const
{
	return root;
}

template<typename T>
BinaryTree<T>::~BinaryTree()
{
	deleteNode(root);
}

template<typename T>
void BinaryTree<T>::deleteNode(Node<T>* temp)
{
	if (!temp)
		return;
	if (temp->left)
	{
		deleteNode(temp->left);
		temp->left = nullptr;
	}

	if (temp->right)
	{
		deleteNode(temp->right);
		temp->right = nullptr;
	}
	delete temp;
}

template<typename T>
void BinaryTree<T>::insert_node(const T&x)
{'fraction_non_alphanumeric': 0.17592592592592593, 'fraction_numerical': 0.0, 'mean_word_length': 5.569060773480663, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 39, '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': '4588989', 'n_tokens_mistral': 479, 'n_tokens_neox': 460, 'n_words': 82}