<commit_before># Built on Rack
require "rack"
require "rack/file"

module Middleman
  module CoreExtensions
    
    # Base helper to manipulate asset paths
    module Request
  
      # Extension registered
      class << self
        # @private
        def registered(app)
          
          # CSSPIE HTC File
          ::Rack::Mime::MIME_TYPES['.htc'] = 'text/x-component'

          # Let's serve all HTML as UTF-8
          ::Rack::Mime::MIME_TYPES['.html'] = 'text/html;charset=utf8'
          ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html;charset=utf8'
          
          app.extend ClassMethods
          app.extend ServerMethods
          
          Middleman.extend CompatibleClassMethods
      
          # Include instance methods<commit_msg>Change the default character encoding to 'utf-8' instead of 'utf8' to please more browsers.<commit_after># Built on Rack
require "rack"
require "rack/file"

module Middleman
  module CoreExtensions
    
    # Base helper to manipulate asset paths
    module Request
  
      # Extension registered
      class << self
        # @private
        def registered(app)
          
          # CSSPIE HTC File
          ::Rack::Mime::MIME_TYPES['.htc'] = 'text/x-component'

          # Let's serve all HTML as UTF-8
          ::Rack::Mime::MIME_TYPES['.html'] = 'text/html; charset=utf-8'
          ::Rack::Mime::MIME_TYPES['.htm'] = 'text/html; charset=utf-8'
          
          app.extend ClassMethods
          app.extend ServerMethods
          
          Middleman.extend CompatibleClassMethods
      
          # Include instance methods
{'fraction_non_alphanumeric': 0.09887359198998748, 'fraction_numerical': 0.0050062578222778474, 'mean_word_length': 2.075, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3954194', 'n_tokens_mistral': 482, 'n_tokens_neox': 462, 'n_words': 116}