<commit_before>var sys = require('sys');
sys.puts('Running... Hit CTRL-C To Exit.');

var endtable = require('endtable');

var engine = new endtable.Engine({
	database: 'people_example',
	legacy: true,
	host: 'localhost',
	user: '',
	password: '',
	errorCallback: function(error) {
		// When views aren't found they raise a warning.
		sys.puts(JSON.stringify(error));
	}
});

var Person = endtable.Object.extend(
	{
		sayName: function() {
			sys.puts('Hello, my name is ' + this.name + '!');
		}
	},
	{
		engine: engine,
		type: 'person'
	}<commit_msg>Updated example code so it does not connect to a legacy database.<commit_after>var sys = require('sys');
sys.puts('Running... Hit CTRL-C To Exit.');

var endtable = require('endtable');

var engine = new endtable.Engine({
	database: 'people_example',
	legacy: false,
	host: 'localhost',
	user: '',
	password: '',
	errorCallback: function(error) {
		// When views aren't found they raise a warning.
		sys.puts(JSON.stringify(error));
	}
});

var Person = endtable.Object.extend(
	{
		sayName: function() {
			sys.puts('Hello, my name is ' + this.name + '!');
		}
	},
	{
		engine: engine,
		type: 'person'
	}
{'fraction_non_alphanumeric': 0.17169974115616912, 'fraction_numerical': 0.0, 'mean_word_length': 3.8945147679324896, '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': '66613', 'n_tokens_mistral': 426, 'n_tokens_neox': 404, 'n_words': 107}