<commit_before>module Travis
  module Services
    module Users
      class Sync < Base
        def run
          return if current_user.syncing?
          publisher.publish({ :user_id => current_user.id }, :type => 'sync')
          current_user.update_column(:is_syncing, true) && nil
        end

        private

          def publisher
            Travis::Amqp::Publisher.new('sync.user')
          end
      end
    end
  end
end<commit_msg>Return true after queueing sync request<commit_after>module Travis
  module Services
    module Users
      class Sync < Base
        def run
          return if current_user.syncing?
          publisher.publish({ :user_id => current_user.id }, :type => 'sync')
          current_user.update_column(:is_syncing, true)
          true
        end

        private

          def publisher
            Travis::Amqp::Publisher.new('sync.user')
          end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07974137931034483, 'fraction_numerical': 0.0, 'mean_word_length': 1.8761609907120742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4802943', 'n_tokens_mistral': 262, 'n_tokens_neox': 255, 'n_words': 68}