<commit_before>package helpers

import (
	"errors"
	"fmt"
	"os/exec"
	"time"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/onsi/gomega/gbytes"
	"github.com/onsi/gomega/gexec"
)

func FlyLogin(atcURL, concourseAlias, flyBinaryPath string, loginInfo LoginInformation) error {
	switch {
	case loginInfo.NoAuth:
		return flyLogin(flyBinaryPath, []string{
			"-c", atcURL,
			"-t", concourseAlias,
			"-n", "main",
		})
	case loginInfo.BasicAuthCreds.Username != "":
		return flyLogin(flyBinaryPath, []string{
			"-c", atcURL,
			"-t", concourseAlias,
			"-u", loginInfo.BasicAuthCreds.Username,
			"-p", loginInfo.BasicAuthCreds.Password,
			"-n", "main",
		})
	case loginInfo.OauthToken != "":
		return flyLoginOauth(flyBinaryPath, atcURL, loginInfo.OauthToken, []string{
			"-c", atcURL,
			"-t", concourseAlias,
			"-n", "main",
		})
	}

	return errors.New("Unable to determine authentication")
}
<commit_msg>--team-name still defaults to main<commit_after>package helpers

import (
	"errors"
	"fmt"
	"os/exec"
	"time"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/onsi/gomega/gbytes"
	"github.com/onsi/gomega/gexec"
)

func FlyLogin(atcURL, concourseAlias, flyBinaryPath string, loginInfo LoginInformation) error {
	switch {
	case loginInfo.NoAuth:
		return flyLogin(flyBinaryPath, []string{
			"-c", atcURL,
			"-t", concourseAlias,
		})
	case loginInfo.BasicAuthCreds.Username != "":
		return flyLogin(flyBinaryPath, []string{
			"-c", atcURL,
			"-t", concourseAlias,
			"-u", loginInfo.BasicAuthCreds.Username,
			"-p", loginInfo.BasicAuthCreds.Password,
		})
	case loginInfo.OauthToken != "":
		return flyLoginOauth(flyBinaryPath, atcURL, loginInfo.OauthToken, []string{
			"-c", atcURL,
			"-t", concourseAlias,
		})
	}

	return errors.New("Unable to determine authentication")
}

{'fraction_non_alphanumeric': 0.16030534351145037, 'fraction_numerical': 0.0, 'mean_word_length': 4.242857142857143, 'pattern_counts': {'":': 4, '<': 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': '6159774', 'n_tokens_mistral': 763, 'n_tokens_neox': 689, 'n_words': 126}