<commit_before>//
// Created by Mauro on 07/04/16.
//
// OpenCV ver. 2.4
//

#include <iostream>
#include <vector>
#include <numeric>

#include <opencv/cv.h>
#include <opencv2/nonfree/nonfree.hpp>

#ifndef HELLOWORLD_MULTIVIEWBODYMODEL_H
#define HELLOWORLD_MULTIVIEWBODYMODEL_H


namespace multiviewbodymodel
{
    struct ConfidenceDescriptor;
    struct ViewDetail;

    /*
     * Class definition
     */
    class MultiviewBodyModel
    {
    public:

        MultiviewBodyModel(std::vector<ViewDetail> view_details);

        void ConfidenceNormalization();
        std::vector<ViewDetail> getViews();
        unsigned long size();

    private:
        std::vector<ViewDetail> views;
    };


    /*
     * Functions
     */
    float overall_distance(MultiviewBodyModel b1, MultiviewBodyModel b2);
    std::vector<float> view_distance(MultiviewBodyModel b1, MultiviewBodyModel b2);

    /*
     * Struct for storing a confidence for each
     * keypoint.
     */
    struct ConfidenceDescriptor
    {
        int id;
        float confidence;
        cv::Mat descriptor;
    };

    struct ViewDetail
    {
        std::string Name;
        float angle;
        std::vector<ConfidenceDescriptor> keypoints_descriptors;
        float overall_confidence; // TODO: set default to 1
    };


}
#endif //HELLOWORLD_MULTIVIEWBODYMODEL_H<commit_msg>- Wrong version<commit_after>//
// Created by Mauro on 07/04/16.
//
// OpenCV ver. 2.4
//

#include <iostream>
#include <vector>
#include <numeric>

#include <opencv/cv.h>
#include <opencv2/nonfree/nonfree.hpp>

#ifndef HELLOWORLD_MULTIVIEWBODYMODEL_H
#define HELLOWORLD_MULTIVIEWBODYMODEL_H


namespace multiviewbodymodel
{
    struct ConfidenceDescriptor;
    struct ViewDetail;

    /*
     * Class definition
     */
    class MultiviewBodyModel
    {
    public:

        MultiviewBodyModel(std::vector<ViewDetail> view_details);

        void ConfidenceNormalization();
        std::vector<ViewDetail> getViews();
        unsigned long size();

    private:
        std::vector<ViewDetail> views;


    };


    /*
     * Functions
     */
    float overall_distance(MultiviewBodyModel b1, MultiviewBodyModel b2);
    std::vector<float> view_distance(MultiviewBodyModel b1, MultiviewBodyModel b2);

    /*
     * Struct for storing a confidence for each
     * keypoint.
     */
    struct ConfidenceDescriptor
    {
        int id;
        float confidence;
        cv::Mat descriptor;
    };

    struct ViewDetail
    {
        std::string name;
        float angle;
        std::vector<ConfidenceDescriptor> keypoints_descriptors;
        float overall_confidence; // TODO: set default to 1
    };


}
#endif //HELLOWORLD_MULTIVIEWBODYMODEL_H
{'fraction_non_alphanumeric': 0.09666666666666666, 'fraction_numerical': 0.01037037037037037, 'mean_word_length': 2.7101648351648353, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '6396108', 'n_tokens_mistral': 904, 'n_tokens_neox': 841, 'n_words': 181}