<commit_before>﻿using System.Collections;
using System.Collections.Generic;

namespace ECS {
    /// <summary>
    /// Unique ID
    /// </summary>
    public struct UID {

        public int ID;

        public UID(int ID) {
            this.ID = ID;
        }

        public void SetID(int ID) {
            this.ID = ID;
        }

        public bool IsNull() {
            return ID == -1;
        }

        public static readonly UID UIDNULL = new UID() { ID = -1 };
    }

}<commit_msg>added equal check for entities<commit_after>﻿using System.Collections;
using System.Collections.Generic;

namespace ECS {
    /// <summary>
    /// Unique ID
    /// </summary>
    public struct UID {

        public int ID;

        public UID(int ID) {
            this.ID = ID;
        }

        public void SetID(int ID) {
            this.ID = ID;
        }

        public bool IsNull() {
            return ID == -1;
        }

        public override bool Equals(object obj) {
            if (obj is UID) {
                return ((UID)obj).ID == ID;
            } else {
                return base.Equals(obj);
            }
        }

        public static readonly UID UIDNULL = new UID() { ID = -1 };
    }

}
{'fraction_non_alphanumeric': 0.11330049261083744, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 1.3263358778625953, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '968343', 'n_tokens_mistral': 368, 'n_tokens_neox': 351, 'n_words': 103}