<commit_before>var Utils = require("./utils")
  , Mixin = require("./association-mixin")

/*
  Defines the connection between data and the sql table.
  Parameters:
    - name: the name of the model
    - attributes: A name-datatype-hash -> {name: 'VARCHAR(255)', id: "INT"}
  Options:
    -
*/
var Model = module.exports = function(name, attributes, options) {
  this.name = name
  this.attributes = attributes
  this.options = options || {}
}

var classMethods = {
  sync: function() {
    
  },
  drop: function() {
    
  }
}

var instanceMethods = {
  save: function() {
    
  },
  destroy: function() {
    
  }
}

Utils._.map(classMethods, function(fct, name) { Model[name] = fct })
Utils._.map(instanceMethods, function(fct, name) { Model.prototype[name] = fct})
Utils._.map(Mixin.classMethods, function(fct, name) { Model[name] = fct })
Utils._.map(Mixin.instanceMethods, function(fct, name) { Model.prototype[name] = fct})<commit_msg>minor changes<commit_after>var Utils = require("./utils")
  , Mixin = require("./association-mixin")

/*
  Defines the connection between data and the sql table.
  Parameters:
    - name: the name of the model
    - attributes: A name-datatype-hash -> {name: 'VARCHAR(255)', id: "INT"}
  Options:
    -
*/
var Model = module.exports = function(name, attributes, options) {
  this.name = name
  this.attributes = attributes
  this.options = options || {}
  
  this.associations = []
}

var classMethods = {
  sync: function() {
    
  },
  drop: function() {
    
  }
}

var instanceMethods = {
  save: function() {
    
  },
  destroy: function() {
    
  }
}

/* Add the class and instance methods to Model */
Utils._.map(classMethods, function(fct, name) { Model[name] = fct })
Utils._.map(instanceMethods, function(fct, name) { Model.prototype[name] = fct})
Utils._.map(Mixin.classMethods, function(fct, name) { Model[name] = fct })
Utils._.map(Mixin.instanceMethods, function(fct, name) { Model.prototype[name] = fct})
{'fraction_non_alphanumeric': 0.15564598168870802, 'fraction_numerical': 0.003051881993896236, 'mean_word_length': 3.440180586907449, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2605445', 'n_tokens_mistral': 664, 'n_tokens_neox': 658, 'n_words': 155}