<commit_before>package main

import (
	"flag"
	"fmt"
	"io/ioutil"
	"net"
	"strings"
)

func whois(dom, server string) string {
	conn, err := net.Dial("tcp", server+":43")
	if err != nil {
		fmt.Println("Error")
	}
	conn.Write([]byte(dom + "\r\n"))
	buf := make([]byte, 1024)
	res := []byte{}
	for {
		numbytes, err := conn.Read(buf)
		sbuf := buf[0:numbytes]
		res = append(res, sbuf...)
		if err != nil {
			break
		}
	}
	conn.Close()
	return string(res)
}
<commit_msg>added reference for the whois function<commit_after>package main

import (
	"flag"
	"fmt"
	"io/ioutil"
	"net"
	"strings"
)

//source: 
//https://groups.google.com/forum/#!msg/golang-nuts/Wg_5BuaJruk/tqBXZLlCOjAJ
func whois(dom, server string) string {
	conn, err := net.Dial("tcp", server+":43")
	if err != nil {
		fmt.Println("Error")
	}
	conn.Write([]byte(dom + "\r\n"))
	buf := make([]byte, 1024)
	res := []byte{}
	for {
		numbytes, err := conn.Read(buf)
		sbuf := buf[0:numbytes]
		res = append(res, sbuf...)
		if err != nil {
			break
		}
	}
	conn.Close()
	return string(res)
}

{'fraction_non_alphanumeric': 0.201329534662868, 'fraction_numerical': 0.014245014245014245, 'mean_word_length': 3.4851063829787234, 'pattern_counts': {'":': 2, '<': 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': '3573120', 'n_tokens_mistral': 480, 'n_tokens_neox': 447, 'n_words': 95}