<commit_before>OMAR.models.BBOX = Backbone.Model.extend(
{
    defaults:{
        "minx":-180.0,
        "miny":-90.0,
        "maxx":180.0,
        "maxy":90.0
    },
    initialize:function(options)
    {
    },
    toWmsString:function()
    {
        return (this.get("minx")+","+this.get("miny")+","+
                this.get("maxx")+","+this.get("maxy"));
    },
    validate:function(attrs)
    {
        if(attrs.minx&&(!OMAR.isFloat(attrs.minx)))
        {
            return ("Minx value is invalid: " + attrs.minx);
        }
        if(attrs.miny&&(!OMAR.isFloat(attrs.miny)))
        {
            return ("Miny value is invalid: " + attrs.miny);
        }
        if(attrs.maxx&&(!OMAR.isFloat(attrs.maxx)))
        {
            return ("Maxx value is invalid: " + attrs.maxx);
        }
        if(attrs.maxy&&(!OMAR.isFloat(attrs.maxy)))
        {
            return ("Maxy value is invalid: " + attrs.maxy);<commit_msg>Fixed error checks<commit_after>OMAR.models.BBOX = Backbone.Model.extend(
{
    defaults:{
        "minx":-180.0,
        "miny":-90.0,
        "maxx":180.0,
        "maxy":90.0
    },
    initialize:function(options)
    {
    },
    toWmsString:function()
    {
        return (this.get("minx")+","+this.get("miny")+","+
                this.get("maxx")+","+this.get("maxy"));
    },
    validate:function(attrs)
    {
        if(attrs.minx&&(!OMAR.isFloat(attrs.minx.toString())))
        {
            return ("Minx value is invalid: " + attrs.minx);
        }
        if(attrs.miny&&(!OMAR.isFloat(attrs.miny.toString())))
        {
            return ("Miny value is invalid: " + attrs.miny);
        }
        if(attrs.maxx&&(!OMAR.isFloat(attrs.maxx.toString())))
        {
            return ("Maxx value is invalid: " + attrs.maxx);
        }
        if(attrs.maxy&&(!OMAR.isFloat(attrs.maxy.toString())))
        {
            return ("Maxy value is invalid: " + attrs.maxy);
{'fraction_non_alphanumeric': 0.1892875715028601, 'fraction_numerical': 0.014560582423296931, 'mean_word_length': 1.9284627092846272, 'pattern_counts': {'":': 8, '<': 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': '129525', 'n_tokens_mistral': 687, 'n_tokens_neox': 680, 'n_words': 83}