<commit_before>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Microsoft.Xna.Framework.Content;

[assembly: InternalsVisibleTo("CocosSharp.Content.Pipeline.Importers")]
[assembly: InternalsVisibleTo("Microsoft.Xna.Framework.Content")]

namespace CocosSharp
{

#if IOS
    [MonoTouch.Foundation.Preserve (AllMembers = true)]
#endif
    internal sealed class CCBMFontConfiguration
    {
        // Due to a bug in MonoGame's Custom Content loading not being able to recognize properties that are not
        // marked public we have to leave the Serialized information as variables and not properties.
        // This is an inconsistency with how XNA works.  Until this bug is fixed this needs to remain as it is.
        [ContentSerializer]
        internal int CommonHeight;// { get; set; }

        [ContentSerializer]
        internal Dictionary<int, CCBMGlyphDef> Glyphs; // { get; set; }

        [ContentSerializer]
        internal Dictionary<int, CCKerningHashElement> GlyphKernings; // { get; set; }

        [ContentSerializer]
        internal string AtlasName; // { get; set; }

        [ContentSerializer]
        internal CCBMGlyphPadding Padding;

        public List<int> CharacterSet { get; set; }

        #region Constructors

        public static CCBMFontConfiguration FontConfigurationWithFile(string fntFile)
        {
            try
            {
                return CCContentManager.SharedContentManager.Load<CCBMFontConfiguration>(fntFile);
            }
            catch (ContentLoadException)
            {
                return new CCBMFontConfiguration(fntFile);
            }
        }

        public CCBMFontConfiguration()
        {
            Glyphs = new Dictionary<int, CCBMGlyphDef>();
            CharacterSet = new List<int>();
            GlyphKernings = new Dictionary<int, CCKerningHashElement>();
        }

        internal CCBMFontConfiguration(string fntFile)
            : this(CCContentManager.SharedContentManager.Load<string>(fntFile), fntFile)
        { }
        

        // Content pipeline makes use of this constructor
        public CCBMFontConfiguration(string data, string fntFile) : base()
        {<commit_msg>Mark constructors as internal.  This is now possible because of the IsVisibleTo attribute.<commit_after>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Microsoft.Xna.Framework.Content;

[assembly: InternalsVisibleTo("CocosSharp.Content.Pipeline.Importers")]
[assembly: InternalsVisibleTo("Microsoft.Xna.Framework.Content")]

namespace CocosSharp
{

#if IOS
    [MonoTouch.Foundation.Preserve (AllMembers = true)]
#endif
    internal sealed class CCBMFontConfiguration
    {
        // Due to a bug in MonoGame's Custom Content loading not being able to recognize properties that are not
        // marked public we have to leave the Serialized information as variables and not properties.
        // This is an inconsistency with how XNA works.  Until this bug is fixed this needs to remain as it is.
        [ContentSerializer]
        internal int CommonHeight;// { get; set; }

        [ContentSerializer]
        internal Dictionary<int, CCBMGlyphDef> Glyphs; // { get; set; }

        [ContentSerializer]
        internal Dictionary<int, CCKerningHashElement> GlyphKernings; // { get; set; }

        [ContentSerializer]
        internal string AtlasName; // { get; set; }

        [ContentSerializer]
        internal CCBMGlyphPadding Padding;

        public List<int> CharacterSet { get; set; }

        #region Constructors

        internal static CCBMFontConfiguration FontConfigurationWithFile(string fntFile)
        {
            try
            {
                return CCContentManager.SharedContentManager.Load<CCBMFontConfiguration>(fntFile);
            }
            catch (ContentLoadException)
            {
                return new CCBMFontConfiguration(fntFile);
            }
        }

        internal CCBMFontConfiguration()
        {
            Glyphs = new Dictionary<int, CCBMGlyphDef>();
            CharacterSet = new List<int>();
            GlyphKernings = new Dictionary<int, CCKerningHashElement>();
        }

        internal CCBMFontConfiguration(string fntFile)
            : this(CCContentManager.SharedContentManager.Load<string>(fntFile), fntFile)
        { }
        

        // Content pipeline makes use of this constructor
        internal CCBMFontConfiguration(string data, string fntFile) : base()
        {
{'fraction_non_alphanumeric': 0.07727570399476097, 'fraction_numerical': 0.0, 'mean_word_length': 2.602201257861635, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2969399', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1141, 'n_words': 330}