<commit_before>module ControllerHelpers
  private def html(body : String)
    @response.set(200, body)
    @response.header("Content-Type", "text/html")
  end

  private def text(body : String)
    @response.set(200, body)
    @response.header("Content-Type", "text/plain")
  end

  private def json(body : String)
    @response.set(200, body)
    @response.header("Content-Type", "application/json")
  end

  private def redirect_to(location : String)
    @response.header "Location", location
    @response.status = 303
  end<commit_msg>Add status to controller helpers<commit_after>module ControllerHelpers
  private def html(body : String, status=200)
    @response.set(status, body)
    @response.header("Content-Type", "text/html")
  end

  private def text(body : String, status=200)
    @response.set(status, body)
    @response.header("Content-Type", "text/plain")
  end

  private def json(body : String, status=200)
    @response.set(status, body)
    @response.header("Content-Type", "application/json")
  end

  private def redirect_to(location : String)
    @response.header "Location", location
    @response.status = 303
  end
{'fraction_non_alphanumeric': 0.1295971978984238, 'fraction_numerical': 0.021015761821366025, 'mean_word_length': 4.102678571428571, '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': '2967894', 'n_tokens_mistral': 370, 'n_tokens_neox': 347, 'n_words': 84}