<commit_before>#ifndef SYMBOL_HPP_
#define SYMBOL_HPP_

#include <boost/variant.hpp>

struct source_location
{
    size_t line;
    size_t pos;
    const char* file_name;
};

class symbol
{
public:
    typedef std::string literal;
    struct reference
    {
        std::string identifier;
    };
    typedef std::vector<symbol> list;
    
    source_location location_begin;
    source_location location_end;

    boost::variant<literal, reference, list> content;
};

#endif
<commit_msg>add sybol ptr for reference<commit_after>#ifndef SYMBOL_HPP_
#define SYMBOL_HPP_

#include <boost/variant.hpp>

struct source_location
{
    size_t line;
    size_t pos;
    const char* file_name;
};

class symbol
{
public:
    typedef std::string literal;
    struct reference
    {
        reference()
          : refered(nullptr)
        {}
        std::string identifier;
        symbol* refered;
    };
    typedef std::vector<symbol> list;
    
    source_location location_begin;
    source_location location_end;

    boost::variant<literal, reference, list> content;
};

#endif

{'fraction_non_alphanumeric': 0.09209302325581395, 'fraction_numerical': 0.0, 'mean_word_length': 3.1544401544401546, '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': '5473181', 'n_tokens_mistral': 340, 'n_tokens_neox': 334, 'n_words': 82}