<commit_before>describe('WidgetMedia Controller', function () {
    beforeEach(module('mediaCenterWidget'));

    var $controller, $scope, Orders, COLLECTIONS, DB, $timeout, Buildfire, $rootScope, Messaging, AppConfig, media, WidgetMedia;

    beforeEach(inject(function (_$controller_, _COLLECTIONS_, _Orders_, _DB_, _$timeout_, _$rootScope_) {
            // The injector unwraps the underscores (_) from around the parameter names when matching
            $controller = _$controller_;
            COLLECTIONS = _COLLECTIONS_;
            DB = _DB_;
            $timeout = _$timeout_;
            $rootScope = _$rootScope_;
            $scope = $rootScope.$new();
            Orders = _Orders_;
            Buildfire = {
                navigation: {
                    openWindow: jasmine.createSpy()
                },
                datastore: {
                    onUpdate: function () {
                    }
                },
                actionItems: {execute: jasmine.createSpy()}
            };
            WidgetMedia = $controller('WidgetMediaCtrl', {
                $scope: $scope,
                item: {
                    data: {
                        content: {<commit_msg>test cases fixes for buildfire.datastore.disableRefresh<commit_after>describe('WidgetMedia Controller', function () {
    beforeEach(module('mediaCenterWidget'));

    var $controller, $scope, Orders, COLLECTIONS, DB, $timeout, Buildfire, $rootScope, Messaging, AppConfig, media, WidgetMedia;

    beforeEach(inject(function (_$controller_, _COLLECTIONS_, _Orders_, _DB_, _$timeout_, _$rootScope_) {
            // The injector unwraps the underscores (_) from around the parameter names when matching
            $controller = _$controller_;
            COLLECTIONS = _COLLECTIONS_;
            DB = _DB_;
            $timeout = _$timeout_;
            $rootScope = _$rootScope_;
            $scope = $rootScope.$new();
            Orders = _Orders_;
            Buildfire = {
                navigation: {
                    openWindow: jasmine.createSpy()
                },
                datastore: {
                    onUpdate: function () {
                    },
                    disableRefresh:function(){}
                },
                actionItems: {execute: jasmine.createSpy()}
            };
            WidgetMedia = $controller('WidgetMediaCtrl', {
                $scope: $scope,
                item: {
                    data: {
                        content: {
{'fraction_non_alphanumeric': 0.1001201441730076, 'fraction_numerical': 0.0, 'mean_word_length': 1.6350210970464134, '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': '3220017', 'n_tokens_mistral': 647, 'n_tokens_neox': 602, 'n_words': 139}