<commit_before>describe('NotificationService', function() {

    var userId = "@ali:matrix.org";
    var displayName = "<NAME>";
    var bingWords = ["coffee","foo(.*)bar"]; // literal and wildcard

    var modelService = {
        getRooms: function(){}
    };

    beforeEach(function() {
        // mocked dependencies
        module(function ($provide) {
          $provide.value('modelService', modelService);
        });

        module('notificationService');
    });
    
    // User IDs
    
    it('should bing on a user ID.', inject(
    function(notificationService) {
        expect(notificationService.containsBingWord(userId, displayName, 
        bingWords, "Hello @ali:matrix.org, how are you?")).toEqual(true);
    }));
    
    it('should bing on a partial user ID.', inject(<commit_msg>Mock mPresence for notificationservice<commit_after>describe('NotificationService', function() {

    var userId = "@ali:matrix.org";
    var displayName = "<NAME>";
    var bingWords = ["coffee","foo(.*)bar"]; // literal and wildcard

    var modelService = {
        getRooms: function(){}
    };

    var mPresence = {
        getState: function() {
            return testPresenceState;
        }
    };

    beforeEach(function() {
        // mocked dependencies
        module(function ($provide) {
          $provide.value('modelService', modelService);
          $provide.value('mPresence', mPresence);
        });

        module('notificationService');
    });
    
    // User IDs
    
    it('should bing on a user ID.', inject(
    function(notificationService) {
        expect(notificationService.containsBingWord(userId, displayName, 
        bingWords, "Hello @ali:matrix.org, how are you?")).toEqual(true);
    }));
    
    it('should bing on a partial user ID.', inject(
{'fraction_non_alphanumeric': 0.1403118040089087, 'fraction_numerical': 0.0, 'mean_word_length': 2.6303030303030304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2271378', 'n_tokens_mistral': 516, 'n_tokens_neox': 492, 'n_words': 114}