<commit_before>#ifndef VMAS_H
#define VMAS_H

#include <stdint.h>
#include "debug.h"

#define DEFAULT_STACKSIZE 0x100
#define DEFAULT_CODESIZE 0x300
#define DEFAULT_DATASIZE 0x100

class VMAddrSpace {
private:
    uint32_t stacksize, codesize, datasize;
    uint8_t *stack, *code, *data;
public:
    uint8_t *getStack() const;

    uint8_t *getCode() const;

    uint8_t *getData() const;

public:
    VMAddrSpace();

    VMAddrSpace(uint32_t ss, uint32_t cs, uint32_t ds);

    ~VMAddrSpace();

    uint32_t getStacksize() const;

    uint32_t getCodesize() const;

    uint32_t getDatasize() const;

    bool allocate(void);<commit_msg>bad_alloc in allocate()<commit_after>#ifndef VMAS_H
#define VMAS_H

#include <stdint.h>
#include "debug.h"

#define DEFAULT_STACKSIZE 0x100
#define DEFAULT_CODESIZE 0x300
#define DEFAULT_DATASIZE 0x100

class VMAddrSpace {
private:
    uint32_t stacksize, codesize, datasize;
    uint8_t *stack, *code, *data;

    bool allocate(void);

public:
    VMAddrSpace();

    VMAddrSpace(uint32_t ss, uint32_t cs, uint32_t ds);

    ~VMAddrSpace();

    uint8_t *getStack();

    uint8_t *getCode();

    uint8_t *getData();

    uint32_t getStacksize();

    uint32_t getCodesize();

    uint32_t getDatasize();
{'fraction_non_alphanumeric': 0.10539018503620273, 'fraction_numerical': 0.04827031375703942, 'mean_word_length': 4.248945147679325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1391242', 'n_tokens_mistral': 534, 'n_tokens_neox': 484, 'n_words': 110}