<commit_before>package commands

import (
	"fmt"
	"github.com/spf13/cobra"
	"os"
	"strconv"
	"time"
)

var runCmd = &cobra.Command{
	Use:   "run",
	Short: "Run a binary.",
	Long:  `run starts a binary if there's an actually new Consul event.`,
	Run:   startRun,
}

func startRun(cmd *cobra.Command, args []string) {
	start := time.Now()
	var oldEvent int64
	checkFlags()

	if Exec != "" {
		stdin := readStdin()
		if stdin != "" {
			EventName, lTime := decodeStdin(stdin)
			lTimeString := strconv.FormatInt(int64(lTime), 10)
			ConsulKey := createKey(EventName)

			c, _ := Connect()<commit_msg>Let's start the timer once we know we have all the right flags.<commit_after>package commands

import (
	"fmt"
	"github.com/spf13/cobra"
	"os"
	"strconv"
	"time"
)

var runCmd = &cobra.Command{
	Use:   "run",
	Short: "Run a binary.",
	Long:  `run starts a binary if there's an actually new Consul event.`,
	Run:   startRun,
}

func startRun(cmd *cobra.Command, args []string) {
	var oldEvent int64
	checkFlags()
	start := time.Now()

	if Exec != "" {
		stdin := readStdin()
		if stdin != "" {
			EventName, lTime := decodeStdin(stdin)
			lTimeString := strconv.FormatInt(int64(lTime), 10)
			ConsulKey := createKey(EventName)

			c, _ := Connect()
{'fraction_non_alphanumeric': 0.14790996784565916, 'fraction_numerical': 0.012861736334405145, 'mean_word_length': 3.7884615384615383, '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': '5851420', 'n_tokens_mistral': 515, 'n_tokens_neox': 475, 'n_words': 127}