<commit_before>'use strict';

const debug = require('debug')('bpmn-engine:engine');
const {EventEmitter} = require('events');
const {Definition} = require('./mapper');
const getOptionsAndCallback = require('./getOptionsAndCallback');
const getPropertyValue = require('./getPropertyValue');
const transformer = require('./transformer');
const validation = require('./validation');
const {version: engineVersion} = require('../package.json');

const validOptions = ['name', 'source', 'moddleContext', 'moddleOptions'];

function Engine(options) {
  return EngineInstance(options);
}

module.exports = Engine;

Engine.resume = function resumeExecution(state, resumeOptions, resumeCallback) {
  const [executeOptions, callback] = getOptionsAndCallback(resumeOptions, resumeCallback);

  if (executeOptions) {
    validation.validateOptions(executeOptions);<commit_msg>Require Definition<commit_after>'use strict';

const debug = require('debug')('bpmn-engine:engine');
const {EventEmitter} = require('events');
const Definition = require('./Definition');
const getOptionsAndCallback = require('./getOptionsAndCallback');
const getPropertyValue = require('./getPropertyValue');
const transformer = require('./transformer');
const validation = require('./validation');
const {version: engineVersion} = require('../package.json');

const validOptions = ['name', 'source', 'moddleContext', 'moddleOptions'];

function Engine(options) {
  return EngineInstance(options);
}

module.exports = Engine;

Engine.resume = function resumeExecution(state, resumeOptions, resumeCallback) {
  const [executeOptions, callback] = getOptionsAndCallback(resumeOptions, resumeCallback);

  if (executeOptions) {
    validation.validateOptions(executeOptions);
{'fraction_non_alphanumeric': 0.14639769452449566, 'fraction_numerical': 0.0, 'mean_word_length': 7.509803921568627, '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': '5164844', 'n_tokens_mistral': 437, 'n_tokens_neox': 436, 'n_words': 104}