<commit_before>package primitives

type Camera struct {
	lowerLeft, horizontal, vertical, origin Vector
}

func NewCamera() Camera {
	c := Camera{}

	c.lowerLeft = Vector{-2.0, -1.0, -1.0}
	c.horizontal = Vector{4.0, 0.0, 0.0}
	c.vertical = Vector{0.0, 2.0, 0.0}
	c.origin = Vector{0.0, 0.0, 0.0}

	return c
}

func (c Camera) RayAt(u float64, v float64) Ray {
	position := c.position(u, v)
	direction := c.direction(position)

	return Ray{c.origin, direction}
}

func (c Camera) position(u float64, v float64) Vector {
	horizontal := c.horizontal.MultiplyScalar(u)
	vertical := c.vertical.MultiplyScalar(v)

	return horizontal.Add(vertical)
}

func (c Camera) direction(position Vector) Vector {
	return c.lowerLeft.Add(position)
}
<commit_msg>Remove un-needed method<commit_after>package primitives

type Camera struct {
	lowerLeft, horizontal, vertical, origin Vector
}

func NewCamera() Camera {
	c := Camera{}

	c.lowerLeft = Vector{-2.0, -1.0, -1.0}
	c.horizontal = Vector{4.0, 0.0, 0.0}
	c.vertical = Vector{0.0, 2.0, 0.0}
	c.origin = Vector{0.0, 0.0, 0.0}

	return c
}

func (c Camera) RayAt(u float64, v float64) Ray {
	position := c.position(u, v)
	direction := c.lowerLeft.Add(position)

	return Ray{c.origin, direction}
}

func (c Camera) position(u float64, v float64) Vector {
	horizontal := c.horizontal.MultiplyScalar(u)
	vertical := c.vertical.MultiplyScalar(v)

	return horizontal.Add(vertical)
}

{'fraction_non_alphanumeric': 0.14840989399293286, 'fraction_numerical': 0.045229681978798585, 'mean_word_length': 4.149090909090909, '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': '727960', 'n_tokens_mistral': 565, 'n_tokens_neox': 525, 'n_words': 136}