<commit_before>import Ember from 'ember';

export function getModelName(model){
  return model.constructor.modelName;
}

export function getParentRoute(model){<commit_msg>Extra helper methods for offline Cache<commit_after>import Ember from 'ember';

export function getModelName(model){
  return model.constructor.modelName;
}

export function modelTypeIsCacheable(modelType){
  return modelType.settings.hasOwnProperty('cacheable') && modelType.settings.cacheable;
}

export function modelTypeWasLoaded(modelType){
  modelType.settings.loadedFromCache = true;
}

export function modelTypeHasBeenLoadedFromCache(modelType){
  return modelType.settings.hasOwnProperty('loadedFromCache') && modelType.settings.loadedFromCache;
}

export function getParentRoute(model){
{'fraction_non_alphanumeric': 0.09126466753585398, 'fraction_numerical': 0.0, 'mean_word_length': 8.142857142857142, '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': '1525886', 'n_tokens_mistral': 208, 'n_tokens_neox': 208, 'n_words': 45}