<commit_before># kd-go
GO-Version of the KabelDeutschland streaming proxy (https://github.com/edi-design/kd-streaming-proxy).
To get more information, visit http://freshest.me.

## dependencies

* gorilla mux router (https://github.com/gorilla/mux)
 * `go get github.com/gorilla/mux`

## build

To build the source for various plattforms, simply run the build-script provided under `scripts/build.sh`.
It relies on a proper configured go-environment with GOPATH and GOROOT set up.

By now, I only tested the build process on OS X but it should not be a problem to run the commands on Linux.

## configuration

Place a `config.json` next to the binary and fill it with the following content, including your KabelDeutschland credentials.
```
{
  "Service": {
    "Username": "##USERNAME##",
    "Password": "<PASSWORD>##",
    "Listen": ":8787"
  }
}
```

## run

The easiest way, is to run the binary without any params. It searches automatically for the `config.json` next to the binary.
`./kd_go`

### params

```<commit_msg>- fixed layout<commit_after># kd-go
GO-Version of the KabelDeutschland streaming proxy (https://github.com/edi-design/kd-streaming-proxy).
To get more information, visit http://freshest.me.

## dependencies

* gorilla mux router (https://github.com/gorilla/mux)
 * `go get github.com/gorilla/mux`

## build

To build the source for various plattforms, simply run the build-script provided under `scripts/build.sh`.
It relies on a proper configured go-environment with GOPATH and GOROOT set up.

By now, I only tested the build process on OS X but it should not be a problem to run the commands on Linux.

## configuration

Place a `config.json` next to the binary and fill it with the following content, including your KabelDeutschland credentials.
```
{
  "Service": {
    "Username": "##USERNAME##",
    "Password": "<PASSWORD>##",
    "Listen": ":8787"
  }
}
```

## run

The easiest way, is to run the binary without any params. It searches automatically for the `config.json` next to the binary.

`./kd_proxy`

### params

```
{'fraction_non_alphanumeric': 0.11521633446767136, 'fraction_numerical': 0.003889158969372873, 'mean_word_length': 4.007299270072993, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2904997', 'n_tokens_mistral': 642, 'n_tokens_neox': 624, 'n_words': 252}