<commit_before>#ifndef VIDEOENTITY_PV_H
#define VIDEOENTITY_PV_H

#include "zmbaq_common.h"
#include "src/survcamparams.h"
#include "zmbaq_common/thread_pool.h"
#include "streamreader.h"
#include "mp4writertask.h"
#include "src/fshelper.h"

namespace ZMBEntities {

class VEPV : public ZMB::noncopyable
{
public:
    explicit VEPV(void* parent, SHP(ZMBCommon::ThreadsPool) p_pool);
    virtual ~VEPV();

    void clear();
    void init();

    bool configure(const Json::Value* jobject, bool do_start);

    //----------------------------
    ZMB::SurvCamParams cam_param;
    SHP(ZMFS::FSHelper) fs_helper;

    ZMBEntities::Mp4WriterTask* file_dump;
    ZMBEntities::StreamReader* stream;

    SHP(ZMBCommon::ThreadsPool) pool;

};
}//ZMBEntities

#endif // VIDEOENTITY_PV_H<commit_msg>refactor old code<commit_after>#ifndef VIDEOENTITY_PV_H
#define VIDEOENTITY_PV_H

#include "zmbaq_common.h"
#include "src/survcamparams.h"
#include "zmbaq_common/thread_pool.h"
#include "streamreader.h"
#include "mp4writertask.h"
#include "src/fshelper.h"

namespace ZMBEntities {

class VEPV : public ZMB::noncopyable
{
public:
    explicit VEPV();
    virtual ~VEPV();

    void clear();

    bool configure(const Json::Value* jobject, bool do_start,
                   SHP(ZMBCommon::ThreadsPool) p_pool = std::make_shared<ZMBCommon::ThreadsPool>());

    //----------------------------
    ZMB::SurvCamParams cam_param;
    SHP(ZMFS::FSHelper) fs_helper;

    ZMBEntities::Mp4WriterTask* file_dump;
    ZMBEntities::StreamReader* stream;

    SHP(ZMBCommon::ThreadsPool) pool;

};
}//ZMBEntities

#endif // VIDEOENTITY_PV_H
{'fraction_non_alphanumeric': 0.15541795665634675, 'fraction_numerical': 0.002476780185758514, 'mean_word_length': 3.941896024464832, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7128322', 'n_tokens_mistral': 617, 'n_tokens_neox': 595, 'n_words': 105}