<commit_before>#!/usr/bin/env ruby

require 'github/markup'

unless ARGV.length == 2
  puts "Invalid arguments count."
  puts "Usage: ruby markup-render.rb InputFile.md OutputFile.html\n"
  exit
end

input_file = ARGV[0]
output_file = ARGV[1]

html = GitHub::Markup.render('README.markdown', File.read(input_file))
File.write(output_file, html)<commit_msg>Debug ruby script.<commit_after>#!/usr/bin/env ruby

require 'github/markup'

unless ARGV.length == 2
  puts "Invalid arguments count."
  puts "Usage: ruby markup-render.rb InputFile.md OutputFile.html\n"
  exit
end

puts 'Files in wiki dir:'
puts Dir['./wiki/*.*']

input_file = ARGV[0]
output_file = ARGV[1]

html = GitHub::Markup.render('README.markdown', File.read(input_file))
File.write(output_file, html)
{'fraction_non_alphanumeric': 0.14341590612777053, 'fraction_numerical': 0.007822685788787484, 'mean_word_length': 5.0, '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': '6576068', 'n_tokens_mistral': 299, 'n_tokens_neox': 277, 'n_words': 64}