<commit_before>class EnvironmentMachineItem extends EnvironmentItem

  JView.mixin @prototype

  constructor:(options={}, data)->

    options.cssClass           = 'machine busy'
    options.joints             = ['left']

    options.allowedConnections =
      EnvironmentDomainItem    : ['right']
<commit_msg>EnvironmentMachineItem: keep track of stateClasses based on Machine.State<commit_after>class EnvironmentMachineItem extends EnvironmentItem

  JView.mixin @prototype
  stateClasses = ""
  for state in Object.keys Machine.State
    stateClasses += "#{state.toLowerCase()} "

  constructor:(options={}, data)->

    options.cssClass           = 'machine busy'
    options.joints             = ['left']

    options.allowedConnections =
      EnvironmentDomainItem    : ['right']

{'fraction_non_alphanumeric': 0.10038119440914867, 'fraction_numerical': 0.0, 'mean_word_length': 3.282608695652174, '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': '7149100', 'n_tokens_mistral': 203, 'n_tokens_neox': 195, 'n_words': 47}