<commit_before>import FactoryGuy from 'ember-data-factory-guy'

let type = null

FactoryGuy.define('list-item', {
  sequences: {
    dimension: (num) => {
      let items = ['NC', 'SERVICE', 'custom']
      type = items[num % items.length]
      return type
    },
    label: (num) => {
      let items = [
        'G4336-7NCP31',
        'OTN/10GE/G4218-2NCP06/G4218-2NCP07/20005',
        '4-Node OPS'
      ]
      return items[num % items.length]
    },
    'meta-data': () => {
      if (type === 'NC') {
        return {
          Type: '6500',
          'IP address': '192.168.127.12',
          'MAC address': '40:AA:42:18:06:00',
          Release: '10.1.0',
          State: 'Normal'
        }
      } else if (type === 'SERVICE') {
        if (faker.random.number({ // eslint-disable-line
          min: 0,
          max: 1
        })) {
          return {
            Directionality: 'UNIDIRECTIONAL',
            'Destination endpoint': 'OPS2-ETH10G-2-23-1, DWA2-ETH10G-2-23-1',
            'Source endpoint': 'OPS1-ETH10G-1-23-1, DWA1-ETH10G-1-23-1'
          }
        } else {
          return {
            Rate: 'Ethernet',
            Directionality: 'BIDIRECTIONAL',
            'Destination endpoint': 'DWA1-2-ETH10G-2-23-5',
            'Source endpoint': 'DWA1-1-ETH10G-1-23-5'
          }
        }
      } else {
        return {}
      }
    }
  },

  default: {
    dimension: FactoryGuy.generate('dimension'),
    label: FactoryGuy.generate('label'),
    'meta-data': FactoryGuy.generate('meta-data')
  }
})
<commit_msg>clean up attribute name in factory<commit_after>import FactoryGuy from 'ember-data-factory-guy'

let type = null

FactoryGuy.define('list-item', {
  sequences: {
    dimension: (num) => {
      let items = ['NC', 'SERVICE', 'custom']
      type = items[num % items.length]
      return type
    },
    label: (num) => {
      let items = [
        'G4336-7NCP31',
        'OTN/10GE/G4218-2NCP06/G4218-2NCP07/20005',
        '4-Node OPS'
      ]
      return items[num % items.length]
    },
    metaData: () => {
      if (type === 'NC') {
        return {
          Type: '6500',
          'IP address': '192.168.127.12',
          'MAC address': '40:AA:42:18:06:00',
          Release: '10.1.0',
          State: 'Normal'
        }
      } else if (type === 'SERVICE') {
        if (faker.random.number({ // eslint-disable-line
          min: 0,
          max: 1
        })) {
          return {
            Directionality: 'UNIDIRECTIONAL',
            'Destination endpoint': 'OPS2-ETH10G-2-23-1, DWA2-ETH10G-2-23-1',
            'Source endpoint': 'OPS1-ETH10G-1-23-1, DWA1-ETH10G-1-23-1'
          }
        } else {
          return {
            Rate: 'Ethernet',
            Directionality: 'BIDIRECTIONAL',
            'Destination endpoint': 'DWA1-2-ETH10G-2-23-5',
            'Source endpoint': 'DWA1-1-ETH10G-1-23-5'
          }
        }
      } else {
        return {}
      }
    }
  },

  default: {
    dimension: FactoryGuy.generate('dimension'),
    label: FactoryGuy.generate('label'),
    metaData: FactoryGuy.generate('metaData')
  }
})

{'fraction_non_alphanumeric': 0.16237942122186494, 'fraction_numerical': 0.06688102893890675, 'mean_word_length': 1.6935064935064934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7193945', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1082, 'n_words': 189}