<commit_before>describe 'Knockback.js with Backbone-Relational.js', ->

  # import Underscore (or Lo-Dash with precedence), Backbone, Knockout, and Knockback
  _ = window._ or require?('underscore')
  Backbone = window.Backbone or require?('backbone')
  Backbone?.Relational or require?('backbone-relational')
  ko = window.ko or require?('knockout')
  kb = window.kb or require?('knockback')

  it 'TEST DEPENDENCY MISSING', (done) ->
    assert.ok(!!ko, 'ko')
    assert.ok(!!_, '_')
    assert.ok(!!Backbone, 'Backbone')
    assert.ok(!!kb, 'kb')
    assert.ok(!!Backbone.Relational, 'Backbone.Relational')
    assert.ok(!!kb, 'kb')
    done()

  window.Person = Backbone.RelationalModel.extend({
    relations: [{
      type: Backbone.HasMany
      key: 'friends'
      relatedModel: 'Person'
    }, {
      type: Backbone.HasOne
      key: 'best_friend'
      relatedModel: 'Person'
      reverseRelation:
        type: Backbone.HasMany
        key: 'best_friends_with_me'
    }]
  })

  window.Building = Backbone.RelationalModel.extend({<commit_msg>Update test for backbone-relational<commit_after>describe 'Knockback.js with Backbone-Relational.js', ->

  # import Underscore (or Lo-Dash with precedence), Backbone, Knockout, and Knockback
  _ = window._ or require?('underscore')
  Backbone = window.Backbone or require?('backbone')
  Backbone?.Relational or require?('backbone-relational')
  ko = window.ko or require?('knockout')
  kb = window.kb or require?('knockback')

  it 'TEST DEPENDENCY MISSING', (done) ->
    assert.ok(!!ko, 'ko')
    assert.ok(!!_, '_')
    assert.ok(!!Backbone, 'Backbone')
    assert.ok(!!kb, 'kb')
    assert.ok(!!Backbone.Relational, 'Backbone.Relational')
    assert.ok(!!kb, 'kb')
    done()

  Backbone.RelationalModel.store.addModelScope(window)

  window.Person = Backbone.RelationalModel.extend({
    relations: [{
      type: Backbone.HasMany
      key: 'friends'
      relatedModel: 'Person'
    }, {
      type: Backbone.HasOne
      key: 'best_friend'
      relatedModel: 'Person'
      reverseRelation:
        type: Backbone.HasMany
        key: 'best_friends_with_me'
    }]
  })

  window.Building = Backbone.RelationalModel.extend({
{'fraction_non_alphanumeric': 0.1461187214611872, 'fraction_numerical': 0.0, 'mean_word_length': 3.5082304526748973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3130041', 'n_tokens_mistral': 756, 'n_tokens_neox': 721, 'n_words': 145}