<commit_before>/*

  Safety Framework for Component-based Robotics

  Created on: July 14, 2012

  Copyright (C) 2012 <NAME>, <NAME>

  Distributed under the Boost Software License, Version 1.0.
  (See accompanying file LICENSE_1_0.txt or copy at
  http://www.boost.org/LICENSE_1_0.txt)

*/

#ifndef _dict_h
#define _dict_h

#include "common.h"

#define DEFINE_KEYWORD(_key) const std::string _key = #_key;

namespace SF {

    namespace Dict {

        DEFINE_KEYWORD(ACTIVE);
        DEFINE_KEYWORD(PASSIVE);
        DEFINE_KEYWORD(EVENT);
        DEFINE_KEYWORD(INVALID);
        DEFINE_KEYWORD(ON);
        DEFINE_KEYWORD(OFF);
        DEFINE_KEYWORD(STREAM);

        namespace Json {
            DEFINE_KEYWORD(category);
            DEFINE_KEYWORD(class_name);
            DEFINE_KEYWORD(component);
            DEFINE_KEYWORD(config);
            DEFINE_KEYWORD(command);
            DEFINE_KEYWORD(custom);
            DEFINE_KEYWORD(data);
            DEFINE_KEYWORD(detector);
            DEFINE_KEYWORD(dutycycle_total);
            DEFINE_KEYWORD(dutycycle_total_ratio);
            DEFINE_KEYWORD(dutycycle_user);
            DEFINE_KEYWORD(dutycycle_user_ratio);
            DEFINE_KEYWORD(event);
            DEFINE_KEYWORD(event_generator);
            DEFINE_KEYWORD(event_handler);
            DEFINE_KEYWORD(fault);
            DEFINE_KEYWORD(fault_application);
            DEFINE_KEYWORD(filter);
            DEFINE_KEYWORD(filter_event); // MJTEMP: am I using this?
            DEFINE_KEYWORD(function);
            DEFINE_KEYWORD(identity);<commit_msg>libs/common: Updated json dictionary<commit_after>/*

  Safety Framework for Component-based Robotics

  Created on: July 14, 2012

  Copyright (C) 2012 <NAME>, <NAME>

  Distributed under the Boost Software License, Version 1.0.
  (See accompanying file LICENSE_1_0.txt or copy at
  http://www.boost.org/LICENSE_1_0.txt)

*/

#ifndef _dict_h
#define _dict_h

#include "common.h"

#define DEFINE_KEYWORD(_key) const std::string _key = #_key;

namespace SF {

    namespace Dict {

        DEFINE_KEYWORD(ACTIVE);
        DEFINE_KEYWORD(PASSIVE);
        DEFINE_KEYWORD(EVENT);
        DEFINE_KEYWORD(INVALID);
        DEFINE_KEYWORD(ON);
        DEFINE_KEYWORD(OFF);
        DEFINE_KEYWORD(STREAM);

        namespace Json {
            DEFINE_KEYWORD(category);
            DEFINE_KEYWORD(class_name);
            DEFINE_KEYWORD(component);
            DEFINE_KEYWORD(config);
            DEFINE_KEYWORD(command);
            DEFINE_KEYWORD(common);
            DEFINE_KEYWORD(custom);
            DEFINE_KEYWORD(data);
            DEFINE_KEYWORD(detector);
            DEFINE_KEYWORD(dutycycle_total);
            DEFINE_KEYWORD(dutycycle_total_ratio);
            DEFINE_KEYWORD(dutycycle_user);
            DEFINE_KEYWORD(dutycycle_user_ratio);
            DEFINE_KEYWORD(event);
            DEFINE_KEYWORD(event_generator);
            DEFINE_KEYWORD(event_handler);
            DEFINE_KEYWORD(fault);
            DEFINE_KEYWORD(fault_application);
            DEFINE_KEYWORD(filter);
            DEFINE_KEYWORD(filter_uid);
            DEFINE_KEYWORD(filter_event); // MJTEMP: am I using this?
            DEFINE_KEYWORD(function);
{'fraction_non_alphanumeric': 0.08558979147214442, 'fraction_numerical': 0.009959539371304078, 'mean_word_length': 2.5241228070175437, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6229654', 'n_tokens_mistral': 1022, 'n_tokens_neox': 915, 'n_words': 169}