<commit_before>rmbt-client
===========

RMBT measurement client in C
----------------------------
This code is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

For more information and the server code see also https://github.com/alladin-IT/open-rmbt


Building
--------

rmbt-client needs the following libraries:

* `gcc`, `clang` or another C compiler
* `make`
* `libuuid`
* `libssl` / `libcrypto`
* `libjson-c`
* (`git`)

To install the required build dependencies on `apt` based distos (Debian, Ubuntu, ...) run:

```
sudo apt install build-essential pkg-config libjson-c-dev libssl-dev uuid-dev
```

For `yum` based distros (CentOS, Fedora, ...) this should work:

```
yum install make gcc json-c-devel openssl-devel libuuid-devel
```

To build simply run:

```
$ git clone https://github.com/lwimmer/rmbt-client
$ cd rmbt-client
$ make
```

Running
-------
<commit_msg>Update README for autotools<commit_after>rmbt-client -- RMBT measurement client in C
===========

For more information and the server code see also https://github.com/alladin-IT/open-rmbt

This code is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

Building
--------

rmbt-client has the following requirements:

* `autoconf`, `automake`, `make`
* `gcc`, `clang` or another C compiler
* `libuuid`
* `libssl`, `libcrypto`
* `libjson-c`
* (`git`)

To install the required build dependencies on `apt` based distos (Debian, Ubuntu, ...) run:

```
sudo apt install libc-dev git autoconf automake make gcc pkg-config libjson-c-dev libssl-dev uuid-dev
```

For `yum` based distros (CentOS, Fedora, ...) this should work:

```
yum install git autoconf automake make gcc json-c-devel openssl-devel libuuid-devel
```

To build simply run:

```
$ git clone https://github.com/lwimmer/rmbt-client
$ cd rmbt-client
$ ./autobuild.sh
```

To install run:
```
make install
```

Running
-------

{'fraction_non_alphanumeric': 0.17051874678993323, 'fraction_numerical': 0.004108885464817668, 'mean_word_length': 3.5943396226415096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4564912', 'n_tokens_mistral': 687, 'n_tokens_neox': 634, 'n_words': 202}