<commit_before>#include <assert.h>
#include <stdlib.h>

extern "C"
void __cxa_pure_virtual(void) {
    /* Pure C++ virtual call; abort! */
    assert(false);
}

void* __weak operator new(size_t size) {
    return malloc(size);
}

void* __weak operator new[](size_t size) {
    return malloc(size);
}

void __weak operator delete(void* ptr) {
    free(ptr);
}

void __weak operator delete[](void* ptr) {
    free(ptr);
}

/*-
 * <https://en.cppreference.com/w/cpp/memory/new/operator_delete>
 *
 * Called if a user-defined replacement is provided, except that it's
 * unspecified whether other overloads or this overload is called when deleting<commit_msg>Implement another delete operator function<commit_after>#include <assert.h>
#include <stdlib.h>

extern "C"
void __cxa_pure_virtual(void) {
    /* Pure C++ virtual call; abort! */
    assert(false);
}

void* __weak operator new(size_t size) {
    return malloc(size);
}

void* __weak operator new[](size_t size) {
    return malloc(size);
}

void __weak operator delete(void* ptr) {
    free(ptr);
}

void __weak operator delete[](void* ptr) {
    free(ptr);
}

void __weak operator delete[](void* ptr __unused, unsigned int) {
    /* Not yet implemented */
}

/*-
 * <https://en.cppreference.com/w/cpp/memory/new/operator_delete>
 *
 * Called if a user-defined replacement is provided, except that it's
 * unspecified whether other overloads or this overload is called when deleting
{'fraction_non_alphanumeric': 0.12795549374130738, 'fraction_numerical': 0.0, 'mean_word_length': 4.084805653710247, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2205454', 'n_tokens_mistral': 485, 'n_tokens_neox': 462, 'n_words': 138}