<commit_before>require 'active_support/all'
require 'lail/core_extensions/duration'

module Lail
  module CoreExtensions
    module Time
      
      def round(seconds = 60)
        ::Time.at((self.to_f / seconds).round * seconds)
      end
      
      def floor(seconds = 60)
        ::Time.at((self.to_f / seconds).floor * seconds)
      end
      
      def ceil(seconds = 60)
        ::Time.at((self.to_f / seconds).ceil * seconds)
      end
      
    end
  end
end

Time.send     :include, Lail::CoreExtensions::Time
DateTime.send :include, Lail::CoreExtensions::Time
<commit_msg>wait, DateTime works differently<commit_after>require 'active_support/all'
require 'lail/core_extensions/duration'

module Lail
  module CoreExtensions
    module Time
      
      def round(seconds = 60)
        ::Time.at((self.to_f / seconds).round * seconds)
      end
      
      def floor(seconds = 60)
        ::Time.at((self.to_f / seconds).floor * seconds)
      end
      
      def ceil(seconds = 60)
        ::Time.at((self.to_f / seconds).ceil * seconds)
      end
      
    end
  end
end

Time.send     :include, Lail::CoreExtensions::Time

{'fraction_non_alphanumeric': 0.11033274956217162, 'fraction_numerical': 0.010507880910683012, 'mean_word_length': 2.322674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6697145', 'n_tokens_mistral': 369, 'n_tokens_neox': 354, 'n_words': 80}