<commit_before>## mako

<%namespace name='static' file='/static_content.html'/>
<%
from django.conf import settings
%>

<meta property="og:url" content="http://thegymnasium.com/" />
<meta property="og:title" content="Aquent Gymnasium" />
<meta property="og:image" content="${static.url('images/social-share-400.png')}" />
<meta property="og:description" content="At Aquent Gymnasium, we offer free online courses focused on HTML and CSS, responsive design, UX design, and an array of front-end development tools." />
<meta property="og:keywords" content="free online courses" />


<!-- insert typekit font references -->
<script src="//use.typekit.net/rhf0qta.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

<!-- bootstrap! -->
<!-- local reference for offline testing only -->
<!-- <link rel="stylesheet" href="${static.url('css/bootstrap.css')}" > -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js"></script>

<script src="${static.url('js/prism.js')}"> </script>
<script src="${static.url('js/cookiebanner.js')}" id="cookiebanner"
	data-link="#f89820"
	data-message="We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Find out more about how we use cookies in our"
	data-linkmsg="Privacy Policy."
	data-moreinfo="/privacy">
</script>

## inject some global variables from configurations
<script>
  var CLOUDWALL_ENV = "${settings.APPSEMBLER_FEATURES['CLOUDWALL_SERVER_PATH']}";
</script>

<script src="${static.url('js/gymnasium.js')}"> </script>


<script>
  // check for unsupported browsers; display warning message if an old browser
  // is in use

  $(function(){
    // This function returns Internet Explorer's major version number,
    // or 0 for others. It works by finding the "MSIE " string and
    // extracting the version number following the space, up to the decimal
    // point, ignoring the minor version number
    // for more info, see: https://support.microsoft.com/en-us/kb/167820
    function msieversion()
    {
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 0
         return 0
    }

    function displayBrowserWarning()
    {
      $('#browserWarning').show();
    }

    var ieversion = msieversion();
    // make sure that we are using IE > 9
    if (ieversion > 0 && ieversion < 11)
    {
      displayBrowserWarning();
    }

  });


	//this is a nonsense hack to make courseware subnavigation look like
	//what we want it to look like until we move to Cypress
	//TODO: Unhackify this.
	$(function(){
		$('.course-tabs li a b:contains("Course")').each(function(idx, value){
			value.innerHTML = "Lessons";
		});

		$('.course-tabs li a b:contains("Home")').each(function(idx,value){
			value.innerHTML = "Syllabus";
		});

    // make sure lessons tab comes first
    var syllabusTab = $('.course-tabs li:contains("Lessons")');
    $(syllabusTab).prependTo(
      $(syllabusTab).parent()
    );

		$('.course-tabs li a:contains("Forum")').each(function(idx,value){
			//TODO: Unhack this silly logic to hide forum tab for gym shorts

			//we're looking at the href property of this anchor to see if it contains
			//a course link that has "Gym/00" in it.  All gym shorts start with "0"
			//so that should hide this link. Note that this does _not_ disable
			//forums... those pages will still exist, but we won't like to them.
			if ($(value).attr("href").toLowerCase().indexOf("gym/0") > 0)
			{
				$(value).parent().hide();
			}
		})

		$('.course-tabs li:contains("Progress")').hide();
		$('.course-tabs').show();
	});
</script>

<!-- eloqua tracking code -->
<script type="text/javascript">
  var _elqQ = _elqQ || [];
  _elqQ.push(['elqSetSiteId', '386085125']);
  _elqQ.push(['elqTrackPageView']);
  
  (function() {
    function async_load() {
      var s = document.createElement('script'); s.type ='text/javascript';
      s.async = true; s.src = '//img.en25.com/i/elqCfg.min.js';
      var x = document.getElementsByTagName('script')[0];
      x.parentNode.insertBefore(s, x);
    }
    
    if (window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);
    else if (window.attachEvent) window.attachEvent('onload',async_load);
  })();
</script>

## Paste your google analytics script here:
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-684147-51', 'auto');
  ga('send', 'pageview');

</script>


##intercom.io analytics

% if user.is_authenticated():
<script>

  window.intercomSettings = {
    //  The current logged in user's full name
    name: "${user.profile.name}",
    //  The current logged in user's email address.
    email: "${user.email}",
    //  The current logged in user's sign-up date as a Unix timestamp.
    created_at: "${user.date_joined.isoformat()}",
    //  The current logged in user's username.
    user_id: "${user.username}",
    //prod app id
    app_id: "oej77pbg"

    //test app id
    //app_id: "o41uja2b"
  };
</script>
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/oej77pbg';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
% endif
<commit_msg>rebuild<commit_after>## mako

<%namespace name='static' file='/static_content.html'/>
<%
from django.conf import settings
%>

