<commit_before>define(['jquery', 'jquery-ui', 'util', 'view/helpers', 'view/internal', 'model/diff', 'model/types'],
function($, _unused_jquery_ui,  util,   view_helpers, internal,          model_diff,   model_types) {

var d = null,
    msg_node = $('.info-card-message'),
    graph,
    node,
    setup_done = false,
    info = $('.info'),
    info_container = $('.info-container'),
    form_element = $('#editbox'),
    delete_button = $('#edit-node-dialog__delete'),
    form = _.object(model_types.all_attributes.map(function (attr) {
            var element = edit_element_for_attribute(attr);

            if (element.length == 0) {
                form_add_element(attr, 'textarea');
            }
            return [attr, element];
        })),
    change_handlers = [],
    status_display = info.find('#displaystatus'),
    status = info.find('#editstatus');


function form_add_element(attr, value_element_type)
{
    var div = $('<div></div>'),
        label = $('<label></label>'),
        value = $('<' + value_element_type + '></' + value_element_type + '>'),
        delete_button = form_element.find('#info-container__bottom-btn-bar');

    div.attr('id', attr);
    label.addClass('info-card-attr');
    label.text(model_types.attribute_titles[attr] + ':');
    value.addClass('info-card-attr-val');
    value.attr('id', 'edit' + attr);
    div.append(label);
    div.append(value);
    div.insertBefore(delete_button);
}

function clean_url(candidate_url)
{
    if (candidate_url.length == 0) {
        return '';
    }
    if (candidate_url.search('://') != -1) {<commit_msg>client/view/node_info: fix committing of new fields<commit_after>define(['jquery', 'jquery-ui', 'util', 'view/helpers', 'view/internal', 'model/diff', 'model/types'],
function($, _unused_jquery_ui,  util,   view_helpers, internal,          model_diff,   model_types) {

var d = null,
    msg_node = $('.info-card-message'),
    graph,
    node,
    setup_done = false,
    info = $('.info'),
    info_container = $('.info-container'),
    form_element = $('#editbox'),
    delete_button = $('#edit-node-dialog__delete'),
    form = _.object(model_types.all_attributes.map(function (attr) {
            var element = edit_element_for_attribute(attr);

            if (element.length == 0) {
                element = form_add_element(attr, 'textarea');
            }
            return [attr, element];
        })),
    change_handlers = [],
    status_display = info.find('#displaystatus'),
    status = info.find('#editstatus');

/**
 *  Adds the div with the label, return the edit child
 */
function form_add_element(attr, value_element_type)
{
    var div = $('<div></div>'),
        label = $('<label></label>'),
        value = $('<' + value_element_type + '></' + value_element_type + '>'),
        delete_button = form_element.find('#info-container__bottom-btn-bar');

    div.attr('id', attr);
    label.addClass('info-card-attr');
    label.text(model_types.attribute_titles[attr] + ':');
    value.addClass('info-card-attr-val');
    value.attr('id', 'edit' + attr);
    div.append(label);
    div.append(value);
    div.insertBefore(delete_button);
    return value;
}

function clean_url(candidate_url)
{
    if (candidate_url.length == 0) {
        return '';
    }
    if (candidate_url.search('://') != -1) {
{'fraction_non_alphanumeric': 0.1789156626506024, 'fraction_numerical': 0.0018072289156626507, 'mean_word_length': 3.094944512946979, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2825070', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1048, 'n_words': 184}