<commit_before>module DateAndTimeFormatting
  
  def self.included(base)
    base.class_eval do
      include DateAndTimeFormatting::InstanceMethods
      include OrdinalizedFormatting
      extend DateAndTimeFormatting::ClassMethods
    end
  end
  
  module InstanceMethods
    
    
    # Format a date/time instance using a defined format
    #
    # ==== Parameters
    # format<Symbol>:: of the format key from Date.date_formats
    #
    # ==== Returns
    # String:: formattred string
    #
    # ==== Example
    #   Time.now.formatted(:rfc822) # => "Sun, 16 Nov 2007 00:21:16 -0800"
    #   Time.now.formatted(:db) # => "2008-11-16 00:22:09"
    #
    # You can also add your own formats using +Date.add_format+
    #
    #   Date.add_format(:matt, "%H:%M:%S %Y-%m-%d")
    #   Time.now.formatted(:matt) # => "00:00:00 2007-11-02"
    # 
    #--
    # @public
    def formatted(format = :default)
      self.strftime(Date.formats[format])
    end
  <commit_msg>fixed a typo in the documentation<commit_after>module DateAndTimeFormatting
  
  def self.included(base)
    base.class_eval do
      include DateAndTimeFormatting::InstanceMethods
      include OrdinalizedFormatting
      extend DateAndTimeFormatting::ClassMethods
    end
  end
  
  module InstanceMethods
    
    
    # Format a date/time instance using a defined format
    #
    # ==== Parameters
    # format<Symbol>:: of the format key from Date.date_formats
    #
    # ==== Returns
    # String:: formatted string
    #
    # ==== Example
    #   Time.now.formatted(:rfc822) # => "Sun, 16 Nov 2007 00:21:16 -0800"
    #   Time.now.formatted(:db) # => "2008-11-16 00:22:09"
    #
    # You can also add your own formats using +Date.add_format+
    #
    #   Date.add_format(:matt, "%H:%M:%S %Y-%m-%d")
    #   Time.now.formatted(:matt) # => "00:00:00 2007-11-02"
    # 
    #--
    # @public
    def formatted(format = :default)
      self.strftime(Date.formats[format])
    end
  
{'fraction_non_alphanumeric': 0.12748597654258031, 'fraction_numerical': 0.0479347271800102, 'mean_word_length': 2.6066176470588234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5039903', 'n_tokens_mistral': 728, 'n_tokens_neox': 658, 'n_words': 141}