<commit_before>package api

import (
	. "gopkg.in/check.v1"
)

type ClientTests struct {
}

var _ = Suite(&ClientTests{})

func (t *ClientTests) TestClientCreation(c *C) {
	client := NewClient("http://localhost:6543/", "", func(_ string) bool {
		return true
	})
	c.Assert(client, NotNil)
}<commit_msg>api: added test to check the netlocToURL function in the client.go file.<commit_after>package api

import (
	. "gopkg.in/check.v1"
)

type ClientTests struct {
}

var _ = Suite(&ClientTests{})

func (t *ClientTests) TestClientCreation(c *C) {
	client := NewClient("http://localhost:6543/", "", func(_ string) bool {
		return true
	})
	c.Assert(client, NotNil)
}

func (t *ClientTests) TestNetlocToUrl(c *C) {
	testRepository := "https://example.org:80/repositories/testRepository"
	c.Assert(NetlocToURL("example.org:80", "testRepository"), Equals, testRepository)
}
{'fraction_non_alphanumeric': 0.1568627450980392, 'fraction_numerical': 0.016147635524798153, 'mean_word_length': 5.027777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7512892', 'n_tokens_mistral': 316, 'n_tokens_neox': 305, 'n_words': 68}