<commit_before>require 'socket'
require 'uri'
require 'pry-debugger'
require 'fileutils'

class Knod
  extend Forwardable
  def_delegators :@request, :response_header, :request_line

  attr_reader :server, :port, :socket, :request

  DEFAULT_PORT = 4444

  def initialize(options = {})
    @port = options[:port] || DEFAULT_PORT
    @server = TCPServer.new('localhost', @port)
  end

  def start
    STDERR.puts "Starting server on port #{port}"
    loop do
      @socket = server.accept<commit_msg>[BUG] correct delegation error<commit_after>require 'socket'
require 'uri'
require 'pry-debugger'
require 'fileutils'

class Knod
  extend Forwardable
  def_delegators :@request, :request_line

  attr_reader :server, :port, :socket, :request

  DEFAULT_PORT = 4444

  def initialize(options = {})
    @port = options[:port] || DEFAULT_PORT
    @server = TCPServer.new('localhost', @port)
  end

  def start
    STDERR.puts "Starting server on port #{port}"
    loop do
      @socket = server.accept
{'fraction_non_alphanumeric': 0.1123370110330993, 'fraction_numerical': 0.00802407221664995, 'mean_word_length': 4.170984455958549, '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': '384300', 'n_tokens_mistral': 332, 'n_tokens_neox': 315, 'n_words': 89}