<commit_before>package config

import (
	"fmt"
    "log"
    "io/ioutil"
    "encoding/json"
    
)

// Configuration ...
type Configuration struct {
    Foo     string
    ConnectionString    string
    ApiKey string
}

// LoadConfig ...
func LoadConfig() Configuration{
    file, err := ioutil.ReadFile("config.json")
    
    if err != nil {
		log.Fatal("Config File Missing. ", err)
	}
    
    var configuration Configuration
    
    err = json.Unmarshal(file, &configuration)<commit_msg>Absolute path for config file<commit_after>package config

import (
	"fmt"
    "log"
    "io/ioutil"
    "encoding/json"
    
)

// Configuration ...
type Configuration struct {
    Foo     string
    ConnectionString    string
    ApiKey string
}

// LoadConfig ...
func LoadConfig() Configuration{
    // TODO: Fix environment variable
    file, err := ioutil.ReadFile("/home/wowutils/go/config.json")
    
    if err != nil {
		log.Fatal("Config File Missing. ", err)
	}
    
    var configuration Configuration
    
    err = json.Unmarshal(file, &configuration)
{'fraction_non_alphanumeric': 0.11226415094339623, 'fraction_numerical': 0.0, 'mean_word_length': 2.513245033112583, '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': '5783754', 'n_tokens_mistral': 329, 'n_tokens_neox': 317, 'n_words': 81}