<commit_before>class Node
  attr_accessor :value, :next

  def initialize(value, next_node = nil)
    @value = value
    @next = next_node
  end

end

class LinkedList

  attr_accessor :head, :tail

  # This linked list must be initialized with a node instance
  def initialize(head)
    @head = head
    @tail = head
  end

  # Insert a new node after the tail of the linked list
  def insert(node)
    @tail.next = node
    @tail = @tail.next
  end
<commit_msg>Correct tail attribute in linked list implementation<commit_after>class Node
  attr_accessor :value, :next

  def initialize(value, next_node = nil)
    @value = value
    @next = next_node
  end

end

class LinkedList

  attr_accessor :head, :tail

  # This linked list must be initialized with a node instance
  def initialize(head)
    @head = head
    @tail = head
  end

  # Insert a new node after the tail of the linked list
  def insert(node)
    @tail.next = node
    @tail = node
  end

{'fraction_non_alphanumeric': 0.06882168925964546, 'fraction_numerical': 0.0, 'mean_word_length': 3.033613445378151, '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': '1505570', 'n_tokens_mistral': 307, 'n_tokens_neox': 297, 'n_words': 116}