<commit_before># README #

Tenma is a comic server based on Django. This is highly beta right now, and needs a lot of work. Much of the below will be automated so that setup is quick and painless. 

## What is this repository for? ##

Storing, organizing, and reading comics.

## How do I get set up? ##

So far this has been tested only in a Mac environment. Theoretically it should work fine in a Linux environment as well.

### Virtual Environment ###

It is recommended to run Tenma in a Python Virtual Environment. 

1. Install Python 3.4 or greater
2. In Terminal, run `pip install virtualenv`
3. Change to the directory you want install Tenma.
3. Create virtual environment: `virtualenv -p python3 tenma`
4. Activate virtual environment: `source tenma/bin/activate`
5. Copy the Tenma files to a directory in the virtualenv.
6. Install dependencies.

### Dependencies: ###

1. Install Django: `pip install django`
2. Install the rarfile python library: `pip install rarfile`
3. Install Pillow: `pip install Pillow`

### Create your database: ###

1. In the tenma root directory, type `python manage.py migrate`
2. Create your user: `python manage.py createsuperuser`

### Get running: ###

1. Then start your local server: python manage.py runserver
2. Access from 127.0.0.1:8000

### Get your comics into the system: ###

1. Add your comics to the tenma/files directory (if it doesn't exist, create it)
2. Go to 127.0.0.1:8000/testing_cvscraper
3. Once the page is loaded, go to 127.0.0.1:8000 and your comics will be loaded!

## Contribution guidelines ##

* Writing tests
* Code review
* Other guidelines

## Who do I talk to? ##

* Repo owner or admin
* Other community or team contact<commit_msg>README.md edited online with Bitbucket<commit_after># README #

Tenma is a comic server based on Django. This is highly beta right now, and needs a lot of work. Much of the below will be automated so that setup is quick and painless. 

## What is this repository for? ##

Storing, organizing, and reading comics.

## How do I get set up? ##

So far this has been tested only in a Mac environment. Theoretically it should work fine in a Linux environment as well.

### Virtual Environment ###

It is recommended to run Tenma in a Python Virtual Environment. 

1. Install Python 3.4 or greater
2. In Terminal, run `pip install virtualenv`
3. Change to the directory you want install Tenma.
3. Create virtual environment: `virtualenv -p python3 tenma`
4. Activate virtual environment: `source tenma/bin/activate`
5. Copy the Tenma files to a directory in the virtualenv.
6. Install dependencies.

### Dependencies: ###

1. Install Django: `pip install django`
2. Install the rarfile python library: `pip install rarfile`
3. Install Pillow: `pip install Pillow`

### Create your database: ###

1. In the tenma root directory, type `python manage.py migrate`
2. Create your user: `python manage.py createsuperuser`

### Get running: ###

1. Then start your local server: python manage.py runserver
2. Access from 127.0.0.1:8000

### Get your comics into the system: ###

1. Add your comics to the tenma/files directory (if it doesn't exist, create it)
2. In Tenma, click the "Import Comics" button in the top-right corner.
3. Wait for the page to reload, and your comics will show.

## Supported filetypes ##

* CBZ
* ZIP
* CBR
* RAR
* CBT
* TAR
{'fraction_non_alphanumeric': 0.08455333134149985, 'fraction_numerical': 0.023902001792650136, 'mean_word_length': 3.9235294117647057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '847827', 'n_tokens_mistral': 1024, 'n_tokens_neox': 967, 'n_words': 504}