<commit_before><commit_msg>rdrf #1475 Short script to export registry .zip, assuming local prepared<commit_after>#!/usr/bin/sh

# -----------------------------------------------------------------------------
# Intended to be used as; ./export_zip.sh REGISTRY_CODE
# i.e. Argument 1 must be the registry code.
# Further, the assumption is made that the YAML has been imported, the users
# swapped over, and at least one model patient is present.
# -----------------------------------------------------------------------------

docker exec -it rdrf_runserver_1 /app/docker-entrypoint.sh \
  django-admin export registry --registry-code $1

{'fraction_non_alphanumeric': 0.3076923076923077, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 1.5725806451612903, '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': '3180075', 'n_tokens_mistral': 159, 'n_tokens_neox': 150, 'n_words': 59}