<commit_before>// $begin{copyright}
// 
// This file is part of WebSharper
// 
// Copyright (c) 2008-2011 IntelliFactory
// 
// GNU Affero General Public License Usage
// WebSharper is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License, version 3, as published
// by the Free Software Foundation.
//
// WebSharper is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
// for more details at <http://www.gnu.org/licenses/>.
//
// If you are unsure which license is appropriate for your use, please contact
// IntelliFactory at http://intellifactory.com/contact.
//
// $end{copyright}

namespace IntelliFactory.WebSharper.JQueryExtension

open IntelliFactory.WebSharper.Dom

module JQuery =
    open IntelliFactory.WebSharper.InterfaceGenerator

    let JQ = Type.New()

    // TODO: Where to define??
    let Error = Type.New ()
    // TODO: Where to define???
    let XmlHttpRequest = Type.New ()

    // Event
    let Event = Type.New()
    let EventClass =
        Class "Event"
        |=> Event
        |+> Protocol
                [
                    "currentTarget" =? T<Element>
                    "delegateTarget" => T<Element>
                    "data" =? T<obj>
                    "isDefaultPrevented" =?  T<unit->bool>
                    "isImmediatePropagationStopped" =? T<unit->bool>
                    "isPropagationStopped" =?  T<unit->bool>
                    "namespace" =? T<string>
                    "pageX" =?  T<int>
                    "pageY" =? T<int>
                    "preventDefault" =? T<unit->unit>
                    "relatedTarget" =? T<Element>
                    "result" =? T<obj>
                    "stopImmediatePropagation" =? T<unit->unit>
                    "stopPropagation" =? T<unit->unit>
                    "target" =? T<Element><commit_msg>Fixed #24.<commit_after>// $begin{copyright}
// 
// This file is part of WebSharper
// 
// Copyright (c) 2008-2011 IntelliFactory
// 
// GNU Affero General Public License Usage
// WebSharper is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License, version 3, as published
// by the Free Software Foundation.
//
// WebSharper is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
// for more details at <http://www.gnu.org/licenses/>.
//
// If you are unsure which license is appropriate for your use, please contact
// IntelliFactory at http://intellifactory.com/contact.
//
// $end{copyright}

namespace IntelliFactory.WebSharper.JQueryExtension

open IntelliFactory.WebSharper.Dom

module JQuery =
    open IntelliFactory.WebSharper.InterfaceGenerator

    let JQ = Type.New()

    // TODO: Where to define??
    let Error = Type.New ()
    // TODO: Where to define???
    let XmlHttpRequest = Type.New ()

    // Event
    let Event = Type.New()
    let EventClass =
        Class "Event"
        |=> Event
        |+> Protocol
                [
                    "currentTarget" =? T<Element>
                    "delegateTarget" => T<Element>
                    "data" =? T<obj>
                    "isDefaultPrevented" => T<unit->bool>
                    "isImmediatePropagationStopped" => T<unit->bool>
                    "isPropagationStopped" => T<unit->bool>
                    "namespace" =? T<string>
                    "pageX" =? T<int>
                    "pageY" =? T<int>
                    "preventDefault" => T<unit->unit>
                    "relatedTarget" =? T<Element>
                    "result" =? T<obj>
                    "stopImmediatePropagation" => T<unit->unit>
                    "stopPropagation" => T<unit->unit>
                    "target" =? T<Element>
{'fraction_non_alphanumeric': 0.11154985192497532, 'fraction_numerical': 0.004935834155972359, 'mean_word_length': 1.9670571010248903, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7650956', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1104, 'n_words': 340}