<commit_before>#ifndef CTRL_GPIB_H_
#define CTRL_GPIB_H_

#include "sicl.h"
#include <QString>
#include <QMutex>
#include <QMutexLocker>
#include "sleep.h"
#define SLEEP_TIME 20

class GPIBctrl
{
private:
	int did;
	QMutex mutex;//TODO: o_O When I make it static pointer, compilation fails
	//TODO: Make mutex at least process-wise... somehow...

public:
	GPIBctrl(QString GPIBID)
	{
		/*initialize GPIB control*/
		ionerror(I_ERROR_NO_EXIT);

		did = iopen(GPIBID.toAscii().data());
		itimeout(did,600000);
	}<commit_msg>added some todos<commit_after>#ifndef CTRL_GPIB_H_
#define CTRL_GPIB_H_

#include "sicl.h" //TODO: Maybe it's better to migrate to VISA after all...
#include <QString>
#include <QMutex>
#include <QMutexLocker>
#include "sleep.h"
#define SLEEP_TIME 20

class GPIBctrl
{
private:
	int did;
	QMutex mutex;//TODO: o_O When I make it static pointer, compilation fails
	//TODO: Make mutex at least process-wise... somehow...

public:
	GPIBctrl(QString GPIBID)
	{
		/*initialize GPIB control*/
		ionerror(I_ERROR_NO_EXIT);

		did = iopen(GPIBID.toAscii().data());
		itimeout(did,600000);
                //TODO: A proper initialization, IDN querying
                //TODO: Also, need to handle hardware and driver errors here.
                //TODO: Maybe it's better to use dedicated open() procedure
	}
{'fraction_non_alphanumeric': 0.11809235427706283, 'fraction_numerical': 0.012112036336109008, 'mean_word_length': 3.8248175182481754, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1598147', 'n_tokens_mistral': 525, 'n_tokens_neox': 480, 'n_words': 137}