<commit_before>//
//  Object.hpp
//  Emojicode
//
//  Created by <NAME> on 06/02/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

#ifndef Object_hpp
#define Object_hpp

#include "Engine.hpp"

namespace Emojicode {

#ifndef heapSize
#define heapSize (512 * 1024 * 1024)  // 512 MB
#endif

inline size_t alignSize(size_t size) {
    return size + (size % alignof(Object));
}

/// This method is called during the initialization of the Engine.
/// @warning Obviously, you should not call it anywhere else!
void allocateHeap();

/// This method pauses the thread as if the garbage collector requested it.
/// @warning You should normally not call this method.
inline void performPauseForGC();

template <typename T>
inline void markByObjectVariableRecord(ObjectVariableRecord &record, Value *va, T &index) {
    switch (record.type) {<commit_msg>🐹 Fix bug in alignSize<commit_after>//
//  Object.hpp
//  Emojicode
//
//  Created by <NAME> on 06/02/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

#ifndef Object_hpp
#define Object_hpp

#include "Engine.hpp"

namespace Emojicode {

#ifndef heapSize
#define heapSize (512 * 1024 * 1024)  // 512 MB
#endif

inline size_t alignSize(size_t size) {
    return size + alignof(Object) - (size % alignof(Object));
}

/// This method is called during the initialization of the Engine.
/// @warning Obviously, you should not call it anywhere else!
void allocateHeap();

/// This method pauses the thread as if the garbage collector requested it.
/// @warning You should normally not call this method.
inline void performPauseForGC();

template <typename T>
inline void markByObjectVariableRecord(ObjectVariableRecord &record, Value *va, T &index) {
    switch (record.type) {
{'fraction_non_alphanumeric': 0.11079053664166186, 'fraction_numerical': 0.030005770340450086, 'mean_word_length': 3.7900552486187844, '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': '2213329', 'n_tokens_mistral': 559, 'n_tokens_neox': 513, 'n_words': 201}