<commit_before>class MajorIndices::Index
  attr_accessor :name, :value, :percent

  def self.scraped_quotes
    self.save_scraped
  end

  def self.save_scraped
    quotes = []
    quotes << self.scraped_info
  end

  def self.scraped_info
    doc = Nokogiri::HTML(open("http://www.nasdaq.com/markets/indices/major-indices.aspx"))
    index = self.new
    index.name = doc.css(".indexname").text
    index
    #binding.pry

    #index=self.new
    #  index.name = "Nasdaq"
    #  index.value = "200000"
    #  index.percent = "13%"
    #  index
  end
end<commit_msg>Fixed css selector for name<commit_after>class MajorIndices::Index
  attr_accessor :name, :value, :percent

  def self.scraped_quotes
    self.save_scraped
  end

  def self.save_scraped
    quotes = []
    quotes << self.scraped_info
  end

  def self.scraped_info
    doc = Nokogiri::HTML(open("http://www.nasdaq.com/markets/indices/major-indices.aspx"))
    index = self.new
    index.name = doc.css(".indexname").text.strip.gsub("\r\n","")
    index
    #binding.pry

    #index=self.new
    #  index.name = "Nasdaq"
    #  index.value = "200000"
    #  index.percent = "13%"
    #  index
  end
end
{'fraction_non_alphanumeric': 0.1327054794520548, 'fraction_numerical': 0.0136986301369863, 'mean_word_length': 2.883720930232558, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2943206', 'n_tokens_mistral': 456, 'n_tokens_neox': 437, 'n_words': 75}