<commit_before>define(["backbone", "favourites/models/Favourite", "localstorage"],

    function(Backbone, Favourite) {
        var Favourites = Backbone.Collection.extend({
            model: Favourite,
            localStorage: new Backbone.LocalStorage("favourites"), // Unique name within your app.

            getCurrentPage: function(fragment) {
                if (fragment === undefined) {
                    fragment = Backbone.history.fragment;
                }
                return this.find(function(model) { return (model.get('fragment') == fragment); });
            }
        });
        return Favourites;
    }

);<commit_msg>getCurrentPage compares queryparams for equality<commit_after>define(["backbone", "underscore", "favourites/models/Favourite", "localstorage"],

    function(Backbone, _, Favourite) {
        var Favourites = Backbone.Collection.extend({
            model: Favourite,
            localStorage: new Backbone.LocalStorage("favourites"), // Unique name within your app.

            getCurrentPage: function() {
                var fragment = Backbone.history.getFragment(undefined, undefined, true);
                var params = Backbone.history.getQueryParameters();
                return this.find(function(model) { return (model.get('fragment') == fragment && _.isEqual(model.get('params'), params)); });
            }
        });
        return Favourites;
    }

);
{'fraction_non_alphanumeric': 0.12420606916019761, 'fraction_numerical': 0.0, 'mean_word_length': 2.433414043583535, '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': '7378104', 'n_tokens_mistral': 387, 'n_tokens_neox': 358, 'n_words': 74}