<commit_before>class TwitterPost
  @queue = :twitter_queue

  def self.perform(actor_id, tweet_status, lat = nil, lng = nil)

    actor1 = User.find(actor_id)


    resp = actor1.tweet(tweet_status, lat, lng)

    if resp.code != 200
      raise "#{actor1.username} can't post twitter, #{r.code}, #{r.message}"
    end
  end
end
<commit_msg>fixup response code for error raised<commit_after>class TwitterPost
  @queue = :twitter_queue

  def self.perform(actor_id, tweet_status, lat = nil, lng = nil)

    actor1 = User.find(actor_id)


    resp = actor1.tweet(tweet_status, lat, lng)

    if resp.code != 200
      raise "#{actor1.username} can't post twitter, #{resp.code}, #{resp.message}"
    end
  end
end

{'fraction_non_alphanumeric': 0.12376933895921238, 'fraction_numerical': 0.016877637130801686, 'mean_word_length': 3.5063291139240507, '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': '4121709', 'n_tokens_mistral': 267, 'n_tokens_neox': 244, 'n_words': 65}