<commit_before>require "cbc_spark/version"
require "cbc_spark/exceptions"
require "cbc_spark/episode"
require "nokogiri"
require "httparty"

module CbcSpark
  extend self

  BASE_URL = "http://www.cbc.ca/podcasting/includes/spark.xml"

  def list
  	episodes
  end

  def latest
  	episodes.last
  end

  # Fetches a particular episode by number,
  # +episode_number+ is the number in the list, and may not necessarily be the actual episode number, since a few episodes are missing
  def get(episode_number)
  	episodes[episode_number-1]
  end

  private

  def episodes
  	@episodes ||= bootstrap
  end

  def bootstrap
    puts "Bootstrapping"<commit_msg>Removed stdout msg I forgot about<commit_after>require "cbc_spark/version"
require "cbc_spark/exceptions"
require "cbc_spark/episode"
require "nokogiri"
require "httparty"

module CbcSpark
  extend self

  BASE_URL = "http://www.cbc.ca/podcasting/includes/spark.xml"

  def list
  	episodes
  end

  def latest
  	episodes.last
  end

  # Fetches a particular episode by number,
  # +episode_number+ is the number in the list, and may not necessarily be the actual episode number, since a few episodes are missing
  def get(episode_number)
  	episodes[episode_number-1]
  end

  private

  def episodes
  	@episodes ||= bootstrap
  end

  def bootstrap
{'fraction_non_alphanumeric': 0.07028265851795264, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 3.888059701492537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '7439129', 'n_tokens_mistral': 478, 'n_tokens_neox': 440, 'n_words': 134}