<commit_before><?php

namespace Moxl\Stanza;

class Upload {
    static function request($to, $name, $size, $type)
    {
        $dom = new \DOMDocument('1.0', 'UTF-8');
        $request = $dom->createElementNS('eu:siacs:conversations:http:upload', 'request');
        $request->appendChild($dom->createElement('filename', $name));
        $request->appendChild($dom->createElement('size', $size));
        $request->appendChild($dom->createElement('content-type', $type));

        $xml = \Moxl\API::iqWrapper($request, $to, 'get');
        \Moxl\API::request($xml);
    }
}
<commit_msg>Add the correct namespace in Stanza/Upload to fit with the new XEP-0363<commit_after><?php

namespace Moxl\Stanza;

class Upload {
    static function request($to, $name, $size, $type)
    {
        $dom = new \DOMDocument('1.0', 'UTF-8');
        $request = $dom->createElementNS('urn:xmpp:http:upload', 'request');
        $request->appendChild($dom->createElement('filename', $name));
        $request->appendChild($dom->createElement('size', $size));
        $request->appendChild($dom->createElement('content-type', $type));

        $xml = \Moxl\API::iqWrapper($request, $to, 'get');
        \Moxl\API::request($xml);
    }
}

{'fraction_non_alphanumeric': 0.1959016393442623, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 3.6961538461538463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3681651', 'n_tokens_mistral': 386, 'n_tokens_neox': 383, 'n_words': 69}