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

int main (int argc, char ** argv)
{   CURL * handle;
    CURLcode res;

    curl_global_init(CURL_GLOBAL_ALL);
    handle = curl_easy_init();

    if ( handle )
    {   curl_easy_setopt(handle, CURLOPT_URL, "http://icanhazip.com");
        curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);

        res = curl_easy_perform(handle);
        if ( ! res == CURLE_OK )
        {   curl_easy_cleanup(handle);
            curl_global_cleanup();
            fputs("Could not check IP address", stderr);
            exit(1);
        }
    }
    
    curl_easy_cleanup(handle);
    curl_global_cleanup();

    return 0;
}
// vim: set tabstop=4 shiftwidth=4 expandtab
<commit_msg>Correctly add newline to end of string<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>

int main (int argc, char ** argv)
{   CURL * handle;
    CURLcode res;

    curl_global_init(CURL_GLOBAL_ALL);
    handle = curl_easy_init();

    if ( handle )
    {   curl_easy_setopt(handle, CURLOPT_URL, "http://icanhazip.com");
        curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);

        res = curl_easy_perform(handle);
        if ( ! res == CURLE_OK )
        {   curl_easy_cleanup(handle);
            curl_global_cleanup();
            fputs("Could not check IP address\n", stderr);
            exit(1);
        }
    }
    
    curl_easy_cleanup(handle);
    curl_global_cleanup();

    return 0;
}
// vim: set tabstop=4 shiftwidth=4 expandtab

{'fraction_non_alphanumeric': 0.1196860693263571, 'fraction_numerical': 0.006540222367560497, 'mean_word_length': 2.6778846153846154, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3766235', 'n_tokens_mistral': 566, 'n_tokens_neox': 522, 'n_words': 106}