<commit_before>//QuickFormTool ver 0.5
//An extension for https://github.com/adobe/brackets
//This extension currently not available for use so is incompletely.
//by M.Yaghobi, <EMAIL>

define(function (require, exports, module)
{
    "use strict";
    
    var EditorManager = brackets.getModule("editor/EditorManager"),
        ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
        InlineWidget = brackets.getModule("editor/InlineWidget").InlineWidget,
        Strings = brackets.getModule("strings"),
        QuickFormToolTemplate = require("text!ui/QuickFormToolTemplate.html");

    function QuickFormTool()
    {
        InlineWidget.call(this);
    }

    QuickFormTool.prototype = Object.create(InlineWidget.prototype);
    QuickFormTool.prototype.parentClass = InlineWidget.prototype;

    QuickFormTool.prototype.load = function ()
    {
        QuickFormTool.prototype.parentClass.load.apply(this, arguments);
        this.$element = $(Mustache.render(QuickFormToolTemplate, Strings));
        this.$htmlContent.append(this.$element);
    };

    QuickFormTool.prototype.onAdded = function ()
    {
        this.hostEditor.setinlineWidgetHeight(this, this.FormContent.getRootElement().outerHeight(), true);
        this.FormContent.focus();
    };

    //----------------------------
	
    function quickFormToolProvider(hostEditor, pos)
    {
        var quickformtoolline, result, start, end;
        pos.ch = start;
        hostEditor.setSelection(pos, { line: pos.line, ch: end });

        quickformtoolline = new QuickFormTool();
        quickformtoolline.load(hostEditor);
        result = new $.Deferred();
        result.resolve(quickformtoolline);
        return result.promise();
    }
    
    ExtensionUtils.loadStyleSheet(module, "ui/main.css");
    EditorManager.registerInlineEditProvider(quickFormToolProvider);
    exports.quickFormToolProvider = quickFormToolProvider;
});<commit_msg>Update main.js<commit_after>//QuickFormTool ver 0.5
//An extension for https://github.com/adobe/brackets
//This extension currently not available for use so is incompletely.
//by M.Yaghobi, <EMAIL>

define(function (require, exports, module)
{
    "use strict";
    
    var EditorManager         = brackets.getModule("editor/EditorManager"),
        ExtensionUtils        = brackets.getModule("utils/ExtensionUtils"),
        InlineWidget          = brackets.getModule("editor/InlineWidget").InlineWidget,
        Strings               = brackets.getModule("strings"),
        QuickFormToolTemplate = require("text!ui/QuickFormToolTemplate.html");

    function QuickFormTool(position)
    {
		this._position = position;
        InlineWidget.call(this);
		function onAdded()
		{
			this.hostEditor.setinlineWidgetHeight(this, this.FormContent.getRootElement().outerHeight(), true);
			this.FormContent.focus();
		};
    }

    QuickFormTool.prototype = Object.create(InlineWidget.prototype);
    QuickFormTool.prototype.parentClass = InlineWidget.prototype;
	QuickFormTool.prototype._position = null;

    QuickFormTool.prototype.load = function ()
    {
        QuickFormTool.prototype.parentClass.load.apply(this, arguments);
        this.$element = $(Mustache.render(QuickFormToolTemplate, Strings));
        this.$htmlContent.append(this.$element);
    };


    function quickFormToolProvider(hostEditor, pos)
    {
        var quickformtoolline, result, position, end;
        position = pos;
        hostEditor.setSelection(pos, { line: pos.line, ch: end });

        quickformtoolline = new QuickFormTool(position);
        quickformtoolline.load(hostEditor);
        result = new $.Deferred();
        result.resolve(quickformtoolline);
        return result.promise();
    }
    
    ExtensionUtils.loadStyleSheet(module, "ui/main.css");
    EditorManager.registerInlineEditProvider(quickFormToolProvider);
    exports.quickFormToolProvider = quickFormToolProvider;
});
{'fraction_non_alphanumeric': 0.12077789150460594, 'fraction_numerical': 0.0010235414534288639, 'mean_word_length': 3.3289036544850497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3028340', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1054, 'n_words': 181}