<commit_before>Paint.JS
========

Compile
-------
    tsc --module commonjs -t ES5 index.ts

(tip: add the `-w` parameter to automatically recompile files whenever they get saved)<commit_msg>Aggiunte istruzioni per preparare l'ambiente di sviluppo e eseguire il sw<commit_after>Paint.JS
========

Setup development environment
-----------------------------
 1. Install node.js for your platform (install npm too, if asked).
 2. Install the TypeScript compiler: run `npm install -g typescript` with admin privileges.
 3. Download [node-webkit](https://github.com/rogerwang/node-webkit) for your platform.
 4. If you want code completion, syntax highlighting and a lot more nice features, [set up Eclipse](https://github.com/Antaniasdasd/Paint.js/wiki/Setting-Up-IDE).

Compile
-------
    tsc --module commonjs -t ES5 index.ts

(tip: add the `-w` parameter to automatically recompile files whenever they get saved)

Run
---
Execute node-webkit passing the src folder of Paint.js as the first parameter:

    path-to-node-webkit/nw path-to-paint-js/src
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 3.379166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3966367', 'n_tokens_mistral': 319, 'n_tokens_neox': 298, 'n_words': 116}