<commit_before>package main

import (
	"strings"
	"time"

	log "github.com/Sirupsen/logrus"
	"github.com/bshuster-repo/logrus-logstash-hook"
	"github.com/hellofresh/janus/pkg/config"
	tracerfactory "github.com/hellofresh/janus/pkg/opentracing"
	"github.com/hellofresh/janus/pkg/store"
	opentracing "github.com/opentracing/opentracing-go"
)

var (
	err          error
	globalConfig *config.Specification
	storage      store.Store
)

// initializes the global configuration
func init() {
	conf, err := config.Load()
	globalConfig, err = config.Load()
	log.Debug(conf)
	if nil != err {
		log.WithError(err).Panic("Could not parse the environment configurations")
	}
}

// initializes the basic configuration for the log wrapper
func init() {
	level, err := log.ParseLevel(strings.ToLower(globalConfig.LogLevel))
	if err != nil {
		log.WithError(err).Error("Error getting log level")
	}

	log.SetLevel(level)
	log.SetFormatter(&logrus_logstash.LogstashFormatter{
		Type:            "Janus",
		TimestampFormat: time.RFC3339Nano,
	})
}
<commit_msg>Removing unecessary code<commit_after>package main

import (
	"strings"
	"time"

	log "github.com/Sirupsen/logrus"
	"github.com/bshuster-repo/logrus-logstash-hook"
	"github.com/hellofresh/janus/pkg/config"
	tracerfactory "github.com/hellofresh/janus/pkg/opentracing"
	"github.com/hellofresh/janus/pkg/store"
	opentracing "github.com/opentracing/opentracing-go"
)

var (
	err          error
	globalConfig *config.Specification
	storage      store.Store
)

// initializes the global configuration
func init() {
	globalConfig, err = config.Load()
	if nil != err {
		log.WithError(err).Panic("Could not parse the environment configurations")
	}
}

// initializes the basic configuration for the log wrapper
func init() {
	level, err := log.ParseLevel(strings.ToLower(globalConfig.LogLevel))
	if err != nil {
		log.WithError(err).Error("Error getting log level")
	}

	log.SetLevel(level)
	log.SetFormatter(&logrus_logstash.LogstashFormatter{
		Type:            "Janus",
		TimestampFormat: time.RFC3339Nano,
	})
}

{'fraction_non_alphanumeric': 0.12341463414634146, 'fraction_numerical': 0.003902439024390244, 'mean_word_length': 4.258974358974359, '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': '2709536', 'n_tokens_mistral': 732, 'n_tokens_neox': 723, 'n_words': 136}