<commit_before>$(function() {

    $(document).on('click', '.trigger', function(event) {

        event.preventDefault();
        event.stopPropagation();


        var thisTrigger = $(this),
            thisTarget = thisTrigger.data('target'),
            siblingTarget;

        thisTrigger.toggleClass('open');

        $(thisTarget).toggleClass('dn');



        $('.trigger').each(function() {

            siblingTarget = $(this).data('target');

            if (siblingTarget !== thisTarget) {

                $(this).removeClass('open');

                $($(this).data('target')).addClass('dn');

            }

        });<commit_msg>Updated siblingTarget in the each loop instead of pulling data attribute again<commit_after>$(function() {

    $(document).on('click', '.trigger', function(event) {

        event.preventDefault();
        event.stopPropagation();


        var thisTrigger = $(this),
            thisTarget = thisTrigger.data('target'),
            siblingTarget;

        thisTrigger.toggleClass('open');

        $(thisTarget).toggleClass('dn');



        $('.trigger').each(function() {

            siblingTarget = $(this).data('target');

            if (siblingTarget !== thisTarget) {

                $(this).removeClass('open');

                $(siblingTarget).addClass('dn');

            }

        });
{'fraction_non_alphanumeric': 0.1664190193164933, 'fraction_numerical': 0.0, 'mean_word_length': 2.1108545034642034, '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': '4345694', 'n_tokens_mistral': 358, 'n_tokens_neox': 336, 'n_words': 55}