<commit_before><?php

  /************************************
   * FUNCTIONS USED BY THE INDEX PAGE *
   ************************************

  /* Creates the menu for the <nav> bar in index */
  function create_menu()
  {
    $nav =  '<a href="index.php?page=index"> Accueil </a>';
    $nav .= '<a href="index.php?page=register"> Inscription </a>';
    echo $nav;
  }

  function page_values($page)
  {
    switch($page)
    {
      case 'index' :
        return $values = array('Accueil', 'welcome.php', 'Page d\'accueil');
        break;
      case 'register' :
        return $values = array('Inscription', 'register.php', 'Page d\'inscription');
        break;
      default :
        return $values = array('Accueil', 'welcome.php', 'Page d\'accueil');<commit_msg>Added login case in page generation<commit_after><?php

  /************************************
   * FUNCTIONS USED BY THE INDEX PAGE *
   ************************************

  /* Creates the menu for the <nav> bar in index */
  function create_menu()
  {
    $nav =  '<a href="index.php?page=index"> Accueil </a>';
    $nav .= '<a href="index.php?page=register"> Inscription </a>';
    $nav .= '<a href="index.php?page=login"> Connexion </a>';
    echo $nav;
  }

  function page_values($page)
  {
    switch($page)
    {
      case 'index' :
        return $values = array('Accueil', 'welcome.php', 'Page d\'accueil');
        break;
      case 'register' :
        return $values = array('Inscription', 'register.php', 'Page d\'inscription');
        break;
      case 'login' :
        return $values = array('Connexion', 'login.php', 'Page de connexion');
        break;
      default :
        return $values = array('Accueil', 'welcome.php', 'Page d\'accueil');
{'fraction_non_alphanumeric': 0.23836875358989087, 'fraction_numerical': 0.0, 'mean_word_length': 2.9954128440366974, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2859284', 'n_tokens_mistral': 542, 'n_tokens_neox': 533, 'n_words': 135}