<commit_before>import Ember from 'ember';
import DebugAdapter from 'ember-data/-private/system/debug/debug-adapter';
import { assert, warn } from "ember-data/-private/debug";

const { inject, getOwner, isBlank, isPresent } = Ember;

export default DebugAdapter.extend({
  engineStore: inject.service('engine-store'),
  getRecords(modelClass, modelName = '') {
    let records;
    const owner = getOwner(this);
    const app = owner.application;
    const modulePrefix = modelName.split('#').shift();

    if (!modelName.includes(modulePrefix)) {
      records = this.get('engineStore').peekAll(modelName);
    }
    else {
      records = this._super(...arguments);
    }

    return records;
  },
  getModelTypes() {
    let containerDebugAdapter = this.get('containerDebugAdapter');
    let types;

    if (containerDebugAdapter.canCatalogEntriesByType('model')) {
      types = containerDebugAdapter.catalogEntriesByType('model');
    } else {
      types = this._getObjectsOnNamespaces();
    }<commit_msg>more fixes<commit_after>import Ember from 'ember';
import DebugAdapter from 'ember-data/-private/system/debug/debug-adapter';
import { assert, warn } from "ember-data/-private/debug";

const { inject, getOwner, isBlank, isPresent } = Ember;

export default DebugAdapter.extend({
  engineStore: inject.service('engine-store'),
  getRecords(modelClass, modelName = '') {
    let records;

    if (modelName.includes('#')) {
      records = this.get('engineStore').peekAll(modelName);
    }
    else {
      records = this._super(...arguments);
    }

    return records;
  },
  getModelTypes() {
    let containerDebugAdapter = this.get('containerDebugAdapter');
    let types;

    if (containerDebugAdapter.canCatalogEntriesByType('model')) {
      types = containerDebugAdapter.catalogEntriesByType('model');
    } else {
      types = this._getObjectsOnNamespaces();
    }
{'fraction_non_alphanumeric': 0.13474801061007957, 'fraction_numerical': 0.0, 'mean_word_length': 3.898701298701299, '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': '7469361', 'n_tokens_mistral': 546, 'n_tokens_neox': 535, 'n_words': 110}