<commit_before>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef AST_VARIABLE_H
#define AST_VARIABLE_H

#include <memory>

#include <boost/intrusive_ptr.hpp>

#include "ast/Deferred.hpp"

namespace eddic {

class Context;
class Variable;

namespace ast {

struct ASTVariableValue {
    std::shared_ptr<Context> context;

    std::string variableName;
    std::shared_ptr<Variable> var;

    mutable long references;
    ASTVariableValue() : references(0) {}
};

typedef Deferred<ASTVariableValue, boost::intrusive_ptr<ASTVariableValue>> VariableValue;

} //end of ast

} //end of eddic

//Adapt the struct for the AST
BOOST_FUSION_ADAPT_STRUCT(
    eddic::ast::VariableValue, 
    (std::string, Content->variableName)
)

#endif
<commit_msg>Rename the define guard variable<commit_after>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef AST_VARIABLE_VALUE_H
#define AST_VARIABLE_VALUE_H

#include <memory>

#include <boost/intrusive_ptr.hpp>

#include "ast/Deferred.hpp"

namespace eddic {

class Context;
class Variable;

namespace ast {

struct ASTVariableValue {
    std::shared_ptr<Context> context;

    std::string variableName;
    std::shared_ptr<Variable> var;

    mutable long references;
    ASTVariableValue() : references(0) {}
};

typedef Deferred<ASTVariableValue, boost::intrusive_ptr<ASTVariableValue>> VariableValue;

} //end of ast

} //end of eddic

//Adapt the struct for the AST
BOOST_FUSION_ADAPT_STRUCT(
    eddic::ast::VariableValue, 
    (std::string, Content->variableName)
)

#endif

{'fraction_non_alphanumeric': 0.23625059780009564, 'fraction_numerical': 0.010521281683405069, 'mean_word_length': 5.282282282282282, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1756915', 'n_tokens_mistral': 666, 'n_tokens_neox': 615, 'n_words': 148}