<commit_before>var Sequelize = require(__dirname + "/../../src/Sequelize").Sequelize,
    sequelize = new Sequelize("sequelize_test", "test", "test"),
    Project   = require(__dirname + "/Project").getProjectClass(Sequelize, sequelize),
    Task      = require(__dirname + "/Task").getTaskClass(Sequelize, sequelize)
  
Project.hasMany('tasks', Task)
Task.belongsTo('project', Project)

Sequelize.Helper.log(Project)
Sequelize.Helper.log(Task)

    
sequelize.drop(function() {
  sequelize.sync(function() {
    new Project({
      name: 'Sequelize',
      description: 'A nice MySQL ORM for NodeJS'
    }).save(function(project) {<commit_msg>refactored example to use the new import method<commit_after>var Sequelize = require(__dirname + "/../../src/Sequelize").Sequelize,
    sequelize = new Sequelize("sequelize_test", "test", "test"),
    Project   = sequelize.import(__dirname + "/Project").Project,
    Task      = sequelize.import(__dirname + "/Task").Task
  
Project.hasMany('tasks', Task)
Task.belongsTo('project', Project)
    
sequelize.drop(function() {
  sequelize.sync(function() {
    new Project({
      name: 'Sequelize',
      description: 'A nice MySQL ORM for NodeJS'
    }).save(function(project) {
{'fraction_non_alphanumeric': 0.15397215397215397, 'fraction_numerical': 0.0, 'mean_word_length': 4.1344537815126055, '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': '5202719', 'n_tokens_mistral': 393, 'n_tokens_neox': 385, 'n_words': 77}