<commit_before>%# " We should limit the number of impacts to show here. Too much is just useless "
%max_impacts = 200

%print 'Elt value?', elt
%import time

%# If got no Elt, bailout
%if not elt:
%rebase layout title='Invalid name'

Invalid element name


%else:

%helper = app.helper
%datamgr = app.datamgr

%elt_type = elt.__class__.my_type

%top_right_banner_state = datamgr.get_overall_state()


%rebase layout title=elt_type.capitalize() + ' detail about ' + elt.get_full_name(),  js=['eltdetail/js/graphs.js', 'eltdetail/js/domtab.js','eltdetail/js/dollar.js', 'eltdetail/js/gesture.js', 'eltdetail/js/hide.js', 'eltdetail/js/switchbuttons.js', 'eltdetail/js/multi.js'],  css=['eltdetail/css/tabs.css', 'eltdetail/css/eltdetail.css', 'eltdetail/css/switchbuttons.css', 'eltdetail/css/hide.css', 'eltdetail/css/gesture.css'], top_right_banner_state=top_right_banner_state , user=user, app=app



%# " We will save our element name so gesture functions will be able to call for the good elements."
<script type="text/javascript">var elt_name = '{{elt.get_full_name()}}';</script>


<div id="left_container" class="grid_3">
  <div id="dummy_box" class="box_gradient_horizontal"> 
  </div>
  <div id="nav_left">
    <ul>
      <li><a href="#">Overview</a></li>
      
      <li>
	<center>
	  <table cellspacing="2" cellpadding="0" border="0">
	    <tbody>
	      <tr>
		<th>Problems</th><th>Unhandled</th><th>All</th>
	      </tr>
	      
	      <tr>
		<td>
		  <a href="/problems" style="padding-top:0;">{{app.datamgr.get_nb_all_problems()}}</a>
		</td>
		<td>
		  %# " Add a pulse if there are problems unacked "
		  %nb_unack_pb = app.datamgr.get_nb_problems()
		  %if nb_unack_pb > 0:
		  <a href="/problems" style="padding-top:0;">
		    <div class="aroundpulse">
                      <span class="pulse" title=""></span>
		      {{nb_unack_pb}}
		    </div>
		  </a>
		  %else:
		    {{nb_unack_pb}}
		  %end
		</td>
                <td><a href="/problems" style="padding-top:0;">{{app.datamgr.get_nb_elements()}}</a></td>
              </tr>
	    </tbody>
	  </table>
	</center>
      </li>

      <li>
	<a href="#">Gestures</a>
      </li>
    </ul>
	<div class="opacity_hover">
	%#  "This is the background canvas for all gesture detection things " 
	%# " Don't ask me why, but the size must be included in the
	%# canvas line here or we got problem!"
	<center><canvas id="canvas" width="200" height="200"  style="border: 1px solid black;"></canvas></center>

	  <br>
	  <img title="By keeping a left click pressed and drawing a check, you will launch an acknowledgement." src="/static/eltdetail/images/gesture-check.png"/> Acknowledge<br>
	  <img title="By keeping a left click pressed and drawing a check, you will launch an recheck." src="/static/eltdetail/images/gesture-circle.png"/> Recheck<br>
	  <img title="By keeping a left click pressed and drawing a check, you will launch a try to fix command." src="/static/eltdetail/images/gesture-zigzag.png"/> Fix<br>
	</div>
  </div>
</div>
<div class="grid_12">
  <div id="host_preview" style="vertical-align:middle;">
    <h2 class="state_{{elt.state.lower()}}"><img style="width : 64px; height:64px" src="{{helper.get_icon_state(elt)}}" />{{elt.state}}: {{elt.get_full_name()}}</h2>
<commit_msg>J'ai remplacer les <br> par des <div>, ce qui est mieux je pense et permet d'appliquer des styles plus finement. Ça résout également le problème du même nom pour la classe et l'id css.<commit_after>%# " We should limit the number of impacts to show here. Too much is just useless "
%max_impacts = 200

