<commit_before>#include <stdio.h>
#include <QCoreApplication>
#include "../../src/HttpPort.h"

int main(int argc, char *argv[])
{
  // automatic cleanup of curl
  cURLpp::Cleanup curlCleanup;

  QCoreApplication app(argc, argv);

  if (argc < 2)
  {
    // no url parameter
    std::cout << "No URL given, please supply a URL" << std::endl;

    return 1;
  }

  HttpPort port;

  // get data
  if (!port.get(QString(argv[1])))
  {
    // error
    std::cout << "Error getting data:\n" << port.error().toStdString()
              << std::endl;

    return 2;
  }

  // print data to console
  std::cout << port.data().toStdString() << std::endl;

  return 0;
}<commit_msg>Removed curlpp from test app HttpGet<commit_after>#include <stdio.h>
#include <iostream>
#include <curl/curl.h>
#include <QCoreApplication>
#include "../../src/HttpPort.h"

int main(int argc, char *argv[])
{
  // initialize curl
  curl_global_init(CURL_GLOBAL_ALL);

  QCoreApplication app(argc, argv);

  if (argc < 2)
  {
    // no url parameter
    std::cout << "No URL given, please supply a URL" << std::endl;

    return 1;
  }

  HttpPort port;

  // get data
  if (!port.get(QString(argv[1])))
  {
    // error
    std::cout << "Error getting data:\n" << port.error().toStdString()
              << std::endl;

    return 2;
  }

  // print data to console
  std::cout << port.data().toStdString() << std::endl;

  // clean up curl
  curl_global_cleanup();

  return 0;
}
{'fraction_non_alphanumeric': 0.16747070985527224, 'fraction_numerical': 0.006891798759476223, 'mean_word_length': 2.8311345646437993, 'pattern_counts': {'":': 0, '<': 39, '<?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': '1162957', 'n_tokens_mistral': 526, 'n_tokens_neox': 502, 'n_words': 132}