<commit_before>define(function(require, exports, module) {

    var $ = require('$');
    var Backbone = require('backbone');
    var eventBus = require('../../app-main/app-eventbus');

    var genericFilterColl = require('../collection/generic-filter-coll');
    var genericFilter = Backbone.View.extend({

        manage: true,
        prefix: "generic-filter/tpl/",
        template: 'generic-filter.html',

        events:{
            'click #generic-filter-btn': 'filter_records'
        },

        initialize: function(options){
            this.selector = options.el;
            this.listenTo(genericFilterColl, 'request',this.show_loading);
            this.listenTo(genericFilterColl, 'sync', this.hide_loading);
        },

        show_loading: function(){
            eventBus.trigger('show-loading', this.selector);
        },

        hide_loading: function(){
            eventBus.trigger('hide-loading');
        },

        afterRender: function(){
            genericFilterColl.fetch();
        },

        filter_records: function(e){
            e.preventDefault();
            alert('Ready to filter...');
        }

    });

    module.exports = genericFilter;

});<commit_msg>[arctic-wolf] - Remove loading in filter setting.<commit_after>define(function(require, exports, module) {

    var $ = require('$');
    var Backbone = require('backbone');
    var eventBus = require('../../app-main/app-eventbus');

    var genericFilterColl = require('../collection/generic-filter-coll');
    var genericFilter = Backbone.View.extend({

        manage: true,
        prefix: "generic-filter/tpl/",
        template: 'generic-filter.html',

        events:{
            'click #generic-filter-btn': 'filter_records'
        },

        initialize: function(options){
            this.selector = options.el;
            this.listenTo(genericFilterColl, 'request',this.show_loading);
            this.listenTo(genericFilterColl, 'sync', this.hide_loading);
        },

        show_loading: function(){
            //eventBus.trigger('show-loading', this.selector);
        },

        hide_loading: function(){
            //eventBus.trigger('hide-loading');
        },

        afterRender: function(){
            genericFilterColl.fetch();
        },

        filter_records: function(e){
            e.preventDefault();
            alert('Ready to filter...');
        }

    });

    module.exports = genericFilter;

});
{'fraction_non_alphanumeric': 0.14607201309328968, 'fraction_numerical': 0.0, 'mean_word_length': 2.167098445595855, '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': '4324526', 'n_tokens_mistral': 657, 'n_tokens_neox': 636, 'n_words': 113}