<commit_before>package sm_yamux

import (
	"io/ioutil"
	"net"
	"time"

	yamux "github.com/hashicorp/yamux"
	smux "github.com/jbenet/go-stream-muxer"
)

// stream implements smux.Stream using a ss.Stream
type stream yamux.Stream

func (s *stream) yamuxStream() *yamux.Stream {
	return (*yamux.Stream)(s)
}

func (s *stream) Read(buf []byte) (int, error) {
	return s.yamuxStream().Read(buf)
}

func (s *stream) Write(buf []byte) (int, error) {
	return s.yamuxStream().Write(buf)
}

func (s *stream) Close() error {
	return s.yamuxStream().Close()
}

// Conn is a connection to a remote peer.<commit_msg>rewrite paths to gx versions<commit_after>package sm_yamux

import (
	"io/ioutil"
	"net"
	"time"

	smux "github.com/jbenet/go-stream-muxer"
	yamux "gx/ipfs/QmT8nkh6VVJ2fWgAshstDkDWssAY1EXBhoraqGDfGeVx9Q/yamux"
)

// stream implements smux.Stream using a ss.Stream
type stream yamux.Stream

func (s *stream) yamuxStream() *yamux.Stream {
	return (*yamux.Stream)(s)
}

func (s *stream) Read(buf []byte) (int, error) {
	return s.yamuxStream().Read(buf)
}

func (s *stream) Write(buf []byte) (int, error) {
	return s.yamuxStream().Write(buf)
}

func (s *stream) Close() error {
	return s.yamuxStream().Close()
}

// Conn is a connection to a remote peer.
{'fraction_non_alphanumeric': 0.15347721822541965, 'fraction_numerical': 0.003996802557953637, 'mean_word_length': 4.467248908296943, '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': '888819', 'n_tokens_mistral': 530, 'n_tokens_neox': 521, 'n_words': 121}