<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <!--
   All Emoncms code is released under the GNU Affero General Public License.
   See COPYRIGHT.txt and LICENSE.txt.

    ---------------------------------------------------------------------
    Emoncms - open source energy visualisation
    Part of the OpenEnergyMonitor project:
    http://openenergymonitor.org
  -->


<?php
	$apikey_read = $_GET['apikey'];
	
	require $path.'Includes/dashboard_processor.php';
	
	$path = dirname("http://".$_SERVER['HTTP_HOST'].str_replace('Vis/Dashboard', '', $_SERVER['SCRIPT_NAME']))."/";

	// Edit mode off, now is time to runtime
	$_SESSION['editmode'] = FALSE;
?>

<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="user-scalable=no, width=device-width" />

    <link rel="stylesheet" type="text/css" href="<?php echo $path; ?>Views/theme/dark/style.css" />

<!------------------------------------------------------------------------------------------
  Dashboard related javascripts
------------------------------------------------------------------------------------------->
<!--[if IE]><script language="javascript" type="text/javascript" src="../flot/excanvas.min.js"></script><![endif]-->
	<script type="text/javascript" src="<?php echo $path; ?>Vis/flot/jquery.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Vis/flot/jquery.flot.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Vis/Dashboard/common.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Vis/Dashboard/widgets/dial.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Vis/Dashboard/widgets/led.js"></script>
	<title>emoncms</title>
  </head>
  
<body>

<div id="page"><?php echo render_dashboard($userid); ?></div>  
  
<script>

	// Global page vars definition
	var path = "<?php echo $path;?>";
	var apikey_read = "<?php echo $apikey_read;?>";
	
	show_dashboard();
</script>

</body>
</html><commit_msg>Path fix<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <!--
   All Emoncms code is released under the GNU Affero General Public License.
   See COPYRIGHT.txt and LICENSE.txt.

    ---------------------------------------------------------------------
    Emoncms - open source energy visualisation
    Part of the OpenEnergyMonitor project:
    http://openenergymonitor.org
  -->


<?php
        global $path;
	$apikey_read = $_GET['apikey'];
	require 'Includes/dashboard_processor.php';
	// Edit mode off, now is time to runtime
	$_SESSION['editmode'] = FALSE;
?>

<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="user-scalable=no, width=device-width" />

    <link rel="stylesheet" type="text/css" href="<?php echo $path; ?>Views/theme/dark/style.css" />

<!------------------------------------------------------------------------------------------
  Dashboard related javascripts
------------------------------------------------------------------------------------------->
<!--[if IE]><script language="javascript" type="text/javascript" src="../flot/excanvas.min.js"></script><![endif]-->
	<script type="text/javascript" src="<?php echo $path; ?>Includes/flot/jquery.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Includes/flot/jquery.flot.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Views/Dashboard/common.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Views/Dashboard/widgets/dial.js"></script>
	<script type="text/javascript" src="<?php echo $path; ?>Views/Dashboard/widgets/led.js"></script>
	<title>emoncms</title>
  </head>
  
<body>

<div id="page"><?php echo render_dashboard($userid); ?></div>  
  
<script>

	// Global page vars definition
	var path = "<?php echo $path;?>";
	var apikey_read = "<?php echo $apikey_read;?>";
	
	show_dashboard();
</script>

</body>
</html>

{'fraction_non_alphanumeric': 0.29436071949440934, 'fraction_numerical': 0.003403014098201264, 'mean_word_length': 2.5291595197255576, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, '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': '4594572', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1243, 'n_words': 269}