<commit_before>module Notifiable
  class App < ActiveRecord::Base
    has_many :device_tokens, :class_name => 'Notifiable::DeviceToken', :dependent => :destroy
    has_many :notifications, :class_name => 'Notifiable::Notification', :dependent => :destroy
    
    serialize :configuration
    
    def configure(provider, notifier)
      return unless self.configuration && self.configuration[provider]
      
      self.configuration[provider].each_pair {|key, value| notifier.send("#{key}=", value) if notifier.methods.include?("#{key}=".to_sym) } 
    end
  end
end<commit_msg>Update app<commit_after>module Notifiable
  class App < ActiveRecord::Base
    has_many :device_tokens, :class_name => 'Notifiable::DeviceToken', :dependent => :destroy
    has_many :notifications, :class_name => 'Notifiable::Notification', :dependent => :destroy
    
    serialize :configuration
    
    def configure(provider, notifier)
      return unless self.configuration && self.configuration[provider]
      
      self.configuration[provider].each_pair {|key, value| notifier.send("#{key}=", value) if notifier.methods.include?("#{key}=".to_sym) } 
    end
    
    def save_notification_statuses?
      self.configuration[:save_notification_statuses].nil? ? true : self.configuration[:save_notification_statuses]
    end
    
    def save_notification_statuses=(save_notification_statuses)
      self.configuration[:save_notification_statuses] = save_notification_statuses
    end
    
  end
end
{'fraction_non_alphanumeric': 0.11499663752521856, 'fraction_numerical': 0.0, 'mean_word_length': 4.490774907749078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2810094', 'n_tokens_mistral': 418, 'n_tokens_neox': 413, 'n_words': 83}