<commit_before>package config

import (
	"github.com/jingweno/jqplay/jq"
	"github.com/joeshaw/envdecode"
)

type Config struct {
	Host      string `env:"HOST,default=0.0.0.0"`
	Port      string `env:"PORT,default=3000"`
	AppMode   string `env:"APP_MODE,default=development"`
	AssetHost string `env:"ASSET_HOST"`
	JQVer     string
}

func (c *Config) IsProd() bool {
	return c.AppMode == "production"
}

func Load() (*Config, error) {
	conf := &Config{}
	err := envdecode.Decode(conf)
	if err != nil {
		return nil, err
	}

	conf.JQVer = jq.Version

	return conf, nil
}<commit_msg>Properly set GinMode<commit_after>package config

import (
	"github.com/jingweno/jqplay/jq"
	"github.com/joeshaw/envdecode"
)

type Config struct {
	Host      string `env:"HOST,default=0.0.0.0"`
	Port      string `env:"PORT,default=3000"`
	GinMode   string `env:"GIN_MODE,default=debug"`
	AssetHost string `env:"ASSET_HOST"`
	JQVer     string
}

func (c *Config) IsProd() bool {
	return c.GinMode == "release"
}

func Load() (*Config, error) {
	conf := &Config{}
	err := envdecode.Decode(conf)
	if err != nil {
		return nil, err
	}

	conf.JQVer = jq.Version

	return conf, nil
}
{'fraction_non_alphanumeric': 0.14853195164075994, 'fraction_numerical': 0.013816925734024179, 'mean_word_length': 3.9742489270386265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3574730', 'n_tokens_mistral': 462, 'n_tokens_neox': 443, 'n_words': 100}