<commit_before>package main

import (
	"flag"
	"fmt"
	"log"
	"os"
	"os/signal"
	"syscall"
)

const VERSION = "0.1.0"

func handleSignals() {
	ch := make(chan os.Signal, 1)
	signal.Notify(ch, syscall.SIGHUP) // Add syscalls as needed

	// Handle any cleanup
	select {
	case <-ch:
		log.Printf("[INFO] Got a SIGHUP, cleaning up.")
		// Do cleanup here
	}
}

func init() {
	version := flag.Bool("v", false, "prints current project version")

	flag.Usage = func() {
		fmt.Printf("Usage %s [OPTIONS] [name ...]\n", os.Args[0])
		flag.PrintDefaults()
	}

	flag.Parse()

	if *version {
		fmt.Println(VERSION)
		os.Exit(0)
	}
}

func main() {
	go handleSignals()

	log.Println("[INFO] Starting project")
}<commit_msg>Add config<commit_after>package main

import (
	"flag"
	"fmt"
	"log"
	"os"
	"os/signal"
	"syscall"
)

const VERSION = "0.1.0"

var Config string

func handleSignals() {
	ch := make(chan os.Signal, 1)
	signal.Notify(ch, syscall.SIGHUP) // Add syscalls as needed

	// Handle any cleanup
	select {
	case <-ch:
		log.Printf("[INFO] Got a SIGHUP, cleaning up.")
		// Do cleanup here
	}
}

func init() {
	config := flag.String("config", "config.ini", "path to config file")
	version := flag.Bool("v", false, "prints current project version")

	flag.Usage = func() {
		fmt.Printf("Usage %s [OPTIONS] [name ...]\n", os.Args[0])
		flag.PrintDefaults()
	}

	flag.Parse()

	if *version {
		fmt.Println(VERSION)
		os.Exit(0)
	}

	// Instead parse and store as global config object
	Config = *config
}

func main() {
	go handleSignals()

	log.Println("[INFO] Starting project")

	log.Printf("[INFO] Using config file: %s", Config)
}
{'fraction_non_alphanumeric': 0.17076167076167076, 'fraction_numerical': 0.007371007371007371, 'mean_word_length': 3.512465373961219, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1279353', 'n_tokens_mistral': 652, 'n_tokens_neox': 622, 'n_words': 165}