<commit_before>require 'date'
require 'forwardable'

require 'timeliness/helpers'
require 'timeliness/formats'
require 'timeliness/format_set'
require 'timeliness/parser'
require 'timeliness/version'

module Timeliness
  class << self
    extend Forwardable
    def_delegators Parser, :parse, :_parse
    def_delegators Formats, :add_formats, :remove_formats, :use_us_formats, :use_euro_formats

    attr_accessor :default_timezone, :date_for_time_type, :ambiguous_year_threshold

    alias :dummy_date_for_time_type :date_for_time_type
  end

  # Default timezone. Options:
  #   - :local (default)
  #   - :utc
  #   
  #   If ActiveSupport loaded, also
  #   - :current
  #   - 'Zone name'
  #
  @default_timezone = :local

  # Set the default date part for a time type values.
  @date_for_time_type = [ 2000, 1, 1 ]

  # Set the threshold value for a two digit year to be considered last century
  #
  # Default: 30
  #
  #   Example:
  #     year = '29' is considered 2029<commit_msg>remove aliases no longer required<commit_after>require 'date'
require 'forwardable'

require 'timeliness/helpers'
require 'timeliness/formats'
require 'timeliness/format_set'
require 'timeliness/parser'
require 'timeliness/version'

module Timeliness
  class << self
    extend Forwardable
    def_delegators Parser, :parse, :_parse
    def_delegators Formats, :add_formats, :remove_formats, :use_us_formats, :use_euro_formats
    attr_accessor :default_timezone, :date_for_time_type, :ambiguous_year_threshold
  end

  # Default timezone. Options:
  #   - :local (default)
  #   - :utc
  #   
  #   If ActiveSupport loaded, also
  #   - :current
  #   - 'Zone name'
  #
  @default_timezone = :local

  # Set the default date part for a time type values.
  @date_for_time_type = [ 2000, 1, 1 ]

  # Set the threshold value for a two digit year to be considered last century
  #
  # Default: 30
  #
  #   Example:
  #     year = '29' is considered 2029
{'fraction_non_alphanumeric': 0.088659793814433, 'fraction_numerical': 0.01443298969072165, 'mean_word_length': 3.7111650485436893, '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': '609380', 'n_tokens_mistral': 693, 'n_tokens_neox': 664, 'n_words': 178}