<commit_before>(function(Backbone, Tags) {
  'use strict';

<<<<<<< HEAD
  console.log('USERTAGS')

  var User = Backbone.Model.extend({
    defaults: {
      name: 'no name'
    },
    url: 'users'
  });
  User = User.extend(Tags.Extend);

  var Users = Backbone.Collection.extend({
    model: User,
    url: 'users'
  })

  var edgar = new User({
    id: '1',
    name: 'Edgar',
    tags: ['1', '2']
  }, {
    parse: true
  });

  var users = new Users(edgar);

  edgar.on('change', function() {
    console.log('CHANGE ON USER EDGAR', arguments)
  });

  users.get('1').detach('1')

  console.log('LIB', Tags.Library.length)

  //users.get('1').attach('1');

  console.log('EDGAR', edgar);

=======
  console.log(Tags);

  var User = Backbone.Model.extend({
    urlRoot: '/users'
  });

  var user = new User({id: '1', name: 'John'});

  var userTags = new Tags.Collection([], {parentModel: user});

  userTags.fetch();
  console.log(userTags);
  console.log(userTags.url());
  console.log(userTags.parentModel)

  userTags.add({
    id: 1
  });

  console.log(userTags.at(0).url())

  Tags.Library.fetch();

  Tags.Library.at(0).fetch();

  console.log(Tags.Library);
>>>>>>> something

})(Backbone, Tags);<commit_msg>fix example<commit_after>(function(Backbone, Tags) {
  'use strict';

  console.log(Tags);

  var User = Backbone.Model.extend({
    urlRoot: '/users'
  });

  var user = new User({id: '1', name: 'John'});

  var userTags = new Tags.Collection([], {parentModel: user});

  userTags.fetch();
  console.log(userTags);
  console.log(userTags.url());
  console.log(userTags.parentModel)

  userTags.add({
    id: 1
  });

  console.log(userTags.at(0).url())

  Tags.Library.fetch();

  Tags.Library.at(0).fetch();

  console.log(Tags.Library);

})(Backbone, Tags);
{'fraction_non_alphanumeric': 0.2058328659562535, 'fraction_numerical': 0.008412787436904094, 'mean_word_length': 3.404938271604938, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '2463082', 'n_tokens_mistral': 686, 'n_tokens_neox': 648, 'n_words': 123}