<commit_before>var ResourceService = require("services/ResourceService");
var UrlService = require("services/UrlService");

Vue.component("item-filter-list", {

    props: [
        "template"
    ],

    created: function()
    {
        this.$options.template = this.template || "#vue-item-filter-list";

        var urlParams = UrlService.getUrlParams(document.location.search);

        ResourceService.getResource("filterParams").set(urlParams.facets.split(","));
    }
});<commit_msg>check if url contains params<commit_after>var ResourceService = require("services/ResourceService");
var UrlService = require("services/UrlService");

Vue.component("item-filter-list", {

    props: [
        "template"
    ],

    created: function()
    {
        this.$options.template = this.template || "#vue-item-filter-list";

        var urlParams = UrlService.getUrlParams(document.location.search);

        if (urlParams !== null)
        {
            ResourceService.getResource("filterParams").set(urlParams.facets.split(","));
        }
    }
});
{'fraction_non_alphanumeric': 0.15128449096098953, 'fraction_numerical': 0.0, 'mean_word_length': 3.293877551020408, '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': '5325363', 'n_tokens_mistral': 300, 'n_tokens_neox': 293, 'n_words': 43}