<commit_before>package results

import v "github.com/zaiuz/views"
import z "github.com/zaiuz/zaiuz"

// Vanilla mixin for convenience to add to your controller to get simpler access to result
// building methods.
type Controller struct{}

func (c *Controller) Func(render func(c *z.Context) error) z.Result {
	return Func(render)
}

func (c *Controller) Dud() z.Result {
	return Dud()
}

func (c *Controller) Http(code int, header string, values ...string) z.Result {
	return Http(code, header, values...)
}

func (c *Controller) Json(code int, object interface{}) z.Result {
	return Json(code, object)
}

func (c *Controller) Redirect(permanent bool, url string) z.Result {
	return Redirect(permanent, url)
}

func (c *Controller) String(code int, str string) z.Result {
	return String(code, str)
}

func (c *Controller) View(view v.View, data interface{}) z.Result {
	return View(view, data)
}<commit_msg>Update controller mixin.<commit_after>package results

import v "github.com/zaiuz/views"
import z "github.com/zaiuz/zaiuz"

// Vanilla mixin for convenience to add to your controller to get simpler access to result
// building methods.
type Controller struct{}

func (c *Controller) Func(render func(c *z.Context) error) z.Result {
	return Func(render)
}

func (c *Controller) Dud() z.Result {
	return Dud()
}

func (c *Controller) Http(code int, header string, values ...string) z.Result {
	return Http(code, header, values...)
}

func (c *Controller) Json(code int, object interface{}) z.Result {
	return Json(code, object)
}

func (c *Controller) Redirect(permanent bool, url string, args ...interface{}) z.Result {
	return Redirect(permanent, url, args...)
}

func (c *Controller) String(code int, str string) z.Result {
	return String(code, str)
}

func (c *Controller) View(view v.View, data interface{}) z.Result {
	return View(view, data)
}
{'fraction_non_alphanumeric': 0.1320754716981132, 'fraction_numerical': 0.0, 'mean_word_length': 4.573573573573573, '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': '2915918', 'n_tokens_mistral': 608, 'n_tokens_neox': 602, 'n_words': 211}