<commit_before>/**
* Node
*
* A Node data structure is the simplest data structure in CS. The idea is it's
* an object that stores a value and a reference to the next Node. We can do
* the following operations with a Node:
*
* - Create Node
* - Get Value
* - Get Next
* - Set Value
* - Set Next
*
* All operations can be performed in O(1) time. This means all methods do not
* rely on any other variables.
**/
package node

import ()

type Node struct {
	Value int
	Next  *Node
}

func NewNode(v int) *Node {
	return &Node{Value: v}
}

func (n *Node) GetValue() int {
	return n.Value
}

func (n *Node) SetValue(v int) {
	n.Value = v
}

func (n *Node) GetNext() *Node {
	return n.Next
}

func (n *Node) SetNext(m *Node) {
	n.Next = m
}<commit_msg>Make Node work with various data types rather than limit to just int<commit_after>/**
* Node
*
* A Node data structure is the simplest data structure in CS. The idea is it's
* an object that stores a value and a reference to the next Node. We can do
* the following operations with a Node:
*
* - Create Node
* - Get Value
* - Get Next
* - Set Value
* - Set Next
*
* All operations can be performed in O(1) time. This means all methods do not
* rely on any other variables.
**/
package node

import ()

type Node struct {
	Value interface{}
	Next  *Node
}

func NewNode(v interface{}) *Node {
	return &Node{Value: v}
}

func (n *Node) GetValue() interface{} {
	return n.Value
}

func (n *Node) SetValue(v interface{}) {
	n.Value = v
}

func (n *Node) GetNext() *Node {
	return n.Next
}

func (n *Node) SetNext(m *Node) {
	n.Next = m
}
{'fraction_non_alphanumeric': 0.11399620012666245, 'fraction_numerical': 0.001266624445851805, 'mean_word_length': 3.3051771117166213, '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': '637664', 'n_tokens_mistral': 541, 'n_tokens_neox': 537, 'n_words': 238}