<commit_before># The static macros allows you to bind static content to given path.
# You can use this for strings and/or files that will never change in a given
# release
module Orion::DSL::Static
  # Mount a directory of static files.
  #
  # router MyRouter do
  #   static dir: "./public", path: "/"
  # end
  # ```
  macro static(path = "/", *, dir)
    scope {{ path }} do
      use Orion::Handlers::StaticFileHandler.new({{ dir }})
    end
  end

  macro static(*, path, string)
    %str : String = {{string}}
    get {{ path }} do |c|
      c.response.puts %str
    end
  end
end<commit_msg>fix statix string<commit_after># The static macros allows you to bind static content to given path.
# You can use this for strings and/or files that will never change in a given
# release
module Orion::DSL::Static
  # Mount a directory of static files.
  #
  # router MyRouter do
  #   static dir: "./public", path: "/"
  # end
  # ```
  macro static(path = "/", *, dir)
    scope {{ path }} do
      use Orion::Handlers::StaticFileHandler.new({{ dir }})
    end
  end

  macro static(*, path, string)
    %str : String = {{string}}
    get {{ path }}, ->(c : ::HTTP::Server::Context){ c.response.puts %str }
  end
end
{'fraction_non_alphanumeric': 0.13640098603122433, 'fraction_numerical': 0.0, 'mean_word_length': 2.96742671009772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3793053', 'n_tokens_mistral': 386, 'n_tokens_neox': 383, 'n_words': 144}