<commit_before><commit_msg>Resource refactoring (in /base).<commit_after>/*jshint white: false, strict: false, plusplus: false, onevar: false,
  nomen: false */
/*global define: false, console: false, window: false, setTimeout: false */

define( function ( require ) {

    var lang = require( './lang' );

    var IResource = function( options ) {

        options = options || {};

        var _type = options.type || undefined;
        Object.defineProperty( this, 'type', {
            get: function() {
                return _type;
            }
        });
        
        var _cache = options.cache || null;
        Object.defineProperty( this, 'cache', {
            get: function() {
                return _cache;
            }
        });
        
        var _resourceConstructor = options.resourceConstructor || function() {};
        Object.defineProperty( this, 'resourceConstructor', {
            get: function() {
                return _resourceConstructor;
            }
        });

    };

    var Resource = function( options, c ) {

        option = options || {};
        
        var r = function( options ) {

            options = options || {};
            
            var _source = options.source || null,
            _script = options.script || null,
            _parameters = options.parameters || null;
        
            var _onComplete = options.onComplete || function() {},
            _onError = options.onError || function() {};

            c.call( this, options );

        };
        r.prototype = new IResource( options );
        r.prototype.constructor = r;

        return r;

    };

    return Resource;

});
{'fraction_non_alphanumeric': 0.1216867469879518, 'fraction_numerical': 0.0, 'mean_word_length': 1.674718196457327, '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': '3584369', 'n_tokens_mistral': 426, 'n_tokens_neox': 410, 'n_words': 112}