<commit_before># peoplecounter


## Getting Started
* Setup server by following [these steps](https://github.com/Domiii/node-sample-app)
* Import Database to MySQL:
  - Download the database (currently not public)
  - Create new folder `backup/`
  - Extract `*.sql` file to `backup/*.sql`
  - Go to `bin/` folder: `cd bin`
  - Run: `sh import.sh` [To import the sql file. This might take a few hours.]
* Deploying a device:
	* Start server
	* Go to "Device" page
	* Setup device
		* Download an image file (if you have not done so before) and copy it to the device (tested only on Galileo)
		* Boot up the device
		* Once it has finished initializing, it will connect to the server.
	* Add a new device configuration through the "Add device" button, give it a new name and hit "Apply"
		* Make sure that it is currently in the "reset pending" state. If not, hit "Reset"
		* Upon the next connection attempt, your new device will be assigned the first configuration with "reset pending" state
		* From then on, the device will use the given configuration to log into the server (until you reset it again)
	* Once initialized and authenticated, the device will start capturing packets and send them to the server
	* TODO: More info and diagrams here


## OrientDB Experiment
To better support graph-analysis on large datasets, we might want to eventually migrate toward OrientDB.

To get it working:

* [Download and install the Java SDK](http://www.oracle.com/technetwork/java/javase/downloads/)
* Add the Java SDK to your PATH
* [Download OrientDB](http://orientdb.com/download/) and extract/install it to your programs folders
* Create a shortcut to `OrientDB\bin\server.sh` (or `server.bat` on Windows) on your Desktop (or wherever)
* Create a shortcut to `OrientDB\bin\console.sh` (or `console.bat` on Windows) on your Desktop (or wherever)
* Run `server` to start your DB
* (Run `console` to [connect to your DB](http://orientdb.com/docs/last/Tutorial-Run-the-console.html) and play with it)
* You might want to take a look at [their manual](http://orientdb.com/docs/last/index.html)<commit_msg>- updated README<commit_after># peoplecounter


## Getting Started
* Setup server by following [these steps](https://github.com/Domiii/node-sample-app)
* Import Database to MySQL:
	* Download the database (currently not public)
	* Create new folder `backup/`
	* Extract `*.sql` file to `backup/*.sql`
	* Go to `bin/` folder: `cd bin`
	* Run: `sh import.sh` [To import the sql file. This might take a few hours.]
* Deploying a device:
	* Start server
	* Go to "Device" page
	* Setup device
		* Download an image file (if you have not done so before) and copy it to the device (tested only on Galileo)
		* Boot up the device
		* Once it has finished initializing, it will connect to the server.
	* Add a new device configuration through the "Add device" button, give it a new name and hit "Apply"
		* Make sure that it is currently in the "reset pending" state. If not, hit "Reset"
		* Upon the next connection attempt, your (Galileo) device will be assigned the first configuration with "reset pending" state
		* From then on, the device will use that configuration to authenticate and communicate with the server (until you reset it again)
	* Once initialized and authenticated, the device will start capturing packets and send them to the server
	* TODO: More info and diagrams here


## OrientDB Experiment
To better support graph-analysis on large datasets, we might want to eventually migrate toward OrientDB.

To get it working:

* [Download and install the Java SDK](http://www.oracle.com/technetwork/java/javase/downloads/)
* Add the Java SDK to your PATH
* [Download OrientDB](http://orientdb.com/download/) and extract/install it to your programs folders
* Create a shortcut to `OrientDB\bin\server.sh` (or `server.bat` on Windows) on your Desktop (or wherever)
* Create a shortcut to `OrientDB\bin\console.sh` (or `console.bat` on Windows) on your Desktop (or wherever)
* Run `server` to start your DB
* (Run `console` to [connect to your DB](http://orientdb.com/docs/last/Tutorial-Run-the-console.html) and play with it)
* You might want to take a look at [their manual](http://orientdb.com/docs/last/index.html)
{'fraction_non_alphanumeric': 0.09118900994789199, 'fraction_numerical': 0.0, 'mean_word_length': 4.131227217496963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3328511', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1173, 'n_words': 576}