<commit_before>/*
 * BufferObject.cpp
 *
 * Author
 *     <NAME> <<EMAIL>>
 */
#include "config.h"
#include <cassert>
#include <stdexcept>
#include "glycerin/buffer/BufferObject.hpp"
using namespace std;
namespace Glycerin {

/**
 * Constructs an invalid buffer object handle.
 */
BufferObject::BufferObject() {
    throw runtime_error("[BufferObject] Default constructor should not be called!");
}

/**
 * Constructs a buffer object handle from the identifer of an OpenGL buffer object.
 *
 * @param id Identifier of OpenGL buffer object, previously created using glGenBuffers
 */
BufferObject::BufferObject(GLuint id) : _id(id) {
    assert (_id > 0);
}

/**
 * Constructs a buffer object handle representing the same OpenGL buffer object as another one.
 *
 * @param bo Handle for  buffer object to copy identifier from
 */
BufferObject::BufferObject(const BufferObject& bo) : _id(bo._id) {
    // pass
}

/**
 * Destructs a buffer object handle, leaving the corresponding OpenGL buffer object unaffected.
 *
 * @see @ref dispose
 */
BufferObject::~BufferObject() {
    // pass
}

/**<commit_msg>Removed an extra space in BufferObject documentation<commit_after>/*
 * BufferObject.cpp
 *
 * Author
 *     <NAME> <<EMAIL>>
 */
#include "config.h"
#include <cassert>
#include <stdexcept>
#include "glycerin/buffer/BufferObject.hpp"
using namespace std;
namespace Glycerin {

/**
 * Constructs an invalid buffer object handle.
 */
BufferObject::BufferObject() {
    throw runtime_error("[BufferObject] Default constructor should not be called!");
}

/**
 * Constructs a buffer object handle from the identifer of an OpenGL buffer object.
 *
 * @param id Identifier of OpenGL buffer object, previously created using glGenBuffers
 */
BufferObject::BufferObject(GLuint id) : _id(id) {
    assert (_id > 0);
}

/**
 * Constructs a buffer object handle representing the same OpenGL buffer object as another one.
 *
 * @param bo Handle for buffer object to copy identifier from
 */
BufferObject::BufferObject(const BufferObject& bo) : _id(bo._id) {
    // pass
}

/**
 * Destructs a buffer object handle, leaving the corresponding OpenGL buffer object unaffected.
 *
 * @see @ref dispose
 */
BufferObject::~BufferObject() {
    // pass
}

/**
{'fraction_non_alphanumeric': 0.11449016100178891, 'fraction_numerical': 0.0008944543828264759, 'mean_word_length': 4.107305936073059, 'pattern_counts': {'":': 0, '<': 13, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1064950', 'n_tokens_mistral': 648, 'n_tokens_neox': 639, 'n_words': 224}