<commit_before>package dairugger

import (
	"fmt"

	"net"
	"net/http"

	"os/user"
)

type Client struct {
	client http.Client
}

func NewClient() Client {
	usr, _ := user.Current()

	return Client{
		// There's no obvious way to make this DTRT so we just throw everything
		// they want on the floor and connect to voltron. Fuck you golang.
		http.Client{
			// omfg welcome to randomly adding *'s and &'s until it compiles.
			Transport: &http.Transport{
				Dial: func(network, addr string) (net.Conn, error) {
					sock := fmt.Sprintf("%s/.voltron/sock", usr.HomeDir)
					return net.Dial("unix", sock)
				},
			},
		},
	}
}

func (c *Client) Get() {
	resp, _ := c.client.Get("http://voltron/api/request")
	fmt.Println(resp)
}<commit_msg>Try to explain my crimes to future richo<commit_after>package dairugger

import (
	"fmt"

	"net"
	"net/http"

	"os/user"
)

type Client struct {
	client http.Client
}

func NewClient() Client {
	usr, _ := user.Current()

	return Client{
		// There's no obvious way to make this DTRT so we just throw everything
		// they want on the floor and connect to voltron. Fuck you golang.
		http.Client{
			// omfg welcome to randomly adding *'s and &'s until it compiles.
			Transport: &http.Transport{
				Dial: func(network, addr string) (net.Conn, error) {
					sock := fmt.Sprintf("%s/.voltron/sock", usr.HomeDir)
					return net.Dial("unix", sock)
				},
			},
		},
	}
}

func (c *Client) Get() {
	// Our broken dialer just throws the hostname on the ground, but we'll call
	// it voltron for prettiness reasons
	resp, _ := c.client.Get("http://voltron/api/request")
	fmt.Println(resp)
}
{'fraction_non_alphanumeric': 0.13653136531365315, 'fraction_numerical': 0.0, 'mean_word_length': 3.1717948717948716, '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': '169402', 'n_tokens_mistral': 634, 'n_tokens_neox': 568, 'n_words': 179}