<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-

/* 
 * Copyright (C) 2014 iCub Facility, Istituto Italiano di Tecnologia
 * Author: <NAME>
 * email: <EMAIL>
 * Permission is granted to copy, distribute, and/or modify this program
 * under the terms of the GNU General Public License, version 2 or any
 * later version published by the Free Software Foundation.
 *
 * A copy of the license can be found at
 * http://www.robotcub.org/icub/license/gpl.txt
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details
*/


#include "TestCamera.h"

#include <yarp/os/BufferedPort.h>
#include <yarp/sig/Image.h>
#include <yarp/os/Network.h>

using namespace yarp::os;
using namespace yarp::sig;

// these values can be parameters if needed but better to keep it simple
const int TIME=3;
const int FREQUENCY=30;
const int FRAMES_TOLERANCE=10;

using namespace Logger;

TestCamera::TestCamera(yarp::os::Property& configuration) : UnitTest(configuration)
{
    
}

TestCamera::~TestCamera()
{

}

bool TestCamera::init(yarp::os::Property &configuration)
{
    if (!configuration.check("portname"))
        return false;

    portname=configuration.find("portname").asString();

    return true;
}<commit_msg>speed up camera test<commit_after>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-

/* 
 * Copyright (C) 2014 iCub Facility, Istituto Italiano di Tecnologia
 * Author: <NAME>
 * email: <EMAIL>
 * Permission is granted to copy, distribute, and/or modify this program
 * under the terms of the GNU General Public License, version 2 or any
 * later version published by the Free Software Foundation.
 *
 * A copy of the license can be found at
 * http://www.robotcub.org/icub/license/gpl.txt
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details
*/


#include "TestCamera.h"

#include <yarp/os/BufferedPort.h>
#include <yarp/sig/Image.h>
#include <yarp/os/Network.h>

using namespace yarp::os;
using namespace yarp::sig;

// these values can be parameters if needed but better to keep it simple
const int TIME=1;
const int FREQUENCY=30;
const int FRAMES_TOLERANCE=5;

using namespace Logger;

TestCamera::TestCamera(yarp::os::Property& configuration) : UnitTest(configuration)
{
    
}

TestCamera::~TestCamera()
{

}

bool TestCamera::init(yarp::os::Property &configuration)
{
    if (!configuration.check("portname"))
        return false;

    portname=configuration.find("portname").asString();

    return true;
}
{'fraction_non_alphanumeric': 0.11056682995101469, 'fraction_numerical': 0.008047585724282715, 'mean_word_length': 4.314126394052044, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6249109', 'n_tokens_mistral': 889, 'n_tokens_neox': 860, 'n_words': 303}