<commit_before># web_tracking

## Summary:
Track computers/users with javascript and node.js.

This uses [fingerprintjs2](https://github.com/Valve/fingerprintjs2).

I was also trying to use [evercookie](https://github.com/samyk/evercookie), but ended up just using
Flash LSOs (https://github.com/faisalman/flash-cookie-js).

## To install:
There are a number of dependencies for nodejs for this.  You can see them in the first few lines of the .js file, soon to be in a config file for installation.

## To run server:
`node track_node_express.js`

Go to localhost:3001, press ctrl+shift+i in Chrome to see console output (dev tools).
<commit_msg>DOCS: update install step<commit_after># web_tracking

## Summary:
Track computers/devices/users with javascript and node.js.

This uses [fingerprintjs2](https://github.com/Valve/fingerprintjs2), [js-cookie](https://github.com/js-cookie/js-cookie), and [flash-cookie-js](https://github.com/faisalman/flash-cookie-js).

It can detect the same device cross-browser, except for chrome.  It does this via flash cookies, but chrome stores flash cookies in [a separate location](http://askubuntu.com/questions/40080/where-are-flash-cookies-stored).

I was also trying to use [evercookie](https://github.com/samyk/evercookie), but ended up just using
Flash LSOs (https://github.com/faisalman/flash-cookie-js) instead, because evercookie is a huge, complicated piece of code, and it was causing my page to drag and load infinitely.

## To install:
There are a number of dependencies for nodejs for this.  Do `npm install` to get 'em.

## To run server:
`node track_node_express.js`

Go to localhost:3001, press ctrl+shift+i in Chrome to see console output (dev tools).

{'fraction_non_alphanumeric': 0.10597189695550352, 'fraction_numerical': 0.009953161592505855, 'mean_word_length': 4.677740863787376, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '6085204', 'n_tokens_mistral': 538, 'n_tokens_neox': 511, 'n_words': 194}