<commit_before>﻿using FactorioModBuilder.Build;
using FactorioModBuilder.Build.Data;
using FactorioModBuilder.Models.ProjectItems.Prototype;
using FactorioModBuilder.ViewModels.Base;
using FactorioModBuilder.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactorioModBuilder.ViewModels.ProjectItems.Prototype
{
    public class SubGroupVM : ProjectItem<SubGroup, SubGroupVM>
    {
        public override IEnumerable<DataUnit> CompilerData
        {
            get
            {
                return new SubGroupData(this.Name, 
                    this.GroupName, this.Order).ListWrap();
            }
        }

        public string Type
        {
            get { return _internal.Type; }
            set { this.SetProperty(_internal, value); }
        }

        public GroupVM Group
        {
            get { return this.GetProperty<GroupVM>(); }
            set { this.SetProperty(value, null, (() => this.GroupName = (value == null) ? String.Empty : value.Name)); }
        }

        public string GroupName
        {
            get { return _internal.Group; }
            set { this.SetProperty(_internal, value, false, null, "Group"); }
        }

        public string Order
        {
            get { return _internal.Order; }
            set { this.SetProperty(_internal, value); }
        }

        public SubGroupVM(SubGroup item)
            : this(null, item)
        {
        }

        public SubGroupVM(TreeItemVMBase parent, SubGroup item)
            : base(parent, item)
        {
        }

        public void ForceRemoveGroup()
        {
            this.SetProperty<Group>(null, null, null, false, "Group");
            this.GroupName = String.Empty;
        }
    }
}<commit_msg>Fixed typo in SubGroupVM<commit_after>﻿using FactorioModBuilder.Build;
using FactorioModBuilder.Build.Data;
using FactorioModBuilder.Models.ProjectItems.Prototype;
using FactorioModBuilder.ViewModels.Base;
using FactorioModBuilder.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactorioModBuilder.ViewModels.ProjectItems.Prototype
{
    public class SubGroupVM : ProjectItem<SubGroup, SubGroupVM>
    {
        public override IEnumerable<DataUnit> CompilerData
        {
            get
            {
                return new SubGroupData(this.Name, 
                    this.GroupName, this.Order).ListWrap();
            }
        }

        public string Type
        {
            get { return _internal.Type; }
            set { this.SetProperty(_internal, value); }
        }

        public GroupVM Group
        {
            get { return this.GetProperty<GroupVM>(); }
            set { this.SetProperty(value, null, (() => this.GroupName = (value == null) ? String.Empty : value.Name)); }
        }

        public string GroupName
        {
            get { return _internal.Group; }
            set { this.SetProperty(_internal, value, false, null, "Group"); }
        }

        public string Order
        {
            get { return _internal.Order; }
            set { this.SetProperty(_internal, value); }
        }

        public SubGroupVM(SubGroup item)
            : this(null, item)
        {
        }

        public SubGroupVM(TreeItemVMBase parent, SubGroup item)
            : base(parent, item)
        {
        }

        public void ForceRemoveGroup()
        {
            this.SetProperty<GroupVM>(null, null, null, true, "Group");
            this.GroupName = String.Empty;
        }
    }
}
{'fraction_non_alphanumeric': 0.09476584022038567, 'fraction_numerical': 0.0, 'mean_word_length': 1.9424635332252835, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6541091', 'n_tokens_mistral': 980, 'n_tokens_neox': 954, 'n_words': 209}