<commit_before>var VM = require('vm'),
    Q = require('qq'),
    U = require('../util'),
    INHERIT = require('inherit'),
    Tech = require('../tech').Tech;

exports.Tech = INHERIT(Tech, {

    getCreateResult: function(path, suffix, vars) {

        return [
            '({',
            '    mustDeps: [],',
            '    shouldDeps: []',
            '})'
        ].join('\n');

    },

    transformBuildDecl: function(decl) {

        var deps = new Deps(decl.blocks || decl.deps);

        return deps.expandByFS(this).then(function() {
            var d = deps.serialize(),
                o = {};

            if(d['']) {
                o.deps = d[''][''];
                delete d[''][''];
            }
            U.isEmptyObject(d) || (o.depsByTechs = d);

            return o;
        });

    },

    getBuildResult: function(prefixes, suffix, outputDir, outputName) {

        var declaration = this.getContext().opts.declaration;
            deps = new Deps(declaration.deps || declaration.blocks);

        return Q.when(deps.expandByFS(this), function() {
            return deps.stringify();
        });
<commit_msg>Fix typo in deps.js tech module<commit_after>var VM = require('vm'),
    Q = require('qq'),
    U = require('../util'),
    INHERIT = require('inherit'),
    Tech = require('../tech').Tech;

exports.Tech = INHERIT(Tech, {

    getCreateResult: function(path, suffix, vars) {

        return [
            '({',
            '    mustDeps: [],',
            '    shouldDeps: []',
            '})'
        ].join('\n');

    },

    transformBuildDecl: function(decl) {

        var deps = new Deps(decl.blocks || decl.deps);

        return deps.expandByFS(this).then(function() {
            var d = deps.serialize(),
                o = {};

            if(d['']) {
                o.deps = d[''][''];
                delete d[''][''];
            }
            U.isEmptyObject(d) || (o.depsByTechs = d);

            return o;
        });

    },

    getBuildResult: function(prefixes, suffix, outputDir, outputName) {

        var declaration = this.getContext().opts.declaration,
            deps = new Deps(declaration.deps || declaration.blocks);

        return Q.when(deps.expandByFS(this), function() {
            return deps.stringify();
        });

{'fraction_non_alphanumeric': 0.1697048611111111, 'fraction_numerical': 0.0, 'mean_word_length': 1.708578143360752, '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': '2184196', 'n_tokens_mistral': 712, 'n_tokens_neox': 677, 'n_words': 127}