<commit_before>/*ckwg +5
 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
 * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
 * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
 */

#include "timestamper_process.h"

#include <vistk/pipeline_types/utility_types.h>

#include <vistk/pipeline/config.h>
#include <vistk/pipeline/datum.h>
#include <vistk/pipeline/edge.h>
#include <vistk/pipeline/process_exception.h>
#include <vistk/pipeline/stamp.h>

#include <vistk/utilities/timestamp.h>

#include <boost/make_shared.hpp>

#include <string>

/**
 * \file timestamper_process.cxx
 *
 * \brief Implementation of the timestamper process.
 */

namespace vistk
{

class timestamper_process::priv
{
  public:
    typedef double frame_rate_t;

    priv(timestamp::frame_t start_frame, timestamp::time_t start_time, frame_rate_t rate);
    ~priv();

    timestamp::frame_t frame;
    timestamp::time_t time;
    frame_rate_t const time_diff;

    bool has_color;

    stamp_t output_stamp;

    static config::key_t const config_start_frame;
    static config::key_t const config_start_time;
    static config::key_t const config_frame_rate;
    static config::value_t const default_start_frame;
    static config::value_t const default_start_time;
    static config::value_t const default_frame_rate;
    static port_t const port_color;
    static port_t const port_output;
};

config::key_t const timestamper_process::priv::config_start_frame = port_t("start_frame");
config::key_t const timestamper_process::priv::config_start_time = port_t("start_time");
config::key_t const timestamper_process::priv::config_frame_rate = port_t("frame_rate");
config::value_t const timestamper_process::priv::default_start_frame = config::value_t("0");
config::value_t const timestamper_process::priv::default_start_time = config::value_t("0");
config::value_t const timestamper_process::priv::default_frame_rate = config::value_t("30");
process::port_t const timestamper_process::priv::port_color = port_t("color");<commit_msg>Use the proper ctor in the timestamper process<commit_after>/*ckwg +5
 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
 * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
 * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
 */

#include "timestamper_process.h"

#include <vistk/pipeline_types/utility_types.h>

#include <vistk/pipeline/config.h>
#include <vistk/pipeline/datum.h>
#include <vistk/pipeline/edge.h>
#include <vistk/pipeline/process_exception.h>
#include <vistk/pipeline/stamp.h>

#include <vistk/utilities/timestamp.h>

#include <boost/make_shared.hpp>

#include <string>

/**
 * \file timestamper_process.cxx
 *
 * \brief Implementation of the timestamper process.
 */

namespace vistk
{

class timestamper_process::priv
{
  public:
    typedef double frame_rate_t;

    priv(timestamp::frame_t start_frame, timestamp::time_t start_time, frame_rate_t rate);
    ~priv();

    timestamp::frame_t frame;
    timestamp::time_t time;
    frame_rate_t const time_diff;

    bool has_color;

    stamp_t output_stamp;

    static config::key_t const config_start_frame;
    static config::key_t const config_start_time;
    static config::key_t const config_frame_rate;
    static config::value_t const default_start_frame;
    static config::value_t const default_start_time;
    static config::value_t const default_frame_rate;
    static port_t const port_color;
    static port_t const port_output;
};

config::key_t const timestamper_process::priv::config_start_frame = config::key_t("start_frame");
config::key_t const timestamper_process::priv::config_start_time = config::key_t("start_time");
config::key_t const timestamper_process::priv::config_frame_rate = config::key_t("frame_rate");
config::value_t const timestamper_process::priv::default_start_frame = config::value_t("0");
config::value_t const timestamper_process::priv::default_start_time = config::value_t("0");
config::value_t const timestamper_process::priv::default_frame_rate = config::value_t("30");
process::port_t const timestamper_process::priv::port_color = port_t("color");
{'fraction_non_alphanumeric': 0.11079274116523401, 'fraction_numerical': 0.007640878701050621, 'mean_word_length': 6.1729452054794525, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4433547', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1389, 'n_words': 294}