<commit_before>#ifndef PYTHONIC_IO_H
#define PYTHONIC_IO_H

#include <iostream>
#include <string>

namespace pythonic {

    /* a few empty_* types */
    std::ostream& operator<<(std::ostream& os, core::empty_dict const & ) {
        return os << "{}";
    }

    std::ostream& operator<<(std::ostream& os, core::empty_list const & ) {
        return os << "[]";
    }

    /* string */
    std::ostream& operator<<(std::ostream& os, core::string const & s) {
        return os << s.c_str();
    }

    /* exception */

    std::ostream& operator<<(std::ostream& o, core::BaseException const & e)
    {
        return o << e.args;<commit_msg>Fix bug in core::string stream unpacking<commit_after>#ifndef PYTHONIC_IO_H
#define PYTHONIC_IO_H

#include <iostream>
#include <string>

namespace pythonic {

    /* a few empty_* types */
    std::ostream& operator<<(std::ostream& os, core::empty_dict const & ) {
        return os << "{}";
    }

    std::ostream& operator<<(std::ostream& os, core::empty_list const & ) {
        return os << "[]";
    }

    /* string */
    namespace core {
        std::ostream& operator<<(std::ostream& os, string const & s) {
            return os << s.c_str();
        }
    }

    /* exception */

    std::ostream& operator<<(std::ostream& o, core::BaseException const & e)
    {
        return o << e.args;
{'fraction_non_alphanumeric': 0.16790490341753342, 'fraction_numerical': 0.0, 'mean_word_length': 2.7625698324022347, 'pattern_counts': {'":': 0, '<': 39, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5899902', 'n_tokens_mistral': 450, 'n_tokens_neox': 439, 'n_words': 102}