<commit_before>package libproxy

import (
	"io"
	"net"
	"strings"
)

// Conn defines a network connection
type Conn interface {
	net.Conn
	CloseWrite() error
}

// ProxyStream data between client and backend, until both are at EOF or quit is closed.
func ProxyStream(client, backend Conn, quit <-chan struct{}) error {
	event := make(chan int64)
	var broker = func(to, from Conn) {
		written, err := io.Copy(to, from)
		if err != nil {<commit_msg>go: don't log "error copying: EOF"<commit_after>package libproxy

import (
	"io"
	"net"
	"strings"
)

// Conn defines a network connection
type Conn interface {
	net.Conn
	CloseWrite() error
}

// ProxyStream data between client and backend, until both are at EOF or quit is closed.
func ProxyStream(client, backend Conn, quit <-chan struct{}) error {
	event := make(chan int64)
	var broker = func(to, from Conn) {
		written, err := io.Copy(to, from)
		if err != nil && err != io.EOF {
{'fraction_non_alphanumeric': 0.11802575107296137, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 3.9365079365079363, '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': '5275000', 'n_tokens_mistral': 322, 'n_tokens_neox': 303, 'n_words': 117}