<commit_before>package space

// Planet names
type Planet string

// Age returns the age in years of someone on planet given their age in seconds.
func Age(ageInSeconds float64, planet Planet) float64 {
	if planet == "Earth" {
		return ageOnEarth(ageInSeconds)
	} else if planet == "Mercury" {
		return ageOnEarth(ageInSeconds) / 0.2408467
	} else if planet == "Venus" {
		return ageOnEarth(ageInSeconds) / 0.61519726
	}
	return 0
}

// AgeOnEarth returns the age of somone on Earth given their age in seconds.
func ageOnEarth(ageInSeconds float64) float64 {
	return ageInSeconds / 31557600
}<commit_msg>Extract seconds in earth year<commit_after>package space

// Planet names
type Planet string

const secondsInEarthYear = 31557600

// Age returns the age in years of someone on planet given their age in seconds.
func Age(ageInSeconds float64, planet Planet) float64 {
	if planet == "Earth" {
		return ageOnEarth(ageInSeconds)
	} else if planet == "Mercury" {
		return ageOnEarth(ageInSeconds) / 0.2408467
	} else if planet == "Venus" {
		return ageOnEarth(ageInSeconds) / 0.61519726
	}
	return 0
}

// AgeOnEarth returns the age of somone on Earth given their age in seconds.
func ageOnEarth(ageInSeconds float64) float64 {
	return ageInSeconds / secondsInEarthYear
}
{'fraction_non_alphanumeric': 0.07789142407553108, 'fraction_numerical': 0.05350118017309206, 'mean_word_length': 4.3, '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': '87283', 'n_tokens_mistral': 465, 'n_tokens_neox': 394, 'n_words': 145}