<commit_before>﻿namespace Esprima
{
    public class ParserOptions
    {
        public ParserOptions()
        {
            ErrorHandler = new ErrorHandler();
        }

        public ParserOptions(string source)
        {
            ErrorHandler = new ErrorHandler() { Source = source };
        }

        public ParserOptions(IErrorHandler errorHandler)
        {
            ErrorHandler = errorHandler;
        }

        public bool Range { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the parsed elements have their location included.
        /// </summary>
        public bool Loc { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the tokens are included in the parsed tree.
        /// </summary>
        public bool Tokens { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the comments are included in the parsed tree.
        /// </summary>
        public bool Comment { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the parser is tolerant to errors.
        /// </summary>
        public bool Tolerant { get; set; } = true;

        /// <summary>
        /// Gets or sets whether the source represents a module or a script.
        /// </summary>
        public SourceType SourceType { get; set; } = SourceType.Script;

        /// <summary>
        /// Gets or sets the <see cref="IErrorHandler"/> to use.
        /// </summary>
        public IErrorHandler ErrorHandler { get; set; }

        /// <summary>
        /// Gets or sets wheter the Regular Expression syntax should be converted to a .NET compatible one.
        /// </summary>
        public bool AdaptRegexp { get; set; }
    }
}
<commit_msg>Fix typo in ParserOptions.AdaptRegexp doc (#79)<commit_after>﻿namespace Esprima
{
    public class ParserOptions
    {
        public ParserOptions()
        {
            ErrorHandler = new ErrorHandler();
        }

        public ParserOptions(string source)
        {
            ErrorHandler = new ErrorHandler() { Source = source };
        }

        public ParserOptions(IErrorHandler errorHandler)
        {
            ErrorHandler = errorHandler;
        }

        public bool Range { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the parsed elements have their location included.
        /// </summary>
        public bool Loc { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the tokens are included in the parsed tree.
        /// </summary>
        public bool Tokens { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the comments are included in the parsed tree.
        /// </summary>
        public bool Comment { get; set; } = false;

        /// <summary>
        /// Gets or sets whether the parser is tolerant to errors.
        /// </summary>
        public bool Tolerant { get; set; } = true;

        /// <summary>
        /// Gets or sets whether the source represents a module or a script.
        /// </summary>
        public SourceType SourceType { get; set; } = SourceType.Script;

        /// <summary>
        /// Gets or sets the <see cref="IErrorHandler"/> to use.
        /// </summary>
        public IErrorHandler ErrorHandler { get; set; }

        /// <summary>
        /// Gets or sets whether the Regular Expression syntax should be converted to a .NET compatible one.
        /// </summary>
        public bool AdaptRegexp { get; set; }
    }
}

{'fraction_non_alphanumeric': 0.10905992615734167, 'fraction_numerical': 0.0005680204487361545, 'mean_word_length': 1.6342557965594615, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '6317266', 'n_tokens_mistral': 901, 'n_tokens_neox': 873, 'n_words': 333}