<commit_before>class PostUnblock
  include Sidekiq::Worker

  sidekiq_retry_in do |count|
    # 15min * 60sec/min = 900sec
    900 * (count + 1)
  end

  def perform(user_database_id, target_twitter_id, block_id: nil)
    user = MetaTwitter::Auth.config( User.find(user_database_id) )

    user.unblock(target_twitter_id)<commit_msg>Rescue from trying to unblock a non-existent user<commit_after>class PostUnblock
  include Sidekiq::Worker

  sidekiq_retry_in do |count|
    # 15min * 60sec/min = 900sec
    900 * (count + 1)
  end

  def perform(user_database_id, target_twitter_id, block_id: nil)
    user = MetaTwitter::Auth.config( User.find(user_database_id) )

    begin
      user.unblock(target_twitter_id)
    rescue Twitter::Error::NotFound
      puts "[INFO] Twitter account with id #{target_twitter_id} no longer exists"
    end

{'fraction_non_alphanumeric': 0.09036860879904875, 'fraction_numerical': 0.026159334126040427, 'mean_word_length': 4.134146341463414, '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': '7559324', 'n_tokens_mistral': 310, 'n_tokens_neox': 282, 'n_words': 66}