<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include "apricosfsman.h"
#include "commandproc.h"

unsigned long buffersize = INITIAL_INPUT_BUFFER_SIZE;
char* inputbuff;

Filesystem* globalFileSystem = NULL;

void cleanup() {
    /* free resources */
    free(inputbuff);

    if(globalFileSystem != NULL) {
        printf("Unmounting without saving...\n");
        unmountFilesystem(globalFileSystem, 0);
    }
}

void termhandler(int sig) {
    if(sig == SIGINT){
        cleanup();
        exit(EXIT_SUCCESS);
    }
}

void init(int argc, char** argv) {
    argc=argc; /* Satisfy compiler warnings until these are actually used */
    argv=argv;

    signal(SIGINT, termhandler);

    inputbuff = (char*)malloc(sizeof(char) * buffersize);
}

void printPrompt() {
    if(globalFileSystem) {
        char* volname = globalFileSystem->volumeInfo->volumeName;
        if(strlen(volname) < 1)  {
            printf("[Unformatted]");
        } else {
            printf("[%s", volname);
            printPathString(globalFileSystem);
            printf("]");
        }
    }
    printf(PROMPT);
}

void inputLoop() {
    do {
        printPrompt();
    } while(
            getline(&inputbuff, &buffersize, stdin) != -1
            && processLine(inputbuff) != -1);
}

int main(int argc, char** argv) {
    init(argc, argv);

    inputLoop();

    cleanup();

    printf("Bye!\n");
    return EXIT_SUCCESS;
}<commit_msg>Get rid of unused parameters<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include "apricosfsman.h"
#include "commandproc.h"
#include "diskio.h"

unsigned long buffersize = INITIAL_INPUT_BUFFER_SIZE;
char* inputbuff;

Filesystem* globalFileSystem = NULL;

void cleanup() {
    /* free resources */
    free(inputbuff);

    if(globalFileSystem != NULL) {
        printf("\nUnmounting without saving...\n");
        unmountFilesystem(globalFileSystem, 0);
    }
}

void termhandler(int sig) {
    if(sig == SIGINT){
        cleanup();
        exit(EXIT_SUCCESS);
    }
}

void init() {

    signal(SIGINT, termhandler);

    inputbuff = (char*)malloc(sizeof(char) * buffersize);
}

void printPrompt() {
    if(globalFileSystem) {
        char* volname = globalFileSystem->volumeInfo->volumeName;
        if(strlen(volname) < 1)  {
            printf("[Unformatted]");
        } else {
            printf("[%s", volname);
            printPathString(globalFileSystem);
            printf("]");
        }
    }
    printf(PROMPT);
}

void inputLoop() {
    do {
        printPrompt();
    } while(
            getline(&inputbuff, &buffersize, stdin) != -1
            && processLine(inputbuff) != -1);
}

int main(void) {
    printf("%lu\n", sizeof(VolumeInfo));
    init();

    inputLoop();

    cleanup();

    printf("Bye!\n");
    return EXIT_SUCCESS;
}
{'fraction_non_alphanumeric': 0.14863921842288905, 'fraction_numerical': 0.0027913468248429866, 'mean_word_length': 2.7089262613195344, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '7073424', 'n_tokens_mistral': 942, 'n_tokens_neox': 925, 'n_words': 187}