<commit_before>
var git = require('./../hook/git_actions');
var db = require('./../db_actions');
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var sync = jxcore.utils.cmdSync;
var tester = require('../internal/tester');

var eopts = {
  encoding: 'utf8',
  timeout: 1200000, // single command timeout - 20 min.
  maxBuffer: 1e9,
  killSignal: 'SIGTERM'
};

var builderBusy = false;
var builderJob = null;
var builderReset = false;
var lastStartTime = 0;
var activeJobId = 0;
var cancelJobId = 0;
var vmChild = null;
var currentBuildCommand = null;

var stopVM = function (cb) {
  var vm = '/Applications/VMware\\ Fusion.app/Contents/Library/vmrun';
  exec(vm + ' stop ~/Desktop/Virtual\\ Machines/OSXDEV.vmwarevm/OSXDEV.vmx', eopts, function (err, out, stderr) {
    if (err)
      logme('Error stopping VM', err, out, stderr, 'red');
    cb(err, out, stderr);
  });
};

var resetVM = function (cb) {
  var vm = "/Applications/VMware\\ Fusion.app/Contents/Library/vmrun";
  vmChild = exec(vm + " revertToSnapshot ~/Desktop/Virtual\\ Machines/OSXDEV.vmwarevm/OSXDEV.vmx snapshot1", eopts, function (err, stdout, stderr) {
    vmChild = null;<commit_msg>increase virtual.js operations timeout from 20 to 35 minutes #90<commit_after>
var git = require('./../hook/git_actions');
var db = require('./../db_actions');
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var sync = jxcore.utils.cmdSync;
var tester = require('../internal/tester');

var eopts = {
  encoding: 'utf8',
  timeout: 1000 * 60 * 35, // single command timeout - 35 min.
  maxBuffer: 1e9,
  killSignal: 'SIGTERM'
};

var builderBusy = false;
var builderJob = null;
var builderReset = false;
var lastStartTime = 0;
var activeJobId = 0;
var cancelJobId = 0;
var vmChild = null;
var currentBuildCommand = null;

var stopVM = function (cb) {
  var vm = '/Applications/VMware\\ Fusion.app/Contents/Library/vmrun';
  exec(vm + ' stop ~/Desktop/Virtual\\ Machines/OSXDEV.vmwarevm/OSXDEV.vmx', eopts, function (err, out, stderr) {
    if (err)
      logme('Error stopping VM', err, out, stderr, 'red');
    cb(err, out, stderr);
  });
};

var resetVM = function (cb) {
  var vm = "/Applications/VMware\\ Fusion.app/Contents/Library/vmrun";
  vmChild = exec(vm + " revertToSnapshot ~/Desktop/Virtual\\ Machines/OSXDEV.vmwarevm/OSXDEV.vmx snapshot1", eopts, function (err, stdout, stderr) {
    vmChild = null;
{'fraction_non_alphanumeric': 0.15785191212367777, 'fraction_numerical': 0.015866558177379985, 'mean_word_length': 3.9676767676767675, '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': '7013303', 'n_tokens_mistral': 885, 'n_tokens_neox': 835, 'n_words': 232}