<commit_before>var tests = [];
var APP_SPEC_REG_EXP = /^\/base\/app\/scripts\/(.*)\.js$/;

for (var file in window.__karma__.files) {
    if (window.__karma__.files.hasOwnProperty(file)) {
        if (/[sS]pec\.js$/.test(file)) {
            var matches = APP_SPEC_REG_EXP.exec(file);
            if (matches && matches.length === 2) {
                tests.push(matches[1]);
            } else {
                tests.push(file);
            }
        }
    }
}

// core
tests.push('superdesk/mocks');
tests.push('superdesk/api/api');
tests.push('superdesk/auth/auth');
tests.push('superdesk/menu/menu');
tests.push('superdesk/editor/editor');
tests.push('superdesk/notify/notify');
tests.push('superdesk/activity/activity');
tests.push('superdesk/menu/notifications/notifications');
tests.push('superdesk/services/translate');
tests.push('superdesk/services/modalService');
tests.push('superdesk/services/preferencesService');
tests.push('superdesk/features/features');
tests.push('superdesk/services/asset');
tests.push('superdesk/services/image-factory');
tests.push('superdesk/privileges/privileges');
tests.push('superdesk/notification/notification');
tests.push('superdesk/itemList/itemList');
tests.push('superdesk/ui/ui');
tests.push('superdesk/upload/upload');
tests.push('superdesk/list/list');
tests.push('superdesk/keyboard/keyboard');
tests.push('superdesk/services/storage');
tests.push('superdesk/beta/beta');
tests.push('superdesk/filters');

// apps
tests.push('superdesk-authoring/authoring');
tests.push('superdesk-authoring/widgets/widgets');
tests.push('superdesk-authoring/comments/comments');
tests.push('superdesk-authoring/workqueue/workqueue');
tests.push('superdesk-authoring/metadata/metadata');
tests.push('superdesk-authoring/versioning/versioning');
tests.push('superdesk-authoring/versioning/versions/versions');
tests.push('superdesk-authoring/versioning/history/history');
tests.push('superdesk-authoring/packages/packages');
tests.push('superdesk-authoring/editor/find-replace');
tests.push('superdesk-authoring/multiedit/multiedit');
tests.push('superdesk-authoring/macros/macros');

tests.push('superdesk-content-filters/content-filters');

tests.push('superdesk-workspace/content/content');
tests.push('superdesk-packaging/packaging');
tests.push('superdesk-desks/desks');
tests.push('superdesk-desks/aggregate');
tests.push('superdesk-desks/aggregate-widget/aggregate');
tests.push('superdesk-groups/groups');
tests.push('superdesk-search/search');
tests.push('superdesk-legal-archive/legal_archive');

tests.push('superdesk-ingest/module');

tests.push('superdesk-users/users');
tests.push('superdesk-users/profile');
tests.push('superdesk-users/activity/activity');
tests.push('superdesk-users/import/import');

tests.push('superdesk-dashboard/module');
tests.push('superdesk-dashboard/workspace-tasks/tasks');

tests.push('superdesk-archive/module');
tests.push('superdesk-archive/directives');

tests.push('superdesk-dictionaries/dictionaries');
tests.push('superdesk-vocabularies/vocabularies');
tests.push('superdesk-publish/publish');
tests.push('superdesk/editor/spellcheck/spellcheck');
tests.push('superdesk-templates/templates');
tests.push('superdesk-highlights/highlights');
tests.push('superdesk-monitoring/monitoring');
tests.push('superdesk-workspace/workspace');

// libs
tests.push('bower_components/ment.io/dist/mentio');
tests.push('bower_components/angular-embed/dist/angular-embed');
tests.push('bower_components/angular-embedly/angular-embedly');

tests.push('angular-ui');
tests.push('angular-resource');
tests.push('angular-route');
tests.push('angular-file-upload');
tests.push('moment');
tests.push('lodash');

