<commit_before># frozen_string_literal: true

class ActivityPub::DeliveryWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'push', retry: 5, dead: false

  HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze

  def perform(json, source_account_id, inbox_url)
    @json           = json
    @source_account = Account.find(source_account_id)
    @inbox_url      = inbox_url

    perform_request
<commit_msg>Retry ActivityPub delivery a few more times (#5014)<commit_after># frozen_string_literal: true

class ActivityPub::DeliveryWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'push', retry: 8, dead: false

  HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze

  def perform(json, source_account_id, inbox_url)
    @json           = json
    @source_account = Account.find(source_account_id)
    @inbox_url      = inbox_url

    perform_request

{'fraction_non_alphanumeric': 0.09709821428571429, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 4.155172413793103, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1549001', 'n_tokens_mistral': 299, 'n_tokens_neox': 279, 'n_words': 65}