<commit_before>﻿<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Wikipedia Quest</title>
  
  <script>
    window.Polymer = window.Polymer || {};
    window.Polymer.dom = 'shadow';
  </script>
  <script src="node_modules/page/page.js"></script>
  
	<style>
		body {
			margin:0;
			background-color: #333;
		}
	</style>
  
  <script>
    (function () {
	  
		
		page('/menu', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadMainMenu_();
			}
			
			next();
		});
		
		page('/questLog', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadQuestView_();
			}
		
			next();
		});
		
		page('/explore', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadWikiPage_();
			}
			
			next();
		});
		page('/', function(context, next){
			context.handled = true;
			
			//For if the user navigated back to the index using the back button.
			//returns to the main menu.
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadMainMenu_();
			}
			
			next();
		});
		page('*', function(context,next){
			context.handled = true;
		// Can try to catch debug issues here.
		});
	
    page('/explore/:wikiPageName', function (context, next) {
			context.handled = true;
		
			//Changes wiki page for the adventure view.
			// In the adventure view, checks if this matches where
			// the player should be.
			
			changeWikiPage(context.wikiPageName);
			
      next();
    });

    
		
	function changeWikiPage(pageName) {
		
		if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
			document.getElementsByTagName('wikipedia-quest')[0].setAttribute('current_wiki_page', pageName);
		}
    }

    
		page.start();
    })();
  </script>
	
	<link rel="import" href="wikipedia-quest.html" />
	<link rel="import" href="video-player.html" /><commit_msg>Moved the explore/:wikiPageName path above wildcard page routing.<commit_after>﻿<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Wikipedia Quest</title>
  
  <script>
    window.Polymer = window.Polymer || {};
    window.Polymer.dom = 'shadow';
  </script>
  <script src="node_modules/page/page.js"></script>
  
	<style>
		body {
			margin:0;
			background-color: #333;
		}
	</style>
  
  <script>
    (function () {
	  
		
		page('/menu', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadMainMenu_();
			}
			
			next();
		});
		
		page('/questLog', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadQuestView_();
			}
		
			next();
		});
		
		page('/explore', function (context, next) {
			context.handled = true;
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadWikiPage_();
			}
			
			next();
		});
		page('/explore/:wikiPageName', function (context, next) {
			context.handled = true;
			//Changes wiki page for the adventure view.
			// In the adventure view, checks if this matches where
			// the player should be.
			changeWikiPage(context.params.wikiPageName);
			
      next();
    });
		page('/', function(context, next){
			context.handled = true;
			
			//For if the user navigated back to the index using the back button.
			//returns to the main menu.
			
			if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
				document.getElementsByTagName('wikipedia-quest')[0].loadMainMenu_();
			}
			
			next();
		});
		page('*', function(context,next){
			context.handled = true;
		// Can try to catch debug issues here.
		});
	
    

    
		
	function changeWikiPage(pageName) {
		if(document.getElementsByTagName('wikipedia-quest')[0]){ //This doesn't run on the initial load.
			document.getElementsByTagName('wikipedia-quest')[0].setAttribute('current_wiki_page', pageName);
		}
    }

    
		page.start();
    })();
  </script>
	
	<link rel="import" href="wikipedia-quest.html" />
	<link rel="import" href="video-player.html" />
{'fraction_non_alphanumeric': 0.15826158261582615, 'fraction_numerical': 0.006150061500615006, 'mean_word_length': 3.310070671378092, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '567916', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1557, 'n_words': 337}