<commit_before>/*jslint node: true */
'use strict';

var lodash = require('lodash'),
    request = require('./request'),
    save = require('./save'),
    schema = require('./schema'),
    validate = require('./validate'),
    yaml = require('yamljs'),

ATask = {
    run: function (F, cb) {
        ATask.reduce(F, [
            ATask.loadPlan,
            ATask.validatePlan,
            ATask.loadRequestList,
            ATask.validateRequests,
            ATask.request,
            ATask.save,
            ATask.validate,
            ATask.report,
            cb
        ]);
    },
    report: function (C, next) {
        var t = require('tap').test('Api Validator execute the test plan on requests list "' + C.requestYaml + '"');

        lodash.map(C.results, function (R, I) {
            t.ok(C.validates[C.savedFiles[I]] ? true : false, C.savedFiles[I] + ' - ' + R.url);
            t.end();
        });
        next(C);
    },
    loadPlan: function (F, next) {
        yaml.load(F, function (D) {
            if (D) {<commit_msg>remove task.report<commit_after>/*jslint node: true */
'use strict';

var lodash = require('lodash'),
    request = require('./request'),
    save = require('./save'),
    schema = require('./schema'),
    validate = require('./validate'),
    yaml = require('yamljs'),

ATask = {
    run: function (F, cb) {
        ATask.reduce(F, [
            ATask.loadPlan,
            ATask.validatePlan,
            ATask.loadRequestList,
            ATask.validateRequests,
            ATask.request,
            ATask.save,
            ATask.validate,
            cb
        ]);
    },
    loadPlan: function (F, next) {
        yaml.load(F, function (D) {
            if (D) {
{'fraction_non_alphanumeric': 0.15528312901342672, 'fraction_numerical': 0.0, 'mean_word_length': 1.773462783171521, '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': '1715744', 'n_tokens_mistral': 526, 'n_tokens_neox': 519, 'n_words': 111}