<commit_before>package main

import (
	"meowtrics/model"

	log "github.com/Sirupsen/logrus"
)

func StoreEvent(event model.ClientEventData, logger *log.Logger) error {

	if event.GetEventId() == "" {
		log.Warningln("Event Id is nil, returning error")
		return InvalidParametersError
	}

	eventMap[event.GetEventId()] = event
	return nil
}

func RetrieveEvent(eventId string) (*model.ClientEventData, error) {

	if eventId == "" {
		return nil, InvalidParametersError
	}

	if event, ok := eventMap[eventId]; ok {
		return &event, nil
	}

	return nil, RecordNotFoundError
}<commit_msg>Changed signature StoreEvent method<commit_after>package main

import "meowtrics/model"

func StoreEvent(event model.ClientEventData) error {

	if event.GetEventId() == "" {
		return InvalidParametersError
	}

	eventMap[event.GetEventId()] = event
	return nil
}

func RetrieveEvent(eventId string) (*model.ClientEventData, error) {

	if eventId == "" {
		return nil, InvalidParametersError
	}

	if event, ok := eventMap[eventId]; ok {
		return &event, nil
	}

	return nil, RecordNotFoundError
}
{'fraction_non_alphanumeric': 0.11317254174397032, 'fraction_numerical': 0.0, 'mean_word_length': 4.801075268817204, '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': '4513086', 'n_tokens_mistral': 366, 'n_tokens_neox': 348, 'n_words': 87}