<commit_before>using System.Windows;
using Dependinator.Utils.UI.Mvvm;


namespace Dependinator.ModelViewing.Private.Items
{
	internal abstract class ItemViewModel : ViewModel, IItem, IItemsCanvasBounds
	{
		protected ItemViewModel()
		{
			ViewName = this.GetType().Name;
		}

		public string ViewName { get => Get(); set => Set(value); }

		public double ItemZIndex { get => Get(); set => Set(value); }


		public double Priority { get; set; }

		public double ItemTop => ItemBounds.Top;
		public double ItemLeft => ItemBounds.Left;
		public double ItemWidth => ItemBounds.Width;
		public double ItemHeight => ItemBounds.Height;


		public Rect ItemBounds
		{
			get => Get();
			set => Set(value)
				.Notify(nameof(ItemTop), nameof(ItemLeft), nameof(ItemWidth), nameof(ItemHeight));
		}

		public object ItemState { get; set; }


		public ItemsCanvas ItemOwnerCanvas { get; set; }
		public double ItemScale => ItemOwnerCanvas?.Scale ?? 1;

		public virtual bool CanShow { get; } = true;

		public bool IsShowing { get; private set; }
<commit_msg>Usong int as item bounds<commit_after>using System.Windows;
using Dependinator.Utils.UI.Mvvm;


namespace Dependinator.ModelViewing.Private.Items
{
	internal abstract class ItemViewModel : ViewModel, IItem, IItemsCanvasBounds
	{
		protected ItemViewModel()
		{
			ViewName = this.GetType().Name;
		}

		public string ViewName { get => Get(); set => Set(value); }

		public double ItemZIndex { get => Get(); set => Set(value); }


		public double Priority { get; set; }

		public int ItemTop => (int)ItemBounds.Top;
		public int ItemLeft => (int)ItemBounds.Left;
		public int ItemWidth => (int)ItemBounds.Width;
		public int ItemHeight => (int)ItemBounds.Height;


		public Rect ItemBounds
		{
			get => Get();
			set => Set(value)
				.Notify(nameof(ItemTop), nameof(ItemLeft), nameof(ItemWidth), nameof(ItemHeight));
		}

		public object ItemState { get; set; }


		public ItemsCanvas ItemOwnerCanvas { get; set; }
		public double ItemScale => ItemOwnerCanvas?.Scale ?? 1;

		public virtual bool CanShow { get; } = true;

		public bool IsShowing { get; private set; }

{'fraction_non_alphanumeric': 0.11798017932987258, 'fraction_numerical': 0.0009438414346389807, 'mean_word_length': 4.108433734939759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '2888177', 'n_tokens_mistral': 726, 'n_tokens_neox': 637, 'n_words': 184}