<commit_before><?php

echo _tag( 'h2' , __( 'Events' ) );
echo _open( 'ol.dm_calendar.clearfix' );
if ($calendar->getOption( 'showWeekDays' ))
{

	foreach ($calendar->getWeekDayNames() as $weekDayName)
	{
		echo _open( 'li.week-day' );
		echo $weekDayName;
		echo _close( 'li.week-day' );
	}
}
// preceding days
foreach ($calendar->getPreceedingDays() as $day)
{
	echo _open( 'li.day.prev' );

	if ($calendar->getOption( 'numberPadDays' ))
	{
		echo $day;
	}
	echo _close( 'li.day.prev' );
}

// month days
foreach ($calendar->getDays() as $day)
{
	$dayContent = '';
	$dayTagOptions = '.day';
	$dayTagOptions .= $calendar->isCurrentDay( $day ) ? '.current' : '';
	$dayTagOptions .= $day->hasAnyEvents() ? '.events' : '';
	$dayTagOptions .= $day->hasManyEvents() ? '.multi' : '';
	$isFirstEvent = true;

	if (!$day->hasAnyEvents())
	{
		$dayContent .= $day;
	}
	foreach ($day->getEvents() as $event)
	{
		if ($event instanceof dmHtmlCalendarEventInterface)
		{
			$dayTagOptions .= $calendar->parseClasses( $event->getAdditionalDayClasses() );
			$dayContent .= $event->renderEvent( $day , $isFirstEvent );
		} else
		{
			$dayContent .= $day . $event;
		}
		if ($isFirstEvent)
		{
			$isFirstEvent = false;
		}
	}
	echo _open( 'li' . $dayTagOptions );
	echo $dayContent;
	echo _close( 'li.day' );
}

// following days
foreach ($calendar->getFollowingDays() as $day)
{
	echo _open( 'li.day.next' );
	if ($calendar->getOption( 'numberPadDays' ))
	{
		echo $day;
	}
	echo _close( 'li.day.next' );
}

echo _close( 'ol.dm_calendar' );<commit_msg>Fix: Modified the partial to match the new $day parameter from the previous commit<commit_after><?php

echo _tag( 'h2' , __( 'Events' ) );
echo _open( 'ol.dm_calendar.clearfix' );
if ($calendar->getOption( 'showWeekDays' ))
{

	foreach ($calendar->getWeekDayNames() as $weekDayName)
	{
		echo _open( 'li.week-day' );
		echo $weekDayName;
		echo _close( 'li.week-day' );
	}
}
// preceding days
foreach ($calendar->getPreceedingDays() as $day)
{
	echo _open( 'li.day.prev' );

	if ($calendar->getOption( 'numberPadDays' ))
	{
		echo $day;
	}
	echo _close( 'li.day.prev' );
}

// month days
foreach ($calendar->getDays() as $day)
{
	$dayContent = '';
	$dayTagOptions = '.day';
	$dayTagOptions .= $calendar->isCurrentDay( $day ) ? '.current' : '';
	$dayTagOptions .= $day->hasAnyEvents() ? '.events' : '';
	$dayTagOptions .= $day->hasManyEvents() ? '.multi' : '';
	$isFirstEvent = true;

	if (!$day->hasAnyEvents())
	{
		$dayContent .= $day;
	}
	foreach ($day->getEvents() as $event)
	{
		if ($event instanceof dmHtmlCalendarEventInterface)
		{
			$dayTagOptions .= $calendar->parseClasses( $event->getAdditionalDayClasses($day) );
			$dayContent .= $event->renderEvent( $day , $isFirstEvent );
		} else
		{
			$dayContent .= $day . $event;
		}
		if ($isFirstEvent)
		{
			$isFirstEvent = false;
		}
	}
	echo _open( 'li' . $dayTagOptions );
	echo $dayContent;
	echo _close( 'li.day' );
}

// following days
foreach ($calendar->getFollowingDays() as $day)
{
	echo _open( 'li.day.next' );
	if ($calendar->getOption( 'numberPadDays' ))
	{
		echo $day;
	}
	echo _close( 'li.day.next' );
}

echo _close( 'ol.dm_calendar' );
{'fraction_non_alphanumeric': 0.1949286846275753, 'fraction_numerical': 0.0006339144215530904, 'mean_word_length': 3.946708463949843, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '6814776', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1177, 'n_words': 247}