<commit_before>package querylog

import (
	"encoding/json"

	"gopkg.in/natefinch/lumberjack.v2"
)

type QueryLogger interface {
	Write(*Entry) error
}

// easyjson:json
type Entry struct {
	Time       int64
	Origin     string<commit_msg>Add Hostname field to querylog data structure<commit_after>package querylog

import (
	"encoding/json"

	"gopkg.in/natefinch/lumberjack.v2"
)

type QueryLogger interface {
	Write(*Entry) error
}

// easyjson:json
type Entry struct {
	Time       int64
	Hostname   string `json:"omitempty"` // not filled in by geodns
	Origin     string
{'fraction_non_alphanumeric': 0.09281961471103327, 'fraction_numerical': 0.010507880910683012, 'mean_word_length': 3.80672268907563, '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': '5681155', 'n_tokens_mistral': 198, 'n_tokens_neox': 198, 'n_words': 49}