<commit_before>package main

import (
	"log"
	"os"

	"github.com/codegangsta/cli"
	"github.com/nlopes/slack"
	"github.com/vivace-io/evelib/zkill"
	"github.com/vivace-io/gonfig"
	"github.com/vivace-io/zk2s/util"
)

/* zk2s.go
 * Main entrypoint and controller for zk2s
 */

const (
	AppAuthor  = "Nathan \"<NAME>\" Morley"
	AppVersion = "0.3"
)

var config *util.Configuration
var bot *slack.Client

func main() {
	app := cli.NewApp()
	app.Author = AppAuthor
	app.Version = AppVersion
	app.Commands = []cli.Command{
		cli.Command{
			Name:   "start",
			Usage:  "start zk2s application",
			Action: Run,
		},
		cli.Command{
			Name:   "configure",
			Usage:  "configure zk2s application to be run",
			Action: util.RunConfigure,
		},
	}
	app.Run(os.Args)
}

// Run zk2s
func Run(c *cli.Context) {
	log.Printf("%v version %v", c.App.Name, c.App.Version)
	var err error

	// 1 - Load Configuration file
	config = new(util.Configuration)
	config.FileName = util.ConfigFileName
	err = gonfig.Load(config)
	if err != nil {
		log.Fatalf("Unable to read %v with error %v", util.ConfigFileName, err)<commit_msg>Added Zuke as Contributor, refactoring app information<commit_after>package main

import (
	"log"
	"os"

	"github.com/codegangsta/cli"
	"github.com/nlopes/slack"
	"github.com/vivace-io/evelib/zkill"
	"github.com/vivace-io/gonfig"
	"github.com/vivace-io/zk2s/util"
)

/* zk2s.go
 * Main entrypoint and controller for zk2s
 */

const VERSION = "0.3"

var CONTRIBUTORS = []cli.Author{
	cli.Author{
		Name: "Nathan \"<NAME>\" Morley",
	},
	cli.Author{
		Name: "\"Zuke\"",
	},
}

var config *util.Configuration
var bot *slack.Client

func main() {
	app := cli.NewApp()
	app.Authors = CONTRIBUTORS
	app.Version = VERSION
	app.Commands = []cli.Command{
		cli.Command{
			Name:   "start",
			Usage:  "start zk2s application",
			Action: Run,
		},
		cli.Command{
			Name:   "configure",
			Usage:  "configure zk2s application to be run",
			Action: util.RunConfigure,
		},
	}
	app.Run(os.Args)
}

// Run zk2s
func Run(c *cli.Context) {
	log.Printf("%v version %v", c.App.Name, c.App.Version)
	var err error

	// 1 - Load Configuration file
	config = new(util.Configuration)
	config.FileName = util.ConfigFileName
	err = gonfig.Load(config)
	if err != nil {
		log.Fatalf("Unable to read %v with error %v", util.ConfigFileName, err)
{'fraction_non_alphanumeric': 0.15066724063710718, 'fraction_numerical': 0.007748600947051227, 'mean_word_length': 3.503875968992248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7157977', 'n_tokens_mistral': 950, 'n_tokens_neox': 908, 'n_words': 206}