<commit_before>require 'kindlefodder'

class LittleCoffeeScript < Kindlefodder
  
  def get_source_files
    @start_url = "http://arcturo.github.com/library/coffeescript/"
    @start_doc = Nokogiri::HTML run_shell_command("curl -s #{@start_url}")

    sections = extract_articles

    File.open("#{output_dir}/sections.yml", 'w') {|f|
      f.puts sections.to_yaml
    }
  end
  
  def document <commit_msg>Little book on Coffeescript recipe fixed<commit_after>require 'kindlefodder'

class LittleCoffeeScript < Kindlefodder
  
  def get_source_files
    @start_url = "http://arcturo.github.com/library/coffeescript/"
    @start_doc = Nokogiri::HTML run_shell_command("curl -s #{@start_url}")

    sections = [{
      title:"Main",
      articles:extract_articles
      }]

    File.open("#{output_dir}/sections.yml", 'w') {|f|
      f.puts sections.to_yaml
    }
  end
  
  def document 
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0, 'mean_word_length': 3.606217616580311, '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': '5700172', 'n_tokens_mistral': 325, 'n_tokens_neox': 311, 'n_words': 54}