<commit_before>.PHONY: all build spec brakeman

all: build spec brakeman

build:
	docker build -t brain .

run:
	docker run --rm -v `pwd`:/brain -it brain:latest bash

spec:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec rspec

rubocop:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec rubocop -D

brakeman:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec brakeman -zAI

update:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle update
<commit_msg>Improve spec target to allow specific tests to be run<commit_after>SPEC ?= spec

.PHONY: all build spec brakeman

all: build spec brakeman

build:
	docker build -t brain .

run:
	docker run --rm -v `pwd`:/brain -it brain:latest bash

spec:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec rspec $(SPEC)

rubocop:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec rubocop -D

brakeman:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle exec brakeman -zAI

update:
	docker run --rm -v `pwd`:/brain -it brain:latest bundle update

{'fraction_non_alphanumeric': 0.12026515151515152, 'fraction_numerical': 0.0, 'mean_word_length': 3.422594142259414, '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': '1899355', 'n_tokens_mistral': 420, 'n_tokens_neox': 382, 'n_words': 148}