<commit_before>Compy
=====

Compy is an HTTP/HTTPS forward proxy with content compression/transcoding capabilities.  
One use case is to reduce bandwidth usage when browsing on limited mobile broadband connection.


Features
--------

- HTTPS proxy (encrypted connection between client and proxy)
- man in the middle support (compress HTTPS traffic)
- HTTP2 support (over TLS)
- Brotli and gzip compression
- transcode animated GIFs to static images
- transcode JPEG images to desired quality using libjpeg
- transcode PNG and JPEG images to WebP
- HTML/CSS/JavaScript minification


Installation
------------

compy needs a few libraries to compile.
On Ubuntu, run `apt-get install -y libjpeg8 openssl ssl-cert`.
On macOS, run `brew install jpeg`.  Then compile via:

```ShellSession
$ go get github.com/barnacs/compy
$ cd go/src/github.com/barnacs/compy/
$ go install
```
<commit_msg>Add installation instructions for Fedora<commit_after>Compy
=====

Compy is an HTTP/HTTPS forward proxy with content compression/transcoding capabilities.  
One use case is to reduce bandwidth usage when browsing on limited mobile broadband connection.


Features
--------

- HTTPS proxy (encrypted connection between client and proxy)
- man in the middle support (compress HTTPS traffic)
- HTTP2 support (over TLS)
- Brotli and gzip compression
- transcode animated GIFs to static images
- transcode JPEG images to desired quality using libjpeg
- transcode PNG and JPEG images to WebP
- HTML/CSS/JavaScript minification


Installation
------------

compy needs a few libraries to compile.
On Fedora, run `dnf install -y libjpeg-devel`
On Ubuntu, run `apt-get install -y libjpeg8 openssl ssl-cert`.
On macOS, run `brew install jpeg`.  Then compile via:

```ShellSession
$ go get github.com/barnacs/compy
$ cd go/src/github.com/barnacs/compy/
$ go install
```

{'fraction_non_alphanumeric': 0.0883468834688347, 'fraction_numerical': 0.002168021680216802, 'mean_word_length': 3.857894736842105, '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': '2572330', 'n_tokens_mistral': 553, 'n_tokens_neox': 514, 'n_words': 227}