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

int main(int argc, char **argv){
    char cmdArg[512];
    char input[256];

    if (strcmp(argv[1], "git") == 0){
        system("git add .");
        strcpy(cmdArg, "git commit -m ");
        printf("please enter commit message: ");
        fgets(input, 256, stdin);
        input[strcspn(input, "\n")] = 0;
        strcat(cmdArg, input);
        system(cmdArg);
        system("git push -u origin master");
    }
}
<commit_msg>added lazy open, it's not very impressive right now but could be extended later to choose your favourite editor<commit_after>#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char **argv){
    char cmdArg[512];
    char input[256];

    if (strcmp(argv[1], "git") == 0){
        system("git add .");
        strcpy(cmdArg, "git commit -m ");
        printf("please enter commit message: ");
        fgets(input, 256, stdin);
        input[strcspn(input, "\n")] = 0;
        strcat(cmdArg, input);
        system(cmdArg);
        system("git push -u origin master");
    } else if (strcmp(argv[1], "open") == 0){
        system("atom .");
    }
}

{'fraction_non_alphanumeric': 0.1680327868852459, 'fraction_numerical': 0.021311475409836064, 'mean_word_length': 2.756923076923077, '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': '2412020', 'n_tokens_mistral': 432, 'n_tokens_neox': 406, 'n_words': 114}