<commit_before>(function (tree) {

tree.URL = function (val, paths) {
    // Add the base path if the URL is relative and we are in the browser
    if (!/^(?:http:\/)?\//.test(val.value) &&
        paths.length > 0                   &&
        typeof(window) !== 'undefined') {
        val.value = [paths[0], val.value].join('/');
    }
    this.value = val;
};
tree.URL.prototype = {
    toCSS: function () {
        return "url(" + this.value.toCSS() + ")";
    },<commit_msg>squeeze extra slashes in url()<commit_after>(function (tree) {

tree.URL = function (val, paths) {
    // Add the base path if the URL is relative and we are in the browser
    if (!/^(?:http:\/)?\//.test(val.value) && paths.length > 0 && typeof(window) !== 'undefined') {
        val.value = [paths[0], val.value].join('/').replace('//', '/');
    }
    this.value = val;
};
tree.URL.prototype = {
    toCSS: function () {
        return "url(" + this.value.toCSS() + ")";
    },
{'fraction_non_alphanumeric': 0.20772442588726514, 'fraction_numerical': 0.0041753653444676405, 'mean_word_length': 2.3767605633802815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2056445', 'n_tokens_mistral': 317, 'n_tokens_neox': 313, 'n_words': 80}