<commit_before>prioprepare-web
===============

Store a hash of your document in a bank transaction for priority statement.

For full information, see http://rschoenm.github.io/prioprepare/.

Usage
-----

Select or drag and drop a file to the window to compute its hash value. See the [Prioprepare webpage](http://rschoenm.github.io/prioprepare/) for more information.


Contributing
------------

### Improvements

* use [JSzip](http://stuartk.com/jszip/) to create a ready to be stored zip file with original file anf txt file containing hash.


### Code architecture

#### Chrome application 
`manifest.json` is used for Chrome app manifest. `background.js` is used to declare the Chrome app window. 
See https://developer.chrome.com/apps/first_app.html for more info.

<commit_msg>few ideas for the futur<commit_after>prioprepare-web
===============

Store a hash of your document in a bank transaction for priority statement.

For full information, see http://rschoenm.github.io/prioprepare/.

Usage
-----

Select or drag and drop a file to the window to compute its hash value. See the [Prioprepare webpage](http://rschoenm.github.io/prioprepare/) for more information.


Contributing
------------

### Improvements

* Use `FileReader.readAsBinaryString()` instead of `FileReader.readAsText()` because results on binary files differs from Prioprepare Windows.
* When file is big, result can take time to be computed. Display loading percentage.
* Display a help button that goes to http://rschoenm.github.io/prioprepare/
* Use [JSzip](http://stuartk.com/jszip/) to create a ready to be stored zip file with original file anf txt file containing hash.


### Code architecture

#### Chrome application 
`manifest.json` is used for Chrome app manifest. `background.js` is used to declare the Chrome app window. 
See https://developer.chrome.com/apps/first_app.html for more info.


{'fraction_non_alphanumeric': 0.11677282377919321, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507915', 'n_tokens_mistral': 550, 'n_tokens_neox': 523, 'n_words': 216}