<commit_before>#ifndef __AtlasObject_h_
#define __AtlasObject_h_

#include "Variant.h"

namespace Atlas
{

class Object
{
	Variant*	obj;

/** support routine for dump */
static void walkTree(int nest, string name, const Object& list);

public:

/** output object stucture to debug streams */
static void dump(const Object& msg);

/** overload assignment so copying works right */
Object &operator=(const Object& src)
{
	obj->decref();
	obj = src.obj;
	obj->incref();
	return *this;
}

/** Construct an Object */
Object() 
{
	obj = new VMap(); 
}

/** Construct a copy of an existing Object */
Object(const Object& src) 
{
	obj->decref();
	obj = src.obj; <commit_msg>Atlas::Object Fixed List/Map constructors Atlas::Object Fixed Copy Constructor<commit_after>#ifndef __AtlasObject_h_
#define __AtlasObject_h_

#include "Variant.h"

namespace Atlas
{

class Object
{
	Variant*	obj;

/** support routine for dump */
static void walkTree(int nest, string name, const Object& list);

public:

/** output object stucture to debug streams */
static void dump(const Object& msg);

/** overload assignment so copying works right */
Object &operator=(const Object& src)
{
	obj->decref();
	obj = src.obj;
	obj->incref();
	return *this;
}

/** Construct an Object */
Object() 
{
	obj = new VMap(); 
}

/** Construct a copy of an existing Object */
Object(const Object& src) 
{
	obj = src.obj; 
{'fraction_non_alphanumeric': 0.13178855901520636, 'fraction_numerical': 0.0, 'mean_word_length': 4.234848484848484, 'pattern_counts': {'":': 0, '<': 3, '<?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': '729123', 'n_tokens_mistral': 456, 'n_tokens_neox': 448, 'n_words': 152}