<commit_before>package commands

import (
	"log"
	"strings"
	"time"

	"github.com/benfb/vin/api"
	"github.com/benfb/vin/util"
	"github.com/urfave/cli"
)

// ResultsCmd is the command run by `vin results`
func ResultsCmd(date, team, without string) error {
	go util.Spinner()

	if !util.ContainsString(api.Teams, strings.Title(team)) && team != "all" {
		return cli.NewExitError("Error! \""+team+"\" is not a valid team.", 1)
	}
	timeFmtStr := "1/_2/06"
	if date == "today" {
		date = time.Now().Format(timeFmtStr)
	}
	parsedTime, timeErr := time.Parse(timeFmtStr, date)
	if timeErr != nil {
		return cli.NewExitError("Error! \""+date+"\" is not a valid date.", 1)
	}
	list := api.FetchGames(parsedTime)
	for _, g := range list {
		if !g.FindTeam(strings.Title(without)) && (g.FindTeam(strings.Title(team)) || team == "all") {
			w := without
			a := g.FindTeam(strings.Title(without))
			b := !g.FindTeam(strings.Title(without)) && (g.FindTeam(strings.Title(team)) || team == "all")
			log.Println("w: " + w)
			log.Printf("a: %t\n", a)
			log.Printf("b: %t\n", b)
			g.PrintBoxScoreTable()
			g.PrintProbablePitchers()
		}
	}

	return nil
}<commit_msg>remove results debugging<commit_after>package commands

import (
	"strings"
	"time"

	"github.com/benfb/vin/api"
	"github.com/benfb/vin/util"
	"github.com/urfave/cli"
)

// ResultsCmd is the command run by `vin results`
func ResultsCmd(date, team, without string) error {
	go util.Spinner()

	if !util.ContainsString(api.Teams, strings.Title(team)) && team != "all" {
		return cli.NewExitError("Error! \""+team+"\" is not a valid team.", 1)
	}
	timeFmtStr := "1/_2/06"
	if date == "today" {
		date = time.Now().Format(timeFmtStr)
	}
	parsedTime, timeErr := time.Parse(timeFmtStr, date)
	if timeErr != nil {
		return cli.NewExitError("Error! \""+date+"\" is not a valid date.", 1)
	}
	list := api.FetchGames(parsedTime)
	for _, g := range list {
		if !g.FindTeam(strings.Title(without)) && (g.FindTeam(strings.Title(team)) || team == "all") {
			g.PrintBoxScoreTable()
			g.PrintProbablePitchers()
		}
	}

	return nil
}
{'fraction_non_alphanumeric': 0.1834862385321101, 'fraction_numerical': 0.005794302269435055, 'mean_word_length': 3.968824940047962, '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': '5857864', 'n_tokens_mistral': 843, 'n_tokens_neox': 800, 'n_words': 172}