<commit_before>require 'yaml.rb'
require 'set.rb'
require 'date'

require 'ice_cube/time_util'

require 'ice_cube/validation'
require 'ice_cube/validation_types'
require 'ice_cube/rule'
require 'ice_cube/schedule'
require 'ice_cube/rule_occurrence'

module IceCube
  
  autoload :DailyRule, 'ice_cube/rules/daily_rule'
  autoload :WeeklyRule, 'ice_cube/rules/weekly_rule'
  autoload :MonthlyRule, 'ice_cube/rules/monthly_rule'
  autoload :YearlyRule, 'ice_cube/rules/yearly_rule'
   
  autoload :HourlyRule, 'ice_cube/rules/hourly_rule'
  autoload :MinutelyRule, 'ice_cube/rules/minutely_rule'
  autoload :SecondlyRule, 'ice_cube/rules/secondly_rule'

  autoload :DayValidation, 'ice_cube/validations/day'
  autoload :DayOfMonthValidation, 'ice_cube/validations/day_of_month'
  autoload :DayOfWeekValidation, 'ice_cube/validations/day_of_week'
  autoload :DayOfYearValidation, 'ice_cube/validations/day_of_year'
  autoload :HourOfDayValidation, 'ice_cube/validations/hour_of_day'
  autoload :MinuteOfHourValidation, 'ice_cube/validations/minute_of_hour'
  autoload :MonthOfYearValidation, 'ice_cube/validations/month_of_year'
  autoload :SecondOfMinuteValidation, 'ice_cube/validations/second_of_minute'

  # if you're reading this code, you've just been iced
  # http://brosicingbros.com/
  
  VERSION = '0.2.3'

  IceCube::ONE_DAY = 24 * 60 * 60
  IceCube::ONE_HOUR = 60 * 60
  IceCube::ONE_MINUTE = 60
  IceCube::ONE_SECOND = 1

  ICAL_DAYS = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']
  DAYS = { :sunday => 0, :monday => 1, :tuesday => 2, :wednesday => 3, :thursday => 4, :friday => 5, :saturday => 6 }
  MONTHS = { :january => 1, :february => 2, :march => 3, :april => 4, :may => 5, :june => 6, :july => 7, :august => 8, 
             :september => 9, :october => 10, :november => 11, :december => 12 }
  
  include TimeUtil
<commit_msg>Fixed an inconsistency with IceCube::VERSION pointed out by latentflip in Issue #7<commit_after>require 'yaml.rb'
require 'set.rb'
require 'date'

require 'ice_cube/time_util'

require 'ice_cube/validation'
require 'ice_cube/validation_types'
require 'ice_cube/rule'
require 'ice_cube/schedule'
require 'ice_cube/rule_occurrence'

module IceCube
  
  autoload :DailyRule, 'ice_cube/rules/daily_rule'
  autoload :WeeklyRule, 'ice_cube/rules/weekly_rule'
  autoload :MonthlyRule, 'ice_cube/rules/monthly_rule'
  autoload :YearlyRule, 'ice_cube/rules/yearly_rule'
   
  autoload :HourlyRule, 'ice_cube/rules/hourly_rule'
  autoload :MinutelyRule, 'ice_cube/rules/minutely_rule'
  autoload :SecondlyRule, 'ice_cube/rules/secondly_rule'

  autoload :DayValidation, 'ice_cube/validations/day'
  autoload :DayOfMonthValidation, 'ice_cube/validations/day_of_month'
  autoload :DayOfWeekValidation, 'ice_cube/validations/day_of_week'
  autoload :DayOfYearValidation, 'ice_cube/validations/day_of_year'
  autoload :HourOfDayValidation, 'ice_cube/validations/hour_of_day'
  autoload :MinuteOfHourValidation, 'ice_cube/validations/minute_of_hour'
  autoload :MonthOfYearValidation, 'ice_cube/validations/month_of_year'
  autoload :SecondOfMinuteValidation, 'ice_cube/validations/second_of_minute'

  # if you're reading this code, you've just been iced
  # http://brosicingbros.com/
  
  IceCube::ONE_DAY = 24 * 60 * 60
  IceCube::ONE_HOUR = 60 * 60
  IceCube::ONE_MINUTE = 60
  IceCube::ONE_SECOND = 1

  ICAL_DAYS = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']
  DAYS = { :sunday => 0, :monday => 1, :tuesday => 2, :wednesday => 3, :thursday => 4, :friday => 5, :saturday => 6 }
  MONTHS = { :january => 1, :february => 2, :march => 3, :april => 4, :may => 5, :june => 6, :july => 7, :august => 8, 
             :september => 9, :october => 10, :november => 11, :december => 12 }
  
  include TimeUtil

{'fraction_non_alphanumeric': 0.1345123258306538, 'fraction_numerical': 0.01982851018220793, 'mean_word_length': 5.099673202614379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, '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': '569758', 'n_tokens_mistral': 1571, 'n_tokens_neox': 1470, 'n_words': 285}