<commit_before>/*global Air, Backbone*/

Air.Collections = Air.Collections || {};

(function () {
    'use strict';

    // collection for multiple sensors
    Air.Collections.Readings = Backbone.Collection.extend({
        model: Air.Models.Reading,
        url:  Air.api + '/readings',
        initialize: function(options) {
            if (options.id) {
                this.url += ('/?sensor=' + options.id);
            }
        },
        parse: function(resp) {
            if (resp.results) {<commit_msg>add _id to sensor endpoint<commit_after>/*global Air, Backbone*/

Air.Collections = Air.Collections || {};

(function () {
    'use strict';

    // collection for multiple sensors
    Air.Collections.Readings = Backbone.Collection.extend({
        model: Air.Models.Reading,
        url:  Air.api + '/readings',
        initialize: function(options) {
            if (options.id) {
                this.url += ('/?sensor_id=' + options.id);
            }
        },
        parse: function(resp) {
            if (resp.results) {
{'fraction_non_alphanumeric': 0.14367816091954022, 'fraction_numerical': 0.0, 'mean_word_length': 1.994269340974212, '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': '5089808', 'n_tokens_mistral': 298, 'n_tokens_neox': 289, 'n_words': 64}