<commit_before>SCRIPT := $(shell basename $(PWD))
VAGRANT_DEFAULT_PROVIDER := $(SCRIPT)

export VAGRANT_DEFAULT_PROVIDER

default: ready

ready: bundler vagrant

bundler:
	bundle --local --path vendor/bundle

vagrant-shell.box: metadata.json
	tar cvfz vagrant-shell.box metadata.json

vagrant: vagrant-shell.box
	bundle exec vagrant box remove vagrant-shell $(SCRIPT) || true
	bundle exec vagrant box add vagrant-shell vagrant-shell.box

shell:
	bundle exec vagrant up || true
	bundle exec vagrant ssh
<commit_msg>vagrant status to find the name of the first running vagrant<commit_after>SCRIPT := $(shell basename $(PWD))
VAGRANT_DEFAULT_PROVIDER := $(SCRIPT)

export VAGRANT_DEFAULT_PROVIDER

default: ready

ready: bundler vagrant

bundler:
	bundle --local --path vendor/bundle

vagrant-shell.box: metadata.json
	tar cvfz vagrant-shell.box metadata.json

vagrant: vagrant-shell.box
	bundle exec vagrant box remove vagrant-shell $(SCRIPT) || true
	bundle exec vagrant box add vagrant-shell vagrant-shell.box

shell:
	bundle exec vagrant up || true
	bundle exec vagrant ssh $(shell bundle exec vagrant status | awk '$$2 == "running" && $$3 == "(docker)" { vg[length(vg)] = $$1 } END { print vg[0] }')

{'fraction_non_alphanumeric': 0.10565723793677205, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 4.868292682926829, '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': '4703203', 'n_tokens_mistral': 415, 'n_tokens_neox': 404, 'n_words': 127}