<commit_before>  var Model;
  var object;
  var db = null;
 
  var cleanVars = function(object) {
    var vars = object.vars();
    var cleanVars = {};
    for (var key in vars) {
        if (vars.hasOwnProperty(key)) {
            if (key !== 'object' && key !== 'source_id') {
                cleanVars[key] = vars[key];
            }
        }
    }
    return cleanVars;
  };
describe("ORM JS API", function() {
  describe("<model's object>", function() {

 function reset(){
    db = Rho.ORMHelper.dbConnection("local");
    Rho.ORM.clear();
    var partitions = Rho.ORMHelper.getDbPartitions();
    $.each(partitions, function(index, db2) {
      db2.$execute_sql("DELETE FROM SOURCES");
      db2.$execute_sql("DELETE FROM OBJECT_VALUES");
      db2.$execute_sql("DELETE FROM CHANGED_VALUES");
    });
  }


    var modelDef = function(model){
        model.modelName('Product'),
        model.property("key");
        model.set("partition","local");
    };
    var modelDef2 = function(model){
        model.modelName("Item");
        model.property("key","string");<commit_msg>Fixing duplicate Test name<commit_after>  var Model;
  var object;
  var db = null;
 
  var cleanVars = function(object) {
    var vars = object.vars();
    var cleanVars = {};
    for (var key in vars) {
        if (vars.hasOwnProperty(key)) {
            if (key !== 'object' && key !== 'source_id') {
                cleanVars[key] = vars[key];
            }
        }
    }
    return cleanVars;
  };
describe("ORM Model JS API", function() {
  describe("<model's object>", function() {

 function reset(){
    db = Rho.ORMHelper.dbConnection("local");
    Rho.ORM.clear();
    var partitions = Rho.ORMHelper.getDbPartitions();
    $.each(partitions, function(index, db2) {
      db2.$execute_sql("DELETE FROM SOURCES");
      db2.$execute_sql("DELETE FROM OBJECT_VALUES");
      db2.$execute_sql("DELETE FROM CHANGED_VALUES");
    });
  }


    var modelDef = function(model){
        model.modelName('Product'),
        model.property("key");
        model.set("partition","local");
    };
    var modelDef2 = function(model){
        model.modelName("Item");
        model.property("key","string");
{'fraction_non_alphanumeric': 0.15883158375171155, 'fraction_numerical': 0.004564125969876769, 'mean_word_length': 2.6472545757071546, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6540217', 'n_tokens_mistral': 682, 'n_tokens_neox': 665, 'n_words': 143}