<commit_before>require 'seam'

module Seam

  module Sidekiq

    def self.setup
      ::Seam::Worker.class_eval do
        include ::Sidekiq::Worker

        def perform effort_id
          effort = Seam::Effort.find effort_id
          execute effort
          ::Seam::Sidekiq.fire_the_worker_for_the_next_step_of effort
        end<commit_msg>Fire the first worker when the flow is started.<commit_after>require 'seam'

module Seam

  module Sidekiq

    def self.setup
      ::Seam::Worker.class_eval do
        include ::Sidekiq::Worker

        def perform effort_id
          effort = Seam::Effort.find effort_id
          execute effort
          ::Seam::Sidekiq.fire_the_worker_for_the_next_step_of effort
        end
      end

      ::Seam::Flow.class_eval do
        alias :the_default_start_for :start
        def start(data = {})
          effort = the_default_start_for data
          ::Seam::Sidekiq.fire_the_worker_for_the_next_step_of effort
          effort
        end
{'fraction_non_alphanumeric': 0.06781376518218624, 'fraction_numerical': 0.0, 'mean_word_length': 2.3986254295532645, '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': '6158120', 'n_tokens_mistral': 308, 'n_tokens_neox': 305, 'n_words': 68}