<commit_before>if defined?(ActiveRecord)
  module Artery
    class LastModelUpdate < ActiveRecord::Base
      class << self
        def model_update!(uri, timestamp)
          obj = find_or_initialize_by service: uri.service, model: uri.model
          obj.last_message_at = timestamp if timestamp.to_f > obj.last_message_at.to_f
          obj.save!
        end

        def last_model_update_at(uri)
          obj = find_by service: uri.service, model: uri.model

          obj.last_message_at if obj<commit_msg>Fixes bug with LastModelUpdate#last_message_at initializing<commit_after>if defined?(ActiveRecord)
  module Artery
    class LastModelUpdate < ActiveRecord::Base
      class << self
        def model_update!(uri, timestamp)
          obj = find_or_initialize_by service: uri.service, model: uri.model
          obj.last_message_at = Time.zone.at(timestamp) if timestamp.to_f > obj.last_message_at.to_f
          obj.save!
        end

        def last_model_update_at(uri)
          obj = find_by service: uri.service, model: uri.model

          obj.last_message_at if obj
{'fraction_non_alphanumeric': 0.07458563535911603, 'fraction_numerical': 0.0, 'mean_word_length': 2.814035087719298, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '3614724', 'n_tokens_mistral': 322, 'n_tokens_neox': 319, 'n_words': 75}