<commit_before>WORK_DIR=/usr/src/app

.PHONY: build bash mongo run crawl
build:
	docker build -t py36 .
boot:
	docker run --rm -it \
        --name py36-mongo \
        -v $(PWD)/resources/storage:/data/db \
        -d mongo
bash:
	docker run --rm -it \
        --name py36-spiders \
        --link py36-mongo:mongo \
        -v $(PWD):$(WORK_DIR) \
        -w $(WORK_DIR) \
        py36 /bin/bash
mongo:
	docker exec -it \
        py36-mongo mongo
run:
	docker run --rm -it \
        --link py36-mongo:mongo \
        -v $(PWD):$(WORK_DIR) \
        -w $(WORK_DIR) \<commit_msg>add: “mongo-export” task<commit_after>WORK_DIR=/usr/src/app

.PHONY: build bash mongo mongo-export run crawl
build:
	docker build -t py36 .
boot:
	docker run --rm -it \
        --name py36-mongo \
        -v $(PWD)/resources/storage:/data/db \
        -v $(PWD):$(WORK_DIR) \
        -w $(WORK_DIR) \
        -d mongo
bash:
	docker run --rm -it \
        --name py36-spiders \
        --link py36-mongo:mongo \
        -v $(PWD):$(WORK_DIR) \
        -w $(WORK_DIR) \
        py36 /bin/bash
mongo:
	docker exec -it \
        py36-mongo mongo
mongo-export:
	docker exec -it \
        py36-mongo misc/export.sh
run:
	docker run --rm -it \
        --link py36-mongo:mongo \
        -v $(PWD):$(WORK_DIR) \
        -w $(WORK_DIR) \
{'fraction_non_alphanumeric': 0.15773353751914243, 'fraction_numerical': 0.022970903522205207, 'mean_word_length': 1.6035856573705178, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2024284', 'n_tokens_mistral': 545, 'n_tokens_neox': 504, 'n_words': 123}