<commit_before>{% load i18n %}

<!-- Title Block -->
<div>
    <div class="panel-section-title dark-colored-text">
        {% trans "Widget Manager" %}
    </div>
</div>

<!-- Tabs Content -->
<div class="tab-content listing-container form-divider">

    <div id="widget-crud-settings" class="tab-pane fade in active">

        <div class="node-config-item" style="">
            <div class="control-label">
                {% trans "Widget Label" %}
            </div>
            <div class="pad-no">
                <input type="" placeholder="{% trans "Widget Label" %}" id="" class="form-control input-md widget-input" data-bind="textInput: label">
            </div>
        </div>

        <!-- ko if: node.datatypeConfigComponent -->
        <div data-bind='component: {
            name: node.datatypeConfigComponent,
            params: node
        }'></div>
        <!-- /ko -->

        <div class="node-config-item" style="">
            <div class="control-label">
                {% trans "Template" %}
            </div>
            <div class="pad-no">
                <select class="design" data-bind="value: widget_id, options: widgetList(), optionsText: 'name', optionsValue: 'id', chosen: {disable_search_threshold: 10, width: '100%'}"></select>
            </div>
        </div>


        <div style="margin-top: 5px;" data-bind='component: {
            name: widgetLookup[widget_id()].name,
            params: {
                config: configJSON,
                configForm: true,
                value: ko.observable(null),
                node: node,
                graph: graph
            }
        }'></div>

        <commit_msg>Removes node config from the widget manager to prevent a graph dirty state while in the card manager. re #3790<commit_after>{% load i18n %}

<!-- Title Block -->
<div>
    <div class="panel-section-title dark-colored-text">
        {% trans "Widget Manager" %}
    </div>
</div>

<!-- Tabs Content -->
<div class="tab-content listing-container form-divider">

    <div id="widget-crud-settings" class="tab-pane fade in active">

        <div class="node-config-item" style="">
            <div class="control-label">
                {% trans "Widget Label" %}
            </div>
            <div class="pad-no">
                <input type="" placeholder="{% trans "Widget Label" %}" id="" class="form-control input-md widget-input" data-bind="textInput: label">
            </div>
        </div>

        <div class="node-config-item" style="">
            <div class="control-label">
                {% trans "Template" %}
            </div>
            <div class="pad-no">
                <select class="design" data-bind="value: widget_id, options: widgetList(), optionsText: 'name', optionsValue: 'id', chosen: {disable_search_threshold: 10, width: '100%'}"></select>
            </div>
        </div>


        <div style="margin-top: 5px;" data-bind='component: {
            name: widgetLookup[widget_id()].name,
            params: {
                config: configJSON,
                configForm: true,
                value: ko.observable(null),
                node: node,
                graph: graph
            }
        }'></div>


{'fraction_non_alphanumeric': 0.16043613707165108, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 1.839080459770115, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '1892161', 'n_tokens_mistral': 943, 'n_tokens_neox': 874, 'n_words': 222}