<commit_before>package mirango

import (
	"net/http"

	"github.com/wlMalk/mirango/framework"
)

type Context struct {
	framework.LogWriter
	*Response
	*Request
	operation *Operation
	ended     bool
}

func NewContext(res *Response, req *Request) *Context {
	return &Context{
		Response: res,
		Request:  req,
	}
}

func (c *Context) Operation() framework.Operation {
	return c.operation
}

func (c *Context) Header() http.Header {
	return c.Response.Header()
}

func (c *Context) End() {
	c.ended = true
}<commit_msg>Added values to Context struct<commit_after>package mirango

import (
	"net/http"

	"github.com/wlMalk/mirango/framework"
)

type Context struct {
	framework.LogWriter
	*Response
	*Request
	operation *Operation
	values    framework.Values
	ended     bool
}

func NewContext(res *Response, req *Request) *Context {
	return &Context{
		Response: res,
		Request:  req,
		values:   framework.Values{},
	}
}

func (c *Context) Operation() framework.Operation {
	return c.operation
}

func (c *Context) Values() framework.Values {
	return c.values
}

func (c *Context) SetValue(k interface{}, v interface{}) {
	c.values.Set(k, v)
}

func (c *Context) GetValue(k interface{}) framework.Value {
	return c.values.Get(k)
}

func (c *Context) Value(k interface{}) interface{} {
	return c.values[k]
}

func (c *Context) Header() http.Header {
	return c.Response.Header()
}

func (c *Context) End() {
	c.ended = true
}
{'fraction_non_alphanumeric': 0.13361462728551335, 'fraction_numerical': 0.0, 'mean_word_length': 4.174545454545455, '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': '4753235', 'n_tokens_mistral': 501, 'n_tokens_neox': 491, 'n_words': 134}