<commit_before>(function($) {
    jQuery.fn.onTheSpot = function(config){
	var defaults = {
	    submit  : 'OK',
	    cancel  : 'Cancel',
	    tooltip : '',
	    onerror : function (settings, original, xhr) {
                original.reset();
                console.log(xhr);
	    },
	    textarea : {
		rows: 5,
		cols: 40
	    }
	};
	config = jQuery.extend(defaults, config);

	var target = this;

        var options = {
	    tooltip: config.tooltip,
	    cancel:  config.cancel,
	    submit:  config.submit,
	    event: "onTheSpot::start",
	    placeholder : '',
	    style: ""
        };

        if (config.select) {
	    options.type = 'select';
	    if (config.select.data != null) {
                options.submitdata = {<commit_msg>disable ok/cancel button after submit refs #813<commit_after>(function($) {
    jQuery.fn.onTheSpot = function(config){
	var defaults = {
	    submit  : 'OK',
	    cancel  : 'Cancel',
	    tooltip : '',
	    onerror : function (settings, original, xhr) {
                original.reset();
                console.log(xhr);
	    },
	    textarea : {
		rows: 5,
		cols: 40
	    }
	};
	config = jQuery.extend(defaults, config);

	var target = this;

        var options = {
	    tooltip: config.tooltip,
	    cancel:  config.cancel,
	    submit:  config.submit,
	    event: "onTheSpot::start",
	    placeholder : '',
	    style: "",
	    onsubmit: function (settings, td) {
                $(td).find('button').attr('disabled', 'disabled');
            }
        };

        if (config.select) {
	    options.type = 'select';
	    if (config.select.data != null) {
                options.submitdata = {
{'fraction_non_alphanumeric': 0.1436396835057821, 'fraction_numerical': 0.005477784540474742, 'mean_word_length': 1.9304812834224598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5541153', 'n_tokens_mistral': 552, 'n_tokens_neox': 486, 'n_words': 108}