<meta property="og:url" content="http://thegymnasium.com/" />
<meta property="og:title" content="Aquent Gymnasium" />
<meta property="og:image" content="${static.url('images/social-share-400.png')}" />
<meta property="og:description" content="At Aquent Gymnasium, we offer free online courses focused on HTML and CSS, responsive design, UX design, and an array of front-end development tools." />
<meta property="og:keywords" content="free online courses" />


<!-- insert typekit font references -->
<script src="//use.typekit.net/rhf0qta.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

<!-- bootstrap! -->
<!-- local reference for offline testing only -->
<!-- <link rel="stylesheet" href="${static.url('css/bootstrap.css')}" > -->


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js"></script>

<script src="${static.url('js/prism.js')}"> </script>
<script src="${static.url('js/cookiebanner.js')}" id="cookiebanner"
	data-link="#f89820"
	data-message="We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. Find out more about how we use cookies in our"
	data-linkmsg="Privacy Policy."
	data-moreinfo="/privacy">
</script>

## inject some global variables from configurations
<script>
  var CLOUDWALL_ENV = "${settings.APPSEMBLER_FEATURES['CLOUDWALL_SERVER_PATH']}";
</script>

<script src="${static.url('js/gymnasium.js')}"> </script>


<script>
  // check for unsupported browsers; display warning message if an old browser
  // is in use

  $(function(){
    // This function returns Internet Explorer's major version number,
    // or 0 for others. It works by finding the "MSIE " string and
    // extracting the version number following the space, up to the decimal
    // point, ignoring the minor version number
    // for more info, see: https://support.microsoft.com/en-us/kb/167820
    function msieversion()
    {
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 0
         return 0
    }

    function displayBrowserWarning()
    {
      $('#browserWarning').show();
    }

    var ieversion = msieversion();
    // make sure that we are using IE > 9
    if (ieversion > 0 && ieversion < 11)
    {
      displayBrowserWarning();
    }

  });


	//this is a nonsense hack to make courseware subnavigation look like
	//what we want it to look like until we move to Cypress
	//TODO: Unhackify this.
	$(function(){
		$('.course-tabs li a b:contains("Course")').each(function(idx, value){
			value.innerHTML = "Lessons";
		});

		$('.course-tabs li a b:contains("Home")').each(function(idx,value){
			value.innerHTML = "Syllabus";
		});

    $('.course-tabs li a b:contains("Discussion")').each(function(idx, value) {
      value.innerHTML = "Forum";
    });

    // make sure lessons tab comes first
    var syllabusTab = $('.course-tabs li:contains("Lessons")');
    $(syllabusTab).prependTo(
      $(syllabusTab).parent()
    );

		$('.course-tabs li a:contains("Forum")').each(function(idx,value){
			//TODO: Unhack this silly logic to hide forum tab for gym shorts

			//we're looking at the href property of this anchor to see if it contains
			//a course link that has "Gym/00" in it.  All gym shorts start with "0"
			//so that should hide this link. Note that this does _not_ disable
			//forums... those pages will still exist, but we won't like to them.
			if ($(value).attr("href").toLowerCase().indexOf("gym/0") > 0)
			{
				$(value).parent().hide();
			}
		})

		$('.course-tabs li:contains("Progress")').hide();
		$('.course-tabs').show();
	});
</script>

<!-- eloqua tracking code -->
<script type="text/javascript">
  var _elqQ = _elqQ || [];
  _elqQ.push(['elqSetSiteId', '386085125']);
  _elqQ.push(['elqTrackPageView']);
  
  (function() {
    function async_load() {
      var s = document.createElement('script'); s.type ='text/javascript';
      s.async = true; s.src = '//img.en25.com/i/elqCfg.min.js';
      var x = document.getElementsByTagName('script')[0];
      x.parentNode.insertBefore(s, x);
    }
    
    if (window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);
    else if (window.attachEvent) window.attachEvent('onload',async_load);
  })();
</script>

## Paste your google analytics script here:
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-684147-51', 'auto');
  ga('send', 'pageview');

</script>


##intercom.io analytics

% if user.is_authenticated():
<script>

  window.intercomSettings = {
    //  The current logged in user's full name
    name: "${user.profile.name}",
    //  The current logged in user's email address.
    email: "${user.email}",
    //  The current logged in user's sign-up date as a Unix timestamp.
    created_at: "${user.date_joined.isoformat()}",
    //  The current logged in user's username.
    user_id: "${user.username}",
    //prod app id
    app_id: "oej77pbg"

    //test app id
    //app_id: "o41uja2b"
  };
</script>
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/oej77pbg';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
% endif

{'fraction_non_alphanumeric': 0.1783732360868876, 'fraction_numerical': 0.011098779134295227, 'mean_word_length': 3.9393108848864524, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 91, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '6318456', 'n_tokens_mistral': 4338, 'n_tokens_neox': 4107, 'n_words': 983}