<commit_before>define(['backbone'], function(Backbone) {

    Items = Backbone.Collection.extend({
        url: '/api/lost_items/',
        model: Backbone.Model.extend({
            title: function() { return this.get('name'); },
            date: function() { return this.get('lost'); },
            image: function() { return this.get('image'); },
            thumbnail: function() { return this.get('thumbnail'); },
            returned: function() { 
                if (this.get('found') == null) {
                    return 'http://localhost:8000/static/admin/img/icon-no.gif';
                } else {
                    return 'http://localhost:8000/static/admin/img/icon-yes.gif'; 
                };
            },
        }),<commit_msg>return true or false in returned field of lost items<commit_after>define(['backbone'], function(Backbone) {

    Items = Backbone.Collection.extend({
        url: '/api/lost_items/',
        model: Backbone.Model.extend({
            title: function() { return this.get('name'); },
            date: function() { return this.get('lost'); },
            image: function() { return this.get('image'); },
            thumbnail: function() { return this.get('thumbnail'); },
            returned: function() { return this.get('found') == null; },
        }),
{'fraction_non_alphanumeric': 0.1685823754789272, 'fraction_numerical': 0.006130268199233717, 'mean_word_length': 2.0874704491725766, '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': '251035', 'n_tokens_mistral': 361, 'n_tokens_neox': 341, 'n_words': 72}