<commit_before>"""
python import.py export.zip challenges,teams,both,metadata
"""
from CTFd import create_app
from CTFd.utils import import_ctf

import sys

app = create_app()
with app.app_context():
    if len(sys.argv) == 2:
        segments = sys.argv[2].split(',')
    else:
        segments = None

    import_ctf(sys.argv[1], segments=segments)<commit_msg>Fix argv mistake<commit_after>"""
python import.py export.zip challenges,teams,both,metadata
"""
from CTFd import create_app
from CTFd.utils import import_ctf

import sys

app = create_app()
with app.app_context():
    if len(sys.argv) == 3:
        segments = sys.argv[2].split(',')
    else:
        segments = None

    import_ctf(sys.argv[1], segments=segments)
{'fraction_non_alphanumeric': 0.12929848693259974, 'fraction_numerical': 0.008253094910591471, 'mean_word_length': 3.9523809523809526, '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': '5464598', 'n_tokens_mistral': 249, 'n_tokens_neox': 247, 'n_words': 59}