<commit_before>/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'com.google.foam.demos.fire',
  name: 'Fire',
  extends: 'foam.graphics.Box',

  properties: [
    [ 'width',  400 ],
    [ 'height', 400 ],
    [ 'x',      100 ],
    [ 'y',      100 ],
    {
      name: 'img',
      factory: function() { return this.canvas.context.createImageData(this.width, this.height); }
    }
  ],
<commit_msg>Add docs to Fire demo.<commit_after>/**
 * @license
 * Copyright 2020 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'com.google.foam.demos.fire',
  name: 'Fire',
  extends: 'foam.graphics.Box',

  // algorithm from: https://nullprogram.com/blog/2020/04/30/
  // similar:
  //   https://codepen.io/aecend/details/BGeZpa
  //   https://codepen.io/ge1doot/pen/aQPqXX

  properties: [
    [ 'width',  400 ],
    [ 'height', 400 ],
    [ 'x',      100 ],
    [ 'y',      100 ],
    {
      name: 'img',
      factory: function() { return this.canvas.context.createImageData(this.width, this.height); }
    }
  ],

{'fraction_non_alphanumeric': 0.18584825234441602, 'fraction_numerical': 0.03836317135549872, 'mean_word_length': 2.5044776119402985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '2634537', 'n_tokens_mistral': 454, 'n_tokens_neox': 421, 'n_words': 78}