<commit_before>'use strict';

describe('Content', function() {

    describe('word content', function() {
        var scope;
        var element;
        var compile;
        var template;
        beforeEach(function(){
            module('thumbnailModule');
        });

        beforeEach(inject(function($rootScope,$compile,$templateCache) {
            scope = $rootScope.$new();
            compile = $compile;
            template = $templateCache;
        }));

        it('Should initialize word with details', function() {
            scope.name1='<NAME>';
            scope.customStyle1='someStyle';
            scope.introduction1='meaning';
            scope.overlay1='overlayId',

            element = angular.element('<word-thumbnail overlay-id="{{overlay1}}" custom-style="{{customStyle1}}" transliteration="{{name1}}" introduction-summary="{{introduction1}}"></word-thumbnail>');
            template.put('/user-js/common/templates/thumbnail/wordThumbnail.html', '<div>{{overlayId}} {{customStyle}} {{transliteration}} {{introductionSummary}}</div>');
            compile(element)(scope);
            scope.$apply();

            expect(element.html()).toBe('overlayId someStyle some Name meaning');
        });
    });
});<commit_msg>Fixing test<commit_after>'use strict';

describe('Content', function() {

    describe('word content', function() {
        var scope;
        var element;
        var compile;
        var template;
        beforeEach(function(){
            module('thumbnailModule');
        });

        beforeEach(inject(function($rootScope,$compile,$templateCache) {
            scope = $rootScope.$new();
            compile = $compile;
            template = $templateCache;
        }));

        it('Should initialize word with details', function() {
            scope.name1='<NAME>';
            scope.customStyle1='someStyle';
            scope.introduction1='meaning';
            scope.overlay1='overlayId',

            element = angular.element('<word-thumbnail overlay-id="{{overlay1}}" custom-style="{{customStyle1}}" transliteration="{{name1}}" english-intro-excerpt="{{introduction1}}"></word-thumbnail>');
            template.put('/user-js/common/templates/thumbnail/wordThumbnail.html', '<div>{{overlayId}} {{customStyle}} {{transliteration}} {{englishIntroExcerpt}}</div>');
            compile(element)(scope);
            scope.$apply();

            expect(element.html()).toBe('overlayId someStyle some Name meaning');
        });
    });
});
{'fraction_non_alphanumeric': 0.16340391530163803, 'fraction_numerical': 0.006392329204954055, 'mean_word_length': 2.687776141384389, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '928775', 'n_tokens_mistral': 647, 'n_tokens_neox': 619, 'n_words': 105}