<commit_before><!DOCTYPE html>

<html>
<head>
  <meta charset="utf-8" />
  <%= title_tag %>

  <link rel="shortcut icon" href="<%= image_path 'favicon.ico' %>">

  <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
  <%= stylesheet_link_tag :all %>

  <%= csrf_meta_tag %>
</head>

<body>
  <section id="wrap_all">
    <section id="wrap_content">
      <blockquote id="top_quote">
        <%= image_tag "style/quotation_left.gif" %>
        <em><%= @random_quote.content %></em>
        <%= image_tag "style/quotation_right.gif" %>
      </blockquote>

      <figure role="banner" id="banner">
        <%= image_tag 'style/banner.jpg' %>
      </figure>

      <nav role="navigation" id="menu_top">
        <ul>
          <li><%= link_to image_tag('icons/house.png') + t('layout.home'), :root, :title => t('layout.home') %></li>
          <li><%= link_to image_tag('icons/face.png') + t('layout.users'), users_path, :title => t('layout.users') if current_user.is_student? %></li>
          <li><%= link_to image_tag('icons/annonces.png') + t('layout.classifieds'), classifieds_path, :title => t('layout.classifieds') %></li>
          <li><%= link_to image_tag('icons/buckutt.png') + t('layout.buckutt'), :root, :title => t('layout.buckutt') if current_user.is_student? %></li>
          <li><%= link_to image_tag('icons/mail.png') + t('layout.mails'), :root, :title => t('layout.mails') if current_user.is_student? %></li>
        </ul>
      </nav>

      <section id="wrap_contents">
        <% unless notice.nil? %>
        <div id="notice"><%= notice %></div>
        <% end %>

        <% unless alert.nil? %>
        <div id="alert"><%= alert %></div>
        <% end %>

        <%= yield %>
      </section>

      <nav id="menu_right">
        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <% if current_user %>
              <%= render :partial => 'user_sessions/menu' %>
            <% else %>
              <%= render :partial => 'user_sessions/login' %>
            <% end %>
          </section>
        </section>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.content') %></h2>
            <ul>
              <li><%= link_to_if_can t('layout.annals'), Annal %></li>
              <li><%= link_to_if_can t('layout.classifieds'), Classified %></li>
              <li><%= link_to_if_can t('layout.assos'), Asso %></li>
              <li><%= link_to_if_can t('layout.quotes'), Quote %></li>
              <li><%= link_to_if_can t('layout.timesheets'), Timesheet %></li>
              <li><%= link_to_if_can t('layout.carpools'), Carpool %></li>
              <li><%= link_to_if_can t('layout.events'), Event %></li>
              <li><%= link_to_if_can t('layout.news'), News %></li>
              <li><%= link_to_if_can t('layout.projects'), Project %></li>
              <li><%= link_to_if_can t('layout.users'), User %></li>
              <li><%= link_to_if_can t('layout.course'), Course %></li>
            </ul>
          </section>
        </section>

      <% if can?(:manage, Role) or can?(:manage, Group) %>
        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2>Administration</h2>
            <ul>
              <li><%= link_to_if_can t('layout.groups'), Group %></li>
              <li><%= link_to_if_can t('layout.roles'), Role %></li>
            </ul>
          </section>
        </section>
      <% end %>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.services') %></h2>
            <ul>
              <li><%= link_to 'UTT', 'http://www.utt.fr' %></li>
              <li><%= link_to 'ENT', 'http://ent.utt.fr' %></li>
              <li><%= link_to 'Sports', 'http://www-suaps.utt.fr' %></li>
              <li><%= link_to 'BDE', 'http://bde.utt.fr' %></li>
              <li><%= link_to 'Gala', 'http://gala.utt.fr' %></li>
              <li><%= link_to 'Intégration', 'http://integration.utt.fr' %></li>
              <li><%= link_to 'La roue verte', 'http://laroueverte.utt.fr' %></li>
              <li><%= link_to 'UTT Arena', 'http://uttarena.org' %></li>
              <li><%= link_to 'Club Argentique UTT', 'http://etu.utt.fr/etu/argentique' %></li>
            </ul>
          </section>
        </section>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.assos_clubs') %></h2>
            <ul>
            <% @assos.each do |asso| %>
              <li><%= link_to asso.name, asso %></li>
            <% end %>
            </ul>
          </section>
        </section>
      </nav>

  <footer id="bottom">
    <ul>
      <li>Version 9</li>
      <li><%= link_to t('layout.bug'), :root %></li>
      <li>UTT Net Group</li>
      <li><%= link_to t('layout.about'), {:controller => 'home', :action => 'about'} %></li>
    </ul>
    <span onclick="this.innerHTML='&#9786;'; alert('Congratz! U found the secret l3v3l!')">&#9785;</span>
  </footer>

  <%= javascript_include_tag :defaults %>
</body>
</html>
<commit_msg>Sinon pas definie pour nil<commit_after><!DOCTYPE html>

<html>
<head>
  <meta charset="utf-8" />
  <%= title_tag %>

  <link rel="shortcut icon" href="<%= image_path 'favicon.ico' %>">

  <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
  <%= stylesheet_link_tag :all %>

  <%= csrf_meta_tag %>
