<commit_before>DDG.require('maps',function(){
    ddg_spice_maps_maps = function(response) {

        if (!response || !response.features || !response.features.length) { return Spice.failed('maps_maps'); }

        // Mapbox sends back a bunch of places, just want the first one for now
        response = response.features[0];

        if (response.relevance < 0.9) {
            return Spice.failed('maps_maps');
        }

        Spice.add({
            data: response,
            id: "maps_maps",
            name: "maps",
            model: "Place"
        });

    };
});<commit_msg>use string based relevance for maps<commit_after>DDG.require('maps',function(){
    ddg_spice_maps_maps = function(response) {

        if (!response || !response.features || !response.features.length) { return Spice.failed('maps_maps'); }

        // Mapbox sends back a bunch of places, just want the first one for now
        response = response.features[0];

        if ((response.place_name && !DDG.isRelevant(response.place_name.toLowerCase())) && response.relevance < 0.9) {
            return Spice.failed('maps_maps');
        }

        Spice.add({
            data: response,
            id: "maps_maps",
            name: "maps",
            model: "Place"
        });

    };
});
{'fraction_non_alphanumeric': 0.1363990646921278, 'fraction_numerical': 0.004676539360872954, 'mean_word_length': 2.21, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2868370', 'n_tokens_mistral': 379, 'n_tokens_neox': 362, 'n_words': 85}