<commit_before><?php 
	global $post;

	$course_code = get_post_meta($post->ID, IT_PREFIX."course_code", true);
	$external = get_post_meta($post->ID, IT_PREFIX."course_site", true);
	$site = get_post_meta($post->ID, IT_PREFIX."course_link", true);
	$is_mandatory = get_post_meta($post->ID, IT_PREFIX."course_is_compulsory", true);

	get_header(); 
?>

<section class="main-col six columns push-three">	
	<div class="box">
	<?php the_post(); ?>

		<article role="article">
			<hgroup>	
				<h1><?php the_title();?></h1>
				<?php if($course_code):?>
				<h2 class="sub"><?php echo $course_code;?></h2>
				<?php endif;?>
			</hgroup>

			<div class="article-content">
				<?php the_content();?>
			</div>
		</article>
	</div>
</section>

<aside class="three columns pull-six">
	<nav class="side-nav">
		<a class="btn small back" href="<?php link_to("kurser");?>">Se alla kurser</a>
	</nav>
</aside>

<aside class="sidebar courses-sidebar three columns">
	<div class="box">
		<section>
			<?php if($external):?>
			<a href="<?php echo $external;?>" class="btn-alt wide read-more	">
				Kursens hemsida
			</a>
			<?php endif;?>
		</section>

		<section>
			<ul class="list">
				<li>
				<?php if($is_mandatory == "on") : ?>
					<strong><span class="positive">⚑</span> Obligatorisk kurs</strong>
				<?php else : ?>
					<span class="negative">✖</span> Kursen är inte obligatorisk
				<?php endif;?>
				</li>

				<?php if($site) : ?>
				<li>
					<a class="read-more" href="<?php echo $site; ?>">Kursens sida på Studieportalen</a>
				</li>
				<?php endif;?>
			</ul>
		</section>
	</div>
</aside>

<?php get_footer(); ?><commit_msg>Open course link in new tab<commit_after><?php 
	global $post;

	$course_code = get_post_meta($post->ID, IT_PREFIX."course_code", true);
	$external = get_post_meta($post->ID, IT_PREFIX."course_site", true);
	$site = get_post_meta($post->ID, IT_PREFIX."course_link", true);
	$is_mandatory = get_post_meta($post->ID, IT_PREFIX."course_is_compulsory", true);

	get_header(); 
?>

<section class="main-col six columns push-three">	
	<div class="box">
	<?php the_post(); ?>

		<article role="article">
			<hgroup>	
				<h1><?php the_title();?></h1>
				<?php if($course_code):?>
				<h2 class="sub"><?php echo $course_code;?></h2>
				<?php endif;?>
			</hgroup>

			<div class="article-content">
				<?php the_content();?>
			</div>
		</article>
	</div>
</section>

<aside class="three columns pull-six">
	<nav class="side-nav">
		<a class="btn small back" href="<?php link_to("kurser");?>">Se alla kurser</a>
	</nav>
</aside>

<aside class="sidebar courses-sidebar three columns">
	<div class="box">
		<section>
			<?php if($external):?>
			<a href="<?php echo $external;?>" target="_blank" class="btn-alt wide read-more	">
				Kursens hemsida
			</a>
			<?php endif;?>
		</section>

		<section>
			<ul class="list">
				<li>
				<?php if($is_mandatory == "on") : ?>
					<strong><span class="positive">⚑</span> Obligatorisk kurs</strong>
				<?php else : ?>
					<span class="negative">✖</span> Kursen är inte obligatorisk
				<?php endif;?>
				</li>

				<?php if($site) : ?>
				<li>
					<a class="read-more" href="<?php echo $site; ?>">Kursens sida på Studieportalen</a>
				</li>
				<?php endif;?>
			</ul>
		</section>
	</div>
</aside>

<?php get_footer(); ?>
{'fraction_non_alphanumeric': 0.21606060606060606, 'fraction_numerical': 0.0024242424242424242, 'mean_word_length': 3.9195230998509687, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 135, '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': '5478046', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1243, 'n_words': 272}