<commit_before>'use strict';

var memoize             = require('memoizee/plain')
  , validDb             = require('dbjs/valid-dbjs')
  , defineNaturalNumber = require('dbjs-ext/number/u-integer');

module.exports = memoize(function (db) {
	var NaturalNumber = defineNaturalNumber(validDb(db));

	return db.Object.extend('DataSnapshots', {
		totalSize: { type: NaturalNumber, nested: false }
	});

}, { normalizer: require('memoizee/normalizers/get-1')() });
<commit_msg>Fix model definition<commit_after>'use strict';

var memoize             = require('memoizee/plain')
  , validDb             = require('dbjs/valid-dbjs')
  , defineNaturalNumber = require('dbjs-ext/number/integer/u-integer');

module.exports = memoize(function (db) {
	var NaturalNumber = defineNaturalNumber(validDb(db));

	var DataSnapshots = db.Object.extend('DataSnapshots', {
		totalSize: { type: NaturalNumber, multiple: false }
	});

	DataSnapshots.prototype._descriptorPrototype_.setProperties({
		type: db.Object,
		multiple: true
	});
	return DataSnapshots;
}, { normalizer: require('memoizee/normalizers/get-1')() });

{'fraction_non_alphanumeric': 0.14986376021798364, 'fraction_numerical': 0.0018165304268846503, 'mean_word_length': 4.428571428571429, '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': '7528641', 'n_tokens_mistral': 363, 'n_tokens_neox': 348, 'n_words': 58}