<commit_before># Roc Controller

The Roc controller is a ROS node which creates a watchdog for a given folder and listens to inputs from Roc lang.

## ROS topics
The node publishes on the TODO topic. The message types are located in the `msg` folder.

## Installation
1.Copy the contents of the RocDemoController folder to your catkin workspace src directory (typically `~/catkin_ws/src`).
2. Generate message classes by running
```
catkin_make install
```
3. Source the devel folder
```
cd ~/catkin_ws
source ./devel/setup.bash
```

## Run node
Run node:
```
rosrun roc RocController.py
```
Use RocController.py -h to see usage help.

## Troubleshooting
#### Error - not executable
Try granting execution right to RocController.py
```
chmod +x RocController.py
```<commit_msg>Adapt Readme to new directory structure<commit_after># Roc Controller

The Roc controller is a ROS node which creates a watchdog for a given folder and listens to inputs from Roc lang.

## ROS topics
The node publishes on the TODO topic. The message types are located in the `msg` folder.

## Installation
1.Copy the contents of the /roc_node folder to your catkin workspace src directory (typically `~/catkin_ws/src`).
2. Generate message classes by running
```
catkin_make install
```
3. Source the devel folder
```
cd ~/catkin_ws
source ./devel/setup.bash
```

## Run node
Run node:
```
rosrun roc RocController.py <ARGS>
```
Use RocController.py -h to see usage help.

## Troubleshooting
#### Error - not executable
Try granting execution right to RocController.py
```
chmod +x RocController.py
```
{'fraction_non_alphanumeric': 0.09183027232425586, 'fraction_numerical': 0.0037998733375554147, 'mean_word_length': 4.410958904109589, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5154228', 'n_tokens_mistral': 487, 'n_tokens_neox': 449, 'n_words': 212}