<commit_before>IMAGE := stencila-director
all: setup run

setup: director-setup director-env

run: director-run

docker: Dockerfile
	docker build -t $(IMAGE) .

DOCKER ?= docker run --net=host -it --rm -u $$(id -u):$$(id -g) -v $$(pwd):/work -w /work $(IMAGE)

interact:
	$(DOCKER) bash

####################################################################################
# Director

# Shortcut to activate the virtual environment; used below
VE := . director/env/bin/activate ;

# Shortcut to run a Django manage.py task in the virtual environment; used below
ifeq ($(DOCKER), '')
	DJ := $(VE) director/manage.py
else
	DJ := $(DOCKER) python3 director/manage.py 
endif

# Install necessary packages
director-setup:
	sudo apt-get install python3.6 python3.6-dev python3.6-venv libev-dev

# Setup virtual environment<commit_msg>Added deploy make target<commit_after>IMAGE := stencila-director
all: setup run

setup: director-setup director-env

run: director-run

docker: Dockerfile
	docker build -t $(IMAGE) .

deploy: docker
	docker tag $(IMAGE) stencila/hub
	docker push stencila/hub

DOCKER ?= docker run --net=host -it --rm -u $$(id -u):$$(id -g) -v $$(pwd):/work -w /work $(IMAGE)

interact:
	$(DOCKER) bash

####################################################################################
# Director

# Shortcut to activate the virtual environment; used below
VE := . director/env/bin/activate ;

# Shortcut to run a Django manage.py task in the virtual environment; used below
ifeq ($(DOCKER), '')
	DJ := $(VE) director/manage.py
else
	DJ := $(DOCKER) python3 director/manage.py 
endif

# Install necessary packages
director-setup:
	sudo apt-get install python3.6 python3.6-dev python3.6-venv libev-dev

# Setup virtual environment
{'fraction_non_alphanumeric': 0.21457257601835916, 'fraction_numerical': 0.008032128514056224, 'mean_word_length': 4.554140127388535, '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': '1574500', 'n_tokens_mistral': 574, 'n_tokens_neox': 533, 'n_words': 177}