<commit_before>"use strict";

describe("HomeCtrl", function (){

    var scope, rootScope, _timeout, _filter, _cache, _projects, _jobs, _GREETINGS;

    beforeEach(function(){
        module("thisissoon.core");
    });

    beforeEach(inject(function ($rootScope, $injector, $controller) {

        scope = $rootScope.$new();

        rootScope = $rootScope;

        _timeout = $injector.get("$timeout");
        _filter = $injector.get("$filter");

        _cache = $injector.get("CacheService");
        spyOn(_cache, "get");
        spyOn(_cache, "put");

        _projects = {
            list: [
                {
                    title: "A project title",
                    background_colour: "#FFFFFF"
                },{
                    title: "Another project's title",
                    background_colour: "#000000"
                }
            ]
        }

        _jobs = {
            list: []
        }

        _GREETINGS = [
            {
                "text": "Midnight",
                "image": ""
            },{
                "text": "1",
                "image": ""
            },{
                "text": "2",
                "image": ""
            }
        ];

        $controller("HomeCtrl", {
            $scope: scope,
            $rootScope: rootScope,
            $timeout: _timeout,
            $filter: _filter,
            CacheService: _cache,
            projects: _projects,<commit_msg>fix HomeCtrl test<commit_after>"use strict";

describe("HomeCtrl", function (){

    var scope, rootScope, _timeout, _filter, _document, _cache, _projects, _jobs, _GREETINGS;

    beforeEach(function(){
        module("thisissoon.core");
    });

    beforeEach(inject(function ($rootScope, $injector, $controller) {

        scope = $rootScope.$new();

        rootScope = $rootScope;

        _timeout = $injector.get("$timeout");
        _filter = $injector.get("$filter");

        _document = $injector.get("$document");
        _document.duScrollTop = function(left, top){
            return {
                then: function(fn){ fn.apply(this); }
            };
        }

        _cache = $injector.get("CacheService");
        spyOn(_cache, "get");
        spyOn(_cache, "put");

        _projects = {
            list: [
                {
                    title: "A project title",
                    background_colour: "#FFFFFF"
                },{
                    title: "Another project's title",
                    background_colour: "#000000"
                }
            ]
        }

        _jobs = {
            list: []
        }

        _GREETINGS = [
            {
                "text": "Midnight",
                "image": ""
            },{
                "text": "1",
                "image": ""
            },{
                "text": "2",
                "image": ""
            }
        ];

        $controller("HomeCtrl", {
            $scope: scope,
            $rootScope: rootScope,
            $timeout: _timeout,
            $filter: _filter,
            $document: _document,
            CacheService: _cache,
            projects: _projects,
{'fraction_non_alphanumeric': 0.13350367294793997, 'fraction_numerical': 0.005110188438198659, 'mean_word_length': 1.2844638949671772, 'pattern_counts': {'":': 12, '<': 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': '2974639', 'n_tokens_mistral': 897, 'n_tokens_neox': 812, 'n_words': 157}