<commit_before>package bitbucket

import (
	"code.cloudfoundry.org/lager"
	api "github.com/SHyx0rmZ/go-bitbucket/bitbucket"
	"github.com/concourse/atc/auth/verifier"
	"net/http"
)

type UserVerifier struct {
	users  []string
	client api.Client
}

func NewUserVerifier(client api.Client, users []string) verifier.Verifier {
	return UserVerifier{
		users: users,
	}
}

func (verifier UserVerifier) Verify(logger lager.Logger, c *http.Client) (bool, error) {
	currentUser, err := verifier.client.CurrentUser()
	if err != nil {
		logger.Error("failed-to-get-current-user", err)
		return false, err
	}

	for _, user := range verifier.users {
		if user == currentUser {
			return true, nil
		}
	}
<commit_msg>Set HTTP client in UserVerifier<commit_after>package bitbucket

import (
	"code.cloudfoundry.org/lager"
	api "github.com/SHyx0rmZ/go-bitbucket/bitbucket"
	"github.com/concourse/atc/auth/verifier"
	"net/http"
)

type UserVerifier struct {
	users  []string
	client api.Client
}

func NewUserVerifier(client api.Client, users []string) verifier.Verifier {
	return UserVerifier{
		users:  users,
		client: client,
	}
}

func (verifier UserVerifier) Verify(logger lager.Logger, c *http.Client) (bool, error) {
	verifier.client.SetHTTPClient(c)

	currentUser, err := verifier.client.CurrentUser()
	if err != nil {
		logger.Error("failed-to-get-current-user", err)
		return false, err
	}

	for _, user := range verifier.users {
		if user == currentUser {
			return true, nil
		}
	}

{'fraction_non_alphanumeric': 0.12584573748308525, 'fraction_numerical': 0.0013531799729364006, 'mean_word_length': 4.263345195729538, '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': '5876449', 'n_tokens_mistral': 553, 'n_tokens_neox': 534, 'n_words': 117}