<commit_before>/* global loud, document, describe, it, beforeEach, afterEach, expect */
'use strict';

describe('karma-loud', function() {
    var button;

    beforeEach(function() {
        button = document.createElement('button');
        button.innerHTML = 'Join';
        document.body.appendChild(button);
    });

    afterEach(function() {
        document.body.removeChild(button);
    });

    it('works', function() {
        expect(loud.say(button)).toEqual([
            'Join', 'button'
        ]);
    });
});
<commit_msg>Improve Jasmine usage<commit_after>/* global loud, document, describe, it, beforeEach, afterEach, expect */
'use strict';

describe('karma-loud', function() {
    beforeEach(function() {
        this.button = document.createElement('button');
        this.button.innerHTML = 'Join';
        document.body.appendChild(this.button);
    });

    afterEach(function() {
        document.body.removeChild(this.button);
    });

    it('works', function() {
        expect(loud.say(this.button)).toEqual([
            'Join', 'button'
        ]);
    });
});

{'fraction_non_alphanumeric': 0.1684981684981685, 'fraction_numerical': 0.0, 'mean_word_length': 2.808362369337979, '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': '2584928', 'n_tokens_mistral': 319, 'n_tokens_neox': 311, 'n_words': 56}