<commit_before># DocHub

[![License](https://img.shields.io/badge/license-AGPL%20v3-blue.svg)](https://github.com/UrLab/beta402/blob/master/LICENSE)

DocHub is a website, written in django. It's main goal is to provide a space for students (for now form the [ULB](https://ulb.ac.be) university) to collaborate, help each other and distribute old exams and exercices.

There is a [live instance of DocHub](https://dochub.be) hosted by [UrLab](https://urlab.be) and the [Cercle Informatique](https://cerkinfo.be).

## Screenshots

![](https://github.com/urlab/dochub/blob/master/.meta/screen-1.png)
![](https://github.com/urlab/dochub/blob/master/.meta/screen-2.png)
![](https://github.com/urlab/dochub/blob/master/.meta/screen-3.png)

## Tech

DocHub currently (Feb 2021) runs with Python 3.8, Node 10 and Postgresql 12.

### Dependencies

```console
# Ubuntu
sudo apt-get install unoconv python3-dev nodejs ruby libtiff5-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk mupdf-tools
# Fedora
sudo dnf install unoconv python-devel nodejs ruby mupdf
# Arch linux
sudo pacman -S unoconv nodejs ruby python mupdf-tools
```

### Installation

```console
make install database
```

### Run

```
./manage.py runserver
```

Then go http://localhost:8000/

There will already be 2 users in the database, both with `test` as a password:

- $(USER) : your username on your machine
- blabevue
<commit_msg>[Del] node requirement<commit_after># DocHub

[![License](https://img.shields.io/badge/license-AGPL%20v3-blue.svg)](https://github.com/UrLab/beta402/blob/master/LICENSE)

DocHub is a website, written in django. It's main goal is to provide a space for students (for now form the [ULB](https://ulb.ac.be) university) to collaborate, help each other and distribute old exams and exercices.

There is a [live instance of DocHub](https://dochub.be) hosted by [UrLab](https://urlab.be) and the [Cercle Informatique](https://cerkinfo.be).

## Screenshots

![](https://github.com/urlab/dochub/blob/master/.meta/screen-1.png)
![](https://github.com/urlab/dochub/blob/master/.meta/screen-2.png)
![](https://github.com/urlab/dochub/blob/master/.meta/screen-3.png)

## Tech

DocHub currently (Feb 2021) runs with Python 3.8, ~~Node 10~~ and Postgresql 12.

### Dependencies

```console
# Ubuntu
sudo apt-get install unoconv python3-dev ruby libtiff5-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk mupdf-tools
# Fedora
sudo dnf install unoconv python-devel ruby mupdf
# Arch linux
sudo pacman -S unoconv ruby python mupdf-tools
```

### Installation

```console
make install database
```

### Run

```
./manage.py runserver
```

Then go http://localhost:8000/

There will already be 2 users in the database, both with `test` as a password:

- $(USER) : your username on your machine
- blabevue

{'fraction_non_alphanumeric': 0.14246004169562196, 'fraction_numerical': 0.022932592077831826, 'mean_word_length': 4.371268656716418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, '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': '1609725', 'n_tokens_mistral': 1095, 'n_tokens_neox': 980, 'n_words': 281}