<commit_before>/**
 * textAnalyse_basic
 * by wrongPowder Library.
 *
 * Use wrongPowder.util.string package to analyze text.
 *
 * @author    <NAME>
 * @modified  2011.10.31
 */


//import wrongPowder.util.string.TextAnalyse;

//TextAnalyse textAnalyse = new TextAnalyse();


void setup() {
  size(400, 400);
}


void draw() {
}


void keyPressed() {
  char letter = char(key);
  println("KEY\t[ ASCII DEC: "+(int)key+
          " Unicode: "+(int)key+
          " char: "+ letter +
          " end ]");
}<commit_msg>Delete old TextAnalyse file, changes at analyse example<commit_after>/**
 * textAnalyse_basic
 * by wrongPowder Library.
 *
 * Use wrongPowder.util.string package to analyze text.
 *
 * @author    <NAME>
 * @modified  2011.10.31
 */


import wrongPowder.util.string.*;
TextAnalyse textAnalyse = new TextAnalyse();

String[] text;


void setup() {
  size(400, 400);
  
  // Load a text file and initialize the string array.
  text = loadStrings("example.txt");
  //textAnalyse.init(text);
  //textAnalyse.analyse();
  textAnalyse.analyse("hello world abc 1");
  textAnalyse.totalWords();
  
}
{'fraction_non_alphanumeric': 0.14620938628158844, 'fraction_numerical': 0.026173285198555957, 'mean_word_length': 3.2653846153846153, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6645202', 'n_tokens_mistral': 411, 'n_tokens_neox': 370, 'n_words': 93}