<commit_before># Beetle for Linux

##### Requirements
- libboost-all-dev, libbluetoothdev
- Eclipse CDT (Mars)

##### To build and run
1. clone and import the project into Eclipse
2. build
3. in a terminal, ``` cd Debug ```
4. ``` sudo ./Beetle ```  

##### Python tcp client
In ```client``` subdirectory. 

##### Python controller
In ```controller``` subdirectory. 

##### TCP connection protocol
Parameters are key value pairs sent at the beginning of the connection in ASCII text. 
* client name *(connect with the client protocol, where name is the name of the client)*
* server bool *(where bool is whether the client is running a GATT server)*
* gateway name *(connect with the gateway protocol, where name is the name of the gateway)*
* device id *(where id is the id of the device at the gateway)*

##### Notes
The main function is in Beetle.cpp.<commit_msg>README.md edited online with Bitbucket<commit_after># Beetle for Linux

##### Requirements
- libboost-all-dev, libbluetoothdev
- Eclipse CDT (Mars)

##### To build and run
1. clone and import the project into Eclipse
2. build
3. in a terminal, ``` cd Debug ```
4. ``` sudo ./Beetle ```  

##### Python tcp client
In ```client``` subdirectory. 

##### Python controller
In ```controller``` subdirectory. 

##### TCP connection protocol
Parameters are key value pairs sent at the beginning of the connection in ASCII text. 

* client name *(connect with the client protocol, where name is the name of the client)*
* server bool *(where bool is whether the client is running a GATT server)*
* gateway name *(connect with the gateway protocol, where name is the name of the gateway)*
* device id *(where id is the id of the device at the gateway)*

##### Notes
The main function is in Beetle.cpp.
{'fraction_non_alphanumeric': 0.11319681456200227, 'fraction_numerical': 0.004550625711035267, 'mean_word_length': 4.188790560471976, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1931579', 'n_tokens_mistral': 501, 'n_tokens_neox': 471, 'n_words': 253}