<commit_before>'use strict'
var Observable = require('vigour-js/lib/observable')
var isEmpty = require('vigour-js/lib/util/is/empty')
var Clients = new Observable({
  ChildConstructor: require('./client'),
  noContext: true,
  on: {
    property: {
      removeScope (data) {
        console.error('PROP FIRES!', data)
        if (data && this._scope && this.parent.autoRemoveScopes && data.removed) {
          if (isEmpty(this)) {
            console.error('OK LETS REMOVE THIS! (if scope)', this._path)
          }
        }
      }
    }
  }
}).Constructor

exports.properties = {
  clients (data, event) {
    if (!this.hasOwnProperty('clients')) {
      this.clients = new Clients(data, event, this, 'clients')
    } else {
      this.clients.set(data, event)
    }
  }
}
<commit_msg>correct location to remove scope when clients is empty<commit_after>'use strict'
var Observable = require('vigour-js/lib/observable')
var isEmpty = require('vigour-js/lib/util/is/empty')
var Clients = new Observable({
  ChildConstructor: require('./client'),
  noContext: true,
  on: {
    property: {
      removeScope (data) {
        if (data && this.parent._scope && this.parent.autoRemoveScopes && data.removed) {
          if (isEmpty(this)) {
            console.error('OK LETS REMOVE THIS! (if scope)', this._path)
          }
        }
      }
    }
  }
}).Constructor

exports.properties = {
  clients (data, event) {
    if (!this.hasOwnProperty('clients')) {
      this.clients = new Clients(data, event, this, 'clients')
    } else {
      this.clients.set(data, event)
    }
  }
}

{'fraction_non_alphanumeric': 0.14889589905362777, 'fraction_numerical': 0.0, 'mean_word_length': 2.705607476635514, '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': '1623590', 'n_tokens_mistral': 506, 'n_tokens_neox': 509, 'n_words': 111}