<commit_before>#include <stdio.h>
#include <string.h>

static void quine(char *s) {
    printf("%s(\"\\\n", s);
    while (*s != '\0') {
        switch (*s) {
            case '"':
            case '\\':
                printf("\\");
                break;
            case '\n':
                printf("\\n\\");
                break;
        }
        printf("%c", *s);
        ++s;
    }
    printf("\"\n    );\n    return 0;\n}\n");
}

int main() {
    quine("\
#include <stdio.h>\n\
#include <string.h>\n\
\n\
static void quine(char *s) {\n\
    printf(\"%s(\\\"\\\\\\n\", s);\n\
    while (*s != '\\0') {\n\
        switch (*s) {\n\
            case '\"':\n\
            case '\\\\':\n\
                printf(\"\\\\\");\n\
                break;\n\
            case '\\n':\n\
                printf(\"\\\\n\\\\\");\n\
                break;\n\
        }\n\
        printf(\"%c\", *s);\n\
        ++s;\n\
    }\n\
    printf(\"\\\"\\n    );\\n    return 0;\\n}\\n\");\n\
}\n\
\n\
int main() {\n\
    quine"
    );
    return 0;
}<commit_msg>Further condense it. Doesn't return 0 now, but who cares?<commit_after>#include <stdio.h>
#include <string.h>

static void quine(char *s) {
    printf("%s(\"\\\n", s);
    while (*s != '\0') {
        switch (*s) {
            case '"':
            case '\\':
                printf("\\");
                break;
            case '\n':
                printf("\\n\\");
                break;
        }
        printf("%c", *s++);
    }
    printf("\"\n    );\n}\n");
}

int main() {
    quine("\
#include <stdio.h>\n\
#include <string.h>\n\
\n\
static void quine(char *s) {\n\
    printf(\"%s(\\\"\\\\\\n\", s);\n\
    while (*s != '\\0') {\n\
        switch (*s) {\n\
            case '\"':\n\
            case '\\\\':\n\
                printf(\"\\\\\");\n\
                break;\n\
            case '\\n':\n\
                printf(\"\\\\n\\\\\");\n\
                break;\n\
        }\n\
        printf(\"%c\", *s++);\n\
    }\n\
    printf(\"\\\"\\n    );\\n}\\n\");\n\
}\n\
\n\
int main() {\n\
    quine"
    );
}
{'fraction_non_alphanumeric': 0.2765957446808511, 'fraction_numerical': 0.0038684719535783366, 'mean_word_length': 0.9818007662835249, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2036243', 'n_tokens_mistral': 793, 'n_tokens_neox': 749, 'n_words': 159}