<commit_before>#!/usr/bin/env ruby
# Quick script for viewing getting at kramdown's view of a markdown file
require 'kramdown'
require 'pry'

doc = Kramdown::Document.new(File.read(ARGV[0]))
children = doc.root.children

binding.pry<commit_msg>Change the quick test script to use a doc object<commit_after>#!/usr/bin/env ruby
# Quick script for viewing getting at kramdown's view of a markdown file
require 'mdl/doc'
require 'pry'


doc = MarkdownLint::Doc.new_from_file(ARGV[0])
children = doc.parsed.root.children

binding.pry
{'fraction_non_alphanumeric': 0.10795454545454546, 'fraction_numerical': 0.003787878787878788, 'mean_word_length': 5.451219512195122, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7414473', 'n_tokens_mistral': 185, 'n_tokens_neox': 178, 'n_words': 54}