<commit_before>import Ember from 'ember'
const {
  Mixin,
  get,
  on,
  defineProperty,
  computed: {alias}
} = Ember
import computed from 'ember-computed-decorators'

export default Mixin.create({
  initListCoreMixin: on('init', function () {
    defineProperty(this, '_listItems', alias(get(this, 'listConfig.items')))
  }),

  @computed('_listItems.[]')
  listItems (listItems) {
    let wrapper = []
    return listItems.map((item) => {
      return wrapper.pushObject(Ember.Object.create({
        id: item.id,
        record: item
      }))
    })
  },<commit_msg>fix bug when listItems evaluated to null/data is not coming from model hook<commit_after>import Ember from 'ember'
const {
  Mixin,
  get,
  on,
  defineProperty,
  computed: {alias},
  isNone
} = Ember
import computed from 'ember-computed-decorators'

export default Mixin.create({
  initListCoreMixin: on('init', function () {
    defineProperty(this, '_listItems', alias(get(this, 'listConfig.items')))
  }),

  @computed('_listItems.[]')
  listItems (listItems) {
    if (isNone(listItems)) {
      listItems = []
    }
    let wrapper = []
    return listItems.map((item) => {
      return wrapper.pushObject(Ember.Object.create({
        id: item.id,
        record: item
      }))
    })
  },
{'fraction_non_alphanumeric': 0.14251968503937007, 'fraction_numerical': 0.0, 'mean_word_length': 3.32312925170068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4537843', 'n_tokens_mistral': 420, 'n_tokens_neox': 417, 'n_words': 94}