<commit_before>ROOT = $(shell git rev-parse --show-toplevel)
include $(ROOT)/functions.Makefile

STACK_ROOT  = sierra_adapter

SBT_APPS    = sierra_bib_merger \
              sierra_item_merger \
			  sierra_items_to_dynamo \
			  sierra_reader
ECS_TASKS   =
LAMBDAS     = s3_demultiplexer sierra_window_generator

TF_NAME     = sierra_adapter
TF_PATH     = $(ROOT)/$(STACK_ROOT)/terraform
TF_IS_PUBLIC_FACING = false

$(val $(call stack_setup))


SIERRA_WINDOW_GENERATOR = $(ROOT)/sierra_adapter/sierra_window_generator

$(SIERRA_WINDOW_GENERATOR)/src/requirements.txt: $(SIERRA_WINDOW_GENERATOR)/src/requirements.in
	$(ROOT)/builds/docker_run.py -- \
		--volume $(SIERRA_WINDOW_GENERATOR)/src:/src micktwomey/pip-tools


$(ROOT)/.docker/sierra_adapter_progress:
	echo "FROM python:3-alpine\nRUN pip3 install attr boto3" | docker build --tag sierra_adapter_progress -
	mkdir -p $(ROOT)/.docker
	touch $(ROOT)/.docker/sierra_adapter_progress

sierra_adapter_progress: $(ROOT)/.docker/sierra_adapter_progress
	$(ROOT)/builds/docker_run.py --aws -- \
		--volume $(ROOT)/$(STACK_ROOT):/src \
		sierra_adapter_progress \
		python /src/report_adapter_progress.py


sierra_common-test:
	$(call sbt_test,sierra_adapter_common)

sierra_common-publish:
	echo "Nothing to do!"
<commit_msg>Fix the pip install name<commit_after>ROOT = $(shell git rev-parse --show-toplevel)
include $(ROOT)/functions.Makefile

STACK_ROOT  = sierra_adapter

SBT_APPS    = sierra_bib_merger \
              sierra_item_merger \
			  sierra_items_to_dynamo \
			  sierra_reader
ECS_TASKS   =
LAMBDAS     = s3_demultiplexer sierra_window_generator

TF_NAME     = sierra_adapter
TF_PATH     = $(ROOT)/$(STACK_ROOT)/terraform
TF_IS_PUBLIC_FACING = false

$(val $(call stack_setup))


SIERRA_WINDOW_GENERATOR = $(ROOT)/sierra_adapter/sierra_window_generator

$(SIERRA_WINDOW_GENERATOR)/src/requirements.txt: $(SIERRA_WINDOW_GENERATOR)/src/requirements.in
	$(ROOT)/builds/docker_run.py -- \
		--volume $(SIERRA_WINDOW_GENERATOR)/src:/src micktwomey/pip-tools


$(ROOT)/.docker/sierra_adapter_progress:
	echo "FROM python:3-alpine\nRUN pip3 install attrs boto3" | docker build --tag sierra_adapter_progress -
	mkdir -p $(ROOT)/.docker
	touch $(ROOT)/.docker/sierra_adapter_progress

sierra_adapter_progress: $(ROOT)/.docker/sierra_adapter_progress
	$(ROOT)/builds/docker_run.py --aws -- \
		--volume $(ROOT)/$(STACK_ROOT):/src \
		sierra_adapter_progress \
		python /src/report_adapter_progress.py


sierra_common-test:
	$(call sbt_test,sierra_adapter_common)

sierra_common-publish:
	echo "Nothing to do!"

{'fraction_non_alphanumeric': 0.11750972762645914, 'fraction_numerical': 0.0031128404669260703, 'mean_word_length': 4.62582056892779, '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': '2064048', 'n_tokens_mistral': 995, 'n_tokens_neox': 943, 'n_words': 142}