<commit_before>package main

import "./cmd"

var commands map[string]*cmd.Command

func init() {
	initCommands()
}

func initCommands() {
	initCommandGgb()
}

func initCommandGgb() {
	cmd := cmd.NewCommand("ggb",
		"ggb [cmd]",
		"builds a go project with git submodule dependencies management",
		`ggb builds, 
while ggb deps offers dependency management as git submodules`,
		nil)
	commands["ggb"] = cmd
}
<commit_msg>cmds.go: defines cmdggb, with global flags<commit_after>package main

import "./cmd"

var debug bool
var verbose bool
var help bool
var version bool

func init() {
	initCommands()
}

func initCommands() {
	initCommandGgb()
}

func initCommandGgb() {
	cmdggb := cmd.NewCommand("ggb",
		"ggb [cmd]",
		"builds a go project with git submodule dependencies management",
		`ggb builds, 
while ggb deps offers dependency management as git submodules`,
		build, nil)

	gfs := cmdggb.GFS()
	gfs.BoolVarP(&help, "help", "h", false, "ggb usage")
	gfs.BoolVarP(&verbose, "verbose", "v", false, `display a verbose output
		not suited for batch usage`)
	gfs.BoolVarP(&debug, "debug", "d", false, "output debug informations (not for batch usage)")
	gfs.BoolVarP(&version, "version", "V", false, "display ggb version")
}

{'fraction_non_alphanumeric': 0.13213703099510604, 'fraction_numerical': 0.0, 'mean_word_length': 4.8708133971291865, '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': '3880021', 'n_tokens_mistral': 426, 'n_tokens_neox': 417, 'n_words': 136}