<commit_before>var PASSED = "Passed";
var FAILED = "Failed";

var testCatalog = {
  "exc_3" : function(usercode){
    results = [];
    eval(usercode);
    try{
      results.push(assert(typeof store !== 'undefined', "store is defined"));
      results.push(assert(store.hasOwnProperty("nextId"), "Store has a next nextId property"));
      results.push(assert(store.hasOwnProperty("add") && typeof store.add == "function", "Store has add method"))
    }
    catch(error){
      
    }
    
    return results;
  }
};

function assert(expression, message){
  if(expression){
    return {status: "Passed",message: message};
  }
  return {status: "Failed",message: message};
}<commit_msg>EXC_3 Check if store has cache property<commit_after>var PASSED = "Passed";
var FAILED = "Failed";

var testCatalog = {
  "exc_3" : function(usercode){
    results = [];
    eval(usercode);
    try{
      results.push(assert(typeof store !== 'undefined', "store is defined"));
      results.push(assert(store.hasOwnProperty("nextId"), "Store has a next nextId property"));
      results.push(assert(store.hasOwnProperty("add") && typeof store.add == "function", "Store has add method"));
      results.push(assert(store.hasOwnProperty("cache"), "Store has cache property"));

      
    }
    catch(error){
      
    }
    
    return results;
  }
};

function assert(expression, message){
  if(expression){
    return {status: "Passed",message: message};
  }
  return {status: "Failed",message: message};
}
{'fraction_non_alphanumeric': 0.15595716198125836, 'fraction_numerical': 0.002008032128514056, 'mean_word_length': 3.731012658227848, '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': '5474259', 'n_tokens_mistral': 450, 'n_tokens_neox': 458, 'n_words': 109}