<commit_before>#include <stdio.h>
#include <curl/curl.h>


int main(int argc, char* args[]) {

    char *url = args[1];
    CURL *curl;
    CURLcode res;
    FILE *file;

    curl = curl_easy_init();
    if(curl) {
        curl_easy_setopt(curl, CURLOPT_URL, url);

        char *output = args[1];
        file = fopen(output, "wb");
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, file);

        res = curl_easy_perform(curl);
        if(res != CURLE_OK)
          fprintf(stderr, "Couldn't download file: %s\n",
                  curl_easy_strerror(res));

        curl_easy_cleanup(curl);
    }

    return 0;
}<commit_msg>Fix getpage.c<commit_after>#include <stdio.h>
#include <curl/curl.h>

int main(int argc, char **argv)
{
    CURL *curl;
    FILE *fp;
    CURLcode res;
    char *url = argv[1];
    char outfilename[FILENAME_MAX] = "page.html";
    curl = curl_easy_init();
    if (curl)
    {
        fp = fopen(outfilename,"wb");
        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
        res = curl_easy_perform(curl);
        curl_easy_cleanup(curl);
        fclose(fp);
    }
    return 0;
}
{'fraction_non_alphanumeric': 0.13338788870703763, 'fraction_numerical': 0.004091653027823241, 'mean_word_length': 2.629080118694362, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '38254', 'n_tokens_mistral': 491, 'n_tokens_neox': 434, 'n_words': 89}