<commit_before>"""
Created on 11 Jul 2017

@author: <NAME> (<EMAIL>)

settings for OPCMonitor

example JSON:
{"model": "N2", "sample-period": 10, "power-saving": false}
"""

from collections import OrderedDict

from scs_core.data.json import PersistentJSONable

from scs_dfe.particulate.opc_monitor import OPCMonitor
from scs_dfe.particulate.opc_n2 import OPCN2


# --------------------------------------------------------------------------------------------------------------------

class OPCConf(PersistentJSONable):
    """
    classdocs
    """
<commit_msg>Upgraded HostClient and HostProject to use OPCConf.<commit_after>"""
Created on 11 Jul 2017

@author: <NAME> (<EMAIL>)

settings for OPCMonitor

example JSON:
{"model": "N2", "sample-period": 10, "power-saving": false}
"""

from collections import OrderedDict

from scs_core.data.json import PersistentJSONable

from scs_dfe.particulate.opc_monitor import OPCMonitor
from scs_dfe.particulate.opc_n2 import OPCN2


# TODO: OPCConf must record datetime of updates

# --------------------------------------------------------------------------------------------------------------------

class OPCConf(PersistentJSONable):
    """
    classdocs
    """

{'fraction_non_alphanumeric': 0.2787427626137304, 'fraction_numerical': 0.018196856906534328, 'mean_word_length': 2.0632911392405062, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '102639', 'n_tokens_mistral': 361, 'n_tokens_neox': 338, 'n_words': 91}