<commit_before>require 'rack'
require_relative '../mock_backend/server'

class BootupServerCommand

  def initialize host, port
    @host = host
    @port = port
  end

  def execute

    @thread = Thread.new {
      Rack::Server.start app: GitHubMockBackend::Server, Host: @host, Port: @port
    }

  end

  def close
    @thread.exit
  end
end
<commit_msg>Got the boot up server command to simply call rackup. This, for some reason, gets rid of an annoying extra log trace in the terminal per request.<commit_after>require_relative 'non_blocking_command'

class BootupServerCommand < NonBlockingCommand

  def initialize host, port
    @cmd = "rackup features/support/mock_backend/config.ru -o #{host} -p #{port}"
  end
end

{'fraction_non_alphanumeric': 0.08539944903581267, 'fraction_numerical': 0.0, 'mean_word_length': 3.7516339869281046, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7144295', 'n_tokens_mistral': 226, 'n_tokens_neox': 215, 'n_words': 76}