<commit_before>package jsonrpc

import "github.com/nbusy/neptulon"

// Sender is a JSON-RPC request sending middleware. This should be registered before any incoming request routers.
type Sender struct {
	routes map[string]func(conn *neptulon.Conn, session *neptulon.Session, msg *Message)
}

func (s *Sender) middleware(conn *neptulon.Conn, session *neptulon.Session, msg *Message) {
	s.routes[msg.Method](conn, session, msg)
}<commit_msg>change note on sender<commit_after>package jsonrpc

import "github.com/nbusy/neptulon"

// Sender is a JSON-RPC request/notification sending middleware.
type Sender struct {
	routes map[string]func(conn *neptulon.Conn, msg *Message)
}

func (s *Sender) middleware(conn *neptulon.Conn, msg *Message) {
	s.routes[msg.Method](conn, msg)
}
{'fraction_non_alphanumeric': 0.11483870967741935, 'fraction_numerical': 0.0, 'mean_word_length': 5.576271186440678, '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': '184774', 'n_tokens_mistral': 265, 'n_tokens_neox': 267, 'n_words': 73}