<commit_before>'''
Collection of datasets to be used by developers.

Includes:
    - reference data
    - users and groups
    - laboratories, small sample of genes
    - sample registry, only if a sample registry to be created
    - permissive iprestrict rules
'''
from registry.groups import models


deps = [
    'reference_data',
    'users',
    'sample_laboratories',
    'genes_smaller_sample',
    # uncomment the line below, if a sample registry and working group to be created
    # 'sample_registry',
    'iprestrict_permissive',
]


def load_data(**kwargs):
    pass
<commit_msg>rdrf #1519 sample registry initial data made conditional<commit_after>'''
Collection of datasets to be used by developers.

Includes:
    - reference data
    - users and groups
    - laboratories, small sample of genes
    - sample registry, only if a sample registry to be created
    - permissive iprestrict rules
'''
import os
from registry.groups import models

fi = os.environ.get('DJANGO_FIXTURES')

deps = []

# "dev" for runserver
if fi == "dev":
    deps = [
        'reference_data',
        'users',
        'sample_laboratories',
        'genes_smaller_sample',
        'iprestrict_permissive',
    ]

# "none" for bahavioural and "test" for unit tests
if fi == "none" or fi == "test":
    deps = [
        'reference_data',
        'users',
        'sample_laboratories',
        'genes_smaller_sample',
        'sample_registry',
        'iprestrict_permissive',
    ]


def load_data(**kwargs):
    pass

{'fraction_non_alphanumeric': 0.09530112508272667, 'fraction_numerical': 0.0026472534745201853, 'mean_word_length': 2.917098445595855, 'pattern_counts': {'":': 2, '<': 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': '4527866', 'n_tokens_mistral': 475, 'n_tokens_neox': 448, 'n_words': 146}