<commit_before>import path from 'path';
import nodemiral from 'nodemiral';
import {runTaskList} from '../utils';

export function help(/* api */) {
  console.log('TODO: mup docker help');
}

export function setup(api) {
  const list = nodemiral.taskList('Setup Docker');

  list.executeScript('setup docker', {
    script: path.resolve(__dirname, 'assets/docker-setup.sh')
  });

  const sessions = api.getSessions([ 'meteor', 'mongo', 'proxy' ]);
  return runTaskList(list, sessions);
}
<commit_msg>Refactor docker module<commit_after>import path from 'path';
import debug from 'debug';
import nodemiral from 'nodemiral';
import {runTaskList} from '../utils';
const log = debug('mup:module:docker');

export function help(/* api */) {
  log('exec => mup docker help');
}

export function setup(api) {
  log('exec => mup docker setup');
  const list = nodemiral.taskList('Setup Docker');

  list.executeScript('setup docker', {
    script: path.resolve(__dirname, 'assets/docker-setup.sh')
  });

  const sessions = api.getSessions([ 'meteor', 'mongo', 'proxy' ]);
  return runTaskList(list, sessions);
}

{'fraction_non_alphanumeric': 0.16289592760180996, 'fraction_numerical': 0.0, 'mean_word_length': 4.946236559139785, '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': '2104802', 'n_tokens_mistral': 365, 'n_tokens_neox': 347, 'n_words': 95}