<commit_before>describe('dataservice', function () {
    var $controller,
        dataservice,
        $httpBackend,
        $location,
        $q,
        $rootScope,
        $route,
        scope,
        toastr,
        mocks = {};

    beforeEach(function () {
        module('app', loggerFake);
        inject(function (_$controller_, _$httpBackend_, _$location_, _$q_, _$rootScope_, _$route_, _dataservice_, _toastr_) {
            $controller = _$controller_;
            $httpBackend = _$httpBackend_;
            $location = _$location_;
            $q = _$q_;
            $rootScope = _$rootScope_;
            $route = _$route_;
            dataservice = _dataservice_;
            toastr = _toastr_;
        });
    });

    beforeEach(function () {
        $httpBackend.when('GET', 'app/dashboard/dashboard.html').respond(200);
        $httpBackend.flush();

        mocks.maaData = [{ 
            data: { results: testctx.getMockAvengers() }
        }];
        // sinon.stub(dataservice, 'getAvengers', function () {
        //     var deferred = $q.defer();
        //     deferred.resolve(testctx.getMockAvengers());
        //     return deferred.promise;
        // });<commit_msg>modular: simple data service exists test<commit_after>describe('dataservice', function () {
    var $controller,
        dataservice,
        $httpBackend,
        $location,
        $q,
        $rootScope,
        $route,
        scope,
        toastr,
        mocks = {};

    beforeEach(function () {
        module('app', loggerFake);
        inject(function (_$controller_, _$httpBackend_, _$location_, _$q_, _$rootScope_, _$route_, _dataservice_, _toastr_) {
            $controller = _$controller_;
            $httpBackend = _$httpBackend_;
            $location = _$location_;
            $q = _$q_;
            $rootScope = _$rootScope_;
            $route = _$route_;
            dataservice = _dataservice_;
            toastr = _toastr_;
        });
    });

    beforeEach(function () {
        $httpBackend.when('GET', 'app/dashboard/dashboard.html').respond(200);
        $httpBackend.flush();

        mocks.maaData = [{ 
            data: { results: testctx.getMockAvengers() }
        }];
        // sinon.stub(dataservice, 'getAvengers', function () {
        //     var deferred = $q.defer();
        //     deferred.resolve(testctx.getMockAvengers());
        //     return deferred.promise;
        // });
    });

    it("should be registered", function() {
      expect(dataservice).not.to.equal(null);
{'fraction_non_alphanumeric': 0.13884493670886075, 'fraction_numerical': 0.0023734177215189874, 'mean_word_length': 1.8969072164948453, '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': '1875165', 'n_tokens_mistral': 747, 'n_tokens_neox': 740, 'n_words': 126}