<commit_before>import subprocess as _subprocess
import numpy as _np
import os as _os

_full = lambda x: _os.path.sep.join(x)
default_track_version = 'trackcpp'
_commom_keys = ['track_version','flat_filename','energy','harmonic_number',
                'cavity_state','radiation_state','vchamber_state']


def _prepare_args(dynap_type, mand_keys, **kwards):

    args = [kwards.pop('track_version',default_track_version),dynap_type]
    for key in mand_keys:
        args.append(str(kwards.pop(key)))
    if kwards:
        print('Keys : '+', '.join(sorted(kwards.keys()))+ ' were not used.')
    return args<commit_msg>bug correction in trackcpp_utils.py.<commit_after>import subprocess as _subprocess
import numpy as _np
import os as _os

_full = lambda x: _os.path.sep.join(x)
default_track_version = 'trackcpp'
_commom_keys = ['flat_filename','energy','harmonic_number',
                'cavity_state','radiation_state','vchamber_state']


def _prepare_args(dynap_type, mand_keys, **kwards):

    args = [kwards.pop('track_version',default_track_version),dynap_type]
    for key in mand_keys:
        args.append(str(kwards.pop(key)))
    if kwards:
        print('Keys : '+', '.join(sorted(kwards.keys()))+ ' were not used.')
    return args
{'fraction_non_alphanumeric': 0.13413654618473897, 'fraction_numerical': 0.0, 'mean_word_length': 4.612612612612613, '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': '7215876', 'n_tokens_mistral': 423, 'n_tokens_neox': 412, 'n_words': 84}