<commit_before>var dbModels = require('../../server/db/database.js');
var Song = dbModels.Song; 
var User = dbModels.User; 
var Group = dbModels.Group; 
var Playlist = dbModels.Playlist;
var PlaylistSongs = dbModels.PlaylistSongs;
var UserGroups = dbModels.UserGroups; 


dbModels.db.options.logging = false;

// rebuild test database
var rebuildDb = function (done) {
  User.sync({force: true})
  .then(function() {
    return Group.sync({force: true});<commit_msg>(test) log db queries for debugging<commit_after>var dbModels = require('../../server/db/database.js');
var Song = dbModels.Song; 
var User = dbModels.User; 
var Group = dbModels.Group; 
var Playlist = dbModels.Playlist;
var PlaylistSongs = dbModels.PlaylistSongs;
var UserGroups = dbModels.UserGroups; 


dbModels.db.options.logging = console.log;

// rebuild test database
var rebuildDb = function (done) {
  User.sync({force: true})
  .then(function() {
    return Group.sync({force: true});
{'fraction_non_alphanumeric': 0.13854166666666667, 'fraction_numerical': 0.0, 'mean_word_length': 4.429378531073446, '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': '2330848', 'n_tokens_mistral': 316, 'n_tokens_neox': 300, 'n_words': 76}