<commit_before>

#include <opencog/atoms/base/Atom.h>
#include "Cast.h"

using namespace opencog;

Handle atom_from_the_void(long p) { return *((Handle*) p); }
long void_from_candle(const Handle& hp) { return (long) (&hp); }
long void_from_cptr(Handle* hp) { return (long) (hp); }
<commit_msg>Fix for bug discussed in #1063<commit_after>

#include <opencog/atoms/base/Atom.h>
#include "Cast.h"

using namespace opencog;

Handle atom_from_the_void(long p) { return ((Atom*) p)->getHandle(); }
long void_from_candle(const Handle& hp) { return (long) (hp.operator->()); }
long void_from_cptr(Handle* hp) { return (long) (hp->operator->()); }

{'fraction_non_alphanumeric': 0.16901408450704225, 'fraction_numerical': 0.006259780907668232, 'mean_word_length': 5.881720430107527, 'pattern_counts': {'":': 0, '<': 5, '<?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': '496109', 'n_tokens_mistral': 249, 'n_tokens_neox': 246, 'n_words': 59}