<commit_before>#!/usr/bin/ruby -w

#Node Class
class Node
    
    attr_accessor :datum, :left, :right
    
    #constructor Method    
    def initialize(nDatum)
        @datum = nDatum
    end
    
    def to_s
        @datum
    end
end<commit_msg>changed node and added a insert method<commit_after>#!/usr/bin/ruby -w

#Wrapper Module
module BinarySearchTree
    
    #Node Class
    class Node
    
        attr_reader :datum
        attr_accessor :left, :right
    
        #constructor Method    
        def initialize(nDatum)
            @datum = nDatum
        end
        
        def insert(nDatum)
            if nDatum <= @datum
                @left.nil? ? @left = Node.new(nDatum) : @left.insert(nDatum)
            elsif nDatum > @datum
                @right.nil? ? @right = Node.new(nDatum) : @right.insert(nDatum)
            end
        end
        
        def to_s
            @datum
        end
    end
end
{'fraction_non_alphanumeric': 0.08279569892473118, 'fraction_numerical': 0.0, 'mean_word_length': 1.509433962264151, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7237233', 'n_tokens_mistral': 308, 'n_tokens_neox': 300, 'n_words': 73}