<commit_before>package slack

import (
	"net/url"
)

type AuthService struct {
	api *SlackClient
}

type Auth struct {
	UserId 	 string  `json:"user_id"`
	Username string	 `json:"user"`
	Team 	 string  `json:"team"`
	TeamId 	 string  `json:"team_id"`
	TeamUrl  url.URL
}

func (s *AuthService) Test() (*Auth, error) {

	req, _ := s.api.NewRequest(_GET, "auth.test", nil)

	type AuthResp struct {
		*Auth
		Url string
	}

	auth := new(AuthResp)

	_, err := s.api.Do(req, auth)

	if err != nil {
		return nil, err
	}

	u, _ := url.Parse(auth.Url)
	auth.TeamUrl = *u;

	return auth.Auth, nil
}
<commit_msg>authResp doesn't need embeded ptr for Auth struct.<commit_after>package slack

import (
	"net/url"
)

type AuthService struct {
	api *SlackClient
}

type Auth struct {
	UserId 	 string  `json:"user_id"`
	Username string	 `json:"user"`
	Team 	 string  `json:"team"`
	TeamId 	 string  `json:"team_id"`
	TeamUrl  url.URL
}

func (s *AuthService) Test() (*Auth, error) {

	req, _ := s.api.NewRequest(_GET, "auth.test", nil)

	type authResp struct {
		Auth
		Url string
	}

	auth := new(authResp)

	_, err := s.api.Do(req, auth)

	if err != nil {
		return nil, err
	}

	u, _ := url.Parse(auth.Url)
	auth.TeamUrl = *u;

	return &auth.Auth, nil
}

{'fraction_non_alphanumeric': 0.14641995172968625, 'fraction_numerical': 0.0, 'mean_word_length': 3.395759717314488, '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': '6291597', 'n_tokens_mistral': 515, 'n_tokens_neox': 482, 'n_words': 127}