<commit_before>#ifndef MICROPYTHONWRAP_VARIABLE
#define MICROPYTHONWRAP_VARIABLE

#include "classwrapper.h"

namespace upywrap
{
  using varname = std::vector< std::string >;

  namespace detail
  {
    inline mp_obj_t GetVariable( const char* name )
    {
      return mp_load_name( qstr_from_str( name ) );
    }

    inline mp_obj_t GetVariable( mp_obj_t instance, const char* name )
    {
      return mp_load_attr( instance, qstr_from_str( name ) );
    }

    inline mp_obj_t GetVariable( const char* instance, const char* name )
    {
      return GetVariable( GetVariable( instance ), name );
    }

    template< class... Names >
    mp_obj_t GetVariable( const char* instance, const char* name, Names... names )
    {
      return GetVariable( GetVariable( instance, name ), names... );
    }<commit_msg>gcc: Fix missing include file<commit_after>#ifndef MICROPYTHONWRAP_VARIABLE
#define MICROPYTHONWRAP_VARIABLE

#include "classwrapper.h"
#include <stdexcept>

namespace upywrap
{
  using varname = std::vector< std::string >;

  namespace detail
  {
    inline mp_obj_t GetVariable( const char* name )
    {
      return mp_load_name( qstr_from_str( name ) );
    }

    inline mp_obj_t GetVariable( mp_obj_t instance, const char* name )
    {
      return mp_load_attr( instance, qstr_from_str( name ) );
    }

    inline mp_obj_t GetVariable( const char* instance, const char* name )
    {
      return GetVariable( GetVariable( instance ), name );
    }

    template< class... Names >
    mp_obj_t GetVariable( const char* instance, const char* name, Names... names )
    {
      return GetVariable( GetVariable( instance, name ), names... );
    }
{'fraction_non_alphanumeric': 0.0984984984984985, 'fraction_numerical': 0.0, 'mean_word_length': 3.260869565217391, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3157672', 'n_tokens_mistral': 547, 'n_tokens_neox': 536, 'n_words': 146}