<commit_before>Tree
====

_Tree_ implements basic tree structure in JavaScript. It overrides native JS
arrays, so that it has similar API. The benefit of using _Tree_ is that its
objects (which inherit from Array.prototype) can be nested internally, forming
a recursive structure which is hierarchical.

QUnit & requireJS solution based on https://github.com/jonnyreeves/qunit-require
<commit_msg>extended readme<commit_after>    ____  ____  ____  ____     ____  ___
   (_  _)(  _ \( ___)( ___)   (_  _)/ __)
     )(   )   / )__)  )__)   .-_)(  \__ \
    (__) (_)\_)(____)(____)()\____) (___/

Prototype-based Javascript tree implementation
----------------------------------------------

_Tree_ implements basic tree structure in JavaScript. It overrides native JS
arrays, so that it has similar API. The benefit of using _Tree_ is that its
objects (which inherit from Array.prototype) can be nested internally, forming
a recursive, hierarchical structure.

Node.js support
---------------

`Tree` can be easily used within node.js projects:

    > var Tree = require('./src/tree')
    undefined

    > var t = new Tree();
    undefined

    > t.push(1,2,3)
    3

    > t
    { '0': 1,
      '1': 2,
      '2': 3,
      children:
       { '1': { children: {} },
         '2': { children: {} },
         '3': { children: {} } },
      length: 3 }

    > t.children[2].push(98, 56);
    2

    > t
    { '0': 1,
      '1': 2,
      '2': 3,
      children:
       { '1': { children: {} },
         '2':
          { '0': 98,
            '1': 56,
            children: [Object],
            length: 2 },
         '3': { children: {} } },
      length: 3 }

Tests
-----

So far, the project has some basic QUnit tests.

Inspirations
------------

 * QUnit & requireJS solution based on https://github.com/jonnyreeves/qunit-require

Contribution
------------

Any feedback and contribution is very welcome.

{'fraction_non_alphanumeric': 0.1661409043112513, 'fraction_numerical': 0.019453207150368034, 'mean_word_length': 2.0206349206349206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '158937', 'n_tokens_mistral': 605, 'n_tokens_neox': 561, 'n_words': 183}