<commit_before>package sessmgr

import (
	"sync"
	"time"
)

type Session struct {
	id   string
	Last time.Time
	mu   sync.RWMutex
	Val  map[string]interface{}
	prov Provider
}

func NewSession(id string, provider Provider) *Session {
	v := make(map[string]interface{}, 0)
	return &Session{
		id:   id,
		Last: time.Now(),
		Val:  v, prov: provider,
	}
}

func (s *Session) Set(key string, val interface{}) error {
	s.mu.Lock()
	defer s.mu.Unlock()

	s.Val[key] = val
	s.prov.Update(s.id)

	return nil
}<commit_msg>Remove cap from map def.<commit_after>package sessmgr

import (
	"sync"
	"time"
)

type Session struct {
	id   string
	Last time.Time
	mu   sync.RWMutex
	Val  map[string]interface{}
	prov Provider
}

func NewSession(id string, provider Provider) *Session {
	v := make(map[string]interface{})
	return &Session{
		id:   id,
		Last: time.Now(),
		Val:  v, prov: provider,
	}
}

func (s *Session) Set(key string, val interface{}) error {
	s.mu.Lock()
	defer s.mu.Unlock()

	s.Val[key] = val
	s.prov.Update(s.id)

	return nil
}
{'fraction_non_alphanumeric': 0.14092664092664092, 'fraction_numerical': 0.0009652509652509653, 'mean_word_length': 3.6502242152466366, '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': '1851071', 'n_tokens_mistral': 414, 'n_tokens_neox': 401, 'n_words': 109}