<commit_before># encoding: utf-8

require_relative "../adapter"

module SockJS
  class WelcomeScreen < Adapter
    # Settings.
    self.prefix = nil
    self.method = "GET"

    # Handler.
    def self.handle(env)
      body = "Welcome to SockJS!\n"
      [200, {"Content-Type" => "text/plain", "Content-Length" => body.bytesize.to_s}, [body]]
    end
  end
end<commit_msg>Let's put adapters into a separate module.<commit_after># encoding: utf-8

require_relative "../adapter"

module SockJS
  module Adapters
    class WelcomeScreen < Adapter
      # Settings.
      self.prefix = nil
      self.method = "GET"

      # Handler.
      def self.handle(env)
        body = "Welcome to SockJS!\n"
        [200, {"Content-Type" => "text/plain", "Content-Length" => body.bytesize.to_s}, [body]]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1343101343101343, 'fraction_numerical': 0.009768009768009768, 'mean_word_length': 2.6123348017621146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5434257', 'n_tokens_mistral': 282, 'n_tokens_neox': 268, 'n_words': 70}