<commit_before>## BaseView

The BaseView is a custom extension of Backbone.View with some built in functionality and a defined life cycle. The life
cycle methods can be run either synchronously or asynchronously.

To initialize a BaseView, there are several choices of options to pass in:

```javascript
var view = new BaseView({
    name : 'MyName',
        // A string that can later be used to identify the view
    appendView : false,
        // If truthy this view will be appended to this.$el
        // If falsey this view will be the innerHtml of this.$el
    ModelType : MyCustomModel,
        // The model "class" to be used for this.model
        // If left undefined or falsey Backbone.Model is used by default
    bindings : [
        ['model', 'change:price', 'showNewPrice'],
        ['model', 'change:discount', 'animateAdvertisement']
    ],
        // Bindings are a shortcut for adding event listeners to a view.
        // They are arrays of strings. The context is assumed to be the view.
    templateHtml : '<div><%= price %> : <%= discount %></div>',
        // Underscore templating that will - if provided - be turned into this.template using _.template(templateHtml)

});
```<commit_msg>Update BaseView.md<commit_after>## BaseView

The BaseView is a custom extension of Backbone.View with some built in functionality and a defined life cycle. The life
cycle methods can be run either synchronously or asynchronously.

To initialize a BaseView, there are several choices of options to pass in:

```javascript
var view = new BaseView({
    name : 'MyName',
        // A string that can later be used to identify the view
    appendView : false,
        // If truthy this view will be appended to this.$el
        // If falsey this view will be the innerHtml of this.$el
    ModelType : MyCustomModel,
        // The model "class" to be used for this.model
        // If left undefined or falsey Backbone.Model is used by default
    modelData : { ... },
        // The data the ModelType will be initialized with 
    bindings : [
        ['model', 'change:price', 'showNewPrice'],
        ['model', 'change:discount', 'animateAdvertisement']
    ],
        // Bindings are a shortcut for adding event listeners to a view.
        // They are arrays of strings. The context is assumed to be the view.
    templateHtml : '<div><%= price %> : <%= discount %></div>',
        // Underscore templating that will - if provided - be turned into this.template using _.template(templateHtml)

});
```
{'fraction_non_alphanumeric': 0.09141494435612083, 'fraction_numerical': 0.0, 'mean_word_length': 2.819423368740516, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2595371', 'n_tokens_mistral': 666, 'n_tokens_neox': 644, 'n_words': 312}