<commit_before>import wordcram.*;

size(600, 350);
background(255);

/*
 * There are a few different ways to load text.
 * WordCram will parse out the words, count them 
 * up, and render more-frequent words bigger than
 * less-frequent ones.
 * 
 * Try un-commenting some of the methods below.
 * (If more than one is uncommented, only the last
 * one will have an effect.)
 */

new WordCram(this)
  
  //.fromWebPage("http://en.wikipedia.org/wiki/Word_cloud")
  //.fromHtmlFile("../kari-the-elephant.html")
  .fromTextFile("../kari-the-elephant.txt")
  //.fromTextString(loadStrings("../kari-the-elephant.txt"))
  //.fromHtmlString(loadStrings("../kari-the-elephant.html"))
  
  .drawAll();
<commit_msg>Update Wikipedia example sketch to use HTTPS.<commit_after>import wordcram.*;

size(600, 350);
background(255);

/*
 * There are a few different ways to load text.
 * WordCram will parse out the words, count them
 * up, and render more-frequent words bigger than
 * less-frequent ones.
 *
 * Try un-commenting some of the methods below.
 * (If more than one is uncommented, only the last
 * one will have an effect.)
 */

new WordCram(this)

  //.fromWebPage("https://en.wikipedia.org/wiki/Word_cloud")
  //.fromHtmlFile("../kari-the-elephant.html")
  .fromTextFile("../kari-the-elephant.txt")
  //.fromTextString(loadStrings("../kari-the-elephant.txt"))
  //.fromHtmlString(loadStrings("../kari-the-elephant.html"))

  .drawAll();

{'fraction_non_alphanumeric': 0.15518441196938065, 'fraction_numerical': 0.012526096033402923, 'mean_word_length': 3.5796178343949046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1685704', 'n_tokens_mistral': 502, 'n_tokens_neox': 479, 'n_words': 126}