<commit_before>(function(Site) {

    var Snipt = snipt.module('snipt');

    SiteView = Backbone.View.extend({
        el: 'body',

        initialize: function(opts) {

            $search_query = $('input#search-query', this.el);
            $snipts = $('section#snipts article.snipt', this.el);

            this.keyboardShortcuts();
            this.inFieldLabels();

            if ($snipts.length) {
                SniptListView = Snipt.Views.SniptListView;
                Snipts = new SniptListView({ 'snipts': $snipts });
            }

        },
        keyboardShortcuts: function() {

            // Search
            $(document).bind('keydown', '/', function(e) {
                e.preventDefault();
                $search_query.focus();
            });

            // Escape
            $('input').bind('keydown', 'esc', function(e) {
                e.preventDefault();
                this.blur();
            });
        },
        inFieldLabels: function () {
            $('div.infield label', this.el).inFieldLabels();
        }
    });

    Site.Views = {
        'SiteView': SiteView
    };

})(snipt.module('site'));
<commit_msg>Comments<commit_after>(function(Site) {

    var Snipt = snipt.module('snipt');

    SiteView = Backbone.View.extend({
        el: 'body',

        initialize: function(opts) {

            // Site variables
            $search_query = $('input#search-query', this.el);
            $snipts = $('section#snipts article.snipt', this.el);

            // Init functions
            this.keyboardShortcuts();
            this.inFieldLabels();

            // Init snipts
            if ($snipts.length) {
                SniptListView = Snipt.Views.SniptListView;
                Snipts = new SniptListView({ 'snipts': $snipts });
            }

        },
        keyboardShortcuts: function() {

            // Search
            $(document).bind('keydown', '/', function(e) {
                e.preventDefault();
                $search_query.focus();
            });

            // Escape
            $('input').bind('keydown', 'esc', function(e) {
                e.preventDefault();
                this.blur();
            });
        },
        inFieldLabels: function () {
            $('div.infield label', this.el).inFieldLabels();
        }
    });

    Site.Views = {
        'SiteView': SiteView
    };

})(snipt.module('site'));

{'fraction_non_alphanumeric': 0.15512927439532945, 'fraction_numerical': 0.0, 'mean_word_length': 1.5041753653444676, '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': '1538415', 'n_tokens_mistral': 719, 'n_tokens_neox': 673, 'n_words': 106}