<commit_before>module MyTradeWizard
  class WatchList

    attr_accessor :stocks

    def initialize
      @stocks = []
    end

    def <<(stock)
      @stocks << stock
    end

  end
end<commit_msg>overloaded << operator in watch_list now accepts arrays and strings<commit_after>module MyTradeWizard
  class WatchList

    attr_accessor :stocks

    def initialize
      @stocks = []
    end

    def <<(x)
      if x.is_a?(MyTradeWizard::Stock)
        @stocks << x
      elsif x.is_a?(Array) && x.first.is_a?(MyTradeWizard::Stock)
        x.each { |stock| @stocks << stock }
      elsif x.is_a?(String)
        @stocks << MyTradeWizard::Stock.new(x)
      elsif x.is_a?(Array) && x.first.is_a?(String)
        x.each { |symbol| @stocks << MyTradeWizard::Stock.new(symbol) }
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.11786600496277916, 'fraction_numerical': 0.0, 'mean_word_length': 2.5707964601769913, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1859092', 'n_tokens_mistral': 296, 'n_tokens_neox': 289, 'n_words': 62}