<commit_before>package peer

import (
	"errors"
	"github.com/davyxu/cellnet"
)

// 手动投递消息， 兼容v2的设计
type MessagePoster interface {

	// 投递一个消息到Hooker之前
	PostEvent(ev cellnet.Event)
}

type CoreProcBundle struct {
	transmit cellnet.MessageTransmitter
	hooker   cellnet.EventHooker
	callback cellnet.EventCallback
}

func (self *CoreProcBundle) GetBundle() *CoreProcBundle {
	return self
}

func (self *CoreProcBundle) SetTransmitter(v cellnet.MessageTransmitter) {
	self.transmit = v
}

func (self *CoreProcBundle) SetHooker(v cellnet.EventHooker) {
	self.hooker = v
}

func (self *CoreProcBundle) SetCallback(v cellnet.EventCallback) {
	self.callback = v
}
<commit_msg>udp错误<commit_after>package peer

import (
	"errors"
	"github.com/davyxu/cellnet"
)

// 手动投递消息， 兼容v2的设计
type MessagePoster interface {

	// 投递一个消息到Hooker之前
	ProcEvent(ev cellnet.Event)
}

type CoreProcBundle struct {
	transmit cellnet.MessageTransmitter
	hooker   cellnet.EventHooker
	callback cellnet.EventCallback
}

func (self *CoreProcBundle) GetBundle() *CoreProcBundle {
	return self
}

func (self *CoreProcBundle) SetTransmitter(v cellnet.MessageTransmitter) {
	self.transmit = v
}

func (self *CoreProcBundle) SetHooker(v cellnet.EventHooker) {
	self.hooker = v
}

func (self *CoreProcBundle) SetCallback(v cellnet.EventCallback) {
	self.callback = v
}

{'fraction_non_alphanumeric': 0.09789156626506024, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 5.181395348837209, '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': '1955802', 'n_tokens_mistral': 510, 'n_tokens_neox': 517, 'n_words': 100}