<commit_before>package main

import (
	"log"
	"net"
)

func lanDiscovery(addr string) error {

	listen := "192.168.127.12:8888"
	proto := "udp"

	log.Printf("discovery service on %s %s", proto, listen)

	udpAddr, errAddr := net.ResolveUDPAddr(proto, listen)
	if errAddr != nil {
		return errAddr
	}

	conn, errListen := net.ListenMulticastUDP(proto, nil, udpAddr)
	if errAddr != nil {
		return errListen
	}

	buf := make([]byte, 1000)

	go func() {
		for {
			_, src, errRead := conn.ReadFromUDP(buf)
			if errRead != nil {
				log.Printf("read error from %v: %v", src, errRead)
				continue
			}
			_, errWrite := conn.WriteTo([]byte(addr), src)
			if errWrite != nil {<commit_msg>Fix error reporting.<commit_after>package main

import (
	"log"
	"net"
)

func lanDiscovery(addr string) error {

	listen := "192.168.127.12:8888"
	proto := "udp"

	log.Printf("discovery service on %s %s", proto, listen)

	udpAddr, errAddr := net.ResolveUDPAddr(proto, listen)
	if errAddr != nil {
		return errAddr
	}

	conn, errListen := net.ListenMulticastUDP(proto, nil, udpAddr)
	if errListen != nil {
		return errListen
	}

	buf := make([]byte, 1000)

	go func() {
		for {
			_, src, errRead := conn.ReadFromUDP(buf)
			if errRead != nil {
				log.Printf("read error from %v: %v", src, errRead)
				continue
			}
			_, errWrite := conn.WriteTo([]byte(addr), src)
			if errWrite != nil {
{'fraction_non_alphanumeric': 0.14930808448652585, 'fraction_numerical': 0.027676620538965767, 'mean_word_length': 3.58, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4958265', 'n_tokens_mistral': 585, 'n_tokens_neox': 512, 'n_words': 132}