<commit_before>'use strict'

const BodyStream = require('./body-stream')

exports.handleBodyRequest = (conn) => {
  new BodyStream(1024).pipe(conn)
}
<commit_msg>Send HTTP response on TCP channel<commit_after>'use strict'

const BodyStream = require('./body-stream')

exports.handleBodyRequest = (conn) => {
  const length = 1024 * 1024
  conn.write('HTTP/1.1 200 OK\n')
  conn.write('Content-Type: text/plain\n')
  conn.write('\n')
  new BodyStream(length).pipe(conn)
}

{'fraction_non_alphanumeric': 0.16348195329087048, 'fraction_numerical': 0.036093418259023353, 'mean_word_length': 4.7560975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5872834', 'n_tokens_mistral': 170, 'n_tokens_neox': 156, 'n_words': 33}