<commit_before>package config

import (
	"encoding/json"
	"github.com/aphistic/gomol"
	"io/ioutil"
)

type Configuration struct {
	Category string
	Path     string
}

var Configs []Configuration

func Load() {
	configFile, err := ioutil.ReadFile("config.json")
	if err != nil {
		gomol.Err(err.Error())
		panic(err)
	}

	if err := json.Unmarshal(configFile, &Configs); err != nil {
		gomol.Err(err.Error())
		panic(err)
	}
}<commit_msg>updated config load to log Fatal rather than Error.<commit_after>package config

import (
	"encoding/json"
	"github.com/aphistic/gomol"
	"io/ioutil"
)

type Configuration struct {
	Category string
	Path     string
}

var Configs []Configuration

func Load() {
	configFile, err := ioutil.ReadFile("config.json")
	if err != nil {
		gomol.Err(err.Error())
		panic(err)
	}

	if err := json.Unmarshal(configFile, &Configs); err != nil {
		gomol.Fatal(err.Error())
		panic(err)
	}
}
{'fraction_non_alphanumeric': 0.14364035087719298, 'fraction_numerical': 0.0, 'mean_word_length': 4.016483516483516, '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': '2079330', 'n_tokens_mistral': 347, 'n_tokens_neox': 332, 'n_words': 76}