<commit_before>package atlas

import (
	"math"
	"strings"
)

// longestCommonPrefix finds the longest common prefix for all the strings
// given as an argument, or returns the empty string if a prefix can't be
// found.
//
// This function just uses brute force instead of a more optimized algorithm.
func longestCommonPrefix(vs []string) string {
	// Find the shortest string
	var shortest string
	length := math.MaxUint32
	for _, v := range vs {
		if len(v) < length {
			shortest = v
			length = len(v)
		}
	}<commit_msg>atlas post-processor on 32bit uint32 overflows int<commit_after>package atlas

import (
	"math"
	"strings"
)

// longestCommonPrefix finds the longest common prefix for all the strings
// given as an argument, or returns the empty string if a prefix can't be
// found.
//
// This function just uses brute force instead of a more optimized algorithm.
func longestCommonPrefix(vs []string) string {
	var length int64
	// Find the shortest string
	var shortest string
	length = math.MaxUint32
	for _, v := range vs {
		if int64(len(v)) < length {
			shortest = v
			length = int64(len(v))
		}
	}
{'fraction_non_alphanumeric': 0.08781362007168458, 'fraction_numerical': 0.012544802867383513, 'mean_word_length': 3.504032258064516, 'pattern_counts': {'":': 0, '<': 5, '<?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': '942302', 'n_tokens_mistral': 362, 'n_tokens_neox': 329, 'n_words': 141}