<commit_before>﻿using Microsoft.SharePoint;
using System;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SPMin.Controls
{
    public class AssetRegistrationControl : WebControl
    {
        private EnvironmentMode? _environmentMode = null;
        private bool _includeOnce = true;
        private StringBuilder html = new StringBuilder();

        [Category("Settings")]
        public bool IncludeOnce
        {
            get { return _includeOnce; }
            set { _includeOnce = value; }
        }

        [Category("Settings")]
        public virtual bool AddToHead { get; set; }

        [Category("Settings")]
        public string FilePath { get; set; }

        /// <summary>
        /// Gets the current environment mode
        /// </summary>
        private EnvironmentMode EnvironmentMode
        {
            get
            {
                if (!_environmentMode.HasValue)
                {
                    // Emulate production environment while in development environment<commit_msg>AssetRegistrationControl changed to abstract class<commit_after>﻿using Microsoft.SharePoint;
using System;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SPMin.Controls
{
    public abstract class AssetRegistrationControl : WebControl
    {
        private EnvironmentMode? _environmentMode = null;
        private bool _includeOnce = true;
        private StringBuilder html = new StringBuilder();

        [Category("Settings")]
        public bool IncludeOnce
        {
            get { return _includeOnce; }
            set { _includeOnce = value; }
        }

        [Category("Settings")]
        public virtual bool AddToHead { get; set; }

        [Category("Settings")]
        public string FilePath { get; set; }

        /// <summary>
        /// Gets the current environment mode
        /// </summary>
        private EnvironmentMode EnvironmentMode
        {
            get
            {
                if (!_environmentMode.HasValue)
                {
                    // Emulate production environment while in development environment
{'fraction_non_alphanumeric': 0.08207705192629816, 'fraction_numerical': 0.0, 'mean_word_length': 2.1768617021276597, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4811903', 'n_tokens_mistral': 572, 'n_tokens_neox': 557, 'n_words': 168}