<commit_before>/*
** Author(s):
**  - <NAME> <<EMAIL>>
**
** Copyright (C) 2012 Aldebaran Robotics
*/

#include <iostream>
#include <qimessaging/qisession.h>

#include <qimessaging/session.hpp>

class QiSessionPrivate {
public:
  qi::Session session;
};


QiSession::QiSession()
  : _p(new QiSessionPrivate)
{
}

QiSession::~QiSession()
{
  delete _p;
}


void QiSession::connect(const QString &masterAddress)
{
  _p.session.connect(masterAddress::toUtf8());
}

bool QiSession::waitForConnected(int msecs)
{
  return _p.session.connect(masterAddress::toUtf8());
}

bool QiSession::waitForDisconnected(int msecs)
{
  return _p.session.connect(masterAddress::toUtf8());
}


QObject *QiSession::service(const QString &name, const QString &type)
{

}

QVector<QString> services()
{
  return QVector<QString>::fromStdVector(_p.session.services());
}
<commit_msg>qtqimessaging: fix qisession<commit_after>/*
** Author(s):
**  - <NAME> <<EMAIL>>
**
** Copyright (C) 2012 Aldebaran Robotics
*/

#include <iostream>
#include <QString>
#include <qimessaging/qisession.h>

#include <qimessaging/session.hpp>

class QiSessionPrivate {
public:
  qi::Session session;
};


QiSession::QiSession()
  : _p(new QiSessionPrivate)
{
}

QiSession::~QiSession()
{
  delete _p;
}


void QiSession::connect(const QString &masterAddress)
{
  _p->session.connect(masterAddress.toUtf8().constData());
}

bool QiSession::waitForConnected(int msecs)
{
  return _p->session.waitForConnected(msecs);
}

bool QiSession::waitForDisconnected(int msecs)
{
  return _p->session.waitForDisconnected(msecs);
}


QObject *QiSession::service(const QString &name, const QString &type)
{

}

QVector<QString> QiSession::services()
{
  //return QVector<QString>::fromStdVector(_p->session.services());
}

{'fraction_non_alphanumeric': 0.15900056785917094, 'fraction_numerical': 0.0068143100511073255, 'mean_word_length': 6.133603238866397, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 24, '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': '2214121', 'n_tokens_mistral': 679, 'n_tokens_neox': 643, 'n_words': 108}