<commit_before>Arbutus
=====

A JavaScript library to create DOM trees from HTML strings.


Examples
--------

```arbutus.parseHTML``` returns a DocumentFragment.

```javascript
var fragment = arbutus.parseHTML('<div>alpha</div>');
fragment.firstChild.tagName; // 'DIV'
var fragment = arbutus.parseHTML('  abc<span>beta</span>');
fragment.firstChild.nodeValue; // 'abc'
fragment.firstChild.nextSibling.tagName; // 'SPAN'
```


Downloads
---------

See http://peter.michaux.ca/downloads/arbutus/ for production ready builds.


Status
------

Ready.


Browser Support
---------------

Tested working in IE6 and newer browsers by a variety of manufacturers.


Dependencies
------------

None.


Build
-----

To build the production ready files, you need [JSMin](http://www.crockford.com/javascript/jsmin.html) or any other tool with the same command line interface. Then just type "make" at the command line and look in the build directory for the results.<commit_msg>add Source Code section to README<commit_after>Arbutus
=====

A JavaScript library to create DOM trees from HTML strings.


Examples
--------

```arbutus.parseHTML``` returns a DocumentFragment.

```javascript
var fragment = arbutus.parseHTML('<div>alpha</div>');
fragment.firstChild.tagName; // 'DIV'
var fragment = arbutus.parseHTML('  abc<span>beta</span>');
fragment.firstChild.nodeValue; // 'abc'
fragment.firstChild.nextSibling.tagName; // 'SPAN'
```


Downloads
---------

See http://peter.michaux.ca/downloads/arbutus/ for production ready builds.


Status
------

Ready.


Browser Support
---------------

Tested working in IE6 and newer browsers by a variety of manufacturers.


Dependencies
------------

None.


Source Code
-----------

GitHub: https://github.com/petermichaux/arbutus


Build
-----

To build the production ready files, you need [JSMin](http://www.crockford.com/javascript/jsmin.html) or any other tool with the same command line interface. Then just type "make" at the command line and look in the build directory for the results.
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.0009876543209876543, 'mean_word_length': 3.3106382978723405, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4164187', 'n_tokens_mistral': 615, 'n_tokens_neox': 586, 'n_words': 192}