<commit_before>package org.konan.libcurl

import kotlinx.cinterop.*
import platform.posix.*
import libcurl.*

class CUrl(val url: String)  {
    val stableRef = StableRef.create(this)

    val curl = curl_easy_init();

    init {
        curl_easy_setopt(curl, CURLOPT_URL, url)
        val header = staticCFunction(::header_callback)
        curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header)
        curl_easy_setopt(curl, CURLOPT_HEADERDATA, stableRef.asCPointer())
        val write_data = staticCFunction(::write_callback)
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data)
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, stableRef.asCPointer())
    }<commit_msg>add explicit import for platform.posix.size_t<commit_after>package org.konan.libcurl

import kotlinx.cinterop.*
import platform.posix.*
import platform.posix.size_t
import libcurl.*

class CUrl(val url: String)  {
    val stableRef = StableRef.create(this)

    val curl = curl_easy_init();

    init {
        curl_easy_setopt(curl, CURLOPT_URL, url)
        val header = staticCFunction(::header_callback)
        curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header)
        curl_easy_setopt(curl, CURLOPT_HEADERDATA, stableRef.asCPointer())
        val write_data = staticCFunction(::write_callback)
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data)
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, stableRef.asCPointer())
    }
{'fraction_non_alphanumeric': 0.09034051424600417, 'fraction_numerical': 0.0, 'mean_word_length': 4.1985559566787005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4667091', 'n_tokens_mistral': 522, 'n_tokens_neox': 468, 'n_words': 86}