<commit_before>if (typeof(window['yafowil']) == "undefined") yafowil = {};

(function($) {

    $(document).ready(function() {
        
        // initial binding
        bdapp.livesearchbinder();
        bdapp.tabsbinder();
        bdapp.dropdownmenubinder();
        yafowil.referencebrowser.browser_binder();
        
        // add binders to bdajax binding callbacks
        bdajax.binders.tabsbinder = bdapp.tabsbinder;
        bdajax.binders.dropdownmenubinder = bdapp.dropdownmenubinder;
        bdajax.binders.refbrowser_browser_binder = 
            yafowil.referencebrowser.browser_binder;
        bdajax.binders.refbrowser_add_reference_binder = 
            yafowil.referencebrowser.add_reference_binder;
    });
    
    bdapp = {
        
        livesearchbinder: function(context) {
            $('input#search-text').autocomplete({
                source: 'livesearch',
                minLength: 3,<commit_msg>JS cleanup<commit_after>/* 
 * bda.bfg.app main JS
 * 
 * Requires:
 *     bdajax
 *     jquery ui autocomplete
 */

if (typeof(window['yafowil']) == "undefined") yafowil = {};

(function($) {

    $(document).ready(function() {
        // initial binding
        bdapp.livesearchbinder();
        bdapp.tabsbinder();
        bdapp.dropdownmenubinder();
        yafowil.referencebrowser.browser_binder();
        
        // add binders to bdajax binding callbacks
        $.extend(bdajax.binders, {
            tabsbinder: bdapp.tabsbinder,
            dropdownmenubinder: bdapp.dropdownmenubinder,
            refbrowser_browser_binder: yafowil.referencebrowser.browser_binder,
            refbrowser_add_reference_binder: 
                yafowil.referencebrowser.add_reference_binder
        });
    });
    
    bdapp = {
        
        livesearchbinder: function(context) {
            $('input#search-text').autocomplete({
                source: 'livesearch',
                minLength: 3,
{'fraction_non_alphanumeric': 0.10995850622406639, 'fraction_numerical': 0.001037344398340249, 'mean_word_length': 2.2096505823627286, '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': '361685', 'n_tokens_mistral': 605, 'n_tokens_neox': 574, 'n_words': 78}