<commit_before># -*- coding: utf8 -*-
from collections import OrderedDict
try:  # for Python2
    import ConfigParser as configparser
except ImportError:  # for Python3
    import configparser
from os import makedirs
from os.path import abspath, dirname, exists, expanduser, join, pardir


__all__ = [
    'BANNER',
    'COMMAND_DOCSTRING',
    'CONTIKI_FILES',
    'CONTIKI_FOLDER',
    'COOJA_FOLDER',
    'CRASH_REPORT_DATA',
    'DEBUG_FILES',
    'DEFAULTS',
    'DOCSERVER_PORT',
    'EXPERIMENT_FOLDER',
    'EXPERIMENT_STRUCTURE',
    'FRAMEWORK_FOLDER',
    'MIN_TERM_SIZE',
    'PIDFILE',
    'REPORT_THEME',
    'SHORTCUT',
    'TASK_EXPIRATION',
    'TEMPLATES',
    'TEMPLATES_FOLDER',
]


# configuration parsing and main constants setting
confparser = configparser.ConfigParser()
confparser.read(expanduser('~/.rpl-attacks.conf'))
try:
    CONTIKI_FOLDER = abspath(expanduser(confparser.get("RPL Attacks Framework Configuration", "contiki_folder")))
except (configparser.NoOptionError, configparser.NoSectionError):<commit_msg>Minor fix<commit_after># -*- coding: utf8 -*-
from collections import OrderedDict
try:  # for Python2
    import ConfigParser as configparser
except ImportError:  # for Python3
    import configparser
from os import makedirs
from os.path import abspath, dirname, exists, expanduser, join, pardir


__all__ = [
    'BANNER',
    'COMMAND_DOCSTRING',
    'CONTIKI_FILES',
    'CONTIKI_FOLDER',
    'COOJA_FOLDER',
    'CRASH_REPORT_DATA',
    'DEBUG_FILES',
    'DEFAULTS',
    'DOCSERVER_PORT',
    'EXPERIMENT_FOLDER',
    'EXPERIMENT_STRUCTURE',
    'FRAMEWORK_FOLDER',
    'MIN_TERM_SIZE',
    'PIDFILE',
    'REPORT_THEME',
    'SHORTCUT_RPLA',
    'SHORTCUT_COOJA',
    'TASK_EXPIRATION',
    'TEMPLATES',
    'TEMPLATES_FOLDER',
]


# configuration parsing and main constants setting
confparser = configparser.ConfigParser()
confparser.read(expanduser('~/.rpl-attacks.conf'))
try:
    CONTIKI_FOLDER = abspath(expanduser(confparser.get("RPL Attacks Framework Configuration", "contiki_folder")))
except (configparser.NoOptionError, configparser.NoSectionError):
{'fraction_non_alphanumeric': 0.1134314190792596, 'fraction_numerical': 0.0028476506881822496, 'mean_word_length': 4.475324675324675, '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': '4000359', 'n_tokens_mistral': 770, 'n_tokens_neox': 739, 'n_words': 145}