<commit_before>import DS from 'ember-data';

export default DS.JSONAPISerializer.extend({
  normalizeFindAllResponse: function(store, primaryModelClass, payload, id, requestType) {
    //console.log('[serializer][lesson]:[normalizeFindAllResponse]');
    let hits = payload.hits;
	  
    payload = {
      data: hits.hits.map(function(hit) {
        return {
	  type: hit._type,      
          id: hit._id,      
          attributes: hit._source,      
        };
      }),
      meta: {
        total: hits.total,
        sort: hits.sort
      }
    };

    return this._super(store, primaryModelClass, payload, id, requestType);
  },

  normalizeQueryResponse: function(store, primaryModelClass, payload, id, requestType) {
    //console.log('[serializer][lesson]:[normalizeQueryResponse]');
    let hits = payload.hits;

    payload = {
      data: hits.hits.map(function(hit) {
        return {
	  type: hit._type,      
          id: hit._id,      
          attributes: hit._source,      
        };<commit_msg>Fixed spacing in serializer<commit_after>import DS from 'ember-data';

export default DS.JSONAPISerializer.extend({
  normalizeFindAllResponse: function(store, primaryModelClass, payload, id, requestType) {
    //console.log('[serializer][lesson]:[normalizeFindAllResponse]');
    let hits = payload.hits;
	  
    payload = {
      data: hits.hits.map(function(hit) {
        return {
          type: hit._type,      
          id: hit._id,      
          attributes: hit._source,      
        };
      }),
      meta: {
        total: hits.total,
        sort: hits.sort
      }
    };

    return this._super(store, primaryModelClass, payload, id, requestType);
  },

  normalizeQueryResponse: function(store, primaryModelClass, payload, id, requestType) {
    //console.log('[serializer][lesson]:[normalizeQueryResponse]');
    let hits = payload.hits;

    payload = {
      data: hits.hits.map(function(hit) {
        return {
          type: hit._type,      
          id: hit._id,      
          attributes: hit._source,      
        };
{'fraction_non_alphanumeric': 0.12391093901258471, 'fraction_numerical': 0.0, 'mean_word_length': 2.280952380952381, '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': '5304989', 'n_tokens_mistral': 624, 'n_tokens_neox': 612, 'n_words': 119}