<commit_before>package main

import (
	"flag"
	"fmt"
)

func main() {
	configFilePath := flag.String("c", "~/.pandik.json", "Configuration file")
	flag.Parse()

	config, err := parseConfig(configFilePath)
	if err != nil {
		fmt.Println(err)
		return
	}

	monitorChan := make(chan *Monitor, 50)

	var monitors []Monitor
	for _, monitorConf := range config.MonitorConfs {
		monitor, err := NewMonitor(monitorConf)
		if err != nil {
			fmt.Println(err)
			continue
		}

		go monitor.Watch(monitorChan)
		monitors = append(monitors, *monitor)
	}

	var notifiers []Notifier
	notifiers = append(notifiers, notifyViaCLI)
	for _, notifierConf := range config.NotifierConfs {
		notifier, err := newNotifier(notifierConf)
		if err != nil {
			fmt.Println(err)<commit_msg>Replaced tilde in default config file path value.<commit_after>package main

import (
	"flag"
	"fmt"
	"os/user"
	"path"
)

func main() {
	usr, err := user.Current()
	if err != nil {
		fmt.Println(err)
	}

	configFilePath := flag.String("c", path.Join(usr.HomeDir, ".pandik.json"), "Configuration file")
	flag.Parse()

	config, err := parseConfig(configFilePath)
	if err != nil {
		fmt.Println(err)
		return
	}

	monitorChan := make(chan *Monitor, 50)

	var monitors []Monitor
	for _, monitorConf := range config.MonitorConfs {
		monitor, err := NewMonitor(monitorConf)
		if err != nil {
			fmt.Println(err)
			continue
		}

		go monitor.Watch(monitorChan)
		monitors = append(monitors, *monitor)
	}

	var notifiers []Notifier
	notifiers = append(notifiers, notifyViaCLI)
	for _, notifierConf := range config.NotifierConfs {
		notifier, err := newNotifier(notifierConf)
		if err != nil {
			fmt.Println(err)
{'fraction_non_alphanumeric': 0.1331733653269346, 'fraction_numerical': 0.0023995200959808036, 'mean_word_length': 4.132307692307692, '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': '1702274', 'n_tokens_mistral': 631, 'n_tokens_neox': 575, 'n_words': 140}