<commit_before>$(function() {
     var pgurl = window.location.href.replace(/^.*\/\/[^\/]+/, '');
     $(".c-nav__sublist__item .c-nav__link").each(function(){
	     console.log(pgurl);
	     console.log($(this).attr("href"));
          if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) {
          $(this).addClass("c-nav__link--is-active");
          }
     })
});

$('.c-nav__trigger').click(function(event) {
	var trigger = $('.c-nav__trigger');
	event.preventDefault();
	$('.c-nav').toggleClass('c-nav--is-active');
	trigger.toggleClass('c-nav__trigger--is-active');<commit_msg>Added an active class to the parent list item link when child is active URL<commit_after>$(function() {
     var pgurl = window.location.href.replace(/^.*\/\/[^\/]+/, '');
     $(".c-nav__sublist__item .c-nav__link").each(function(){
	     console.log(pgurl);
	     console.log($(this).attr("href"));
          if($(this).attr("href") == pgurl || $(this).attr("href") == '' ) {
          $(this).addClass("c-nav__link--is-active");
          $(this).parentsUntil('.c-nav__list').children('.c-nav__link').addClass('c-nav__link--is-active');
          }
     })
});

$('.c-nav__trigger').click(function(event) {
	var trigger = $('.c-nav__trigger');
	event.preventDefault();
	$('.c-nav').toggleClass('c-nav--is-active');
	trigger.toggleClass('c-nav__trigger--is-active');
{'fraction_non_alphanumeric': 0.2554904831625183, 'fraction_numerical': 0.0, 'mean_word_length': 3.33968253968254, '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': '3332547', 'n_tokens_mistral': 465, 'n_tokens_neox': 460, 'n_words': 52}