<commit_before>#ifndef _SPATIAL_BLOCK3DMAPUTIL_H
#define _SPATIAL_BLOCK3DMAPUTIL_H

#define BLOCK_LIST            "block-list" // all the unit block nodes in an entity

#include <sstream>
#include <math.h>
#include <vector>

using namespace std;

namespace opencog
{
/** \addtogroup grp_spatial
 *  @{
 */

    namespace spatial
    {

        class BlockVector
        {
        public:
            static const BlockVector ZERO;
            static const BlockVector X_UNIT;
            static const BlockVector Y_UNIT;
            static const BlockVector Z_UNIT;
            static const BlockVector NEG_X_UNIT;
            static const BlockVector NEG_Y_UNIT;
            static const BlockVector NEG_Z_UNIT;

            int x;
            int y;
            int z;
            BlockVector(){x = 0; y = 0; z = 0;}
            BlockVector(int _x, int _y, int _z){x = _x; y = _y; z = _z;}
            BlockVector(const BlockVector& other){x = other.x; y = other.y; z = other.z;}


            inline BlockVector& operator = ( const BlockVector& other )
            {
                x = other.x;
                y = other.y;
                z = other.z;
                return *this;
            }

            inline bool operator == (const BlockVector& other) const
            {<commit_msg>fix int coordinate with double coordinate<commit_after>#ifndef _SPATIAL_BLOCK3DMAPUTIL_H
#define _SPATIAL_BLOCK3DMAPUTIL_H

#define BLOCK_LIST            "block-list" // all the unit block nodes in an entity

#include <sstream>
#include <math.h>
#include <vector>

using namespace std;

namespace opencog
{
/** \addtogroup grp_spatial
 *  @{
 */

    namespace spatial
    {

        class BlockVector
        {
        public:
            static const BlockVector ZERO;
            static const BlockVector X_UNIT;
            static const BlockVector Y_UNIT;
            static const BlockVector Z_UNIT;
            static const BlockVector NEG_X_UNIT;
            static const BlockVector NEG_Y_UNIT;
            static const BlockVector NEG_Z_UNIT;

            double x;
            double y;
            double z;
            BlockVector(){x = 0; y = 0; z = 0;}
            BlockVector(double _x, double _y, double _z){x = _x; y = _y; z = _z;}
            BlockVector(const BlockVector& other){x = other.x; y = other.y; z = other.z;}


            inline BlockVector& operator = ( const BlockVector& other )
            {
                x = other.x;
                y = other.y;
                z = other.z;
                return *this;
            }

            inline bool operator == (const BlockVector& other) const
            {
{'fraction_non_alphanumeric': 0.07960576194086429, 'fraction_numerical': 0.0037907505686125853, 'mean_word_length': 1.6873727087576376, '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': '3096026', 'n_tokens_mistral': 780, 'n_tokens_neox': 751, 'n_words': 231}