<commit_before>package examples

import (
	"fmt"
	"github.com/researchlab/golearning/base"
)

func MultiMapMgr() {
	mMap := MultiMapInit()
	MultiMapRawOrder(mMap)
	MultiMapKeysOrder(mMap)
	MultiMapValsOrder(mMap)
}
func MultiMapInit() *base.MultiMap {
	MMap := &base.MultiMap{
		Data: make(map[interface{}]interface{}, 0),
	}
	keys := []string{"1", "1", "5", "7", "9", "0", "2", "4", "6", "8"}
	vals := []string{"0", "5", "2", "9", "8", "1", "3", "7", "4", "6"}
	for i := 0; i < 10; i++ {
		ok, err := MMap.Put(keys[i], vals[i])
		fmt.Println(ok, ":", err)
	}
	return MMap
}

func MultiMapRawOrder(MMap *base.MultiMap) {

	fmt.Println("rawOrder")
	for _, v := range MMap.Keys {
		fmt.Println(v, "=", MMap.Data[v])
	}
<commit_msg>update data for multiMap_mod<commit_after>package examples

import (
	"fmt"
	"github.com/researchlab/golearning/base"
)

func MultiMapMgr() {
	mMap := MultiMapInit()
	MultiMapRawOrder(mMap)
	MultiMapKeysOrder(mMap)
	MultiMapValsOrder(mMap)
}
func MultiMapInit() *base.MultiMap {
	MMap := &base.MultiMap{
		Data: make(map[interface{}]interface{}, 0),
	}
	keys := []string{"11", "120", "250", "27", "90", "0", "2", "4", "6", "8"}
	vals := []string{"0", "15", "12", "9", "80", "210", "31", "17", "400", "6"}
	for i := 0; i < 10; i++ {
		ok, err := MMap.Put(keys[i], vals[i])
		fmt.Println(ok, ":", err)
	}
	return MMap
}

func MultiMapRawOrder(MMap *base.MultiMap) {

	fmt.Println("rawOrder")
	for _, v := range MMap.Keys {
		fmt.Println(v, "=", MMap.Data[v])
	}

{'fraction_non_alphanumeric': 0.23505708529214236, 'fraction_numerical': 0.042981867024848894, 'mean_word_length': 4.643939393939394, 'pattern_counts': {'":': 2, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4505679', 'n_tokens_mistral': 681, 'n_tokens_neox': 646, 'n_words': 135}