<commit_before>#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "Rsp_#1.1.h"
#include "rsp.h"
#include "bench.h"

EXPORT void CALL CloseDLL(void)
{
    RSP.RDRAM = NULL; /* so DllTest benchmark doesn't think ROM is still open */
    return;
}
static const char DLL_about[] =
    "RSP Interpreter by Iconoclast&&ECHO."\
    "&&ECHO "\
    "Thanks for test RDP:  Jabo, ziggy, angrylion\n"\
    "RSP driver examples:  bpoint, zilmar, Ville Linde\n"\
    "Helpful shenanigans:  mudlord, MarathonMan, Garteal";
EXPORT void CALL DllAbout(HWND hParent)
{
    hParent = NULL;
    message(DLL_about, 3);
    return;
}
EXPORT void CALL DllConfig(HWND hParent)
{
    FILE* stream;
    register int PC;

    hParent = NULL;
    system("sp_cfgui"); /* This launches an EXE by default (if not, BAT/CMD). */
    update_conf(CFG_FILE);
    export_SP_memory();

    stream = fopen("rsp_task.txt", "w");
    fprintf(stream, "off   inst             disassembled\n");
    fprintf(stream, "--- -------- --------------------------------\n");
    for (PC = 0; PC < 4096; PC += 4)
    {
        const uint32_t inst = *(uint32_t *)(RSP.IMEM + PC);<commit_msg>uh... ^ what he said, only fixed properly this time<commit_after>#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "Rsp_#1.1.h"
#include "rsp.h"
#include "bench.h"

EXPORT void CALL CloseDLL(void)
{
    RSP.RDRAM = NULL; /* so DllTest benchmark doesn't think ROM is still open */
    return;
}
static const char DLL_about[] =
    "RSP Interpreter by Iconoclast&&ECHO."\
    "&&ECHO "\
    "Thanks for test RDP:  Jabo, ziggy, angrylion\n"\
    "RSP driver examples:  bpoint, zilmar, Ville Linde\n"\
    "Helpful shenanigans:  mudlord, MarathonMan, Garteal";
EXPORT void CALL DllAbout(HWND hParent)
{
    hParent = NULL;
    message(DLL_about, 3);
    return;
}
EXPORT void CALL DllConfig(HWND hParent)
{
    FILE* stream;
    register int PC;

    hParent = NULL;
    system("sp_cfgui"); /* This launches an EXE by default (if not, BAT/CMD). */
    update_conf(CFG_FILE);
    if (RSP.DMEM == RSP.IMEM) /* emulation thread not initialized */
        return;

    export_SP_memory();
    trace_RSP_registers();
    stream = fopen("rsp_task.txt", "w");
    fprintf(stream, "off   inst             disassembled\n");
    fprintf(stream, "--- -------- --------------------------------\n");
    for (PC = 0; PC < 4096; PC += 4)
    {
        const uint32_t inst = *(uint32_t *)(RSP.IMEM + PC);
{'fraction_non_alphanumeric': 0.1723470178156468, 'fraction_numerical': 0.010069713400464756, 'mean_word_length': 2.727272727272727, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '989972', 'n_tokens_mistral': 983, 'n_tokens_neox': 910, 'n_words': 252}