<commit_before>// Please Remove this serializer when feature flag 'ds-pushpayload-return' will be enabled by default
// https://github.com/emberjs/data/pull/4110

import { makeArray } from '@ember/array';

import { warn } from '@ember/debug';
import DS from 'ember-data';

const { RESTSerializer } = DS;

export default RESTSerializer.extend({
  pushPayload(store, payload) {
    let documentHash = {
      data: [],
      included: []
    };

    for (let prop in payload) {
      let modelName = this.modelNameFromPayloadKey(prop);
      if (!store.modelFactoryFor(modelName)) {
        warn(this.warnMessageNoModelForKey(prop, modelName), false, {
          id: 'ds.serializer.model-for-key-missing'<commit_msg>Fix ember data deprecation<commit_after>// Please Remove this serializer when feature flag 'ds-pushpayload-return' will be enabled by default
// https://github.com/emberjs/data/pull/4110

import { makeArray } from '@ember/array';

import { warn } from '@ember/debug';
import DS from 'ember-data';

const { RESTSerializer } = DS;

export default RESTSerializer.extend({
  pushPayload(store, payload) {
    let documentHash = {
      data: [],
      included: []
    };

    for (let prop in payload) {
      let modelName = this.modelNameFromPayloadKey(prop);
      if (!store._modelFactoryFor(modelName)) {
        warn(this.warnMessageNoModelForKey(prop, modelName), false, {
          id: 'ds.serializer.model-for-key-missing'
{'fraction_non_alphanumeric': 0.12482662968099861, 'fraction_numerical': 0.005547850208044383, 'mean_word_length': 3.5377358490566038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1173233', 'n_tokens_mistral': 435, 'n_tokens_neox': 423, 'n_words': 110}