<commit_before># Example of validation of a single URL

require 'w3c_validators'
include W3CValidators

url = 'http://university.rubymendicant.com/'
puts "Validating markup of #{url}"

validator = MarkupValidator.new
results = validator.validate_uri(url)

if results.errors.length > 0
  puts "There are #{results.errors.length} validation errors"
else
  puts 'Valid!'
end<commit_msg>clean up single validation example<commit_after># Example of validation of a single URL

require 'w3c_validators'
include W3CValidators
validator = MarkupValidator.new

url = 'http://university.rubymendicant.com/'
puts "Validating markup of #{url}"

results = validator.validate_uri(url)

if results.errors.length > 0
  puts "There are #{results.errors.length} validation errors"
else
  puts 'Valid!'
end
{'fraction_non_alphanumeric': 0.09911054637865312, 'fraction_numerical': 0.007623888182973317, 'mean_word_length': 5.512396694214876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2822381', 'n_tokens_mistral': 249, 'n_tokens_neox': 250, 'n_words': 75}