<commit_before>package main

import (
	"fmt"
	"os"
)

const (
	Name  = "jsonconsul"
	usage = `
Usage: %s [mode] [options]

Mode:

  watch    Watch for changes in Consul and generate json files.
  export   Export the keys as a nested JSON file.
  import   Import json file into appropriate KV pairs in Consul.
`
)

func showUsage() {

	fmt.Printf(usage, Name)
}

func main() {
	if len(os.Args) < 2 {
		showUsage()
		os.Exit(-1)
	}

	switch os.Args[1] {
	case "watch":
		jsonConfig := &JsonConfig{}
		jsonConfig.RunWatcher()
	case "export":
		jsonConfig := &JsonConfig{}
		jsonConfig.Run()
	case "import":
		jsonImport := &JsonImport{}
		jsonImport.ParseFlags(os.Args[1:])
		jsonImport.Run()
	default:
		showUsage()
	}
}<commit_msg>Moved more variables to jsonExport<commit_after>package main

import (
	"fmt"
	"os"
)

const (
	Name  = "jsonconsul"
	usage = `
Usage: %s [mode] [options]

Mode:

  watch    Watch for changes in Consul and generate json files.
  export   Export the keys as a nested JSON file.
  import   Import json file into appropriate KV pairs in Consul.
`
)

func showUsage() {

	fmt.Printf(usage, Name)
}

func main() {
	if len(os.Args) < 2 {
		showUsage()
		os.Exit(-1)
	}

	switch os.Args[1] {
	case "watch":
		jsonExport := &JsonExport{}
		jsonExport.RunWatcher()
	case "export":
		jsonExport := &JsonExport{}
		jsonExport.Run()
	case "import":
		jsonImport := &JsonImport{}
		jsonImport.ParseFlags(os.Args[1:])
		jsonImport.Run()
	default:
		showUsage()
	}
}
{'fraction_non_alphanumeric': 0.1336934503713707, 'fraction_numerical': 0.0054017555705604325, 'mean_word_length': 3.532110091743119, 'pattern_counts': {'":': 6, '<': 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': '6994349', 'n_tokens_mistral': 573, 'n_tokens_neox': 543, 'n_words': 152}