<commit_before>(function($) {


    /**
     * setup JQuery's AJAX methods to setup CSRF token in the request before sending it off.
     * http://stackoverflow.com/questions/5100539/django-csrf-check-failing-with-an-ajax-post-request
     */

    
    // Document READY
    $(function() {

        $("#cs_plan_attributes-group").hide();
        
        $("#id_provider").change(function() {
            console.log(this.value);
            if (this.value == 1){
                $("#cs_plan_attributes-group").show();
            }else{
                $("#cs_plan_attributes-group").hide();
            }
        });
    });

})(django.jQuery);<commit_msg>Fix javascript bug<commit_after>(function($) {


    /**
     * setup JQuery's AJAX methods to setup CSRF token in the request before sending it off.
     * http://stackoverflow.com/questions/5100539/django-csrf-check-failing-with-an-ajax-post-request
     */

    
    // Document READY
    $(function() {

        $("#cs_plan_attributes-group").hide();
        if ($("#id_provider").val() == 1){
            $("#cs_plan_attributes-group").show();
        }else{
            $("#cs_plan_attributes-group").hide();
        }
    
        $("#id_provider").change(function() {
            if (this.value == 1){
                $("#cs_plan_attributes-group").show();
            }else{
                $("#cs_plan_attributes-group").hide();
            }
        });
    });

})(django.jQuery);
{'fraction_non_alphanumeric': 0.17379310344827587, 'fraction_numerical': 0.011724137931034483, 'mean_word_length': 1.9313131313131313, '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': '4109083', 'n_tokens_mistral': 444, 'n_tokens_neox': 420, 'n_words': 66}