<commit_before>package common

const (
	OpGet = iota
	OpSet
	OpDel
	OpLst
)

var opNames map[byte]string

func init() {
	opNames = make(map[byte]string, 0)
	opNames[OpGet] = "GET"
	opNames[OpSet] = "SET"
	opNames[OpDel] = "DEL"
	opNames[OpLst] = "LST"
}

type Operation struct {
	OpCode byte
	Key    []byte
	Val    []byte
	WID    int // ID of the handling worker
}

func (op *Operation) Name() string {
	return opNames[op.OpCode]
}

type Request struct {
	Op   *Operation
	Resp chan *Response
}

func (req *Request) OpName() string {
	return req.Op.Name()
}

type Response struct {
	Body []byte
}
<commit_msg>Add field in Response indicating presence of key in store.<commit_after>package common

const (
	OpGet = iota
	OpSet
	OpDel
	OpLst
)

var opNames map[byte]string

func init() {
	opNames = make(map[byte]string, 0)
	opNames[OpGet] = "GET"
	opNames[OpSet] = "SET"
	opNames[OpDel] = "DEL"
	opNames[OpLst] = "LST"
}

type Operation struct {
	OpCode byte
	Key    []byte
	Val    []byte
	WID    int // ID of the handling worker
}

func (op *Operation) Name() string {
	return opNames[op.OpCode]
}

type Request struct {
	Op   *Operation
	Resp chan *Response
}

func (req *Request) OpName() string {
	return req.Op.Name()
}

type Response struct {
	KeyOK  bool
	Body   []byte
	ErrMsg string
}

{'fraction_non_alphanumeric': 0.11678267594740913, 'fraction_numerical': 0.0015467904098994587, 'mean_word_length': 3.6214285714285714, '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': '6292405', 'n_tokens_mistral': 506, 'n_tokens_neox': 499, 'n_words': 147}