<commit_before>﻿/////////////////////////////////////////////////////////////////////////////////
// Paint.NET                                                                   //
// Copyright (C) dotPDN LLC, <NAME>, <NAME>, and contributors.     //
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved.          //
// See license-pdn.txt for full licensing and attribution details.             //
//                                                                             //
// Ported to Pinta by: <NAME> <<EMAIL>>                 //
//                     <NAME> <<EMAIL>>                      //
/////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Text;
using Gdk;
using Pinta.Core;
using System.Reflection;
using System.Linq;

namespace Pinta.Core
{
	public class TextEngine
	{
		private List<string> lines;

        private TextPosition currentPos;
        private TextPosition selectionStart;

		public Pango.FontDescription Font { get; private set; } = new ();
		public TextAlignment Alignment { get; private set; }
		public bool Underline { get; private set; }

		public TextPosition CurrentPosition { get { return currentPos; } }
		public int LineCount { get { return lines.Count; } }
		public TextMode State;<commit_msg>Fix error running the unit tests on the CI builds<commit_after>﻿/////////////////////////////////////////////////////////////////////////////////
// Paint.NET                                                                   //
// Copyright (C) dotPDN LLC, <NAME>, <NAME>, and contributors.     //
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved.          //
// See license-pdn.txt for full licensing and attribution details.             //
//                                                                             //
// Ported to Pinta by: <NAME> <<EMAIL>>                 //
//                     <NAME> <<EMAIL>>                      //
/////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Text;
using Gdk;
using Pinta.Core;
using System.Reflection;
using System.Linq;

namespace Pinta.Core
{
	public class TextEngine
	{
		private List<string> lines;

        private TextPosition currentPos;
        private TextPosition selectionStart;

		public Pango.FontDescription Font { get; private set; } = null!; // NRT - set via SetFont() before usage.
		public TextAlignment Alignment { get; private set; }
		public bool Underline { get; private set; }

		public TextPosition CurrentPosition { get { return currentPos; } }
		public int LineCount { get { return lines.Count; } }
		public TextMode State;
{'fraction_non_alphanumeric': 0.20108695652173914, 'fraction_numerical': 0.0, 'mean_word_length': 1.2799339388934765, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5444289', 'n_tokens_mistral': 612, 'n_tokens_neox': 583, 'n_words': 206}