%print 'Elt value?', elt
%import time

%# If got no Elt, bailout
%if not elt:
%rebase layout title='Invalid name'

Invalid element name


%else:

%helper = app.helper
%datamgr = app.datamgr

%elt_type = elt.__class__.my_type

%top_right_banner_state = datamgr.get_overall_state()


%rebase layout title=elt_type.capitalize() + ' detail about ' + elt.get_full_name(),  js=['eltdetail/js/graphs.js', 'eltdetail/js/domtab.js','eltdetail/js/dollar.js', 'eltdetail/js/gesture.js', 'eltdetail/js/hide.js', 'eltdetail/js/switchbuttons.js', 'eltdetail/js/multi.js'],  css=['eltdetail/css/tabs.css', 'eltdetail/css/eltdetail.css', 'eltdetail/css/switchbuttons.css', 'eltdetail/css/hide.css', 'eltdetail/css/gesture.css'], top_right_banner_state=top_right_banner_state , user=user, app=app



%# " We will save our element name so gesture functions will be able to call for the good elements."
<script type="text/javascript">var elt_name = '{{elt.get_full_name()}}';</script>


<div id="left_container" class="grid_3">
  <div id="dummy_box" class="box_gradient_horizontal"> 
  </div>
  <div id="nav_left">
    <ul>
      <li><a href="#">Overview</a></li>
      
      <li>
	<center>
	  <table cellspacing="2" cellpadding="0" border="0">
	    <tbody>
	      <tr>
		<th>Problems</th><th>Unhandled</th><th>All</th>
	      </tr>
	      
	      <tr>
		<td>
		  <a href="/problems" style="padding-top:0;">{{app.datamgr.get_nb_all_problems()}}</a>
		</td>
		<td>
		  %# " Add a pulse if there are problems unacked "
		  %nb_unack_pb = app.datamgr.get_nb_problems()
		  %if nb_unack_pb > 0:
		  <a href="/problems" style="padding-top:0;">
		    <div class="aroundpulse">
                      <span class="pulse" title=""></span>
		      {{nb_unack_pb}}
		    </div>
		  </a>
		  %else:
		    {{nb_unack_pb}}
		  %end
		</td>
                <td><a href="/problems" style="padding-top:0;">{{app.datamgr.get_nb_elements()}}</a></td>
              </tr>
	    </tbody>
	  </table>
	</center>
      </li>

      <li>
	<a href="#">Gestures</a>
      </li>
    </ul>
	<div class="opacity_hover">
	%#  "This is the background canvas for all gesture detection things " 
	%# " Don't ask me why, but the size must be included in the
	%# canvas line here or we got problem!"
	<center><canvas id="canvas" width="200" height="200"  style="border: 1px solid black;"></canvas></center>

		<div class="gesture_button">
          	<img title="By keeping a left click pressed and drawing a check, you will launch an acknowledgement." src="/static/eltdetail/images/gesture-check.png"/> Acknowledge
		</div>
		<div class="gesture_button">
          	<img title="By keeping a left click pressed and drawing a check, you will launch an recheck." src="/static/eltdetail/images/gesture-circle.png"/> Recheck
		</div>
		<div class="gesture_button">
          	<img title="By keeping a left click pressed and drawing a check, you will launch a try to fix command." src="/static/eltdetail/images/gesture-zigzag.png"/> Fix
		</div>
	</div>
  </div>
</div>
<div class="grid_12">
  <div id="host_preview" style="vertical-align:middle;">
    <h2 class="state_{{elt.state.lower()}}"><img style="width : 64px; height:64px" src="{{helper.get_icon_state(elt)}}" />{{elt.state}}: {{elt.get_full_name()}}</h2>

{'fraction_non_alphanumeric': 0.17011291978295937, 'fraction_numerical': 0.007625751576477489, 'mean_word_length': 3.684065934065934, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 149, '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': '3828371', 'n_tokens_mistral': 2571, 'n_tokens_neox': 2388, 'n_words': 587}