<commit_before>class GetQuote
  attr_accessor :tickers, :tags, :tag_caption, :url

  def initialize(tickers, tags)
    @tickers, @tags, @tag_caption = tickers, tags, []
  end

  def call
    tag_translate
    create_csv
    print_stocks
  end

  def create_csv
    @url = "http://finance.yahoo.com/d/quotes.csv?s=#{tickers}&f=#{tags.join}"
  end

  def currency?(value)
    "#{value.include?('%') || !value.include?('.') ? '' : '$'}"
  end

  def print_stocks
    counter = 1
    open(url) do |csv|
      CSV.parse(csv) do |row|
        puts "\n\n"
        puts "#{row[0]}".center(45)
        puts " " + "-" * 42
        while counter < tag_caption.count 
          puts " #{tag_caption[counter]}: #{currency?(row[counter])}#{row[counter]}"
          counter += 1<commit_msg>renamed create_url<commit_after>class GetQuote
  attr_accessor :tickers, :tags, :tag_caption, :url

  def initialize(tickers, tags)
    @tickers, @tags, @tag_caption = tickers, tags, []
  end

  def call
    tag_translate
    create_url
    print_stocks
  end

  def create_url
    @url = "http://finance.yahoo.com/d/quotes.csv?s=#{tickers}&f=#{tags.join}"
  end

  def currency?(value)
    "#{value.include?('%') || !value.include?('.') ? '' : '$'}"
  end

  def print_stocks
    counter = 1
    open(url) do |csv|
      CSV.parse(csv) do |row|
        puts "\n\n"
        puts "#{row[0]}".center(45)
        puts " " + "-" * 42
        while counter < tag_caption.count 
          puts " #{tag_caption[counter]}: #{currency?(row[counter])}#{row[counter]}"
          counter += 1
{'fraction_non_alphanumeric': 0.17234726688102894, 'fraction_numerical': 0.0090032154340836, 'mean_word_length': 2.7766990291262137, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7534340', 'n_tokens_mistral': 579, 'n_tokens_neox': 570, 'n_words': 112}