<commit_before>package kumoru

import (
	"gopkg.in/ini.v1"
)

type Endpoints struct {
	Application   string
	Authorization string
	Pool          string
}

func LoadEndpoints(filename string, section string) (Endpoints, error) {
	config, err := ini.Load(filename)
	if err != nil {
		return Endpoints{}, err
	}

	iniEndpoints, err := config.GetSection(section)
	if err != nil {
		return Endpoints{
			Application:   "https://application.kumoru.io:5000",
			Authorization: "https://authorization.kumoru.io:5000",
			Pool:          "https://pool.kumoru.io:5000",
		}, nil
	}

	return Endpoints{
		Application:   iniEndpoints.Key("kumoru_application_api").String(),
		Authorization: iniEndpoints.Key("kumoru_authorization_api").String(),
		Pool:          iniEndpoints.Key("kumoru_pool_api").String(),
	}, nil

}<commit_msg>Update production endpoints<commit_after>package kumoru

import (
	"gopkg.in/ini.v1"
)

type Endpoints struct {
	Application   string
	Authorization string
	Pool          string
}

func LoadEndpoints(filename string, section string) (Endpoints, error) {
	config, err := ini.Load(filename)
	if err != nil {
		return Endpoints{}, err
	}

	iniEndpoints, err := config.GetSection(section)
	if err != nil {
		return Endpoints{
			Application:   "https://application.kumoru.io",
			Authorization: "https://authorization.kumoru.io",
			Pool:          "https://pool.kumoru.io",
		}, nil
	}

	return Endpoints{
		Application:   iniEndpoints.Key("kumoru_application_api").String(),
		Authorization: iniEndpoints.Key("kumoru_authorization_api").String(),
		Pool:          iniEndpoints.Key("kumoru_pool_api").String(),
	}, nil

}
{'fraction_non_alphanumeric': 0.13149847094801223, 'fraction_numerical': 0.00856269113149847, 'mean_word_length': 3.972644376899696, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '7015459', 'n_tokens_mistral': 595, 'n_tokens_neox': 539, 'n_words': 108}