<commit_before>/**
 * Created by guntars on 11/10/2014.
 */
/*globals setTimeout, define*/
// ### Requirejs plugin
// For to simplify `widget/Constructor` Class
// Usage Example
//
//      `<cp-widget src="widget/parser!widget.html"></cp-widget>`
//
//  This savining to create extra unnecessary javascript file.
//
//      define([
//          'templating/parser!widget.html',
//          'widget/Constructor'
//      ], function (template, Constructor) {
//          var Widget = Constructor.extend({
//              template: template
//          });
//          return Widget;
//      });

define(function () {
    function getName(fileName) {
        return (/[.]/.exec(fileName)) ? /[^.]+$/.exec(fileName) : undefined;
    }

    return {
        version: "0.1.0",
        load: function (moduleName, req, onLoad, config) {
            moduleName = (getName(moduleName) !== undefined) ? moduleName : moduleName + '.html';
            if (config.isBuild) {
                req([
                    'templating/parser!' + moduleName,
                ], function (template) {
                    template;
                    onLoad();
                });
                return;
            }
            req([
                'templating/parser!' + moduleName,
                'widget/Constructor'
            ], function (template, Constructor) {
                var Widget = Constructor.extend({
                    template: template
                });
                onLoad(Widget);
            });<commit_msg>Fixed dependency problem for wifget/parser<commit_after>/**
 * Created by guntars on 11/10/2014.
 */
/*globals setTimeout, define*/
// ### Requirejs plugin
// For to simplify `widget/Constructor` Class
// Usage Example
//
//      `<cp-widget src="widget/parser!widget.html"></cp-widget>`
//
//  This savining to create extra unnecessary javascript file.
//
//      define([
//          'templating/parser!widget.html',
//          'widget/Constructor'
//      ], function (template, Constructor) {
//          var Widget = Constructor.extend({
//              template: template
//          });
//          return Widget;
//      });

define(function () {
    function getName(fileName) {
        return (/[.]/.exec(fileName)) ? /[^.]+$/.exec(fileName) : undefined;
    }

    return {
        version: "0.1.0",
        load: function (moduleName, req, onLoad, config) {
            moduleName = (getName(moduleName) !== undefined) ? moduleName : moduleName + '.html';
            define('widget/parser!' + moduleName,
                [
                    'templating/parser!' + moduleName,
                    'widget/Constructor'
                ], function (template, Constructor) {
                    var Widget = Constructor.extend({
                        template: template
                    });
                    return Widget;
                });
            req(['widget/parser!' + moduleName], function (Widget) {
                onLoad(Widget);
            });
{'fraction_non_alphanumeric': 0.14561812729090304, 'fraction_numerical': 0.007330889703432189, 'mean_word_length': 1.5483870967741935, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5408353', 'n_tokens_mistral': 808, 'n_tokens_neox': 764, 'n_words': 173}