<commit_before>package navigator

import (
	"fmt"
	"math/rand"
	"time"

	"github.com/lukevers/arp147/planet"
)

type Cell struct {
	X int64
	Y int64

	Planet     *planet.Planet
	Discovered bool
}

func NewCell(cell *Cell) *Cell {
	cell.initialize()
	return cell
}

func (c *Cell) GetX() string {
	return fmt.Sprintf("0x%X", c.X)
}

func (c *Cell) GetY() string {
	return fmt.Sprintf("0x%X", c.Y)
}

func (c *Cell) HudX() string {
	return fmt.Sprintf("X: %s", c.GetX())
}

func (c *Cell) HudY() string {
	return fmt.Sprintf("Y: %s", c.GetY())
}

func (c *Cell) initialize() {
	seed := time.Now().UTC().UnixNano()
	rand.Seed(seed)

	if chance(12) {
		c.Planet = planet.New(planet.SizeViewer, planet.TypePlanet, true)
	}
}

func randInt(min, max int64) int64 {
	return min + rand.Int63n(max-min)
}
<commit_msg>More common chance of planets for now<commit_after>package navigator

import (
	"fmt"
	"math/rand"
	"time"

	"github.com/lukevers/arp147/planet"
)

type Cell struct {
	X int64
	Y int64

	Planet     *planet.Planet
	Discovered bool
}

func NewCell(cell *Cell) *Cell {
	cell.initialize()
	return cell
}

func (c *Cell) GetX() string {
	return fmt.Sprintf("0x%X", c.X)
}

func (c *Cell) GetY() string {
	return fmt.Sprintf("0x%X", c.Y)
}

func (c *Cell) HudX() string {
	return fmt.Sprintf("X: %s", c.GetX())
}

func (c *Cell) HudY() string {
	return fmt.Sprintf("Y: %s", c.GetY())
}

func (c *Cell) initialize() {
	seed := time.Now().UTC().UnixNano()
	rand.Seed(seed)

	if chance(6) {
		c.Planet = planet.New(planet.SizeViewer, planet.TypePlanet, true)
	}
}

func randInt(min, max int64) int64 {
	return min + rand.Int63n(max-min)
}

{'fraction_non_alphanumeric': 0.17226634086744044, 'fraction_numerical': 0.020158827122785584, 'mean_word_length': 3.8605341246290803, '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': '3990597', 'n_tokens_mistral': 716, 'n_tokens_neox': 696, 'n_words': 166}