<commit_before><?php 
  /*
   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
  */
  function menu_block_controller()
  {
    $path = $GLOBALS['path'];
    $menu = '';

    if ($_SESSION['valid'])
    {
      $menu .= "<li><a href='".$path."inputpage'>Inputs</a></li>";
      $menu .= "<li><a href='".$path."feed'>Feeds</a></li>";
      $menu .= "<li><a href='".$path."apipage'>API</a></li>";
      $menu .= "<li><a href='".$path."dashboard'>Dashboard</a></li>";
    } 
    else 
    {
      //$menu .= "<li><a href='".$path."home'>Home</a></li>";
    }

    return $menu;
  }


?><commit_msg>Updated menu links to relative instead of absolute - see discussion http://openenergymonitor.org/emon/node/296<commit_after><?php 
  /*
   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
  */
  function menu_block_controller()
  {
    $menu = '';

    if ($_SESSION['valid'])
    {
      $menu .= "<li><a href='inputpage'>Inputs</a></li>";
      $menu .= "<li><a href='feed'>Feeds</a></li>";
      $menu .= "<li><a href='apipage'>API</a></li>";
      $menu .= "<li><a href='dashboard'>Dashboard</a></li>";
    } 
    else 
    {
    }

    return $menu;
  }


?>
{'fraction_non_alphanumeric': 0.2608695652173913, 'fraction_numerical': 0.001786777843954735, 'mean_word_length': 2.037974683544304, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '2871712', 'n_tokens_mistral': 528, 'n_tokens_neox': 515, 'n_words': 111}