<commit_before>'use babel';

import jobCounter from '../utils/job-counter';
import taboutTemplate from '../templates/taboutput';
import workerTemplate from '../templates/worker';
import n from '../utils/notifications';
import dataStore from '../utils/data-store';
import Console from '../views/console';
import disposable from '../utils/disposable';
import path from 'safe-win-path';
import fs from 'fs';
import swPath from '../utils/statwolf-path';
import textEditor from '../utils/text-editor-resolver';

export default function(client) {

  const output = dataStore('output');
  const outputData = output.getData();

  const view = new Console(output);

  const onCommandDispatched = function(command) {
    jobCounter.addJob();

    outputData.output = '';
    outputData.logs = [];
    output.notify(false);

    client.command('execute', {
      command
    }).then(function(data) {
      outputData.output = data.result;
      outputData.logs = data.logs || [];
      outputData.error = null;<commit_msg>forcing cleaning buffer on command<commit_after>'use babel';

import jobCounter from '../utils/job-counter';
import taboutTemplate from '../templates/taboutput';
import workerTemplate from '../templates/worker';
import n from '../utils/notifications';
import dataStore from '../utils/data-store';
import Console from '../views/console';
import disposable from '../utils/disposable';
import path from 'safe-win-path';
import fs from 'fs';
import swPath from '../utils/statwolf-path';
import textEditor from '../utils/text-editor-resolver';

export default function(client) {

  const output = dataStore('output');

  const view = new Console(output);

  const onCommandDispatched = function(command) {
    jobCounter.addJob();
    const outputData = output.getData();

    outputData.output = '';
    outputData.logs = [];
    output.notify(false);

    client.command('execute', {
      command
    }).then(function(data) {
      outputData.output = data.result;
      outputData.logs = data.logs || [];
      outputData.error = null;
{'fraction_non_alphanumeric': 0.1466992665036675, 'fraction_numerical': 0.0, 'mean_word_length': 3.8141176470588234, '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': '5799200', 'n_tokens_mistral': 568, 'n_tokens_neox': 551, 'n_words': 153}