<commit_before>module IonicNotification
  module Logger
    def no_device_tokens_logger(instance)
      return unless available?
      ionic_logger "#{logger_label} No device tokens were found for #{instance}, skipping."
    end

    def missing_device_tokens_logger
      return unless available?
      ionic_logger "#{logger_label} This model does not respond to :device_tokens, did you run your migrations?"
    end

    def logger_label
      "IonicNotification:"
    end

    private

    def ionic_logger(message)
      logger.send(IonicNotification.log_level, message)
    end

    def available_log_levels
      [:debug, :info, :warn, :error, :fatal, :unknown]
    end

    def available?
      if available_log_levels.include? IonicNotification.log_level
        true
      else
        logger.fatal "#{logger_label} The specified log level is not available!"
        false
      end
    end
  end
end<commit_msg>Made logger available to class<commit_after>module IonicNotification
  module Logger
    def self.no_device_tokens_logger(instance)
      return unless available?
      ionic_logger "#{logger_label} No device tokens were found for #{instance}, skipping."
    end

    def self.missing_device_tokens_logger
      return unless available?
      ionic_logger "#{logger_label} This model does not respond to :device_tokens, did you run your migrations?"
    end

    def self.logger_label
      "IonicNotification:"
    end

    private

    def ionic_logger(message)
      logger.send(IonicNotification.log_level, message)
    end

    def available_log_levels
      [:debug, :info, :warn, :error, :fatal, :unknown]
    end

    def available?
      if available_log_levels.include? IonicNotification.log_level
        true
      else
        logger.fatal "#{logger_label} The specified log level is not available!"
        false
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06449893390191898, 'fraction_numerical': 0.0, 'mean_word_length': 2.9936170212765956, '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': '4100807', 'n_tokens_mistral': 536, 'n_tokens_neox': 506, 'n_words': 163}