<commit_before>package main

import (
	"fmt"
	"github.com/golang/glog"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	"os"
)

func main() {
	viper.SetConfigName("config")
	viper.SetConfigType("yaml")

	for _, p := range []string{os.Getenv("ECTL_CONFIG_PATH"), ".", "/etc/ectl", "~/.ectl", "~/.config/ectl"} {
		viper.AddConfigPath(p)
	}

	err := viper.ReadInConfig()
	if err != nil {
		glog.Errorf("Fatal error config file: %s \n", err)
		os.Exit(1)<commit_msg>Load from environment variable the configuration path<commit_after>package main

import (
	"fmt"
	"github.com/golang/glog"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	"os"
)

func main() {
	viper.SetConfigName("config")
	viper.SetConfigType("yaml")

	envConfig := os.Getenv("ECTL_CONFIG_PATH")
	if envConfig != "" {
		viper.AddConfigPath(envConfig)
	}
	for _, p := range []string{".", "/etc/ectl", "~/.ectl", "~/.config/ectl"} {
		viper.AddConfigPath(p)
	}

	err := viper.ReadInConfig()
	if err != nil {
		glog.Errorf("Fatal error config file: %s \n", err)
		os.Exit(1)
{'fraction_non_alphanumeric': 0.19330143540669856, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 4.23, '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': '3892065', 'n_tokens_mistral': 454, 'n_tokens_neox': 426, 'n_words': 76}