<commit_before>function shareSpec(share) {

    var describeSpec = 'Share module with click';

    describe(describeSpec, function () {

        it('clicking share link should open the popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            $('.summary').click();
            expect($('.share-popup.active').length).to.equal(1);
            $('.summary').click();
            expect($('.share-popup.active').length).to.equal(0);
        });

        it(' Pressing enter on share link should open popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            var e = jQuery.Event("keypress");
            e.which = 13; // # Some key code value
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(1);
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(0);
        });

        it('Pressing any key should not open share popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            var e = jQuery.Event("keypress");
            e.which = 12; // # Some key code value
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(0);
        });
    });

    return describeSpec;
}

if (window.define) {
    define('specs/share-spec', ['components/share'], function (share) { //, 'specs/popupSpec', , popupSpec
//            var popupDescription = popupSpec();
            return shareSpec(share);
        }
    );
}<commit_msg>BF: indented share spec<commit_after>function shareSpec(share) {

    var describeSpec = 'Share module with click';

    describe(describeSpec, function () {

        it('clicking share link should open the popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            $('.summary').click();
            expect($('.share-popup.active').length).to.equal(1);
            $('.summary').click();
            expect($('.share-popup.active').length).to.equal(0);
        });

        it(' Pressing enter on share link should open popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            var e = jQuery.Event("keypress");
            e.which = 13; // # Some key code value
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(1);
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(0);
        });

        it('Pressing any key should not open share popup', function () {
            expect($('.share-popup.active').length).to.equal(0);
            var e = jQuery.Event("keypress");
            e.which = 12; // # Some key code value
            $(".summary").trigger(e);
            expect($('.share-popup.active').length).to.equal(0);
        });
    });

    return describeSpec;
}

if (window.define) {
    define('specs/share-spec', ['components/share'], function (share) {
        return shareSpec(share);
    });
}
{'fraction_non_alphanumeric': 0.18790849673202614, 'fraction_numerical': 0.00784313725490196, 'mean_word_length': 2.14917695473251, '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': '6013515', 'n_tokens_mistral': 862, 'n_tokens_neox': 829, 'n_words': 164}