<commit_before>package main

import (
	"encoding/hex"
)

type HCID []byte

func (hcid HCID) Hex() string {
	return hex.EncodeToString(hcid)
}

func (hcid HCID) Bytes() []byte {
	return hcid
}

type HKID []byte

func (hkid HKID) Hex() string {
	return hex.EncodeToString(hkid)
}

func (hkid HKID) Bytes() []byte {
	return hkid
}

func (hkid HKID) String() string {
	return hkid.Hex()
}

func HkidFromHex(s string) (HKID, error) {
	dabytes, err := hex.DecodeString(s)
	if err == nil {
		return HKID(dabytes), err
	}
	return nil, err
}

func (hcid HCID) String() string {
	return hcid.Hex()
}

type HID interface {
	Byteser
	Hexer
}
type Byteser interface {
	Bytes() []byte
}

type Hexer interface {
	Hex() string
}
<commit_msg>added ability to make an HCID form the hexString form<commit_after>package main

import (
	"encoding/hex"
)

type HCID []byte

func (hcid HCID) Hex() string {
	return hex.EncodeToString(hcid)
}

func (hcid HCID) Bytes() []byte {
	return hcid
}

type HKID []byte

func (hkid HKID) Hex() string {
	return hex.EncodeToString(hkid)
}

func (hkid HKID) Bytes() []byte {
	return hkid
}

func (hkid HKID) String() string {
	return hkid.Hex()
}

func HkidFromHex(s string) (HKID, error) {
	dabytes, err := hex.DecodeString(s)
	if err == nil {
		return HKID(dabytes), err
	}
	return nil, err
}

func HcidFromHex(s string) (HCID, error) {
	dabytes, err := hex.DecodeString(s)
	if err == nil {
		return HCID(dabytes), err
	}
	return nil, err
}

func (hcid HCID) String() string {
	return hcid.Hex()
}

type HID interface {
	Byteser
	Hexer
}
type Byteser interface {
	Bytes() []byte
}

type Hexer interface {
	Hex() string
}

{'fraction_non_alphanumeric': 0.13125763125763126, 'fraction_numerical': 0.0, 'mean_word_length': 3.9516616314199395, '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': '3649614', 'n_tokens_mistral': 695, 'n_tokens_neox': 654, 'n_words': 194}