<commit_before>package platform

// Owner represents a resource owner
type Owner struct {
	ID ID
}<commit_msg>add decode method to Owner<commit_after>package platform

import "encoding/hex"

// Owner represents a resource owner
type Owner struct {
	ID ID
}

// Decode parses b as a hex-encoded byte-slice-string.
func (o *Owner) Decode(b []byte) error {
	dst := make([]byte, hex.DecodedLen(len(b)))
	_, err := hex.Decode(dst, b)
	if err != nil {
		return err
	}
	o.ID = dst
	return nil
}
{'fraction_non_alphanumeric': 0.11704312114989733, 'fraction_numerical': 0.0, 'mean_word_length': 3.8316831683168315, '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': '6969116', 'n_tokens_mistral': 170, 'n_tokens_neox': 162, 'n_words': 58}