<commit_before>.PHONY: all re build migrations test up detach shell clean

compose := docker-compose -f docker-compose.yml

all: detach

re: clean build migrations all

build:
	$(compose) build web

migrations: build
	$(compose) run web bundle exec rake db:migrate
	$(compose) run web bundle exec rake db:seed

test: migrations
	$(compose) -f docker-compose.test.yml run test

up: migrations
	$(compose) up web

detach:
	$(compose) up -d web

shell: build
	$(compose) run shell

clean:
	$(compose) kill
	$(compose) rm --force<commit_msg>bind ports in shell mode<commit_after>.PHONY: all re build migrations test up detach shell clean

compose := docker-compose -f docker-compose.yml

all: detach

re: clean build migrations all

build:
	$(compose) build web

migrations: build
	$(compose) run web bundle exec rake db:migrate
	$(compose) run web bundle exec rake db:seed

test: migrations
	$(compose) -f docker-compose.test.yml run test

up: migrations
	$(compose) up web

detach:
	$(compose) up -d web

shell: build
	$(compose) run --service-port shell

clean:
	$(compose) kill
	$(compose) rm --force
{'fraction_non_alphanumeric': 0.10454545454545454, 'fraction_numerical': 0.0, 'mean_word_length': 4.267942583732057, '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': '5113896', 'n_tokens_mistral': 391, 'n_tokens_neox': 388, 'n_words': 142}