<commit_before>module Startram
  abstract class Controller < HTTP::Handler
    def initialize(@request, @response = Response.new 404)
    end

    macro def call(method_name) : HTTP::Response
      case method_name.to_s
      {% for method in @type.methods %}
        {% if method.args.length == 0 %}
          when {{method.name.stringify}} then {{method.name}}
        {% end %}
      {% end %}
      end

      @response.to_http_response
    end

    def render(body = "", content_type = "text/html")
      @response.body = body
      @response.headers["Content-Type"] ||= content_type
    end
  end
end<commit_msg>Render with status 200<commit_after>module Startram
  abstract class Controller < HTTP::Handler
    def initialize(@request, @response = Response.new 404)
    end

    macro def call(method_name) : HTTP::Response
      case method_name.to_s
      {% for method in @type.methods %}
        {% if method.args.length == 0 %}
          when {{method.name.stringify}} then {{method.name}}
        {% end %}
      {% end %}
      end

      @response.to_http_response
    end

    def render(body = "", content_type = "text/html", status = 200)
      @response.body = body
      @response.status = status
      @response.headers["Content-Type"] ||= content_type
    end
  end
end
{'fraction_non_alphanumeric': 0.12316034082106894, 'fraction_numerical': 0.010844306738962044, 'mean_word_length': 2.559228650137741, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7629311', 'n_tokens_mistral': 406, 'n_tokens_neox': 367, 'n_words': 96}