<commit_before>require 'rubygems'
require 'rake'
require '../pdoc/lib/pdoc'

rm_rf "docs"
begin
  files = Dir.glob("src/*.jsdoc")
  files << {
    :output => "docs",
    :templates => "../prototype-pdoc-template/html",
    :syntax_highlighter => :none,
    :index_page => 'README.markdown'
  }
  PDoc::Runner.new(*files).run
rescue PDoc::ParseError => e
  print e.message
  #print "\n"
  #print e.failures
  print e.file<commit_msg>Make pdoc script slightly more useful<commit_after>require 'rubygems'
require 'rake'
require '../flusspferd/vendor/pdoc/lib/pdoc'

rm_rf "docs"
begin
  files = Dir.glob("src/*.pdoc")
  files << {
    :output => "docs",
    :templates => "../flusspferd/vendor/pdoc-template/html",
    :syntax_highlighter => :none,
    :index_page => 'README.markdown'
  }
  PDoc::Runner.new(*files).run
rescue PDoc::ParseError => e
  print e.message
  #print "\n"
  #print e.failures
  print e.file
{'fraction_non_alphanumeric': 0.171960569550931, 'fraction_numerical': 0.0, 'mean_word_length': 3.6395939086294415, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3530768', 'n_tokens_mistral': 343, 'n_tokens_neox': 338, 'n_words': 68}