<commit_before>/*
 * Copyright (c) 2012, <NAME> <<EMAIL>>
 *
 * See LICENSE for licensing information.
 */

#include "mesh2d.h"

#include "logog/logog.hpp"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"

/* Constructors & Destructor
------------------------------------------------------------------------------*/

Mesh2D::Mesh2D(std::string path) {
    filepath = path;
    data = IMG_Load(path.c_str());

    if (data == NULL)
        ERR("Failed to initialize mesh at: %s", path.c_str());
}

Mesh2D::~Mesh2D() {
    if (data != NULL)
        SDL_FreeSurface(data);
}

/* Public Interface
------------------------------------------------------------------------------*/
<commit_msg>Initialize in Mesh2D<commit_after>/*
 * Copyright (c) 2012, <NAME> <<EMAIL>>
 *
 * See LICENSE for licensing information.
 */

#include "mesh2d.h"

#include "logog/logog.hpp"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"

/* Constructors & Destructor
------------------------------------------------------------------------------*/

Mesh2D::Mesh2D(std::string path) : filepath(path) {
    data = IMG_Load(path.c_str());

    if (data == NULL)
        ERR("Failed to initialize mesh at: %s", path.c_str());
}

Mesh2D::~Mesh2D() {
    if (data != NULL)
        SDL_FreeSurface(data);
}

/* Public Interface
------------------------------------------------------------------------------*/

{'fraction_non_alphanumeric': 0.36489439184268024, 'fraction_numerical': 0.013838310269482883, 'mean_word_length': 1.4981818181818183, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4762409', 'n_tokens_mistral': 429, 'n_tokens_neox': 407, 'n_words': 89}