<commit_before>package main

import (
	builder "github.com/modcloth/bob"
	"github.com/modcloth/bob/config"
	"github.com/modcloth/bob/log"
	"github.com/modcloth/bob/parser"
	"github.com/modcloth/bob/version"
)

import (
	"github.com/modcloth/queued-command-runner"
	"github.com/onsi/gocleanup"
	"github.com/wsxiaoys/terminal/color"
)

import (
	"flag"
	"fmt"
	"os"
)

var runtime *config.Runtime
var ver *version.Version
var par *parser.Parser
var logger log.Logger
var runAsWorker = flag.Bool("work", false, "Run as a Goworker")

func main() {
	if len(os.Args) > 1 && os.Args[1] == "-work" {
		runWorker()
	} else {
		allTheThings()
	}

	if builder.WaitForPush {
	WaitForPush:
		for {
			select {
			case <-runner.Done:
				break WaitForPush
			case err := <-runner.Errors:
				fmt.Println(
					color.Sprintf("@{r!}Uh oh, something went wrong while running %q@{|}\n----> %q", err, err.CommandStr),
				)
				gocleanup.Exit(1)
			}
		}
	}

	gocleanup.Exit(0)
}
<commit_msg>[OOPS] had arg order switched in a Sprintf() call<commit_after>package main

import (
	builder "github.com/modcloth/bob"
	"github.com/modcloth/bob/config"
	"github.com/modcloth/bob/log"
	"github.com/modcloth/bob/parser"
	"github.com/modcloth/bob/version"
)

import (
	"github.com/modcloth/queued-command-runner"
	"github.com/onsi/gocleanup"
	"github.com/wsxiaoys/terminal/color"
)

import (
	"flag"
	"fmt"
	"os"
)

var runtime *config.Runtime
var ver *version.Version
var par *parser.Parser
var logger log.Logger
var runAsWorker = flag.Bool("work", false, "Run as a Goworker")

func main() {
	if len(os.Args) > 1 && os.Args[1] == "-work" {
		runWorker()
	} else {
		allTheThings()
	}

	if builder.WaitForPush {
	WaitForPush:
		for {
			select {
			case <-runner.Done:
				break WaitForPush
			case err := <-runner.Errors:
				fmt.Println(
					color.Sprintf("@{r!}Uh oh, something went wrong while running %q@{|}\n----> %q", err.CommandStr, err),
				)
				gocleanup.Exit(1)
			}
		}
	}

	gocleanup.Exit(0)
}

{'fraction_non_alphanumeric': 0.16145307769929365, 'fraction_numerical': 0.004036326942482341, 'mean_word_length': 3.476297968397291, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7100134', 'n_tokens_mistral': 881, 'n_tokens_neox': 786, 'n_words': 154}