<commit_before>#pragma once

#include "depthai-shared/common/CameraBoardSocket.hpp"
#include "depthai-shared/common/CameraImageOrientation.hpp"
#include "depthai-shared/common/CameraSensorType.hpp"

namespace dai {

/**
 * CameraProperties structure
 *
 * Characterizes detected cameras on board
 */
struct CameraProperties {
    /**
     * Board socket where the camera was detected
     */
    CameraBoardSocket socket;
    /**
     * Camera sensor name, e.g: "IMX378", "OV9282"
     */
    std::string sensorName;
    /**
     * Maximum sensor resolution
     */
    uint16_t width, height;
    /**
     * Default camera orientation, board dependent
     */
    CameraImageOrientation orientation;
    /**
     * List of supported types of processing for the given camera.
     *
     * For some sensors it's not possible to determine if they are color or mono
     * (e.g. OV9782 and OV9282), so this could return more than one entry
     */
    std::vector<CameraSensorType> supportedTypes;
    /**
     *  Whether an autofocus VCM IC was detected
     */
    bool hasAutofocus;

    NLOHMANN_DEFINE_TYPE_INTRUSIVE(CameraProperties, socket, sensorName, width, height, orientation, supportedTypes, hasAutofocus);
};

}  // namespace dai<commit_msg>Adapt CameraProperties.hpp to new serialization<commit_after>#pragma once

#include "depthai-shared/common/CameraBoardSocket.hpp"
#include "depthai-shared/common/CameraImageOrientation.hpp"
#include "depthai-shared/common/CameraSensorType.hpp"
#include "depthai-shared/utility/Serialization.hpp"

namespace dai {

/**
 * CameraProperties structure
 *
 * Characterizes detected cameras on board
 */
struct CameraProperties {
    /**
     * Board socket where the camera was detected
     */
    CameraBoardSocket socket;
    /**
     * Camera sensor name, e.g: "IMX378", "OV9282"
     */
    std::string sensorName;
    /**
     * Maximum sensor resolution
     */
    uint16_t width, height;
    /**
     * Default camera orientation, board dependent
     */
    CameraImageOrientation orientation;
    /**
     * List of supported types of processing for the given camera.
     *
     * For some sensors it's not possible to determine if they are color or mono
     * (e.g. OV9782 and OV9282), so this could return more than one entry
     */
    std::vector<CameraSensorType> supportedTypes;
    /**
     *  Whether an autofocus VCM IC was detected
     */
    bool hasAutofocus;

    DEPTHAI_SERIALIZE(CameraProperties, socket, sensorName, width, height, orientation, supportedTypes, hasAutofocus);
};

}  // namespace dai
{'fraction_non_alphanumeric': 0.0946837407838572, 'fraction_numerical': 0.013193636010865347, 'mean_word_length': 3.1314102564102564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6607827', 'n_tokens_mistral': 756, 'n_tokens_neox': 724, 'n_words': 217}