<commit_before>﻿/****************************
 * ProviderSignUp page script
 */
var ProviderSignUp = {
    init: function () {
        // Template position item value must be reset on init (because some form-recovering browser features that put on it bad values)
        $('.positions .positions-list > ul > li.template > [name=position]').val('');
        // Autocomplete positions and add to the list
        var positionsList = null, tpl = null;
        var positionsAutocomplete = $('#providersignup-position-search').autocomplete({
            source: UrlUtil.JsonPath + 'GetPositions/Autocomplete/',
            autoFocus: true,
            minLength: 0,
            select: function (event, ui) {
                var c = $(this).closest('.positions');
                positionsList = positionsList || c.find('.positions-list > ul');
                tpl = tpl || positionsList.children('.template:eq(0)');
                // No value, no action :(
                if (!ui || !ui.item || !ui.item.value) return;

                // Add if not exists in the list
                if (positionsList.children().filter(function () {
                    return $(this).data('position-id') == ui.item.value;
                }).length == 0) {<commit_msg>ProviderSignUp, positions autocomplete 'autofocus' set to false #109<commit_after>﻿/****************************
 * ProviderSignUp page script
 */
var ProviderSignUp = {
    init: function () {
        // Template position item value must be reset on init (because some form-recovering browser features that put on it bad values)
        $('.positions .positions-list > ul > li.template > [name=position]').val('');
        // Autocomplete positions and add to the list
        var positionsList = null, tpl = null;
        var positionsAutocomplete = $('#providersignup-position-search').autocomplete({
            source: UrlUtil.JsonPath + 'GetPositions/Autocomplete/',
            autoFocus: false,
            minLength: 0,
            select: function (event, ui) {
                var c = $(this).closest('.positions');
                positionsList = positionsList || c.find('.positions-list > ul');
                tpl = tpl || positionsList.children('.template:eq(0)');
                // No value, no action :(
                if (!ui || !ui.item || !ui.item.value) return;

                // Add if not exists in the list
                if (positionsList.children().filter(function () {
                    return $(this).data('position-id') == ui.item.value;
                }).length == 0) {
{'fraction_non_alphanumeric': 0.1493354182955434, 'fraction_numerical': 0.003518373729476153, 'mean_word_length': 2.128361858190709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5798616', 'n_tokens_mistral': 686, 'n_tokens_neox': 634, 'n_words': 191}