<commit_before>WS_VERSION ?= $(shell echo ${WB_DB_URI} | sed -rn 's|.*(WS[0-9]+).*|\1|p')
LOWER_WS_VERSION ?= $(shell echo ${WS_VERSION} | tr A-Z a-z)
RESTORE_FROM_SNAPSHOT ?= latest

.PHONY: eb-local-run
eb-local-run:
	@eb local run --envvars AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID},AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY},WB_DB_URI=${WB_DB_URI},RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}

.PHONY: eb-setenv
eb-setenv:
	@eb setenv AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY} WB_DB_URI=${WB_DB_URI} RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}

.PHONY: eb-create
eb-create:
	@eb create wormbase-search-${LOWER_WS_VERSION} --cfg v0.2.14 --cname wormbase-search-${LOWER_WS_VERSION} --envvars AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID},AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY},WB_DB_URI=${WB_DB_URI},RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}<commit_msg>create enviroment for making hotfix<commit_after>WS_VERSION ?= $(shell echo ${WB_DB_URI} | sed -rn 's|.*(WS[0-9]+).*|\1|p')
LOWER_WS_VERSION ?= $(shell echo ${WS_VERSION} | tr A-Z a-z)
RESTORE_FROM_SNAPSHOT ?= latest
ENV_NAME_SUFFIX ?= $(shell git rev-parse --short HEAD)

.PHONY: eb-local-run
eb-local-run:
	@eb local run --envvars AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID},AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY},WB_DB_URI=${WB_DB_URI},RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}

.PHONY: eb-setenv
eb-setenv:
	@eb setenv AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY} WB_DB_URI=${WB_DB_URI} RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}

.PHONY: eb-create
eb-create:
	@eb create wormbase-search-${LOWER_WS_VERSION}-${ENV_NAME_SUFFIX} --cfg v0.2.14 --cname wormbase-search-${LOWER_WS_VERSION} --envvars AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID},AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY},WB_DB_URI=${WB_DB_URI},RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}

.PHONY: eb-create-hotfix
eb-create-hotfix:
	@eb create wormbase-search-${LOWER_WS_VERSION}-${ENV_NAME_SUFFIX} --cfg v0.2.14 --cname wormbase-search-hotfix --envvars AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID},AWS_SECRET_KEY=${AWS_SECRET_ACCESS_KEY},WB_DB_URI=${WB_DB_URI},RESTORE_FROM_SNAPSHOT=${RESTORE_FROM_SNAPSHOT}
{'fraction_non_alphanumeric': 0.15061615700593337, 'fraction_numerical': 0.008215426745778184, 'mean_word_length': 8.873873873873874, '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': '3994224', 'n_tokens_mistral': 1013, 'n_tokens_neox': 992, 'n_words': 111}