<commit_before>/**
 * author: <NAME> (see LICENSE.txt for license details)
 */

STEP_RESOURCE = 'jsStep';   // declares the MuseResourceType for a Javascript step.

var StepExecutionStatus = Java.type("org.musetest.core.step.StepExecutionStatus");
var BasicStepExecutionResult = Java.type("org.musetest.core.step.BasicStepExecutionResult");
var StepExecutionContext = Java.type("org.musetest.core.context.StepExecutionContext");
var MessageEvent = Java.type("org.musetest.core.events.MessageEvent");

var RESULT_COMPLETE = new BasicStepExecutionResult(StepExecutionStatus.COMPLETE);
var RESULT_FAILURE = new BasicStepExecutionResult(StepExecutionStatus.FAILURE);
var RESULT_INCOMPLETE = new BasicStepExecutionResult(StepExecutionStatus.INCOMPLETE);

function executeStepWrapper(context, params)
    {
    var js_context = {};
    js_context.getLocalVariable = function(name)
        {
        return context.getLocalVariable(name);
        };
    js_context.getLocalVariable = function(name)
        {
        return context.getLocalVariable(name);
        };

    executeStep(js_context);
    }

function successResult(message)
    {
    return new BasicStepExecutionResult(StepExecutionStatus.COMPLETE, message);
    }

function failureResult(message)
    {
    return new BasicStepExecutionResult(StepExecutionStatus.FAILURE, message);
    }

function logMessage(context, message)
    {
    context.getTestExecutionContext().raiseEvent(new MessageEvent(message));
    }<commit_msg>code cleanup<commit_after>/**
 * author: <NAME> (see LICENSE.txt for license details)
 */

STEP_RESOURCE = 'jsStep';   // declares the MuseResourceType for a Javascript step.

var StepExecutionStatus = Java.type("org.musetest.core.step.StepExecutionStatus");
var BasicStepExecutionResult = Java.type("org.musetest.core.step.BasicStepExecutionResult");
var StepExecutionContext = Java.type("org.musetest.core.context.StepExecutionContext");
var MessageEvent = Java.type("org.musetest.core.events.MessageEvent");

var RESULT_COMPLETE = new BasicStepExecutionResult(StepExecutionStatus.COMPLETE);
var RESULT_FAILURE = new BasicStepExecutionResult(StepExecutionStatus.FAILURE);

function successResult(message)
    {
    return new BasicStepExecutionResult(RESULT_COMPLETE, message);
    }

function failureResult(message)
    {
    return new BasicStepExecutionResult(RESULT_FAILURE, message);
    }

function logMessage(context, message)
    {
    context.getTestExecutionContext().raiseEvent(new MessageEvent(message));
    }
{'fraction_non_alphanumeric': 0.10087719298245613, 'fraction_numerical': 0.0, 'mean_word_length': 5.241293532338308, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5715218', 'n_tokens_mistral': 690, 'n_tokens_neox': 701, 'n_words': 127}