<commit_before>/* jshint strict: false */
var mongoose = require('mongoose');
var vocablists = require('./database-backup/seed.json');
var rsvp = require('rsvp');
//launch mongodb
mongoose.connect('mongodb://localhost/vocabtester-dev');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function(callback) {
  db.db.dropDatabase();
});
//add all vocab objects to database
//for all vocablists, find the vocabs and add their reference
<commit_msg>Imports schemas<commit_after>/* jshint strict: false */
var mongoose = require('mongoose');
var vocablists = require('./database-backup/seed.json');
var rsvp = require('rsvp');
var VocablistSchema = require('./app/modelSchemas/vocablist.schema');
var VocabSchema = require('./app/modelSchemas/vocab.schema');
//launch mongodb
mongoose.connect('mongodb://localhost/vocabtester-dev');
mongoose.model('Vocab', VocabSchema);
mongoose.model('Vocablist', VocablistSchema);
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function(callback) {
  db.db.dropDatabase();
});
//add all vocab objects to database
//for all vocablists, find the vocabs and add their reference

{'fraction_non_alphanumeric': 0.16369529983792544, 'fraction_numerical': 0.0, 'mean_word_length': 5.938202247191011, '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': '553037', 'n_tokens_mistral': 396, 'n_tokens_neox': 399, 'n_words': 95}