<commit_before>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test2d;

namespace Test2d
{
    /// <summary>
    /// Base factory class used for script execution globals.
    /// </summary>
    public class Factory
    {
        /// <summary>
        /// Gets or sets editor context.
        /// </summary>
        public EditorContext Context { private set; get; }

        /// <summary>
        /// Gets current editor.
        /// </summary>
        public Editor Editor
        {
            get { return Context.Editor; }
        }

        /// <summary>
        /// Gets selected shape.
        /// </summary>
        public BaseShape Shape
        {
            get { return Context.Editor.Renderers[0].State.SelectedShape; }
        }

        /// <summary>
        /// Gets selected shapes.
        /// </summary>
        public IEnumerable<BaseShape> Shapes
        {
            get { return Context.Editor.Renderers[0].State.SelectedShapes; }
        }

        /// <summary>
        /// Gets current project.
        /// </summary>
        public Project Project
        {
            get { return Context.Editor.Project; }
        }

        /// <summary>
        /// Gets current document.
        /// </summary>
        public Document Document
        {
            get { return Context.Editor.Project.CurrentDocument; }
        }

        /// <summary>
        /// Gets current container.
        /// </summary>
        public Container Container
        {
            get { return Context.Editor.Project.CurrentContainer; }
        }

        /// <summary>
        /// Gets current template.
        /// </summary>
        public Container Template
        {
            get { return Context.Editor.Project.CurrentTemplate; }
        }

        /// <summary>
        /// Gets current database.
        /// </summary>
        public Database Database
        {<commit_msg>Added Options property<commit_after>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test2d;

namespace Test2d
{
    /// <summary>
    /// Base factory class used for script execution globals.
    /// </summary>
    public class Factory
    {
        /// <summary>
        /// Gets or sets editor context.
        /// </summary>
        public EditorContext Context { private set; get; }

        /// <summary>
        /// Gets current editor.
        /// </summary>
        public Editor Editor
        {
            get { return Context.Editor; }
        }

        /// <summary>
        /// Gets selected shape.
        /// </summary>
        public BaseShape Shape
        {
            get { return Context.Editor.Renderers[0].State.SelectedShape; }
        }

        /// <summary>
        /// Gets selected shapes.
        /// </summary>
        public IEnumerable<BaseShape> Shapes
        {
            get { return Context.Editor.Renderers[0].State.SelectedShapes; }
        }

        /// <summary>
        /// Gets current project.
        /// </summary>
        public Project Project
        {
            get { return Context.Editor.Project; }
        }

        /// <summary>
        /// Gets current options.
        /// </summary>
        public Options Options
        {
            get { return Context.Editor.Project.Options; }
        }

        /// <summary>
        /// Gets current document.
        /// </summary>
        public Document Document
        {
            get { return Context.Editor.Project.CurrentDocument; }
        }

        /// <summary>
        /// Gets current container.
        /// </summary>
        public Container Container
        {
            get { return Context.Editor.Project.CurrentContainer; }
        }

        /// <summary>
        /// Gets current template.
        /// </summary>
        public Container Template
        {
            get { return Context.Editor.Project.CurrentTemplate; }
        }

        /// <summary>
        /// Gets current database.
        /// </summary>
        public Database Database
        {
{'fraction_non_alphanumeric': 0.11638418079096045, 'fraction_numerical': 0.001807909604519774, 'mean_word_length': 1.395021645021645, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '3394983', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1066, 'n_words': 309}