<commit_before>﻿using numl.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Media3D;

namespace IGS.KNN
{
    public class WallProjectionAndPositionSample 
    {
        [Feature]
        public double wallPositionX { get; set; }
        [Feature]
        public double wallPositionY { get; set; }
        [Feature]
        public double wallPositionZ { get; set; }

        [Feature]
        public double personPositionX { get; set; }
        [Feature]
        public double personPositionY { get; set; }
        [Feature]
        public double personPositionZ { get; set; }
        [Label]
        public String sampleDeviceName { get; set; }

        public WallProjectionAndPositionSample (Point3D wallPosition, Point3D personPosition)
        {
            this.wallPositionX = wallPosition.X;
            this.wallPositionY = wallPosition.Y;
            this.wallPositionZ = wallPosition.Z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
        }

        public WallProjectionAndPositionSample()
        {
            this.wallPositionX = 0;
            this.wallPositionY = 0;
            this.wallPositionZ = 0;
            this.personPositionX = 0;
            this.personPositionY = 0;
            this.personPositionZ = 0;
        }
        public WallProjectionAndPositionSample(Point3D wallPosition, Point3D personPosition, string deviceName)
        {
            this.wallPositionX = wallPosition.X;
            this.wallPositionY = wallPosition.Y;
            this.wallPositionZ = wallPosition.Z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
            sampleDeviceName = deviceName;
        }

        public WallProjectionAndPositionSample(WallProjectionSample wps, Point3D personPosition, string deviceName)
        {
            this.wallPositionX = wps.x;
            this.wallPositionY = wps.y;
            this.wallPositionZ = wps.z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
            sampleDeviceName = deviceName;
        }

        public WallProjectionAndPositionSample(WallProjectionSample wps, Point3D personPosition)
        {
            this.wallPositionX = wps.x;
            this.wallPositionY = wps.y;
            this.wallPositionZ = wps.z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
        }

    }
}<commit_msg>Bugfix<commit_after>﻿using numl.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Media3D;

namespace IGS.KNN
{
    public class WallProjectionAndPositionSample 
    {
        [Feature]
        public double wallPositionX { get; set; }
        [Feature]
        public double wallPositionY { get; set; }
        [Feature]
        public double wallPositionZ { get; set; }

        [Feature]
        public double personPositionX { get; set; }
        [Feature]
        public double personPositionY { get; set; }
        [Feature]
        public double personPositionZ { get; set; }
        [Label]
        public String sampleDeviceName { get; set; }

        public WallProjectionAndPositionSample (Point3D wallPosition, Point3D personPosition)
        {
            this.wallPositionX = wallPosition.X;
            this.wallPositionY = wallPosition.Y;
            this.wallPositionZ = wallPosition.Z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
        }

        public WallProjectionAndPositionSample()
        {
            this.wallPositionX = 0;
            this.wallPositionY = 0;
            this.wallPositionZ = 0;
            this.personPositionX = 0;
            this.personPositionY = 0;
            this.personPositionZ = 0;
        }
        public WallProjectionAndPositionSample(Point3D wallPosition, Point3D personPosition, string deviceName)
        {
            this.wallPositionX = wallPosition.X;
            this.wallPositionY = wallPosition.Y;
            this.wallPositionZ = wallPosition.Z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
            sampleDeviceName = deviceName;
        }

        public WallProjectionAndPositionSample(WallProjectionSample wps, Point3D personPosition, string deviceName)
        {
            this.wallPositionX = wps.x;
            this.wallPositionY = wps.y;
            this.wallPositionZ = wps.z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
            sampleDeviceName = deviceName;
        }

        public WallProjectionAndPositionSample(WallProjectionSample wps, Point3D personPosition)
        {
            this.wallPositionX = wps.x;
            this.wallPositionY = wps.y;
            this.wallPositionZ = wps.z;
            this.personPositionX = personPosition.X;
            this.personPositionY = personPosition.Y;
            this.personPositionZ = personPosition.Z;
            this.sampleDeviceName = wps.sampleDeviceName;
        }

    }
}
{'fraction_non_alphanumeric': 0.0752858399296394, 'fraction_numerical': 0.004573438874230431, 'mean_word_length': 2.0868621064060804, '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': '921114', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1501, 'n_words': 306}