<commit_before>package standard

import (
	"api/config"
	"github.com/Sirupsen/logrus"
	"github.com/flosch/pongo2"
	"github.com/inpime/dbox"
	"net/url"
	"store"
	"strings"
	"utils"
)

func (Extension) initTplContext() {
	pongo2.DefaultSet.Globals["NewUUID"] = func() *pongo2.Value {
		return pongo2.AsValue(dbox.NewUUID())
	}

	pongo2.DefaultSet.Globals["Config"] = func() *pongo2.Value {
		return pongo2.AsValue(config.Cfgx.Config(addonName).(Settings).Config)
	}
<commit_msg>bugfix config<commit_after>package standard

import (
	"api/config"
	"github.com/Sirupsen/logrus"
	"github.com/flosch/pongo2"
	"github.com/inpime/dbox"
	"net/url"
	"store"
	"strings"
	"utils"
)

func (Extension) initTplContext() {
	pongo2.DefaultSet.Globals["NewUUID"] = func() *pongo2.Value {
		return pongo2.AsValue(dbox.NewUUID())
	}

	pongo2.DefaultSet.Globals["Config"] = func() *pongo2.Value {
		return pongo2.AsValue(config.Cfgx.Config(addonName).(*Settings).Config)
	}

{'fraction_non_alphanumeric': 0.1689401888772298, 'fraction_numerical': 0.014690451206715634, 'mean_word_length': 5.194805194805195, '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': '4900409', 'n_tokens_mistral': 409, 'n_tokens_neox': 406, 'n_words': 49}