<commit_before>require 'vcs_toolkit/objects/commit'

module SCV
  module Objects

    class Commit < VCSToolkit::Objects::Commit

      def initialize(date:, **kwargs)
        # Parse the date on deserialization
        date = DateTime.parse date if date.is_a? String

        super
      end

      def generate_id
        Digest::SHA1.hexdigest [@message, @tree, @parent, @author, @date.to_s].inspect
      end

    end

  end
end<commit_msg>Conform to the changes in VCSToolkit<commit_after>require 'vcs_toolkit/objects/commit'

module SCV
  module Objects

    class Commit < VCSToolkit::Objects::Commit

      def initialize(date:, **kwargs)
        # Parse the date on deserialization
        date = DateTime.parse date if date.is_a? String

        super
      end

      def hash_objects
        [@message, @tree, @parent, @author, @date.to_s]
      end

    end

  end
end
{'fraction_non_alphanumeric': 0.08399545970488081, 'fraction_numerical': 0.0011350737797956867, 'mean_word_length': 2.6, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1971926', 'n_tokens_mistral': 286, 'n_tokens_neox': 267, 'n_words': 77}