<commit_before>module Referencia

Node = Struct.new(:value, :next, :back)

 class Lista

    def initialize(value)
     @head = Node.new(value,nil,nil)
     @last = @head
    end
     
    def addEnd(val)
         @last.next = Node.new(val,nil,@last)
         @last = @last.next
    end
    
    def addBeg(val)
         @head.back = Node.new(val,@head,nil)
         @head = @head.back
    end
    
    def delBeg()
        pepe=@heap.next
        @heap=pepe
        pepe.back=nil
    end
    
    def delEnd()
        pepe=@last.back
        @last=pepe
        pepe.next=nil
    end
    
 end

end

<commit_msg>empezar testeo<commit_after>module Referencia

Node = Struct.new(:value, :next, :back)

 class Lista

    def initialize(value)
     @head = Node.new(value,nil,nil)
     @last = @head
    end
     
    def addEnd(val)
         @last.next = Node.new(val,nil,@last)
         @last = @last.next
    end
    
    def addBeg(val)
         @head.back = Node.new(val,@head,nil)
         @head = @head.back
    end
    
    def delBeg()
        pepe=@heap.next
        @heap=pepe
        pepe.back=nil
    end
    
    def delEnd()
        pepe=@last.back
        @last=pepe
        pepe.next=nil
    end
    
    def takehead
        if @node != nil
			value = @node.value
			@node = @node.next
			return value
		else
			return nil
		end
    end
    
    def takelast
        if @node != nil
			value = @node.value
			@node = @node.back
			return value
		else
			return nil
		end
    end
    
 end

end


{'fraction_non_alphanumeric': 0.10868124585818423, 'fraction_numerical': 0.0, 'mean_word_length': 1.6215277777777777, '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': '735858', 'n_tokens_mistral': 575, 'n_tokens_neox': 551, 'n_words': 119}