<commit_before># Wed, Nov 5th and Thur, Nov 6th

```sh
```

# Backbone Models

Imagine we wanted to write our own class to manage:

- pulling and syncing data from a server
- enforcing defaults on domain data
- providing validation on some JSON data being pulled down from the server
- an event system for updates to domain data
<commit_msg>adding some notes for Backbone Model/Collection<commit_after># Wed, Nov 5th and Thur, Nov 6th

```sh
 ________________________________________ 
/ Today we reviewed the typical Backbone \
| style, Backbone Views, and intro'd to  |
\ Backbone Model, Backbone Collection    /
 ---------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
```

# Backbone Models

Imagine we wanted to write our own class to manage:

- pulling and syncing data from a server
- enforcing defaults on domain data
- providing validation on some JSON data being pulled down from the server
- an event system for updates to domain data

{'fraction_non_alphanumeric': 0.1062618595825427, 'fraction_numerical': 0.003795066413662239, 'mean_word_length': 2.3814102564102564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '7257612', 'n_tokens_mistral': 283, 'n_tokens_neox': 258, 'n_words': 129}