<commit_before>#include "BoundingBoxRenderer.hpp"
#include "FAST/Data/BoundingBox.hpp"
#include "FAST/Data/SpatialDataObject.hpp"
#include <boost/thread/lock_guard.hpp>

namespace fast {

void BoundingBoxRenderer::addInputConnection(ProcessObjectPort port) {
    uint portID = getNrOfInputData();
    if(portID > 0)
        createInputPort<SpatialDataObject>(portID);
    setInputConnection(portID, port);
    releaseInputAfterExecute(portID, false);
    mIsModified = true;
}

BoundingBoxRenderer::BoundingBoxRenderer() {
    createInputPort<SpatialDataObject>(0, false);
}

void BoundingBoxRenderer::execute() {
    boost::lock_guard<boost::mutex> lock(mMutex);

    for(uint i = 0; i < getNrOfInputData(); ++i) {<commit_msg>added GL includes to bb renderer<commit_after>#include "BoundingBoxRenderer.hpp"
#include "FAST/Data/BoundingBox.hpp"
#include "FAST/Data/SpatialDataObject.hpp"
#include <boost/thread/lock_guard.hpp>
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif

namespace fast {

void BoundingBoxRenderer::addInputConnection(ProcessObjectPort port) {
    uint portID = getNrOfInputData();
    if(portID > 0)
        createInputPort<SpatialDataObject>(portID);
    setInputConnection(portID, port);
    releaseInputAfterExecute(portID, false);
    mIsModified = true;
}

BoundingBoxRenderer::BoundingBoxRenderer() {
    createInputPort<SpatialDataObject>(0, false);
}

void BoundingBoxRenderer::execute() {
    boost::lock_guard<boost::mutex> lock(mMutex);

    for(uint i = 0; i < getNrOfInputData(); ++i) {
{'fraction_non_alphanumeric': 0.1288305190744215, 'fraction_numerical': 0.00375234521575985, 'mean_word_length': 5.896551724137931, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '5013188', 'n_tokens_mistral': 548, 'n_tokens_neox': 538, 'n_words': 92}