<commit_before>package tokenverifier

type Token interface {
	GetId() string
	GetName() string
	GetPicture() string
}

type TokenVerifier interface {
	Verify(tokenString string) (Token, error)
}

type VerifierKey int

const (
	GOOGLE VerifierKey = iota
	FACEBOOK
)

var (
	verifiers = map[VerifierKey]TokenVerifier{
		GOOGLE:   &googleTokenVerifier{},
		FACEBOOK: &facebookTokenVerifier{},
	}
)

func GetVerifier(key VerifierKey) TokenVerifier {
	return verifiers[key]
}<commit_msg>return nil when verifier not found<commit_after>package tokenverifier

type Token interface {
	GetId() string
	GetName() string
	GetPicture() string
}

type TokenVerifier interface {
	Verify(tokenString string) (Token, error)
}

type VerifierKey int

const (
	GOOGLE VerifierKey = iota
	FACEBOOK
)

var (
	verifiers = map[VerifierKey]TokenVerifier{
		GOOGLE:   &googleTokenVerifier{},
		FACEBOOK: &facebookTokenVerifier{},
	}
)

func GetVerifier(key VerifierKey) TokenVerifier {
	if v, ok := verifiers[key]; ok {
		return v
	}
	return nil
}
{'fraction_non_alphanumeric': 0.09197651663405088, 'fraction_numerical': 0.0, 'mean_word_length': 5.237804878048781, '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': '6480159', 'n_tokens_mistral': 361, 'n_tokens_neox': 350, 'n_words': 90}