<commit_before>OMAR.models.WfsModel = Backbone.Model.extend({
    defaults:{
        "url":"/omar/wfs",
        "service":"WFS",
        "version":"1.1.0",
        "request":"getFeature",
        "typeName":"raster_entry",
        "filter":"",
        "outputFormat":"JSON",
        "maxFeatures":"",
        "offset":"",
        "resultType":"",
        "sort":"",// json formatted array of arrays

        /* These attributes will be set after the fetch */
        "numberOfFeatures":0,
        "getFeatureResult":{}
    },
    initialize:function(params){
    },
    toUrlParams: function(includeNullPropertiesFlag){
        var result = ""

        if(!includeNullPropertiesFlag) includeNullPropertiesFlag = false
        for(var propertyName in this.attributes)
        {
            if(propertyName!="url")
            {
                var value = this.get(propertyName);
                if(value == null)
                {
                    value = "";
                }
                if(((value==="")&&includeNullPropertiesFlag) || !(value===""))
                {

                    if(result)
                    {
                        result = result +"&"+propertyName + "=" + escape(value);
                    }
                    else
                    {
                        result = propertyName + "=" + escape(value);
                    }
                }
            }
        }
        return result;
    },
    parse:function(response){
        //alert("response = " + JSON.stringify(response) );

        var result = this.attributes;

        if(response.numberOfFeatures)
        {
            result.numberOfFeatures = response.numberOfFeatures;
        }
        else{
            result.getFeatureResult = response;
        }
        //alert(result);
        return result;
    },
    toUrl:function(includeNullPropertiesFlag){
        var result =this.toUrlParams(includeNullPropertiesFlag);
        var url = this.get("url");
        if(url&&(url!=""))
        {
            result = (url + "?" + result);
        }
<commit_msg>Removed values from argument list for url that are not suppose to be there.<commit_after>OMAR.models.WfsModel = Backbone.Model.extend({
    defaults:{
        "url":"/omar/wfs",
        "service":"WFS",
        "version":"1.1.0",
        "request":"getFeature",
        "typeName":"raster_entry",
        "filter":"",
        "outputFormat":"JSON",
        "maxFeatures":"",
        "offset":"",
        "resultType":"",
        "sort":"",// json formatted array of arrays

        /* These attributes will be set after the fetch */
        "numberOfFeatures":0,
        "getFeatureResult":{}
    },
    initialize:function(params){
    },
    toUrlParams: function(includeNullPropertiesFlag){
        var result = ""

        if(!includeNullPropertiesFlag) includeNullPropertiesFlag = false
        for(var propertyName in this.attributes)
        {
            switch(propertyName)
            {
                case "url":
                case "numberOfFeatures":
                case "getFeatureResult":
                    break;
                default:
                    var value = this.get(propertyName);
                    if(value == null)
                    {
                        value = "";
                    }
                    if(((value==="")&&includeNullPropertiesFlag) || !(value===""))
                    {

                        if(result)
                        {
                            result = result +"&"+propertyName + "=" + escape(value);
                        }
                        else
                        {
                            result = propertyName + "=" + escape(value);
                        }
                    }
                    break;
            }
        }
        return result;
    },
    parse:function(response){
        //alert("response = " + JSON.stringify(response) );

        var result = this.attributes;

        if(response.numberOfFeatures)
        {
            result.numberOfFeatures = response.numberOfFeatures;
        }
        else{
            result.getFeatureResult = response;
        }
        //alert(result);
        return result;
    },
    toUrl:function(includeNullPropertiesFlag){
        var result =this.toUrlParams(includeNullPropertiesFlag);
        var url = this.get("url");
        if(url&&(url!=""))
        {
            result = (url + "?" + result);
        }

{'fraction_non_alphanumeric': 0.12713004484304932, 'fraction_numerical': 0.0017937219730941704, 'mean_word_length': 1.3578224101479917, 'pattern_counts': {'":': 29, '<': 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': '3818250', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1075, 'n_words': 196}