<commit_before>package event

import (
	//"reflect"
  "time"
	//"github.com/fatih/structs"
	//"code.google.com/p/rog-go/exp/deepcopy"
)

type Level int
const (
	Emergency, Emerg Level = iota, iota
	Alert, Alrt
	Critical, Crit
	Error, Err
	Warning, Warn
	Notice, _
	Info, _
	Debug, Dbg
)
var LevelNames = [8]string{
	"Emergency",
	"Alert",
	"Critical",
	"Error",
	"Warning",
	"Notice",
	"Info",
	"Debug",
}
func LevelName(level Level) string {
	return LevelNames[level]
}

type Event struct {
	Level Level
	Timestamp time.Time
	Message string
	Fields interface{}
}

func (event *Event) LevelName() string {
	return LevelName(event.Level)
}

func (event *Event) FieldsMap (map[string]interface{}) {
	/*
	fieldsV := reflect.ValueOf(event.Fields)
	if fieldsV.Kind() == reflect.Ptr {
		fieldsV = fieldsV.Elem()
	}

	kind := fieldsV.Kind()
	if kind == reflect.Struct {
		fieldsMap := structs.Map(fieldsV.Interface())
	} else if kind == reflect.Array || kind == reflect.Slice {
		fieldsMap := map[string]interface{}
		i := 0
		for value := range event.Fields {
			fieldsMap[sprintf("%d", i)] = event.Fields[i]
			i += 1
		}
	} else if kind == reflect.Map {
	} else {
	}
	*/
}
func (event *Event) FieldsMapFlattened (map[string]string) {
}<commit_msg>cleanup undeveloped functions from event.go<commit_after>package event

import (
	//"reflect"
  "time"
	//"github.com/fatih/structs"
	//"code.google.com/p/rog-go/exp/deepcopy"
)

type Level int
const (
	Emergency, Emerg Level = iota, iota
	Alert, Alrt
	Critical, Crit
	Error, Err
	Warning, Warn
	Notice, _
	Info, _
	Debug, Dbg
)
var LevelNames = [8]string{
	"Emergency",
	"Alert",
	"Critical",
	"Error",
	"Warning",
	"Notice",
	"Info",
	"Debug",
}
func LevelName(level Level) string {
	return LevelNames[level]
}

type Event struct {
	Level Level
	Timestamp time.Time
	Message string
	Fields interface{}
}

func (event *Event) LevelName() string {
	return LevelName(event.Level)
}
{'fraction_non_alphanumeric': 0.14924596983879354, 'fraction_numerical': 0.0020800832033281333, 'mean_word_length': 3.9844559585492227, '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': '453460', 'n_tokens_mistral': 749, 'n_tokens_neox': 715, 'n_words': 178}