<commit_before>"use strict";
var _getSert = require("../getsert");
var generateCode = require("../../../src/utils/code-generator");
var unit = require("./unit-data-util");

class StorageDataUtil {
    getSert(input) {
        var ManagerType = require("../../../src/managers/master/storage-manager");
        return _getSert(input, ManagerType, (data) => {
            return {
                code: data.code
            };
        });
    }

    getNewData() {
        return Promise.all([unit.getTestData()])
            .then((results) => {
                var _unit= results[0];
                var Model = require('dl-models').master.Storage;

                var code = generateCode();
                
                var data ={
                    code : code,
                    name : `name[${code}]`,
                    description : `storage description [${code}]`,
                    unit:_unit,
                    initId:_unit._id<commit_msg>fix unit test<commit_after>"use strict";
var _getSert = require("../getsert");
var generateCode = require("../../../src/utils/code-generator");
var unit = require("./unit-data-util");

class StorageDataUtil {
    getSert(input) {
        var ManagerType = require("../../../src/managers/master/storage-manager");
        return _getSert(input, ManagerType, (data) => {
            return {
                code: data.code
            };
        });
    }

    getNewData() {
        return Promise.all([unit.getTestData()])
            .then((results) => {
                var _unit= results[0];
                var Model = require('dl-models').master.Storage;

                var code = generateCode();
                
                var data ={
                    code : code,
                    name : `name[${code}]`,
                    description : `storage description [${code}]`,
                    unit:_unit,
                    unitId:_unit._id
{'fraction_non_alphanumeric': 0.1496881496881497, 'fraction_numerical': 0.0010395010395010396, 'mean_word_length': 1.4647887323943662, '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': '2128786', 'n_tokens_mistral': 513, 'n_tokens_neox': 488, 'n_words': 99}