<commit_before>require_relative '../models/orchestrate_gateway'

class EventProcessor
  def initialize(orchestrate_gateway)
    @orchestrate_gateway = orchestrate_gateway
  end

  def process(action_model)
    case action_model.event_type
      when "createCard"
        @orchestrate_gateway.add_card_to_board(action_model)
      else
        @orchestrate_gateway.add_event_to_card(action_model)
    end
  end
end<commit_msg>Handled copying cards. always add an event, regardless of event type<commit_after>require_relative '../models/orchestrate_gateway'

class EventProcessor
  def initialize(orchestrate_gateway)
    @orchestrate_gateway = orchestrate_gateway
  end

  def process(action_model)
    case action_model.event_type
      when "createCard"
        @orchestrate_gateway.add_card_to_board(action_model)
      when "copyCard"
        @orchestrate_gateway.add_card_to_board(action_model)
    end

    @orchestrate_gateway.add_event_to_card(action_model)
  end
end
{'fraction_non_alphanumeric': 0.061601642710472276, 'fraction_numerical': 0.0, 'mean_word_length': 4.5397727272727275, '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': '3483452', 'n_tokens_mistral': 320, 'n_tokens_neox': 324, 'n_words': 53}