<commit_before>package mpo

import (
	"image"
	"image/draw"
	"math"
)

func (m *Mpo) ConvertToStereo() image.Image {
	mx := 0
	my := 0
	for _, i := range m.Images {
		mx += i.Bounds().Max.X
		my = int(math.Max(float64(my), float64(i.Bounds().Max.Y)))
	}

	img := image.NewRGBA(image.Rect(0, 0, mx, my))

	dx := 0
	for _, i := range m.Images {
		b := i.Bounds()
		b = b.Add(image.Point{dx, 0})

		draw.Draw(img, b, i, image.Point{0, 0}, draw.Src)

		dx += i.Bounds().Max.X
	}<commit_msg>Remove "math" dependency.<commit_after>package mpo

import (
	"image"
	"image/draw"
)

func (m *Mpo) ConvertToStereo() image.Image {
	mx := 0
	my := 0
	for _, i := range m.Images {
		mx += i.Bounds().Max.X
		if i.Bounds().Max.Y > my {
			my = i.Bounds().Max.Y
		}
	}

	img := image.NewRGBA(image.Rect(0, 0, mx, my))

	dx := 0
	for _, i := range m.Images {
		b := i.Bounds()
		b = b.Add(image.Point{dx, 0})

		draw.Draw(img, b, i, image.Point{0, 0}, draw.Src)

		dx += i.Bounds().Max.X
	}
{'fraction_non_alphanumeric': 0.21068859198355602, 'fraction_numerical': 0.020554984583761562, 'mean_word_length': 2.896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1612228', 'n_tokens_mistral': 466, 'n_tokens_neox': 427, 'n_words': 99}