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

namespace Pluton
{
    public class BuildingPart : CountedInstance
    {

        public readonly BuildingBlock buildingBlock;

        public BuildingPart(BuildingBlock bb)
        {
            buildingBlock = bb;
        }

        public Construction.Socket FindSocket(string name)
        {
            return buildingBlock.FindSocket(name);
        }

        public float Health {
            get {
                return buildingBlock.health;
            }
            set {
                buildingBlock.health = value;
            }
        }

        public bool IsFrame {
            get {
                return buildingBlock.IsFrame();
            }
        }

        public int ItemIDBase {
            get {
                return buildingBlock.ItemIDBase;
            }
        }

        public Vector3 Location {
            get {
                return buildingBlock.transform.position;
            }
            set {
                buildingBlock.transform.position.Set(value.x, value.y, value.z);
            }
        }

        public ulong OwnerID {
            get {
                return buildingBlock.deployerUserID;
            }
        }

        public string OwnerName {
            get {
                return buildingBlock.deployerUserName;
            }
        }

        public float X {
            get {
                return buildingBlock.transform.position.x;
            }
            set {
                buildingBlock.transform.position.Set(value, Y, Z);
            }
        }

        public float Y {
            get {
                return buildingBlock.transform.position.y;
            }
            set {<commit_msg>BuildingPart update<commit_after>﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace Pluton
{
    public class BuildingPart : CountedInstance
    {

        public readonly BuildingBlock buildingBlock;

        public BuildingPart(BuildingBlock bb)
        {
            buildingBlock = bb;
        }

        public Construction.Socket FindSocket(string name)
        {
            return buildingBlock.FindSocket(name);
        }

        public void ChangeOwner(Player player)
        {
            if (player == null)
                return;

            OwnerID = player.GameID;
            OwnerName = player.Name;
        }

        public void Destroy()
        {
            buildingBlock.Kill(ProtoBuf.EntityDestroy.Mode.Gib, 2, 0, buildingBlock.transform.position);
        }

        public float Health {
            get {
                return buildingBlock.health;
            }
            set {
                buildingBlock.health = value;
            }
        }

        public bool IsFrame {
            get {
                return buildingBlock.IsFrame();
            }
        }

        public int ItemIDBase {
            get {
                return buildingBlock.ItemIDBase;
            }
        }

        public Vector3 Location {
            get {
                return buildingBlock.transform.position;
            }
            set {
                buildingBlock.transform.position.Set(value.x, value.y, value.z);
            }
        }

        public ulong OwnerID {
            get {
                return buildingBlock.deployerUserID;
            }
            set {
                buildingBlock.deployerUserID = value;
            }
        }

        public string OwnerName {
            get {
                return buildingBlock.deployerUserName;
            }
            set {
                buildingBlock.deployerUserName = value;
            }
        }

        public float X {
            get {
                return buildingBlock.transform.position.x;
            }
            set {
                buildingBlock.transform.position.Set(value, Y, Z);
            }
        }

        public float Y {
            get {
                return buildingBlock.transform.position.y;
            }
            set {
{'fraction_non_alphanumeric': 0.06485819975339087, 'fraction_numerical': 0.0009864364981504315, 'mean_word_length': 1.1246726034573076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2860569', 'n_tokens_mistral': 992, 'n_tokens_neox': 920, 'n_words': 200}