<commit_before>include ../Makefile.inc

SOURCE_DIR=$(HOME)/openmrs/server/modules
TARGET_DIR=$(EXTRA_DATA)/usr/share/buendia/openmrs/modules
MAIN_MODULE=$(TARGET_DIR)/buendia-server.omod
OTHER_MODULES=$(TARGET_DIR)/xforms-4.3.5.omod $(TARGET_DIR)/webservices.rest-2.6.omod

$(EXTRA_DATA): $(MAIN_MODULE) $(OTHER_MODULES) $(EXTRA_DATA)/usr/bin/buendia-openmrs-account-setup $(EXTRA_DATA)/usr/bin/buendia-profile-apply $(EXTRA_DATA)/usr/bin/buendia-profile-validate

$(MAIN_MODULE):
	mkdir -p $(TARGET_DIR)
	cp $(SOURCE_DIR)/projectbuendia.openmrs-1.0-SNAPSHOT.omod $@

$(OTHER_MODULES):
	mkdir -p $(TARGET_DIR)
	cp $(SOURCE_DIR)/$(notdir $@) $@<commit_msg>Use openmrs_build in packages/buendia-server to ensure that the .omod is built.<commit_after>include ../Makefile.inc

SOURCE_DIR=$(HOME)/openmrs/server/modules
MAIN_MODULE_BUILD=$(SOURCE_DIR)/projectbuendia.openmrs-1.0-SNAPSHOT.omod

TARGET_DIR=$(EXTRA_DATA)/usr/share/buendia/openmrs/modules
MAIN_MODULE=$(TARGET_DIR)/buendia-server.omod
OTHER_MODULES=$(TARGET_DIR)/xforms-4.3.5.omod $(TARGET_DIR)/webservices.rest-2.6.omod

$(EXTRA_DATA): $(MAIN_MODULE) $(OTHER_MODULES) $(EXTRA_DATA)/usr/bin/buendia-openmrs-account-setup $(EXTRA_DATA)/usr/bin/buendia-profile-apply $(EXTRA_DATA)/usr/bin/buendia-profile-validate

$(MAIN_MODULE_BUILD):
	../../tools/openmrs_build

$(MAIN_MODULE): $(MAIN_MODULE_BUILD)
	mkdir -p $(TARGET_DIR)
	cp $(MAIN_MODULE_BUILD) $@

$(OTHER_MODULES):
	mkdir -p $(TARGET_DIR)
	cp $(SOURCE_DIR)/$(notdir $@) $@
{'fraction_non_alphanumeric': 0.1761936785474109, 'fraction_numerical': 0.00941492938802959, 'mean_word_length': 6.477386934673367, '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': '104593', 'n_tokens_mistral': 597, 'n_tokens_neox': 577, 'n_words': 64}