<commit_before>package controllers

import (
	"io/ioutil"
	"net/http"
	"os"
	"path"
	"strings"

	"github.com/astaxie/beego"
	"github.com/beego/website/models"
)

type BaseController struct {
	beego.Controller
	Lang string

	// static file cache support
	cacheFile   string
	cacheEnable bool
	cacheBody   []byte
}

func (bc *BaseController) Prepare() {
	if bc.Lang = bc.Ctx.GetCookie("lang"); bc.Lang == "" {
		bc.Lang = "en-Us"<commit_msg>fix en-Us to en-US<commit_after>package controllers

import (
	"io/ioutil"
	"net/http"
	"os"
	"path"
	"strings"

	"github.com/astaxie/beego"
	"github.com/beego/website/models"
)

type BaseController struct {
	beego.Controller
	Lang string

	// static file cache support
	cacheFile   string
	cacheEnable bool
	cacheBody   []byte
}

func (bc *BaseController) Prepare() {
	if bc.Lang = bc.Ctx.GetCookie("lang"); bc.Lang == "" {
		bc.Lang = "en-US"
{'fraction_non_alphanumeric': 0.1404303510758777, 'fraction_numerical': 0.0, 'mean_word_length': 3.8043478260869565, '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': '7348403', 'n_tokens_mistral': 348, 'n_tokens_neox': 339, 'n_words': 74}