<commit_before>package main

import (
    "code.google.com/p/go-tour/wc"
)

func WordCount(s string) map[string]int {
    return map[string]int{"x": 1}
}

func main() {
    wc.Test(WordCount)<commit_msg>Implement `WordCount`.<commit_after>package main

import (
	"code.google.com/p/go-tour/wc"
	"strings"
)

func WordCount(s string) map[string]int {
	ret := make(map[string]int)
	for _, c := range strings.Fields(s) {
		ret[c]++
	}
	return ret
}

func main() {
	wc.Test(WordCount)
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0020833333333333333, 'mean_word_length': 4.172043010752688, 'pattern_counts': {'":': 1, '<': 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': '6733196', 'n_tokens_mistral': 198, 'n_tokens_neox': 192, 'n_words': 35}