<commit_before>package network

import (
	"math/rand"
	"net"
)

//simulate network conditions for testing by randomizing send
type ConnMonkey struct {
	BitXConnecter
	LossChance float32
}

func (m *ConnMonkey) Send(p *Packet, addr *net.UDPAddr) {
	if rand.Float32() < m.LossChance {
		log.Printf("Monkey losses Packet:%v\n", p)
		return
	}
	m.BitXConnecter.Send(p, addr)
}
<commit_msg>printing packet was taking to much space<commit_after>package network

import (
	"math/rand"
	"net"
)

//simulate network conditions for testing by randomizing send
type ConnMonkey struct {
	BitXConnecter
	LossChance float32
}

func (m *ConnMonkey) Send(p *Packet, addr *net.UDPAddr) {
	if rand.Float32() < m.LossChance {
		log.Printf("Monkey losses a packet\n")
		return
	}
	m.BitXConnecter.Send(p, addr)
}

{'fraction_non_alphanumeric': 0.11223203026481715, 'fraction_numerical': 0.01008827238335435, 'mean_word_length': 4.475862068965517, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4987196', 'n_tokens_mistral': 308, 'n_tokens_neox': 294, 'n_words': 78}