<commit_before>/* small demonstration machine - assembler */

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv){
    FILE *asmsource;
    char *line = NULL;
    size_t len = 0;

    asmsource = fopen(argv[1], "r");
    if (stream == NULL){
        fprintf(stderr, "%s: %s: No such file or directory\n", argv[0],
            argv[1]);
        exit(1);
    }
    while (getline(&line, &len, asmsource) != -1) {
        
    }
}<commit_msg>Added the capability to output an object file to the assembler.<commit_after>/* small demonstration machine - assembler */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>

int main(int argc, char **argv){
    FILE *asmsource;
    char *line = NULL;
    size_t len = 0;
    int outputImageFD;

    asmsource = fopen(argv[1], "r");
    if (stream == NULL){
        fprintf(stderr, "%s: %s: No such file or directory\n", argv[0],
            argv[1]);
        exit(1);
    }
    outputImageFD = open("image.sdm", O_WRONLY, O_CREAT);
    if (outputImageFD == -1){
        perror("cannot create output file");
        exit(2);
    }
    while (getline(&line, &len, asmsource) != -1) {
        
    }
}
{'fraction_non_alphanumeric': 0.1633306645316253, 'fraction_numerical': 0.01120896717373899, 'mean_word_length': 2.61271676300578, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '1123216', 'n_tokens_mistral': 453, 'n_tokens_neox': 435, 'n_words': 122}