<commit_before>#include "stdafx.h"
#include "SamplingTypeGenerator.h"
#include <math.h>
#include "DataHelper.h"
#include <algorithm>
#include <numeric>
#include "../FFTW-64/include/fftw3.h"

#pragma comment(lib, "../FFTW-64/lib/libfftw3-3.lib")
#pragma comment(lib, "../FFTW-64/lib/libfftw3f-3.lib")
#pragma comment(lib, "../FFTW-64/lib/libfftw3l-3.lib")


using namespace Yap;
using namespace std;

CSamplingTypeGenerator::CSamplingTypeGenerator(void):
	CProcessorImp(L"SamplingTypeGenerator"),
	_try_count(10),
	_tolerance(3)
{
	AddInputPort(L"Input", YAP_ANY_DIMENSION, DataTypeUnknown);
	AddOutputPort(L"Output", 1, DataTypeChar);

	AddProperty(PropertyFloat, L"pow", L"");
	SetFloat(L"pow", 3.0f);
	AddProperty(PropertyFloat, L"sample_percent", L"");
	SetFloat(L"sample_percent", 0.4);
	AddProperty(PropertyFloat, L"radius", L"");
	SetFloat(L"radius", 0.2f);

	AddProperty(PropertyBool, L"equal_subsampling", L"");
	SetBool(L"equal_subsampling", false);
	AddProperty(PropertyBool, L"random_subsampling", L"");<commit_msg>Removed hard coding in fftw include/lib paths.<commit_after>#include "stdafx.h"
#include "SamplingTypeGenerator.h"
#include <math.h>
#include "DataHelper.h"
#include <algorithm>
#include <numeric>
#include <fftw3.h>

#pragma comment(lib, "libfftw3-3.lib")
#pragma comment(lib, "libfftw3f-3.lib")
#pragma comment(lib, "libfftw3l-3.lib")


using namespace Yap;
using namespace std;

CSamplingTypeGenerator::CSamplingTypeGenerator(void):
	CProcessorImp(L"SamplingTypeGenerator"),
	_try_count(10),
	_tolerance(3)
{
	AddInputPort(L"Input", YAP_ANY_DIMENSION, DataTypeUnknown);
	AddOutputPort(L"Output", 1, DataTypeChar);

	AddProperty(PropertyFloat, L"pow", L"");
	SetFloat(L"pow", 3.0f);
	AddProperty(PropertyFloat, L"sample_percent", L"");
	SetFloat(L"sample_percent", 0.4);
	AddProperty(PropertyFloat, L"radius", L"");
	SetFloat(L"radius", 0.2f);

	AddProperty(PropertyBool, L"equal_subsampling", L"");
	SetBool(L"equal_subsampling", false);
	AddProperty(PropertyBool, L"random_subsampling", L"");
{'fraction_non_alphanumeric': 0.1682335477486393, 'fraction_numerical': 0.02078179119247897, 'mean_word_length': 7.986666666666666, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4764544', 'n_tokens_mistral': 794, 'n_tokens_neox': 761, 'n_words': 129}