<commit_before># friction

a tool for viewing items from your massive collection of pornographic manga at
random

## prerequisites

- python 3.5 or newer (`os.scandir` is just too good)
- unrar, which is probably available from your package manager as `unrar`
- a directory full of porn manga (more details in 'caveats' below)

## setup

```
pip3 install friction
```

## use

```
cd '~/Desktop/vegetable taxes'  # or wherever your porn is
friction
```

then open <http://localhost:5000/> in your browser of choice

for quick navigation between pages, you can swipe if you're on a touchscreen
device, or you can use your arrow keys

when you want something new, hit enter or the little x in the corner or reload
the page or scroll, and it'll pick another thing for you

you can show a menu for filtering and rotation options by pressing o or
clicking or tapping a link hidden in the bottom left of the screen (it'll
appear when you hover over it, on touch devices you'll just have to hit the
bottom left corner blind)

the filtering is pretty stupid, it just checks to see if your query is present
in the file's path, ignoring case

## caveats
<commit_msg>explain installing better<commit_after># friction

a tool for viewing items from your massive collection of pornographic manga at
random

## prerequisites

- python 3.5 or newer (`os.scandir` is just too good)
- unrar, which is probably available from your package manager as `unrar`
- libjpeg and zlib (so that we can run [PIL][pil] and determine image
  resolutions)
- a directory full of porn manga (more details in 'caveats' below)

[pil]: http://pillow.readthedocs.io/en/3.0.x/installation.html

## setup

```
pip3 install friction
```

or, to upgrade from an older version:

```
pip3 install -U friction
```

## use

```
cd '~/Desktop/vegetable taxes'  # or wherever your porn is
friction
```

then open <http://localhost:5000/> in your browser of choice

for quick navigation between pages, you can swipe if you're on a touchscreen
device, or you can use your arrow keys

when you want something new, hit enter or the little x in the corner or reload
the page or scroll, and it'll pick another thing for you

you can show a menu for filtering and rotation options by pressing o or
clicking or tapping a link hidden in the bottom left of the screen (it'll
appear when you hover over it, on touch devices you'll just have to hit the
bottom left corner blind)

the filtering is pretty stupid, it just checks to see if your query is present
in the file's path, ignoring case

## caveats

{'fraction_non_alphanumeric': 0.06441476826394343, 'fraction_numerical': 0.006677140612725845, 'mean_word_length': 4.1454545454545455, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '30251', 'n_tokens_mistral': 757, 'n_tokens_neox': 695, 'n_words': 402}