<commit_before>var exercise = require('workshopper-exercise')(),
    filecheck = require('workshopper-exercise/filecheck'),
    execute = require('workshopper-exercise/execute'),
    comparestdout = require('workshopper-exercise/comparestdout'),
    path = require('path'),
    replaceSolutionFile = require(path.join(__dirname, '../../support/replaceSolutionFile')),
    solutionFile = path.join(__dirname, './solution/tmpSolution'),
    tmpFile = '/tmp/unicode'

exercise.addSetup(function (mode, callback) {
    this.args = [tmpFile]
    process.nextTick(callback)
})

// checks that the submission file actually exists
exercise = filecheck(exercise)

// execute the solution and submission in parallel with spawn()
exercise = execute(exercise)

// compare stdout of solution and submission
exercise = comparestdout(exercise)<commit_msg>Correzione file temporaneo<commit_after>var exercise = require('workshopper-exercise')(),
    filecheck = require('workshopper-exercise/filecheck'),
    execute = require('workshopper-exercise/execute'),
    comparestdout = require('workshopper-exercise/comparestdout'),
    path = require('path'),
    replaceSolutionFile = require(path.join(__dirname, '../../support/replaceSolutionFile')),
    solutionFile = path.join(__dirname, './solution/tmpSolution'),
    tmpFile = '/tmp/introduction'

exercise.addSetup(function (mode, callback) {
    this.args = [tmpFile]
    process.nextTick(callback)
})

// checks that the submission file actually exists
exercise = filecheck(exercise)

// execute the solution and submission in parallel with spawn()
exercise = execute(exercise)

// compare stdout of solution and submission
exercise = comparestdout(exercise)
{'fraction_non_alphanumeric': 0.12603062426383982, 'fraction_numerical': 0.0, 'mean_word_length': 5.0462633451957295, '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': '4208887', 'n_tokens_mistral': 467, 'n_tokens_neox': 449, 'n_words': 107}