<commit_before>'use strict';

var Filename = require('../string/string-line/filename')
  , Url      = require('../string/string-line/url');

module.exports = require('dbjs').create('File', function (data) {
	if (typeof data === 'string') {
		this.dir = data;
		return;
	}
	this.ns.Object.prototype.$construct.call(this, data);
}, {
	dir: Filename.required,
	url: Url,
	validateConstruction: function (data) {<commit_msg>Add name and size properties to File type<commit_after>'use strict';

var Filename = require('../string/string-line/filename')
  , Url      = require('../string/string-line/url')
  , UInteger = require('../number/integer/u-integer');

module.exports = require('dbjs').create('File', function (data) {
	if (typeof data === 'string') {
		this.dir = data;
		return;
	}
	this.ns.Object.prototype.$construct.call(this, data);
}, {
	dir: Filename.required,
	url: Url,
	name: Filename,
	size: UInteger,
	validateConstruction: function (data) {
{'fraction_non_alphanumeric': 0.18200836820083682, 'fraction_numerical': 0.0, 'mean_word_length': 4.258241758241758, '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': '4960283', 'n_tokens_mistral': 323, 'n_tokens_neox': 316, 'n_words': 67}