<commit_before>﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BinarySearchTree
{
    class BST
    {
    }
}<commit_msg>Created BST class with contructor and add method<commit_after>﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace BinarySearchTree
{
    class BST
    {
        public Node Root;

        public BST(int data)
        {
            Root = new Node(data);
        }

        public void Add(int data)
        {
            Node curr = Root;
            Node newNode = new Node(data);
            while (true)
            {
                Node ParentNode = curr;
                if (data < curr.Data)
                {
                    curr = curr.Left;
                    if (curr == null)
                    {
                        ParentNode.Left = newNode;
                        break;
                    }
                }
                else
                {
                    curr = curr.Right;
                    if (curr == null)
                    {
                        ParentNode.Right = newNode;
                        break;
                    }
                }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.07223113964686999, 'fraction_numerical': 0.0, 'mean_word_length': 0.9393468118195957, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2224885', 'n_tokens_mistral': 318, 'n_tokens_neox': 298, 'n_words': 74}