requirejs.config({
    baseUrl: '/base/app/scripts',
    deps: ['angular-mocks', 'angular-gettext', 'gettext', 'angular'],

    callback: function() {
        'use strict';
        require(tests, window.__karma__.start);
    },

    paths: {
        jquery: 'bower_components/jquery/dist/jquery',
        bootstrap: 'bower_components/bootstrap/js',
        angular: 'bower_components/angular/angular',
        moment: 'bower_components/momentjs/moment',
        lodash: 'bower_components/lodash/lodash',
        d3: 'bower_components/d3/d3',
        'angular-resource': 'bower_components/angular-resource/angular-resource',
        'angular-gettext': 'bower_components/angular-gettext/dist/angular-gettext',
        'angular-route': 'bower_components/angular-route/angular-route',
        'angular-mocks': 'bower_components/angular-mocks/angular-mocks',
        'angular-ui': 'bower_components/angular-bootstrap/ui-bootstrap-tpls',
        'angular-file-upload': 'bower_components/ng-file-upload/angular-file-upload',<commit_msg>new editor: karma test fixed<commit_after>var tests = [];
var APP_SPEC_REG_EXP = /^\/base\/app\/scripts\/(.*)\.js$/;

for (var file in window.__karma__.files) {
    if (window.__karma__.files.hasOwnProperty(file)) {
        if (/[sS]pec\.js$/.test(file)) {
            var matches = APP_SPEC_REG_EXP.exec(file);
            if (matches && matches.length === 2) {
                tests.push(matches[1]);
            } else {
                tests.push(file);
            }
        }
    }
}

// core
tests.push('superdesk/mocks');
tests.push('superdesk/api/api');
tests.push('superdesk/auth/auth');
tests.push('superdesk/menu/menu');
tests.push('superdesk/editor/editor');
tests.push('superdesk/notify/notify');
tests.push('superdesk/activity/activity');
tests.push('superdesk/menu/notifications/notifications');
tests.push('superdesk/services/translate');
tests.push('superdesk/services/modalService');
tests.push('superdesk/services/preferencesService');
tests.push('superdesk/features/features');
tests.push('superdesk/services/asset');
tests.push('superdesk/services/image-factory');
tests.push('superdesk/privileges/privileges');
tests.push('superdesk/notification/notification');
tests.push('superdesk/itemList/itemList');
tests.push('superdesk/ui/ui');
tests.push('superdesk/upload/upload');
tests.push('superdesk/list/list');
tests.push('superdesk/keyboard/keyboard');
tests.push('superdesk/services/storage');
tests.push('superdesk/beta/beta');
tests.push('superdesk/filters');

// apps
tests.push('superdesk-authoring/authoring');
tests.push('superdesk-authoring/widgets/widgets');
tests.push('superdesk-authoring/comments/comments');
tests.push('superdesk-authoring/workqueue/workqueue');
tests.push('superdesk-authoring/metadata/metadata');
tests.push('superdesk-authoring/versioning/versioning');
tests.push('superdesk-authoring/versioning/versions/versions');
tests.push('superdesk-authoring/versioning/history/history');
tests.push('superdesk-authoring/packages/packages');
tests.push('superdesk-authoring/editor/find-replace');
tests.push('superdesk-authoring/multiedit/multiedit');
tests.push('superdesk-authoring/macros/macros');

tests.push('superdesk-content-filters/content-filters');

tests.push('superdesk-workspace/content/content');
tests.push('superdesk-packaging/packaging');
tests.push('superdesk-desks/desks');
tests.push('superdesk-desks/aggregate');
tests.push('superdesk-desks/aggregate-widget/aggregate');
tests.push('superdesk-groups/groups');
tests.push('superdesk-search/search');
tests.push('superdesk-legal-archive/legal_archive');

tests.push('superdesk-ingest/module');

tests.push('superdesk-users/users');
tests.push('superdesk-users/profile');
tests.push('superdesk-users/activity/activity');
tests.push('superdesk-users/import/import');

tests.push('superdesk-dashboard/module');
tests.push('superdesk-dashboard/workspace-tasks/tasks');

tests.push('superdesk-archive/module');
tests.push('superdesk-archive/directives');

tests.push('superdesk-dictionaries/dictionaries');
tests.push('superdesk-vocabularies/vocabularies');
tests.push('superdesk-publish/publish');
tests.push('superdesk/editor/spellcheck/spellcheck');
tests.push('superdesk-templates/templates');
tests.push('superdesk-highlights/highlights');
tests.push('superdesk-monitoring/monitoring');
tests.push('superdesk-workspace/workspace');

// libs
tests.push('bower_components/ment.io/dist/mentio');
tests.push('bower_components/angular-embed/dist/angular-embed');
tests.push('bower_components/angular-embedly/angular-embedly');
tests.push('bower_components/angular-contenteditable/angular-contenteditable');

tests.push('angular-ui');
tests.push('angular-resource');
tests.push('angular-route');
tests.push('angular-file-upload');
tests.push('moment');
tests.push('lodash');

requirejs.config({
    baseUrl: '/base/app/scripts',
    deps: ['angular-mocks', 'angular-gettext', 'gettext', 'angular'],

    callback: function() {
        'use strict';
        require(tests, window.__karma__.start);
    },

    paths: {
        jquery: 'bower_components/jquery/dist/jquery',
        bootstrap: 'bower_components/bootstrap/js',
        angular: 'bower_components/angular/angular',
        moment: 'bower_components/momentjs/moment',
        lodash: 'bower_components/lodash/lodash',
        d3: 'bower_components/d3/d3',
        'angular-resource': 'bower_components/angular-resource/angular-resource',
        'angular-gettext': 'bower_components/angular-gettext/dist/angular-gettext',
        'angular-route': 'bower_components/angular-route/angular-route',
        'angular-mocks': 'bower_components/angular-mocks/angular-mocks',
        'angular-ui': 'bower_components/angular-bootstrap/ui-bootstrap-tpls',
        'angular-file-upload': 'bower_components/ng-file-upload/angular-file-upload',
{'fraction_non_alphanumeric': 0.17656956567462403, 'fraction_numerical': 0.001051635292880429, 'mean_word_length': 5.41267700606878, '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': '3581068', 'n_tokens_mistral': 3127, 'n_tokens_neox': 3092, 'n_words': 278}