<commit_before>class DevicePushNotificationSend
  include Sidekiq::Worker
  sidekiq_options retry: false, queue: :critical

  def perform(user_ids, entry_id)
    users = User.where(id: user_ids)
    tokens = Device.where(user_id: user_ids).pluck(:user_id, :token)
    entry = Entry.find(entry_id)
    feed = entry.feed

    titles = subscription_titles(user_ids, feed)
    body = format_text(entry.title)
    title = format_text(feed.title)<commit_msg>Select specific devices.<commit_after>class DevicePushNotificationSend
  include Sidekiq::Worker
  sidekiq_options retry: false, queue: :critical

  def perform(user_ids, entry_id)
    users = User.where(id: user_ids)
    tokens = Device.where(user_id: user_ids).ios.pluck(:user_id, :token)
    entry = Entry.find(entry_id)
    feed = entry.feed

    titles = subscription_titles(user_ids, feed)
    body = format_text(entry.title)
    title = format_text(feed.title)
{'fraction_non_alphanumeric': 0.10228509249183895, 'fraction_numerical': 0.0, 'mean_word_length': 4.644171779141105, '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': '1449792', 'n_tokens_mistral': 305, 'n_tokens_neox': 299, 'n_words': 61}