<commit_before>A small qtscript project to invoke jsbeautify.js from the command line.

An alternative to the rhino version.
<commit_msg>Some info on how to built the Qt Script-based driver.<commit_after>A small qtscript project to invoke jsbeautify.js from the command line.

An alternative to the rhino version.

Requirement
-----------

Qt 4.6 is later is needed to build.

For OpenSUSE, install it using 'sudo zypper in libqt4-devel'.
For Ubuntu/Debian, install it using 'sudo apt-get install libqt4-dev'.

For other distributions and/or operating systems, download the binary for free
from http://qt.nokia.com/downloads.

Build
-----

qmake && make

(On some Ubuntu/Debian, change qmake to qmake-qt4).

Use
---

    jsbeautify source-file

The content of source-file will be read, beautified, and printed to the console.
{'fraction_non_alphanumeric': 0.08363636363636363, 'fraction_numerical': 0.006060606060606061, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2182142', 'n_tokens_mistral': 260, 'n_tokens_neox': 245, 'n_words': 109}