<commit_before>package ccserialize

import (
	"reflect"
	"strconv"
	"strings"
)

func Serialize(input interface{}) string {
	switch reflect.ValueOf(input).Kind() {
	case reflect.Int:
		return strconv.Itoa(input.(int))
	case reflect.Int64:
		return strconv.FormatInt(input.(int64), 10)
	case reflect.Float64:
		return strconv.FormatFloat(input.(float64), 'f', 6, 64)
	case reflect.String:
		return "\"" + strings.Replace(input.(string), "\"", "\\\"", -1) + "\""
	case reflect.Map:
		t := reflect.TypeOf(input)
		v := reflect.ValueOf(input)
		it := reflect.TypeOf((*interface{})(nil)).Elem()
		m := reflect.MakeMap(reflect.MapOf(t.Key(), it))
<commit_msg>Add support for more types of integers<commit_after>package ccserialize

import (
	"reflect"
	"strconv"
	"strings"
)

func Serialize(input interface{}) string {
	switch reflect.ValueOf(input).Kind() {
	case reflect.Int:
		return strconv.Itoa(input.(int))
	case reflect.Uint8:
		return Serialize(int(input.(uint8)))
	case reflect.Int8:
		return Serialize(int(input.(int8)))
	case reflect.Uint16:
		return Serialize(int(input.(uint16)))
	case reflect.Int16:
		return Serialize(int(input.(int16)))
	case reflect.Uint32:
		return Serialize(int64(input.(uint32)))
	case reflect.Int32:
		return Serialize(int(input.(int32)))
	case reflect.Int64:
		return strconv.FormatInt(input.(int64), 10)
	case reflect.Float64:
		return strconv.FormatFloat(input.(float64), 'f', 6, 64)
	case reflect.String:
		return "\"" + strings.Replace(input.(string), "\"", "\\\"", -1) + "\""
	case reflect.Map:
		t := reflect.TypeOf(input)
		v := reflect.ValueOf(input)
		it := reflect.TypeOf((*interface{})(nil)).Elem()
		m := reflect.MakeMap(reflect.MapOf(t.Key(), it))

{'fraction_non_alphanumeric': 0.17817109144542773, 'fraction_numerical': 0.029498525073746312, 'mean_word_length': 4.868512110726644, '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': '1915074', 'n_tokens_mistral': 648, 'n_tokens_neox': 595, 'n_words': 118}