<commit_before>package auth

import (
	"encoding/base64"
	"errors"
	"net/http"
	"strings"

	"code.google.com/p/go.crypto/bcrypt"
)

var ErrUnparsableHeader = errors.New("cannot parse 'Authorization' header")

type Validator interface {
	IsAuthenticated(*http.Request) bool
}

type NoopValidator struct{}

func (NoopValidator) IsAuthenticated(*http.Request) bool { return true }

type BasicAuthHashedValidator struct {
	Username       string<commit_msg>regenerate fakes; add missing generate comments<commit_after>package auth

import (
	"encoding/base64"
	"errors"
	"net/http"
	"strings"

	"code.google.com/p/go.crypto/bcrypt"
)

var ErrUnparsableHeader = errors.New("cannot parse 'Authorization' header")

//go:generate counterfeiter . Validator
type Validator interface {
	IsAuthenticated(*http.Request) bool
}

type NoopValidator struct{}

func (NoopValidator) IsAuthenticated(*http.Request) bool { return true }

type BasicAuthHashedValidator struct {
	Username       string
{'fraction_non_alphanumeric': 0.1032719836400818, 'fraction_numerical': 0.00408997955010225, 'mean_word_length': 5.316129032258065, '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': '2676540', 'n_tokens_mistral': 317, 'n_tokens_neox': 311, 'n_words': 73}