<commit_before>package faker

import (
	"math/rand"
	"regexp"
	"strconv"
	"time"
)

func random(min, max int) int {
	rand.Seed(time.Now().Unix() + int64(rand.Int()))
	return rand.Intn(max-min) + min
}

func UUID() string {
	r := regexp.MustCompile(`[xy]`)
	RFC4122_TEMPLATE := "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"
	result := r.ReplaceAllStringFunc(RFC4122_TEMPLATE, func(placeholder string) string {
		rnd := random(0, 15)
		var val string
		if placeholder == "x" {
			val = strconv.FormatInt(int64(rnd), 16)
		} else {
			val = strconv.FormatInt(int64(rnd&0x3|0x8), 16)
		}
		return val
	})

	return result
}

func Boolean() bool {
	rnd := rand.Int()
	if rnd%2 == 0 {
		return true
	} else {
		return false
	}
}
<commit_msg>refactor and rename some identifier<commit_after>package faker

import (
	"math/rand"
	"regexp"
	"strconv"
	"time"
)

func random(min, max int) int {
	rand.Seed(time.Now().Unix() + int64(rand.Int()))
	return rand.Intn(max-min) + min
}

// UUID generate random uuid.
func UUID() string {
	r := regexp.MustCompile(`[xy]`)
	RFC4122Template := "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"
	result := r.ReplaceAllStringFunc(RFC4122Template, func(placeholder string) string {
		rnd := random(0, 15)
		var val string
		if placeholder == "x" {
			val = strconv.FormatInt(int64(rnd), 16)
		} else {
			val = strconv.FormatInt(int64(rnd&0x3|0x8), 16)
		}
		return val
	})

	return result
}

// Boolean generate between truthy or falsy.
func Boolean() bool {
	rnd := rand.Int()
	if rnd%2 == 0 {
		return true
	}
	return false
}

{'fraction_non_alphanumeric': 0.15214564369310793, 'fraction_numerical': 0.036410923276983094, 'mean_word_length': 3.8702531645569622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '3155500', 'n_tokens_mistral': 686, 'n_tokens_neox': 615, 'n_words': 137}