<commit_before>"use strict";
describe('Unit : Controller - ContentHomeCtrl', function () {

// load the controller's module

    var ContentHome, scope, Modals, SocialDataStore, $timeout, $q, Buildfire, EVENTS;

    beforeEach(module('socialPluginContent'));

    beforeEach(inject(function ($controller, _$rootScope_, _Modals_, _$timeout_, _$q_ ,EVENTS) {
            scope = _$rootScope_.$new();
            Modals = jasmine.createSpyObj('Modals',['removePopupModal','open','banPopupModal']);
            SocialDataStore = jasmine.createSpyObj('SocialDataStore',['getPosts','getUsers','deletePost','deleteComment','banUser','getCommentsOfAPost','getThreadLikes']);

            $timeout = _$timeout_;
            $q = _$q_;

        Buildfire = {
            datastore: {
                get: function () {
                    return true
                },
                insert: function () {
                    return true
                }
            },
            messaging: {

            },
            getContext:function(){

            }
        };
        Buildfire = jasmine.createSpyObj('Buildfire', ['getContext', '.sendMessageToWidget', '']);
        Buildfire.messaging = jasmine.createSpyObj('messaging', ['onReceivedMessage', 'sendMessageToWidget', '']);
        Buildfire.datastore = jasmine.createSpyObj('datastore', ['get', '.sendMessageToWidget', '']);
        Buildfire.imageLib = jasmine.createSpyObj('imageLib', ['cropImage']);<commit_msg>add history fake functions<commit_after>"use strict";
describe('Unit : Controller - ContentHomeCtrl', function () {

// load the controller's module

    var ContentHome, scope, Modals, SocialDataStore, $timeout, $q, Buildfire, EVENTS;

    beforeEach(module('socialPluginContent'));

    beforeEach(inject(function ($controller, _$rootScope_, _Modals_, _$timeout_, _$q_ ,EVENTS) {
            scope = _$rootScope_.$new();
            Modals = jasmine.createSpyObj('Modals',['removePopupModal','open','banPopupModal']);
            SocialDataStore = jasmine.createSpyObj('SocialDataStore',['getPosts','getUsers','deletePost','deleteComment','banUser','getCommentsOfAPost','getThreadLikes']);

            $timeout = _$timeout_;
            $q = _$q_;

        Buildfire = {
            datastore: {
                get: function () {
                    return true
                },
                insert: function () {
                    return true
                }
            },
            history:{
                push:function(){},
                pop:function(){},
                onPop:function(){}
            },
            messaging: {

            },
            getContext:function(){

            }
        };
        Buildfire = jasmine.createSpyObj('Buildfire', ['getContext', '.sendMessageToWidget', '']);
        Buildfire.messaging = jasmine.createSpyObj('messaging', ['onReceivedMessage', 'sendMessageToWidget', '']);
        Buildfire.datastore = jasmine.createSpyObj('datastore', ['get', '.sendMessageToWidget', '']);
        Buildfire.imageLib = jasmine.createSpyObj('imageLib', ['cropImage']);
{'fraction_non_alphanumeric': 0.143180349062702, 'fraction_numerical': 0.0, 'mean_word_length': 2.404840484048405, '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': '4821276', 'n_tokens_mistral': 862, 'n_tokens_neox': 812, 'n_words': 134}