<commit_before>geo_data: GeoLite2-Country.mmdb 

GeoLite2-Country.mmdb:
	./bin/download_geolite2.sh

build: geo_data
	docker-compose build

createuser: build
	docker-compose run app python manage.py createsuperuser

check_migrations: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- python manage.py makemigrations --check --dry-run --noinput"

makemigrations: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 --  python manage.py makemigrations"

migrate: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- python manage.py migrate"

load_geo_location: build
	docker-compose run app ./bin/download_geolite2.sh

update_actions: build
	docker-compose run app python manage.py update_actions

update_product_details: build
	docker-compose run app python manage.py update_product_details
	
load_initial_data: build
	docker-compose run app python manage.py initial_data

load_data: migrate load_geo_location update_actions load_initial_data

lint: SHELL:=/bin/bash -O extglob
lint:
	docker-compose run app therapist run --disable-git ./!(node_modules|assets|docs)

code_format: SHELL:=/bin/bash -O extglob
code_format:
	docker-compose run app therapist run --fix --disable-git ./!(node_modules|assets|docs)
check: check_migrations lint test

kill:
	docker ps -a -q | xargs docker kill;docker ps -a -q | xargs docker rm<commit_msg>avoid downloading geo data<commit_after>geo_data: GeoLite2-Country.mmdb 

GeoLite2-Country.mmdb:
	./bin/download_geolite2.sh

build:
	docker-compose build

createuser: build
	docker-compose run app python manage.py createsuperuser

check_migrations: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- python manage.py makemigrations --check --dry-run --noinput"

makemigrations: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 --  python manage.py makemigrations"

migrate: build
	docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- python manage.py migrate"

load_geo_location: build
	docker-compose run app ./bin/download_geolite2.sh

update_actions: build
	docker-compose run app python manage.py update_actions

update_product_details: build
	docker-compose run app python manage.py update_product_details
	
load_initial_data: build
	docker-compose run app python manage.py initial_data

load_data: migrate update_actions load_initial_data

lint: SHELL:=/bin/bash -O extglob
lint:
	docker-compose run app therapist run --disable-git ./!(node_modules|assets|docs)

code_format: SHELL:=/bin/bash -O extglob
code_format:
	docker-compose run app therapist run --fix --disable-git ./!(node_modules|assets|docs)
check: check_migrations lint test

kill:
	docker ps -a -q | xargs docker kill;docker ps -a -q | xargs docker rm
{'fraction_non_alphanumeric': 0.09616775126536514, 'fraction_numerical': 0.011569052783803326, 'mean_word_length': 4.446850393700787, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5148286', 'n_tokens_mistral': 1014, 'n_tokens_neox': 937, 'n_words': 266}