<commit_before>/* libcurl Python module  by <NAME> <<EMAIL>> */

/* 
 * TODO: 
 * - handle function objects as callbacks (READ/WRITEFUNCTION)
 * - handle getinfo function
 * - ensure that input matches the option for setopt (avoid segfaults on wrong types)
 */

#include "Python.h"
#include <curl/curl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

static PyObject *ErrorObject;

typedef struct {
    PyObject_HEAD
    CURL *handle;
    char *url;
    struct HttpPost *httppost;
    struct curl_slist *httpheader;
    struct curl_slist *quote;
    struct curl_slist *postquote;
    char error[CURL_ERROR_SIZE];<commit_msg>- cosmetic fixes<commit_after>/* cURL Python module  by <NAME> <<EMAIL>> */

/* 
 * TODO: 
 * - handle function objects as callbacks (READ/WRITEFUNCTION)
 * - handle getinfo function
 * - ensure that input matches the option for setopt (avoid segfaults)
 */

#include "Python.h"
#include <curl/curl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

static PyObject *ErrorObject;

typedef struct {
    PyObject_HEAD
    CURL *handle;
    char *url;
    struct HttpPost *httppost;
    struct curl_slist *httpheader;
    struct curl_slist *quote;
    struct curl_slist *postquote;
    char error[CURL_ERROR_SIZE];
{'fraction_non_alphanumeric': 0.11022997620935765, 'fraction_numerical': 0.0, 'mean_word_length': 3.762264150943396, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1800531', 'n_tokens_mistral': 431, 'n_tokens_neox': 408, 'n_words': 126}