<commit_before>#ifndef __SENSOR_TYPE_H__
#define __SENSOR_TYPE_H__

#define DOOR_SENSOR     5
#define THERMOMETER     6
#define HUMIDITY_SENSOR 7
#define MOTION_SENSOR   8
#define CAMERA          9
#define LOCK            10
#define KEYPAD          11

#define GET_RESOURCE_NAME(type) \
  (type == DOOR_SENSOR) ? "door-sensors" : \
  (type == THERMOMETER) ? "thermometers" : \
  (type == HUMIDITY_SENSOR) ? "humidity-sensors" : \
  (type == MOTION_SENSOR) ? "motion-sensors" : \<commit_msg>As we not limit the number of different device to 16 (2^4), need to start counting from 1 instead of arbitrarily starting from 5.<commit_after>#ifndef __SENSOR_TYPE_H__
#define __SENSOR_TYPE_H__

#define DOOR_SENSOR     1
#define THERMOMETER     2
#define HUMIDITY_SENSOR 3
#define MOTION_SENSOR   4
#define CAMERA          5
#define LOCK            6
#define KEYPAD          7

#define GET_RESOURCE_NAME(type) \
  (type == DOOR_SENSOR) ? "door-sensors" : \
  (type == THERMOMETER) ? "thermometers" : \
  (type == HUMIDITY_SENSOR) ? "humidity-sensors" : \
  (type == MOTION_SENSOR) ? "motion-sensors" : \
{'fraction_non_alphanumeric': 0.10511882998171847, 'fraction_numerical': 0.02010968921389397, 'mean_word_length': 3.397590361445783, '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': '7037971', 'n_tokens_mistral': 443, 'n_tokens_neox': 420, 'n_words': 101}