</head>

<body>
  <section id="wrap_all">
    <section id="wrap_content">
      <blockquote id="top_quote">
        <%= image_tag "style/quotation_left.gif" %>
        <em><%= @random_quote.content %></em>
        <%= image_tag "style/quotation_right.gif" %>
      </blockquote>

      <figure role="banner" id="banner">
        <%= image_tag 'style/banner.jpg' %>
      </figure>

      <nav role="navigation" id="menu_top">
        <ul>
          <li><%= link_to image_tag('icons/house.png') + t('layout.home'), :root, :title => t('layout.home') %></li>
          <li><%= link_to image_tag('icons/face.png') + t('layout.users'), users_path, :title => t('layout.users') if current_user %></li>
          <li><%= link_to image_tag('icons/annonces.png') + t('layout.classifieds'), classifieds_path, :title => t('layout.classifieds') %></li>
          <li><%= link_to image_tag('icons/buckutt.png') + t('layout.buckutt'), :root, :title => t('layout.buckutt') if current_user %></li>
          <li><%= link_to image_tag('icons/mail.png') + t('layout.mails'), :root, :title => t('layout.mails') if current_user %></li>
        </ul>
      </nav>

      <section id="wrap_contents">
        <% unless notice.nil? %>
        <div id="notice"><%= notice %></div>
        <% end %>

        <% unless alert.nil? %>
        <div id="alert"><%= alert %></div>
        <% end %>

        <%= yield %>
      </section>

      <nav id="menu_right">
        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <% if current_user %>
              <%= render :partial => 'user_sessions/menu' %>
            <% else %>
              <%= render :partial => 'user_sessions/login' %>
            <% end %>
          </section>
        </section>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.content') %></h2>
            <ul>
              <li><%= link_to_if_can t('layout.annals'), Annal %></li>
              <li><%= link_to_if_can t('layout.classifieds'), Classified %></li>
              <li><%= link_to_if_can t('layout.assos'), Asso %></li>
              <li><%= link_to_if_can t('layout.quotes'), Quote %></li>
              <li><%= link_to_if_can t('layout.timesheets'), Timesheet %></li>
              <li><%= link_to_if_can t('layout.carpools'), Carpool %></li>
              <li><%= link_to_if_can t('layout.events'), Event %></li>
              <li><%= link_to_if_can t('layout.news'), News %></li>
              <li><%= link_to_if_can t('layout.projects'), Project %></li>
              <li><%= link_to_if_can t('layout.users'), User %></li>
              <li><%= link_to_if_can t('layout.course'), Course %></li>
            </ul>
          </section>
        </section>

      <% if can?(:manage, Role) or can?(:manage, Group) %>
        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2>Administration</h2>
            <ul>
              <li><%= link_to_if_can t('layout.groups'), Group %></li>
              <li><%= link_to_if_can t('layout.roles'), Role %></li>
            </ul>
          </section>
        </section>
      <% end %>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.services') %></h2>
            <ul>
              <li><%= link_to 'UTT', 'http://www.utt.fr' %></li>
              <li><%= link_to 'ENT', 'http://ent.utt.fr' %></li>
              <li><%= link_to 'Sports', 'http://www-suaps.utt.fr' %></li>
              <li><%= link_to 'BDE', 'http://bde.utt.fr' %></li>
              <li><%= link_to 'Gala', 'http://gala.utt.fr' %></li>
              <li><%= link_to 'Intégration', 'http://integration.utt.fr' %></li>
              <li><%= link_to 'La roue verte', 'http://laroueverte.utt.fr' %></li>
              <li><%= link_to 'UTT Arena', 'http://uttarena.org' %></li>
              <li><%= link_to 'Club Argentique UTT', 'http://etu.utt.fr/etu/argentique' %></li>
            </ul>
          </section>
        </section>

        <section role="secondary" class="box">
          <div class="top_box"></div>
          <section class="box_content">
            <h2><%= t('layout.assos_clubs') %></h2>
            <ul>
            <% @assos.each do |asso| %>
              <li><%= link_to asso.name, asso %></li>
            <% end %>
            </ul>
          </section>
        </section>
      </nav>

  <footer id="bottom">
    <ul>
      <li>Version 9</li>
      <li><%= link_to t('layout.bug'), 'https://github.com/Dorian/Site-etu-v9/issues' %></li>
      <li>UTT Net Group</li>
      <li><%= link_to t('layout.about'), {:controller => 'home', :action => 'about'} %></li>
    </ul>
    <span onclick="this.innerHTML='&#9786;'; alert('Congratz! U found the secret l3v3l!')">&#9785;</span>
  </footer>

  <%= javascript_include_tag :defaults %>
</body>
</html>

{'fraction_non_alphanumeric': 0.21881352799852152, 'fraction_numerical': 0.00434300498983552, 'mean_word_length': 2.209667852906287, 'pattern_counts': {'":': 0, '<': 417, '<?xml version=': 0, '>': 435, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, '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': '3816612', 'n_tokens_mistral': 3898, 'n_tokens_neox': 3641, 'n_words': 718}