<commit_before># Cogat-Docker
[![CircleCI](https://circleci.com/gh/poldracklab/cogat/tree/master.svg?style=svg)](https://circleci.com/gh/poldracklab/cogat/tree/master)

Light Django application and containers for Spark and Neo4j to serve the Cognitive Atlas and manage development.


## Getting started

This project uses docker and docker-compose:


Docker:  [https://docs.docker.com/installation/](https://docs.docker.com/installation/)<br />
Docker Compose: [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)

Docker file for neo4j taken from [https://github.com/kbastani/docker-neo4j](https://github.com/kbastani/docker-neo4j) and modified to do some data imports.

## Setting up social authentication

To set up the social auth backend, after starting the server you will need to [follow these instructions](https://django-allauth.readthedocs.io/en/latest/installation.html#post-installation).

## Create default user

Add `MAKE_DEFAULT_USER=True` to the `.env` file in the root of the project. The user specificed in scripts/create_superuser.py will then be created on startup of the uwsgi container.<commit_msg>left myself a note on user imports<commit_after># Cogat-Docker
[![CircleCI](https://circleci.com/gh/poldracklab/cogat/tree/master.svg?style=svg)](https://circleci.com/gh/poldracklab/cogat/tree/master)

Light Django application and containers for Spark and Neo4j to serve the Cognitive Atlas and manage development.


## Getting started

This project uses docker and docker-compose:


Docker:  [https://docs.docker.com/installation/](https://docs.docker.com/installation/)<br />
Docker Compose: [https://docs.docker.com/compose/install/](https://docs.docker.com/compose/install/)

Docker file for neo4j taken from [https://github.com/kbastani/docker-neo4j](https://github.com/kbastani/docker-neo4j) and modified to do some data imports.

## Setting up social authentication

To set up the social auth backend, after starting the server you will need to [follow these instructions](https://django-allauth.readthedocs.io/en/latest/installation.html#post-installation).

## Create default user

Add `MAKE_DEFAULT_USER=True` to the `.env` file in the root of the project. The user specificed in scripts/create_superuser.py will then be created on startup of the uwsgi container.

## Old users

The import contianer looks for an environment variable named `MYSQL_DUMP` and uses its value as the sql dump file to import into mysql. This variable should be defined in `.env`. The users will be imported when the import container is started. It should be started with docker-compose using the `docker-compose-import.yml` config file.
{'fraction_non_alphanumeric': 0.10650224215246637, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 4.9094922737306845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4166206', 'n_tokens_mistral': 830, 'n_tokens_neox': 779, 'n_words': 257}