<commit_before>{strip}
{if !isset($ajax)}
	{assign var='ajax' value='y'}
{/if}
{if !isset($module)}
	{assign var='module' value='n'}
{/if}
{if empty($module_params.viewnavbar) || $module_params.viewnavbar eq 'y'}
<div class="clearfix tabrow" {if $module eq 'y'}style="padding: 0"{/if}>
	<div class="viewmode clearfix">
	{*today*}
	{if !isset($calendar_type) or $calendar_type neq "tiki_actions"}
			{if $module neq 'y'}
				{button _auto_args="viewmode,focus" _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff" _type="xs" viewmode='day' focus=$now todate=$now}
				<br>
			{else}
				{if empty($module_params.viewmode)}
					{button _auto_args="viewmode,focus" _keepall=y _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff"  _type="xs" viewmode='day' focus=$now todate=$now}
					<br>
				{else}
					{button _auto_args="focus" _keepall=y _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff"  _type="xs" focus=$now todate=$now}
					<br>
				{/if}
			{/if}
	{/if}

		<span style="display: inline-block">{strip}
{*previous*}
		<div>
		{if $viewmode eq "day"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Day{/tr}">{icon _id=resultset_previous alt="{tr}Day{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "week"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Week{/tr}">{icon _id=resultset_previous alt="{tr}Week{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "month"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Month{/tr}">{icon _id=resultset_previous alt="{tr}Month{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "quarter"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Quarter{/tr}">{icon _id=resultset_previous alt="{tr}Quarter{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "semester"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Semester{/tr}">{icon _id=resultset_previous alt="{tr}Semester{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "year"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Year{/tr}">{icon _id=resultset_previous alt="{tr}Year{/tr}"}</a> {* mobile *}
		{/if}
		</div>

{*viewmodes*}
		{if !isset($calendar_type) or $calendar_type neq "tiki_actions"}
			{if $module neq 'y'}
				{button _ajax=$ajax href="?viewmode=day" _title="{tr}Day{/tr}" _text="{tr}Day{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'day'"}
			{elseif empty($module_params.viewmode)}
				{button _ajax=$ajax viewmode='day' _auto_args="viewmode" _keepall='y' _title="{tr}Day{/tr}" _text="{tr}D{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'day'"}
			{/if}
		{/if}
		{if $module neq 'y'}
			{button _ajax=$ajax href="?viewmode=week" _title="{tr}Week{/tr}" _text="{tr}Week{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'week'"}
			{button _ajax=$ajax href="?viewmode=month" _title="{tr}Month{/tr}" _text="{tr}Month{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'month'"}
		{elseif empty($module_params.viewmode)}
			{button _ajax=$ajax viewmode='week' _auto_args="viewmode" _keepall='y' _title="{tr}Week{/tr}" _text="{tr}W{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'week'"}
			{button _ajax=$ajax viewmode='month' _auto_args="viewmode" _keepall='y' _title="{tr}Month{/tr}" _text="{tr}M{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'month'"}
		{/if}

		{if $module neq 'y'}
			{button _ajax=$ajax href="?viewmode=quarter" _title="{tr}Quarter{/tr}" _text="{tr}Quarter{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'quarter'"}
			{button href="?viewmode=semester" _title="{tr}Semester{/tr}" _text="{tr}Semester{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'semester'"}
			{button href="?viewmode=year" _ajax=$ajax viewmode=year _title="{tr}Year{/tr}" _text="{tr}Year{/tr}" _selected_class="buttonon"  _type="xs" _selected="'$viewmode' == 'year'"}
		{/if}

{*next*}
		<div>
		{if $viewmode eq "day"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _class='next' todate=$focus_next}" title="{tr}Day{/tr}">{icon _id=resultset_next alt="{tr}Day{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "week"}<commit_msg>[FIX] Buttons need btn-default class to get color style.<commit_after>{strip}
{if !isset($ajax)}
	{assign var='ajax' value='y'}
{/if}
{if !isset($module)}
	{assign var='module' value='n'}
{/if}
{if empty($module_params.viewnavbar) || $module_params.viewnavbar eq 'y'}
<div class="clearfix tabrow" {if $module eq 'y'}style="padding: 0"{/if}>
	<div class="viewmode clearfix">
	{*today*}
	{if !isset($calendar_type) or $calendar_type neq "tiki_actions"}
			{if $module neq 'y'}
				{button _auto_args="viewmode,focus" _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff" _type="xs btn-default" viewmode='day' focus=$now todate=$now}
				<br>
			{else}
				{if empty($module_params.viewmode)}
					{button _auto_args="viewmode,focus" _keepall=y _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff"  _type="xs btn-default" viewmode='day' focus=$now todate=$now}
					<br>
				{else}
					{button _auto_args="focus" _keepall=y _title="{tr}Today{/tr}" _text="{tr}Today{/tr}" _class="calbuttonoff"  _type="xs btn-default" focus=$now todate=$now}
					<br>
				{/if}
			{/if}
	{/if}

		<span style="display: inline-block">{strip}
{*previous*}
		<div>
		{if $viewmode eq "day"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Day{/tr}">{icon _id=resultset_previous alt="{tr}Day{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "week"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Week{/tr}">{icon _id=resultset_previous alt="{tr}Week{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "month"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Month{/tr}">{icon _id=resultset_previous alt="{tr}Month{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "quarter"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Quarter{/tr}">{icon _id=resultset_previous alt="{tr}Quarter{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "semester"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Semester{/tr}">{icon _id=resultset_previous alt="{tr}Semester{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "year"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _ajax=$ajax _class='prev' todate=$focus_prev}" title="{tr}Year{/tr}">{icon _id=resultset_previous alt="{tr}Year{/tr}"}</a> {* mobile *}
		{/if}
		</div>

{*viewmodes*}
		{if !isset($calendar_type) or $calendar_type neq "tiki_actions"}
			{if $module neq 'y'}
				{button _ajax=$ajax href="?viewmode=day" _title="{tr}Day{/tr}" _text="{tr}Day{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'day'"}
			{elseif empty($module_params.viewmode)}
				{button _ajax=$ajax viewmode='day' _auto_args="viewmode" _keepall='y' _title="{tr}Day{/tr}" _text="{tr}D{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'day'"}
			{/if}
		{/if}
		{if $module neq 'y'}
			{button _ajax=$ajax href="?viewmode=week" _title="{tr}Week{/tr}" _text="{tr}Week{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'week'"}
			{button _ajax=$ajax href="?viewmode=month" _title="{tr}Month{/tr}" _text="{tr}Month{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'month'"}
		{elseif empty($module_params.viewmode)}
			{button _ajax=$ajax viewmode='week' _auto_args="viewmode" _keepall='y' _title="{tr}Week{/tr}" _text="{tr}W{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'week'"}
			{button _ajax=$ajax viewmode='month' _auto_args="viewmode" _keepall='y' _title="{tr}Month{/tr}" _text="{tr}M{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'month'"}
		{/if}

		{if $module neq 'y'}
			{button _ajax=$ajax href="?viewmode=quarter" _title="{tr}Quarter{/tr}" _text="{tr}Quarter{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'quarter'"}
			{button href="?viewmode=semester" _title="{tr}Semester{/tr}" _text="{tr}Semester{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'semester'"}
			{button href="?viewmode=year" _ajax=$ajax viewmode=year _title="{tr}Year{/tr}" _text="{tr}Year{/tr}" _selected_class="buttonon"  _type="xs btn-default" _selected="'$viewmode' == 'year'"}
		{/if}

{*next*}
		<div>
		{if $viewmode eq "day"}
			<a {if $prefs.mobile_mode eq "y"}data-role="button" data-mini="true" data-inline="true" {/if}href="{query _type='relative' _ajax=$ajax _class='next' todate=$focus_next}" title="{tr}Day{/tr}">{icon _id=resultset_next alt="{tr}Day{/tr}"}</a> {* mobile *}
		{elseif $viewmode eq "week"}
{'fraction_non_alphanumeric': 0.22635747685847887, 'fraction_numerical': 0.00019085790628876802, 'mean_word_length': 6.957479119210326, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '2624115', 'n_tokens_mistral': 4324, 'n_tokens_neox': 4016, 'n_words': 721}