<commit_before>/**
 * Vicopo
 * @author https://github.com/kylekatarnls
 * https://vicopo.selfbuild.fr
 */
jQuery(function($){var _14=location.protocol+'//vicopo.selfbuild.fr';var _3={};var _10=function(a,b){return a.city-b.city};var _11=function(){return true};$.extend({vicopoSort:function(s){_10=s},vicopoFilter:function(f){_11=f},vicopoPrepare:function(c){c=c.filter(_11);return c.sort(_10)},vicopo:function(_0,_1){_0=_0.trim();return this.getVicopo(/^\d+$/.test(_0)?'code':'city',_0,_1)},codePostal:function(_0,_1){return this.getVicopo('code',_0,_1)},ville:function(_0,_1){return this.getVicopo('city',_0,_1)},getVicopo:function(_2,_0,_1){if(_0.length>1){_0=_0.trim();_3[_2]=_3[_2]||{};if(_3[_2][_0]){_1(_0,$.vicopoPrepare(_3[_2][_0]||[]),_2)}else{var _9={};_9[_2]=_0;return $.getJSON(_14,_9,function(_5){_3[_2][_0]=_5.cities;_1(_5.input,$.vicopoPrepare(_5.cities||[]),_2)})}}else{_1(_0,[],_2)}}});$.fn.extend({vicopoClean:function(){return $(this).each(function(){var _8=[];for(var n=$(this).next();n.hasClass('vicopo-answear');n=n.next()){_8.push(n[0])}$(_8).remove()})},vicopoTargets:function(){var _7=[];$(this).each(function(){var t=$(this);$('[data-vicopo]').each(function(){if(t.is($(this).data('vicopo'))){_7.push(this)}})});return $(_7)},vicopoTarget:function(){return $(this).vicopoTargets().first()},getVicopo:function(_13,_1){return $(this).keyup(function(){var i=$(this);$[_13](i.val(),function(_0,_4,_2){if(_0==i.val()){_1(_4,_2,_0)}})})},vicopo:function(_1){return $(this).getVicopo('vicopo',_1)},codePostal:function(_1){return $(this).getVicopo('codePostal',_1)},ville:function(_1){return $(this).getVicopo('ville',_1)}});var _6='input, textarea, select';$(document).on('keyup change',_6,function(){var t=$(this);var _0=t.val();if(t.data('vicopo-value')!==_0){var _t=t.data('vicopo-value',_0).vicopoTargets().each(function(){$(this).hide().vicopoClean()});if(_t.length&&_0.length){$.vicopo(_0,function(_12,_4){if(_12===_0){_t.each(function(){var r=$(this).vicopoClean();var _t=r.clone();_t.show().removeAttr('data-vicopo');var _c=[];$.each(_4,function(){var c=_t.clone();c.addClass('vicopo-answear');c.find('[data-vicopo-code-postal]').text(this.code);c.find('[data-vicopo-ville]').text(this.city);c.find('[data-vicopo-val-code-postal]').val(this.code);c.find('[data-vicopo-val-ville]').val(this.city);_c.push(c)});r.after(_c)})}})}}});$(_6).trigger('keyup')});<commit_msg>Fix #3 protocole regression minify<commit_after>/**
 * Vicopo
 * @author https://github.com/kylekatarnls
 * https://vicopo.selfbuild.fr
 */
jQuery(function($){var _14=(location.protocol==='http:'?'http:':'https:')+'//vicopo.selfbuild.fr';var _3={};var _10=function(a,b){return a.city-b.city};var _11=function(){return true};$.extend({vicopoSort:function(s){_10=s},vicopoFilter:function(f){_11=f},vicopoPrepare:function(c){c=c.filter(_11);return c.sort(_10)},vicopo:function(_0,_1){_0=_0.trim();return this.getVicopo(/^\d+$/.test(_0)?'code':'city',_0,_1)},codePostal:function(_0,_1){return this.getVicopo('code',_0,_1)},ville:function(_0,_1){return this.getVicopo('city',_0,_1)},getVicopo:function(_2,_0,_1){if(_0.length>1){_0=_0.trim();_3[_2]=_3[_2]||{};if(_3[_2][_0]){_1(_0,$.vicopoPrepare(_3[_2][_0]||[]),_2)}else{var _9={};_9[_2]=_0;return $.getJSON(_14,_9,function(_5){_3[_2][_0]=_5.cities;_1(_5.input,$.vicopoPrepare(_5.cities||[]),_2)})}}else{_1(_0,[],_2)}}});$.fn.extend({vicopoClean:function(){return $(this).each(function(){var _8=[];for(var n=$(this).next();n.hasClass('vicopo-answear');n=n.next()){_8.push(n[0])}$(_8).remove()})},vicopoTargets:function(){var _7=[];$(this).each(function(){var t=$(this);$('[data-vicopo]').each(function(){if(t.is($(this).data('vicopo'))){_7.push(this)}})});return $(_7)},vicopoTarget:function(){return $(this).vicopoTargets().first()},getVicopo:function(_13,_1){return $(this).keyup(function(){var i=$(this);$[_13](i.val(),function(_0,_4,_2){if(_0==i.val()){_1(_4,_2,_0)}})})},vicopo:function(_1){return $(this).getVicopo('vicopo',_1)},codePostal:function(_1){return $(this).getVicopo('codePostal',_1)},ville:function(_1){return $(this).getVicopo('ville',_1)}});var _6='input, textarea, select';$(document).on('keyup change',_6,function(){var t=$(this);var _0=t.val();if(t.data('vicopo-value')!==_0){var _t=t.data('vicopo-value',_0).vicopoTargets().each(function(){$(this).hide().vicopoClean()});if(_t.length&&_0.length){$.vicopo(_0,function(_12,_4){if(_12===_0){_t.each(function(){var r=$(this).vicopoClean();var _t=r.clone();_t.show().removeAttr('data-vicopo');var _c=[];$.each(_4,function(){var c=_t.clone();c.addClass('vicopo-answear');c.find('[data-vicopo-code-postal]').text(this.code);c.find('[data-vicopo-ville]').text(this.city);c.find('[data-vicopo-val-code-postal]').val(this.code);c.find('[data-vicopo-val-ville]').val(this.city);_c.push(c)});r.after(_c)})}})}}});$(_6).trigger('keyup')});
{'fraction_non_alphanumeric': 0.2993801652892562, 'fraction_numerical': 0.04566115702479339, 'mean_word_length': 14.080996884735203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6974236', 'n_tokens_mistral': 2132, 'n_tokens_neox': 1971, 'n_words': 85}