<commit_before>'use strict'

const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)

const fs = require('fs')
const path = require('path')
const ActionHero = require(path.join(__dirname, '/../../index.js'))
const actionhero = new ActionHero.Process()
let api

require = require.requireActual // eslint-disable-line

const originalFile = './actions/randomNumber.js'
const originalContent = fs.readFileSync(originalFile)

let newFileContent = ''
newFileContent += 'exports.randomNumber = {'
newFileContent += '  name: "randomNumber",'
newFileContent += '  description: "HACK",'
newFileContent += '  outputExample: {},'
newFileContent += '  run: function(api, connection, next){'
newFileContent += '    connection.response.randomNumber = "not a number!";'
newFileContent += '    next(connection, true);'
newFileContent += '  }'
newFileContent += '};'

const sleep = async (timeout) => {
  await new Promise((resolve) => setTimeout(resolve, timeout))<commit_msg>update developerMode for new action style<commit_after>'use strict'

const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)

const fs = require('fs')
const path = require('path')
const ActionHero = require(path.join(__dirname, '/../../index.js'))
const actionhero = new ActionHero.Process()
let api

require = require.requireActual // eslint-disable-line

const originalFile = './actions/randomNumber.js'
const originalContent = fs.readFileSync(originalFile)

let newFileContent = ''
newFileContent += 'const ActionHero = require(\'./../index.js\')\n'
newFileContent += 'module.exports = class RandomNumber extends ActionHero.Action {\n'
newFileContent += '  constructor () {\n'
newFileContent += '    super()\n'
newFileContent += '    this.name = \'randomNumber\'\n'
newFileContent += '    this.description = \'HACK\'\n'
newFileContent += '  }\n'
newFileContent += '  async run (api, data) {\n'
newFileContent += '    data.response.randomNumber = "not a number!"\n'
newFileContent += '  }\n'
newFileContent += '}\n'

const sleep = async (timeout) => {
  await new Promise((resolve) => setTimeout(resolve, timeout))
{'fraction_non_alphanumeric': 0.1580865603644647, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2458300', 'n_tokens_mistral': 671, 'n_tokens_neox': 670, 'n_words': 164}