<commit_before>from intelligine.core.Context import Context
from intelligine.display.Pygame import Pygame
import argparse

parser = argparse.ArgumentParser(description='Select sandbox.')
parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
                    help='Name of sandbox: ' + ', '.join(['exploration', 'all', 'test']))

args = parser.parse_args()

if 'all' in args.sandbox:
    from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
elif 'exploration' in args.sandbox:
    from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
elif 'test' in args.sandbox:
    from intelligine.sandbox.test.test import simulations, visualisation as pygame_visualisation
else:
    parser.parse_args(['-h'])

config = {
    'app': {
        'name': 'StigEngine',
        'classes': {
          'Context': Context
        }
    },<commit_msg>run.py: permit load .tmx directly<commit_after>from intelligine.core.Context import Context
from intelligine.display.Pygame import Pygame
import argparse

parser = argparse.ArgumentParser(description='Select sandbox.')
parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
                    help='Name of sandbox: ' + ', '.join(['exploration', 'all', 'test', 'load']))
parser.add_argument('path', metavar='sandbox', type=str, nargs=1)

args = parser.parse_args()

if 'all' in args.sandbox:
    from intelligine.sandbox.all.all import simulations, visualisation as pygame_visualisation
elif 'exploration' in args.sandbox:
    from intelligine.sandbox.exploration.exploration import simulations, visualisation as pygame_visualisation
elif 'test' in args.sandbox:
    from intelligine.sandbox.test.test import simulations, visualisation as pygame_visualisation
elif 'load' in args.sandbox:
    from os import getcwd
    from intelligine.display.pygame.config import map_config
    from intelligine.display.pygame.visualisation import get_standard_extract_from_map

    simulations, pygame_visualisation = get_standard_extract_from_map(getcwd()+args.path[0],
                                                                      map_config)

else:
    parser.parse_args(['-h'])

config = {
    'app': {
        'name': 'StigEngine',
        'classes': {
          'Context': Context
        }
    },
{'fraction_non_alphanumeric': 0.1097872340425532, 'fraction_numerical': 0.001702127659574468, 'mean_word_length': 3.7591093117408905, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '438222', 'n_tokens_mistral': 700, 'n_tokens_neox': 673, 'n_words': 163}