<commit_before>package main

import (
	"github.com/deshboard/boilerplate-service/app"
	"github.com/kelseyhightower/envconfig"
	"gopkg.in/airbrake/gobrake.v2"
	logrus_airbrake "gopkg.in/gemnasium/logrus-airbrake-hook.v2"
)

func init() {
	err := envconfig.Process("app", config)
	if err != nil {
		logger.Fatal(err)
	}

	// Initialize Airbrake
	if config.AirbrakeEnabled {
		airbrakeHook := logrus_airbrake.NewHook(config.AirbrakeProjectID, config.AirbrakeAPIKey, config.Environment)
		airbrake := airbrakeHook.Airbrake

		airbrake.SetHost(config.AirbrakeHost)

		airbrake.AddFilter(func(notice *gobrake.Notice) *gobrake.Notice {
			notice.Context["version"] = app.Version
<commit_msg>Add commit hash to errbit<commit_after>package main

import (
	"github.com/deshboard/boilerplate-service/app"
	"github.com/kelseyhightower/envconfig"
	"gopkg.in/airbrake/gobrake.v2"
	logrus_airbrake "gopkg.in/gemnasium/logrus-airbrake-hook.v2"
)

func init() {
	err := envconfig.Process("app", config)
	if err != nil {
		logger.Fatal(err)
	}

	// Initialize Airbrake
	if config.AirbrakeEnabled {
		airbrakeHook := logrus_airbrake.NewHook(config.AirbrakeProjectID, config.AirbrakeAPIKey, config.Environment)
		airbrake := airbrakeHook.Airbrake

		airbrake.SetHost(config.AirbrakeHost)

		airbrake.AddFilter(func(notice *gobrake.Notice) *gobrake.Notice {
			notice.Context["version"] = app.Version
			notice.Context["commit"] = app.CommitHash

{'fraction_non_alphanumeric': 0.1256140350877193, 'fraction_numerical': 0.002807017543859649, 'mean_word_length': 5.22707423580786, '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': '5402860', 'n_tokens_mistral': 575, 'n_tokens_neox': 545, 'n_words': 72}