<commit_before>package def

import (
	"sort"
)

func (f *Formula) Unmarshal(ser interface{}) error {
	mp, ok := ser.(map[string]interface{})
	if !ok {
		return newConfigValTypeError("formula", "structure")
	}

	val, ok := mp["inputs"]
	if !ok {
		return newConfigValTypeError("inputs", "structure")
	}
	val2, ok := val.(map[string]interface{})
	if !ok {
		return newConfigValTypeError("inputs", "map")
	}
	// though the serial representation is a map,<commit_msg>Typo fix.<commit_after>package def

import (
	"sort"
)

func (f *Formula) Unmarshal(ser interface{}) error {
	mp, ok := ser.(map[string]interface{})
	if !ok {
		return newConfigValTypeError("formula", "structure")
	}

	val, ok := mp["inputs"]
	if !ok {
		return newConfigValTypeError("inputs", "map")
	}
	val2, ok := val.(map[string]interface{})
	if !ok {
		return newConfigValTypeError("inputs", "map")
	}
	// though the serial representation is a map,
{'fraction_non_alphanumeric': 0.1648471615720524, 'fraction_numerical': 0.002183406113537118, 'mean_word_length': 4.840764331210191, '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': '2186064', 'n_tokens_mistral': 329, 'n_tokens_neox': 316, 'n_words': 82}