<commit_before>/*

// also need TCPChan server

// similar API to TCPConn setup

func (c *TCPChan) Connect {
...
}

// communication with byte arrays which higher abstraction
// can then encode/decode from/onto

// HTTP wrapper?

*/

/*
  TODO: Also try implementing RPC nameserver (service discovery) proto
*/

package tcpchan

import (
  "net"
  _ "fmt"
)

type TCPChan struct {
  In  chan []byte
  Out chan []byte
  Err chan error
  Conn net.Conn
}

func (ch *TCPChan) Dial(addr string) error {

  ch.In = make(chan []byte, 100)
  ch.Out = make(chan []byte, 100)
  ch.Err = make(chan error, 100)
  conn, err := net.Dial("tcp", addr)
  if err != nil {
    return err<commit_msg>clean up and remove unused code and comments<commit_after>// also need TCPChan server

package tcpchan

import (
  "net"
)

type TCPChan struct {
  In  chan []byte
  Out chan []byte
  Err chan error
  Conn net.Conn
}

func (ch *TCPChan) Dial(addr string) error {

  ch.In = make(chan []byte, 100)
  ch.Out = make(chan []byte, 100)
  ch.Err = make(chan error, 100)
  conn, err := net.Dial("tcp", addr)
  if err != nil {
    return err
{'fraction_non_alphanumeric': 0.12398921832884097, 'fraction_numerical': 0.016172506738544475, 'mean_word_length': 3.065693430656934, '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': '2422867', 'n_tokens_mistral': 423, 'n_tokens_neox': 385, 'n_words': 138}