<commit_before>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2015-2017 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
// ========================================================================== //

#define BOOST_TEST_NO_MAIN
#define BOOST_TEST_MODULE "Features/Drawing Functions"

#include <boost/test/unit_test.hpp>

#include <DO/Sara/Visualization.hpp>


using namespace std;
using namespace DO::Sara;


BOOST_AUTO_TEST_SUITE(TestOERegionDrawing)

BOOST_AUTO_TEST_CASE(test_draw_method)
{
  create_window(300, 300);
  const auto f = OERegion{Point2f{300 / 2.f, 300 / 2.f}, 1.f};
  draw(f, Red8);
  close_window();
}

BOOST_AUTO_TEST_CASE(test_draw_oe_regions)
{
  create_window(300, 300);
  auto features = vector<OERegion>{OERegion{Point2f{300 / 2.f, 300 / 2.f}, 1.f},
                                   OERegion{Point2f{200.f, 300 / 2.f}, 1.f}};
  draw_oe_regions(features, Red8);
  close_window();
}

BOOST_AUTO_TEST_SUITE_END()

int worker_thread(int argc, char **argv)
{
  return boost::unit_test::unit_test_main([]() { return true; }, argc, argv);
}

int main(int argc, char **argv)
{
  GraphicsApplication gui_app(argc, argv);
  gui_app.register_user_main(worker_thread);
  return gui_app.exec();
}<commit_msg>MAINT: increase the feature scale.<commit_after>// ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2015-2017 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
// ========================================================================== //

#define BOOST_TEST_NO_MAIN
#define BOOST_TEST_MODULE "Features/Drawing Functions"

#include <boost/test/unit_test.hpp>

#include <DO/Sara/Visualization.hpp>


using namespace std;
using namespace DO::Sara;


BOOST_AUTO_TEST_SUITE(TestOERegionDrawing)

BOOST_AUTO_TEST_CASE(test_draw_method)
{
  create_window(300, 300);
  const auto f = OERegion{Point2f{300 / 2.f, 300 / 2.f}, 10.f};
  draw(f, Red8);
  close_window();
}

BOOST_AUTO_TEST_CASE(test_draw_oe_regions)
{
  auto w = create_window(300, 300);
  auto features = vector<OERegion>{OERegion{Point2f{300 / 2.f, 300 / 2.f}, 10.f},
                                   OERegion{Point2f{200.f, 300 / 2.f}, 10.f}};
  draw_oe_regions(features, Red8);
  close_window();
}

BOOST_AUTO_TEST_SUITE_END()

int worker_thread(int argc, char **argv)
{
  return boost::unit_test::unit_test_main([]() { return true; }, argc, argv);
}

int main(int argc, char **argv)
{
  GraphicsApplication gui_app(argc, argv);
  gui_app.register_user_main(worker_thread);
  return gui_app.exec();
}
{'fraction_non_alphanumeric': 0.21932367149758455, 'fraction_numerical': 0.03639291465378422, 'mean_word_length': 4.327615780445969, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3314704', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1032, 'n_words': 260}