<commit_before>// DocumentInstance.cs
// Script#/Libraries/Web
// Copyright (c) <NAME>.
// Copyright (c) Microsoft Corporation.
// This source code is subject to terms and conditions of the Microsoft 
// Public License. A copy of the license can be found in License.txt.
//

using System;
using System.Runtime.CompilerServices;
using System.Html.Editing;

namespace System.Html {

    [IgnoreNamespace]
    [Imported]
    public sealed class DocumentInstance {

        private DocumentInstance() {
        }

        [IntrinsicProperty]
        public Element ActiveElement {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Element Body {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Cookie {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string DesignMode {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string Doctype {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Element DocumentElement {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Domain {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public DocumentImplementation Implementation {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public WindowInstance ParentWindow {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Referrer {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Selection Selection {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Title {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string URL {
            get {
                return null;
            }
        }

        /// <summary>
        /// Adds a listener for the specified event.
        /// </summary>
        /// <param name="eventName">The name of the event such as 'load'.</param>
        /// <param name="listener">The listener to be invoked in response to the event.</param>
        public void AddEventListener(string eventName, ElementEventListener listener) {
        }

        /// <summary>
        /// Adds a listener for the specified event.
        /// </summary>
        /// <param name="eventName">The name of the event such as 'load'.</param>
        /// <param name="listener">The listener to be invoked in response to the event.</param>
        /// <param name="useCapture">Whether the listener wants to initiate capturing the event.</param>
        public void AddEventListener(string eventName, ElementEventListener listener, bool useCapture) {
        }

        public void Close() {
        }

        public ElementAttribute CreateAttribute(string name) {
            return null;
        }

        public DocumentInstance CreateDocumentFragment() {
            return null;
        }

        public Element CreateElement(string tagName) {
            return null;
        }

        public MutableEvent CreateEvent(string eventType) {
            return null;
        }

        public Element CreateTextNode(string tagName) {
            return null;
        }

        public bool DispatchEvent(MutableEvent eventObject) {
            return false;
        }

        public Element ElementFromPoint(int x, int y) {
            return null;
        }

        public bool ExecCommand(string command, bool displayUserInterface, object value) {
            return false;
        }
<commit_msg> fixed issue #52 DocumentInstance now creates DocumentFragment element<commit_after>// DocumentInstance.cs
// Script#/Libraries/Web
// Copyright (c) <NAME>.
// Copyright (c) Microsoft Corporation.
// This source code is subject to terms and conditions of the Microsoft 
// Public License. A copy of the license can be found in License.txt.
//

using System;
using System.Runtime.CompilerServices;
using System.Html.Editing;

namespace System.Html {

    [IgnoreNamespace]
    [Imported]
    public sealed class DocumentInstance {

        private DocumentInstance() {
        }

        [IntrinsicProperty]
        public Element ActiveElement {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Element Body {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Cookie {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string DesignMode {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string Doctype {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Element DocumentElement {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Domain {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public DocumentImplementation Implementation {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public WindowInstance ParentWindow {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Referrer {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public Selection Selection {
            get {
                return null;
            }
        }

        [IntrinsicProperty]
        public string Title {
            get {
                return null;
            }
            set {
            }
        }

        [IntrinsicProperty]
        public string URL {
            get {
                return null;
            }
        }

        /// <summary>
        /// Adds a listener for the specified event.
        /// </summary>
        /// <param name="eventName">The name of the event such as 'load'.</param>
        /// <param name="listener">The listener to be invoked in response to the event.</param>
        public void AddEventListener(string eventName, ElementEventListener listener) {
        }

        /// <summary>
        /// Adds a listener for the specified event.
        /// </summary>
        /// <param name="eventName">The name of the event such as 'load'.</param>
        /// <param name="listener">The listener to be invoked in response to the event.</param>
        /// <param name="useCapture">Whether the listener wants to initiate capturing the event.</param>
        public void AddEventListener(string eventName, ElementEventListener listener, bool useCapture) {
        }

        public void Close() {
        }

        public ElementAttribute CreateAttribute(string name) {
            return null;
        }

        public DocumentFragment CreateDocumentFragment() {
            return null;
        }

        public Element CreateElement(string tagName) {
            return null;
        }

        public MutableEvent CreateEvent(string eventType) {
            return null;
        }

        public Element CreateTextNode(string tagName) {
            return null;
        }

        public bool DispatchEvent(MutableEvent eventObject) {
            return false;
        }

        public Element ElementFromPoint(int x, int y) {
            return null;
        }

        public bool ExecCommand(string command, bool displayUserInterface, object value) {
            return false;
        }

{'fraction_non_alphanumeric': 0.0726593565489818, 'fraction_numerical': 0.00024099289070972406, 'mean_word_length': 1.2934512296214424, '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': '1203557', 'n_tokens_mistral': 1978, 'n_tokens_neox': 1856, 'n_words': 574}