<commit_before>require 'ostruct'

module SmartAnswer
  class Flow
    attr_reader :nodes, :outcomes
    attr_accessor :status, :need_id

    def self.build
      flow = new
      flow.define
      flow
    end

    def initialize(&block)
      @nodes = []
      instance_eval(&block) if block_given?
    end

    def content_id(cid = nil)
      @content_id = cid unless cid.nil?
      @content_id
    end

    def use_shared_logic(filename)
      path = Rails.root.join('lib', 'smart_answer_flows', 'shared_logic', "#{filename}.rb")
      # rubocop:disable Lint/Eval
      eval File.read(path), binding, path.to_s
      # rubocop:enable Lint/Eval
    end
<commit_msg>Remove unused `outcomes` attr_reader from Flow class<commit_after>require 'ostruct'

module SmartAnswer
  class Flow
    attr_reader :nodes
    attr_accessor :status, :need_id

    def self.build
      flow = new
      flow.define
      flow
    end

    def initialize(&block)
      @nodes = []
      instance_eval(&block) if block_given?
    end

    def content_id(cid = nil)
      @content_id = cid unless cid.nil?
      @content_id
    end

    def use_shared_logic(filename)
      path = Rails.root.join('lib', 'smart_answer_flows', 'shared_logic', "#{filename}.rb")
      # rubocop:disable Lint/Eval
      eval File.read(path), binding, path.to_s
      # rubocop:enable Lint/Eval
    end

{'fraction_non_alphanumeric': 0.09838472834067548, 'fraction_numerical': 0.0, 'mean_word_length': 2.6837837837837837, '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': '7024437', 'n_tokens_mistral': 462, 'n_tokens_neox': 445, 'n_words': 107}