<commit_before>package marvel

import (
	"flag"
	"testing"
)

var (
	apiKey = flag.String("pub", "", "Public API key")
	secret = flag.String("priv", "", "Private API secret")
)

func TestRequest(t *testing.T) {
	flag.Parse()

	r, err := Client{
		PublicKey:  *apiKey,
		PrivateKey: *secret,
	}.SingleSeries(2258).Comics(ComicsParams{})
	if err != nil {
		t.Errorf("error: %v", err)
		return
	}
	t.Logf("%+v", r.Data)
	for _, iss := range r.Data.Results {
		t.Logf(iss.Modified.Parse().String())
		t.Logf(iss.Thumbnail.URL(PortraitIncredible))
	}
}<commit_msg>Add test case for getting single entity<commit_after>package marvel

import (
	"flag"
	"testing"
)

var (
	apiKey = flag.String("pub", "", "Public API key")
	secret = flag.String("priv", "", "Private API secret")
)

func TestRequest(t *testing.T) {
	flag.Parse()

	c := Client{
		PublicKey:  *apiKey,
		PrivateKey: *secret,
	}
	r, err := c.SingleSeries(2258).Comics(ComicsParams{})
	if err != nil {
		t.Errorf("error: %v", err)
		return
	}
	t.Logf("%+v", r.Data)
	for _, iss := range r.Data.Results {
		t.Logf("%v %s", *iss.IssueNumber, iss.Modified.Parse().String())
		t.Logf(iss.Thumbnail.URL(PortraitIncredible))
	}
	comic, err := r.Data.Results[0].Get(c)
	if err != nil {
		t.Errorf("error getting: %v", err)
	}
	t.Logf("%+v", comic.Data.Results[0])
}
{'fraction_non_alphanumeric': 0.197869101978691, 'fraction_numerical': 0.0076103500761035, 'mean_word_length': 4.096899224806202, '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': '2587769', 'n_tokens_mistral': 544, 'n_tokens_neox': 522, 'n_words': 108}