<commit_before>﻿// <copyright file="An8Environment.cs" company="<NAME>">
// Copyright (c) 2015 <NAME>
// </copyright>
// <license>
// Licensed under the MIT license. See LICENSE.txt
// </license>

namespace JeremyAnsel.Media.An8
{
    using System.Collections.Generic;

    /// <summary>
    /// An environment.
    /// </summary>
    public sealed class An8Environment : An8Chunk
    {
        /// <summary>
        /// Gets or sets a value indicating whether auto grid is enabled.
        /// </summary>
        public bool IsAutoGridEnabled { get; set; }

        /// <summary>
        /// Gets or sets the spacing of the modeling grid.
        /// </summary>
        public float ModelingGridSpacing { get; set; }

        /// <summary>
        /// Gets or sets the spacing of the scene editor grid.
        /// </summary>
        public float SceneEditorGridSpacing { get; set; }

        /// <summary>
        /// Gets or sets the size of the ground floor grid.
        /// </summary>
        public float GroundFloorGridSize { get; set; }

        /// <summary>
        /// Gets or sets the framerate.
        /// </summary>
        public int Framerate { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the playback framerate is limited.
        /// </summary>
        public bool IsPlaybackFramerateLimited { get; set; }

        /// <summary>
        /// Parses the tokens of the chunk.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        internal override void ParseTokens(string[] tokens)
        {
            var chunks = Tokenizer.SplitChunks(tokens);

            foreach (var chunk in chunks)
            {
                int index = 0;

                switch (chunk.Ident)
                {
                    case "grid":
                        this.IsAutoGridEnabled = Tokenizer.ReadInt(chunk.Tokens, ref index) != 0;
                        this.ModelingGridSpacing = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        this.SceneEditorGridSpacing = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        this.GroundFloorGridSize = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        break;
<commit_msg>Fix spelling<commit_after>﻿// <copyright file="An8Environment.cs" company="<NAME>">
// Copyright (c) 2015 <NAME>
// </copyright>
// <license>
// Licensed under the MIT license. See LICENSE.txt
// </license>

namespace JeremyAnsel.Media.An8
{
    using System.Collections.Generic;

    /// <summary>
    /// An environment.
    /// </summary>
    public sealed class An8Environment : An8Chunk
    {
        /// <summary>
        /// Gets or sets a value indicating whether auto grid is enabled.
        /// </summary>
        public bool IsAutoGridEnabled { get; set; }

        /// <summary>
        /// Gets or sets the spacing of the modeling grid.
        /// </summary>
        public float ModelingGridSpacing { get; set; }

        /// <summary>
        /// Gets or sets the spacing of the scene editor grid.
        /// </summary>
        public float SceneEditorGridSpacing { get; set; }

        /// <summary>
        /// Gets or sets the size of the ground floor grid.
        /// </summary>
        public float GroundFloorGridSize { get; set; }

        /// <summary>
        /// Gets or sets the $framerate$.
        /// </summary>
        public int Framerate { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the playback $framerate$ is limited.
        /// </summary>
        public bool IsPlaybackFramerateLimited { get; set; }

        /// <summary>
        /// Parses the tokens of the chunk.
        /// </summary>
        /// <param name="tokens">The tokens.</param>
        internal override void ParseTokens(string[] tokens)
        {
            var chunks = Tokenizer.SplitChunks(tokens);

            foreach (var chunk in chunks)
            {
                int index = 0;

                switch (chunk.Ident)
                {
                    case "grid":
                        this.IsAutoGridEnabled = Tokenizer.ReadInt(chunk.Tokens, ref index) != 0;
                        this.ModelingGridSpacing = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        this.SceneEditorGridSpacing = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        this.GroundFloorGridSize = Tokenizer.ReadFloat(chunk.Tokens, ref index);
                        break;

{'fraction_non_alphanumeric': 0.11725516322451698, 'fraction_numerical': 0.0044414834554741284, 'mean_word_length': 1.6155632984901278, 'pattern_counts': {'":': 2, '<': 51, '<?xml version=': 0, '>': 51, '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': '1888307', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1146, 'n_words': 359}