<commit_before>﻿using System;

namespace IronRuby.Libraries.Hpricot {

    // TODO: I am starting off with this, it will be refactored later.

    public class ScannerState {
        public Object doc;
        public Object focus;
        public Object last;
        public Object EC;
        public bool xml;
        public bool strict;
        public bool fixup;
    }
}<commit_msg>Refactored ScannerState<commit_after>﻿using System;
using IronRuby.Builtins;

namespace IronRuby.Libraries.Hpricot {
    public class ScannerState {
        #region fields

        private Object _doc;
        private Object _focus;
        private Object _last;
        private Object _EC;
        private bool _xml;
        private bool _strict;
        private bool _fixup;

        #endregion

        #region constructors

        public ScannerState() {
            _xml = false;
            _strict = false;
            _fixup = false;
        }

        #endregion

        #region properties 

        public Object Doc {
            get { return _doc; }
            set { _doc = value; }
        }

        public Object Focus {
            get { return _focus; }
            set { _focus = value; }
        }

        public Object Last {
            get { return _last; }
            set { _last = value; }
        }

        public Object EC {
            get { return _EC; }
            set { _EC = value; }
        }

        public bool Xml {
            get { return _xml; }
            set { _xml = value; }
        }

        public bool Strict {
            get { return _strict; }

            //TODO: setting Strict to true should set Fixup to true automatically.
            set { _strict = value; }
        }
        
        public bool Fixup {
            get { return _fixup; }
            set { _fixup = value; }
        }

        #endregion
    }
}
{'fraction_non_alphanumeric': 0.06766917293233082, 'fraction_numerical': 0.0, 'mean_word_length': 1.3672172808132148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '2315307', 'n_tokens_mistral': 511, 'n_tokens_neox': 486, 'n_words': 162}