<commit_before>describe('Catenaccio', function () {
    'use strict';

    var Catenaccio = require('./Catenaccio');

    it('should save tactics', function () {
        var catenaccio = new Catenaccio();
        catenaccio.get();
        catenaccio.save();
        expect(catenaccio.notification.getAttribute('notification-tooltip')).toBe('Saved!');
    });

    it('should redirect after save', function () {
        var catenaccio = new Catenaccio();
        catenaccio.get();
        catenaccio.save();
        expect(browser.getCurrentUrl()).toMatch(/[A-Za-z0-9_\-]{7,12}/);
    });
});<commit_msg>Use then<commit_after>describe('Catenaccio', function () {
    'use strict';

    var Catenaccio = require('./Catenaccio');

    it('should save tactics', function () {
        var catenaccio = new Catenaccio();
        catenaccio.get();
        catenaccio.save();
        catenaccio.notification.getAttribute('notification-tooltip').then(function (notification) {
            expect(notification).toBe('Saved!');
        });
    });

    it('should redirect after save', function () {
        var catenaccio = new Catenaccio();
        catenaccio.get();
        catenaccio.save();
        expect(browser.getCurrentUrl()).toMatch(/[A-Za-z0-9_\-]{7,12}/);
    });
});
{'fraction_non_alphanumeric': 0.17178881008668243, 'fraction_numerical': 0.007880220646178092, 'mean_word_length': 2.860182370820669, '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': '2942718', 'n_tokens_mistral': 400, 'n_tokens_neox': 392, 'n_words': 63}