<commit_before>class UpdatePlacemarkActivity
  @queue = :activity_queue

  def self.perform(actor_id, perspective_id, fb_post = false, twitter_post = false)

    perspective = Perspective.find(perspective_id)

    actor1 = User.find(actor_id)
    activity = actor1.build_activity

    RESQUE_LOGGER.info "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')} - #{actor1.username} updated placemark #{perspective.place.name}, OG?: #{!actor1.facebook.nil?}"

    activity.activity_type = "UPDATE_PERSPECTIVE"

    activity.subject = perspective.id
    activity.subject_title = perspective.place.name

    #check if a "recent" activity, most recent 20
    actor1.activity_feed.activities.each do |act|
      if act.activity_type == "UPDATE_PERSPECTIVE" || act.activity_type == "NEW_PERSPECTIVE" && activity.subject == act.subject
        return
      end
    end

    activity.save
    activity.push_to_followers(actor1)<commit_msg>be more sure about the stuff<commit_after>class UpdatePlacemarkActivity
  @queue = :activity_queue

  def self.perform(actor_id, perspective_id, fb_post = false, twitter_post = false)

    perspective = Perspective.find(perspective_id)

    actor1 = User.find(actor_id)
    activity = actor1.build_activity

    RESQUE_LOGGER.info "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')} - #{actor1.username} updated placemark #{perspective.place.name}, OG?: #{!actor1.facebook.nil?}"

    activity.activity_type = "UPDATE_PERSPECTIVE"

    activity.subject = perspective.id
    activity.subject_title = perspective.place.name

    #check if a "recent" activity, most recent 20
    actor1.activity_feed.activities.each do |act|
      if (act.activity_type == "UPDATE_PERSPECTIVE" || act.activity_type == "NEW_PERSPECTIVE") && activity.subject == act.subject
        return
      end
    end

    activity.save
    activity.push_to_followers(actor1)
{'fraction_non_alphanumeric': 0.11777417612101566, 'fraction_numerical': 0.00864397622906537, 'mean_word_length': 4.087912087912088, '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': '4655927', 'n_tokens_mistral': 609, 'n_tokens_neox': 587, 'n_words': 114}