<commit_before>.grid
  .grid-cell.flat-panel
    p.page-title
      i.xo-icon-vm(class="xo-color-{{VM.power_state | lowercase}}")
      |  {{VM.name_label}}
.grid
  .grid-cell.flat-panel
    p.flat-panel-title
      i.fa.fa-cogs(style="color: #e25440;")
      |  General
      span.quick-edit(tooltip="Edit General settings", ng-click="vmSettings.$show()")
        i.fa.fa-edit.fa-fw
    .general-properties
      form(editable-form="", name="vmSettings", onbeforesave="saveVM($data)")
        dl.dl-horizontal
          dt Name
          dd
            span(editable-text="VM.name_label", e-name="name_label", e-form="vmSettings")
              | {{VM.name_label}}
          dt Description
          dd
            span(editable-text="VM.name_description", e-name="name_description", e-form="vmSettings")
              | {{VM.name_description}}
          dt(ng-if="VM.power_state == ('Running' || 'Paused')") Running on:
          dt(ng-if="VM.power_state == ('Halted')") Resident on:
          dd(ng-repeat="container in [VM.$container] | resolve")
            a(
              ng-if = 'container.type === "host"'
              xo-sref="hosts_view({id: container.UUID})"
            )
              | {{container.name_label}}
            a(
              ng-if = 'container.type === "pool"'
              xo-sref="pools_view({id: container.UUID})"
            )
              | {{container.name_label}}
          dt Address
          dd(ng-repeat="IP in VM.addresses") {{IP}}
          dt Tags
          dd
          dt vCPUs
          dd
            span(editable-text="VM.CPUs.number", e-name="CPUs", e-form="vmSettings")
              | {{VM.CPUs.number}}
          dt RAM
          dd<commit_msg>display on which pool the VM is running if it has a name<commit_after>.grid
  .grid-cell.flat-panel
    p.page-title
      i.xo-icon-vm(class="xo-color-{{VM.power_state | lowercase}}")
      |  {{VM.name_label}}
.grid
  .grid-cell.flat-panel
    p.flat-panel-title
      i.fa.fa-cogs(style="color: #e25440;")
      |  General
      span.quick-edit(tooltip="Edit General settings", ng-click="vmSettings.$show()")
        i.fa.fa-edit.fa-fw
    .general-properties
      form(editable-form="", name="vmSettings", onbeforesave="saveVM($data)")
        dl.dl-horizontal
          dt Name
          dd
            span(editable-text="VM.name_label", e-name="name_label", e-form="vmSettings")
              | {{VM.name_label}}
          dt Description
          dd
            span(editable-text="VM.name_description", e-name="name_description", e-form="vmSettings")
              | {{VM.name_description}}
          dt(ng-if="VM.power_state == ('Running' || 'Paused')") Running on:
          dt(ng-if="VM.power_state == ('Halted')") Resident on:
          dd(ng-repeat="container in [VM.$container] | resolve")
            span(ng-if = 'container.type === "host"')
              a(xo-sref="hosts_view({id: container.UUID})")
                | {{container.name_label}}
              small(ng-init="pool = (container.poolRef | resolve)")
                span(ng-if="pool.name_label")
                  | (
                  a(ui-sref="pools_view({id: pool.UUID})") {{pool.name_label}}
                  | )
            a(
              ng-if = 'container.type === "pool"'
              xo-sref="pools_view({id: container.UUID})"
            )
              | {{container.name_label}}
          dt Address
          dd(ng-repeat="IP in VM.addresses") {{IP}}
          dt Tags
          dd
          dt vCPUs
          dd
            span(editable-text="VM.CPUs.number", e-name="CPUs", e-form="vmSettings")
              | {{VM.CPUs.number}}
          dt RAM
          dd
{'fraction_non_alphanumeric': 0.16129912663755458, 'fraction_numerical': 0.0027292576419213972, 'mean_word_length': 1.825751734772552, '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': '6239862', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1164, 'n_words': 181}