<commit_before>Introduction
====================

Always we are getting some data into our models and if the json have a sub object we need to convert to backbone model by us. This plugin will help us to make it easy and simple.

How to use
==========

Using the plugin
--
     TaskContainerModel = Backbone.Relation.extend({
       relation: {
         model: Backbone.Model,
         key: 'task'
       }
    }

or<commit_msg>Changes on Readme<commit_after>Backbone.Relation
====================

Always we are getting some data into our models and if the json have a sub object we need to convert to backbone model by us. This plugin will help us to make it easy and simple.

How to use
==========

Using the plugin
--
     TaskContainerModel = Backbone.Relation.extend({
       relation: {
         model: Backbone.Model,
         key: 'task'
       }
    }

or

     TaskContainerModel = Backbone.Relation.extend({
       relation: {
         model: Backbone.Collection,
         key: 'task'
       }
    }

or

     TaskContainerModel = Backbone.Relation.extend({
       relation: [{
         model: Backbone.Model,
         key: 'task'
       },
       {
         model: Backbone.Collection,
         key: 'users'
       }]
    }

or if you are using RequireJS and you need circular dependency you could use PATH

     TaskContainerModel = Backbone.Relation.extend({
       relation: {
         model: MyModel,
         key: 'task',
         path: 'path/models/mymodel'
       }
    }

{'fraction_non_alphanumeric': 0.11126005361930295, 'fraction_numerical': 0.0, 'mean_word_length': 2.2316017316017316, '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': '5638774', 'n_tokens_mistral': 421, 'n_tokens_neox': 405, 'n_words': 148}