<commit_before>require "ostruct"

module SmartAnswer
  class Flow
    attr_reader :nodes
    attr_writer :status

    def self.build(&block)
      flow = new

      if block_given?
        flow.instance_eval(&block)
      else
        flow.define
      end

      flow
    end

    def initialize
      @nodes = []
      status(:draft)
    end

    def append(flow)
      flow.nodes.each do |node|
        node.flow = self
        add_node(node)
      end
    end

    def content_id(id = nil)<commit_msg>Add default value for additional parameters<commit_after>require "ostruct"

module SmartAnswer
  class Flow
    attr_reader :nodes
    attr_writer :status

    def self.build(&block)
      flow = new

      if block_given?
        flow.instance_eval(&block)
      else
        flow.define
      end

      flow
    end

    def initialize
      @nodes = []
      @additional_parameters = []
      status(:draft)
    end

    def append(flow)
      flow.nodes.each do |node|
        node.flow = self
        add_node(node)
      end
    end

    def content_id(id = nil)
{'fraction_non_alphanumeric': 0.074487895716946, 'fraction_numerical': 0.0, 'mean_word_length': 1.8514588859416445, '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': '6684850', 'n_tokens_mistral': 337, 'n_tokens_neox': 318, 'n_words': 85}