<commit_before>package main

import (
	"log"
	"net"
)

func main() {
	testNet()
}

func testNet() {
	addrs, _ := net.InterfaceAddrs()
	for _, addr := range addrs {
		log.Println(addr)
	}

	interfaces, _ := net.Interfaces()
	for _, interf := range interfaces {
		log.Println(interf)
	}
}
func init() {
	log.Println("init1")
}
func init() {
	log.Println("init2")
}
<commit_msg>dump request<commit_after>package main

import (
	// "bufio"
	"fmt"
	"log"
	"net"
	"net/http"
	"net/http/httputil"
	// "strings"
)

func main() {
	//testNet()
	testDumpRequest()
}

func testNet() {
	addrs, _ := net.InterfaceAddrs()
	for _, addr := range addrs {
		log.Println(addr)
	}

	interfaces, _ := net.Interfaces()
	for _, interf := range interfaces {
		log.Println(interf)
	}
}
func testDumpRequest() {
	// s := "POST /v2/api/?login HTTP/1.1\r\nHost: www.baidu.com\r\nConnection: keep-alive\r\nContent-Length: 21\r\nUser-Agent: Mozilla/5.0 (Windows NT 5.1)\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nkey1=name1&key2=name2"
	// req, err := http.ReadRequest(bufio.NewReader(strings.NewReader(s)))
	// if err != nil {
	// 	fmt.Println(err)
	// 	return
	// }
	req, _ := http.NewRequest("GET", "http://www.baidu.com", nil)
	req.ContentLength = 100
	// defer req.Body.Close()
	dump, err := httputil.DumpRequestOut(req, true)
	fmt.Println(string(dump))
	if err != nil {
		fmt.Println(err)
		return
	}
}
func init() {
	log.Println("init1")
}
func init() {
	log.Println("init2")
}

{'fraction_non_alphanumeric': 0.18856364874063988, 'fraction_numerical': 0.013614703880190605, 'mean_word_length': 3.59375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '2685996', 'n_tokens_mistral': 640, 'n_tokens_neox': 620, 'n_words': 107}