<commit_before>Node = Struct.new(:value, :next)
class List
    attr_accessor :raiz, :tail
    def initialize(valor)
        @raiz = Node.new(valor, nil)
        @tail = @raiz
    end

#Métodos de insersión
    def push(valor)
        @tail.next = Node.new(valor, nil)
        @tail = @tail.next
    end
    
    def insert(*valores)
        var = 0
        val = valores
        while val.length > var 
            push(val[var])
            var += 1
        end
    end
    
#Métodos de borrado
    def shift
        @raiz = @raiz.next
    end
    
end<commit_msg>Modificada la clase List para que este doblemente enlazada<commit_after>Node = Struct.new(:value, :next, :previous)
class List
    attr_accessor :raiz, :tail, :size
    def initialize(valor)
        @raiz = Node.new(valor, nil, nil)
        @tail = @raiz
    end

#Métodos de insersión
    def push(valor)
        @tail.next = Node.new(valor, nil, @tail)
        @tail = @tail.next
    end
    
    def insert(*valores)
        var = 0
        val = valores
        while val.length > var 
            push(val[var])
            var += 1
        end
    end
    
#Métodos de borrado
    def shift
        @raiz = @raiz.next
        @raiz.previous = nil
    end
    
end
{'fraction_non_alphanumeric': 0.09886547811993517, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 1.7142857142857142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6782645', 'n_tokens_mistral': 437, 'n_tokens_neox': 430, 'n_words': 113}