<commit_before>// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be found
// in the LICENSE file.

// Package encoding provides helper methods to deal with encoding data.
package encoding

import "crypto/md5"

// Md5Sum converts an array of bytes to an md5 Sum string.
func Md5Sum(value []byte) string {
	md5Sum := md5.Sum(value)
	return string(md5Sum[:])
}<commit_msg>Encoding: actually get md5 string checksum.<commit_after>// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be found
// in the LICENSE file.

// Package encoding provides helper methods to deal with encoding data.
package encoding

import (
	"crypto/md5"
	"encoding/hex"
)

// Md5Sum converts an array of bytes to an md5 Sum string.
func Md5Sum(value []byte) string {
	hasher := md5.New()
	hasher.Write(value)
	return hex.EncodeToString(hasher.Sum(nil))
}
{'fraction_non_alphanumeric': 0.08923076923076922, 'fraction_numerical': 0.021538461538461538, 'mean_word_length': 3.9292929292929295, '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': '7426904', 'n_tokens_mistral': 298, 'n_tokens_neox': 282, 'n_words': 129}