<commit_before>require 'notifier/base'
require 'notifier/apns/grocer_stream'
require 'notifier/gcm/gcm_batch'

require 'notifiable/notifiable_concern'
require 'notifiable/railtie' if defined?(Rails)
require 'notifiable/engine'
require 'notifiable/notification'
require 'notifiable/batch'
require 'notifiable/device_token'


module Notifiable

  mattr_accessor :api_controller_class

  mattr_accessor :user_class

  mattr_accessor :permitted_user_attributes

  mattr_accessor :user_key
  @@user_key = :email  

  mattr_accessor :apns_class_name

  mattr_accessor :apns_gateway
  @@apns_gateway = 'gateway.push.apple.com'

  mattr_accessor :apns_certificate

  mattr_accessor :apns_passphrase

  mattr_accessor :gcm_class_name

  mattr_accessor :gcm_api_key

  mattr_accessor :gcm_batch_size
  @@gcm_batch_size = 1000
  
  mattr_accessor :delivery_method
  @@delivery_method = :send
  
  def self.configure
    yield self
  end

  mattr_accessor :deliveries
  @@deliveries = []

  def self.apns_gateway_config
    if self.env == 'test'
      {
        :gateway => 'localhost',
        :certificate => File.join(Rails.root, 'config', 'apns-development.pem'),
        :passphrase => <PASSWORD>
      }
    else
      {
        :gateway => apns_gateway,
        :certificate => apns_certificate,
        :passphrase => <PASSWORD>
      }
    end
  end<commit_msg>Remove deliveries and add notification_device_tokens in notifiable.rb<commit_after>require 'notifier/base'
require 'notifier/apns/grocer_stream'
require 'notifier/gcm/gcm_batch'

require 'notifiable/notifiable_concern'
require 'notifiable/railtie' if defined?(Rails)
require 'notifiable/engine'
require 'notifiable/notification'
require 'notifiable/notification_device_token'
require 'notifiable/batch'
require 'notifiable/device_token'


module Notifiable

  mattr_accessor :api_controller_class

  mattr_accessor :user_class

  mattr_accessor :permitted_user_attributes

  mattr_accessor :user_key
  @@user_key = :email  

  mattr_accessor :apns_class_name

  mattr_accessor :apns_gateway
  @@apns_gateway = 'gateway.push.apple.com'

  mattr_accessor :apns_certificate

  mattr_accessor :apns_passphrase

  mattr_accessor :gcm_class_name

  mattr_accessor :gcm_api_key

  mattr_accessor :gcm_batch_size
  @@gcm_batch_size = 1000
  
  mattr_accessor :delivery_method
  @@delivery_method = :send
  
  def self.configure
    yield self
  end

  def self.apns_gateway_config
    if self.env == 'test'
      {
        :gateway => 'localhost',
        :certificate => File.join(Rails.root, 'config', 'apns-development.pem'),
        :passphrase => <PASSWORD>
      }
    else
      {
        :gateway => apns_gateway,
        :certificate => apns_certificate,
        :passphrase => apns_passphrase
      }
    end
  end
{'fraction_non_alphanumeric': 0.08723864455659697, 'fraction_numerical': 0.002883922134102379, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 18, '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': '3662536', 'n_tokens_mistral': 1007, 'n_tokens_neox': 961, 'n_words': 172}