<commit_before>export default async function start ({vm, container}) {
  await this.getXAPI(vm).startDockerContainer(vm.$id, container)
}

export default async function stop ({vm, container}) {
  await this.getXAPI(vm).stopDockerContainer(vm.$id, container)
}

export default async function restart ({vm, container}) {
  await this.getXAPI(vm).restartDockerContainer(vm.$id, container)
}

export default async function pause ({vm, container}) {
  await this.getXAPI(vm).pauseDockerContainer(vm.$id, container)
}

export default async function unpause ({vm, container}) {
  await this.getXAPI(vm).unpauseDockerContainer(vm.$id, container)
}

for (let fn of [start, stop, restart, pause, unpause]) {
  fn.permission = 'admin'

  fn.params = {
    vm: { type: 'string' },
    container: { type: 'string' }
  }

  fn.resolve = {
    vm: ['vm', 'VM']
  }<commit_msg>Fix docker.*() functions export.<commit_after>export async function start ({vm, container}) {
  await this.getXAPI(vm).startDockerContainer(vm.$id, container)
}

export async function stop ({vm, container}) {
  await this.getXAPI(vm).stopDockerContainer(vm.$id, container)
}

export async function restart ({vm, container}) {
  await this.getXAPI(vm).restartDockerContainer(vm.$id, container)
}

export async function pause ({vm, container}) {
  await this.getXAPI(vm).pauseDockerContainer(vm.$id, container)
}

export async function unpause ({vm, container}) {
  await this.getXAPI(vm).unpauseDockerContainer(vm.$id, container)
}

for (let fn of [start, stop, restart, pause, unpause]) {
  fn.permission = 'admin'

  fn.params = {
    vm: { type: 'string' },
    container: { type: 'string' }
  }

  fn.resolve = {
    vm: ['vm', 'VM']
  }
{'fraction_non_alphanumeric': 0.14991181657848324, 'fraction_numerical': 0.0, 'mean_word_length': 4.6544850498338874, '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': '3259411', 'n_tokens_mistral': 556, 'n_tokens_neox': 559, 'n_words': 142}