<commit_before><?php
class interf_liste_buff extends interf_bal_cont
{
	const buffs = 1;
	const debuffs = 2;
	const tous = 3;
  function __construct(&$perso, $debuffs=false, $aff_vide=false)
  {
    global $db;
    interf_bal_cont::__construct('ul');
    $buffs = $perso->get_buff();
		if(is_array($buffs))
		{
			foreach($buffs as $buff)
			{//-- Listing des buffs
				if($buff->get_debuff() == $debuffs) // ($buff->get_debuff() && $type & self::debuffs) || (!$buff->get_debuff() && $type & self::buffs)
				{
          $li = $this->add( new interf_bal_cont('li', null, 'buff') );
          $img = $li->add( new interf_bal_smpl('img') );
          $fich = 'image/buff/'.$buff->get_type().'_p.png';
          if( !file_exists($fich) )
          	$fich = 'image/buff/'.($buff->get_debuff()?'debuff':'buff').'.png';
          $img->set_attribut('src', $fich);
          $img->set_attribut('alt', $buff->get_nom());
          $li->set_attribut('data-duree', $buff->get_duree());
          $li->set_attribut('data-fin', $buff->get_fin());
          $li->set_attribut('data-description', $buff->get_description());
          if( !$buff->get_debuff() )
					{
          	$li->set_attribut('data-suppr', $buff->get_id());
          	$li->set_attribut('ondblclick', 'suppr_buff(this);');
					}       
          $this->creer_buff_duree($li, $buff);
				}
			}
    }
    if( !$debuffs && $aff_vide )
    {
      $grade = $perso->get_grade();
      $case_buff_dispo = $grade->get_nb_buff() - $perso->get_nb_buff();
			for($b = 0; $b < $case_buff_dispo; $b++)
			{<commit_msg>- images des buffs<commit_after><?php
class interf_liste_buff extends interf_bal_cont
{
	const buffs = 1;
	const debuffs = 2;
	const tous = 3;
  function __construct(&$perso, $debuffs=false, $aff_vide=false)
  {
    global $db;
    interf_bal_cont::__construct('ul');
    $buffs = $perso->get_buff();
		if(is_array($buffs))
		{
			foreach($buffs as $buff)
			{//-- Listing des buffs
				if($buff->get_debuff() == $debuffs) // ($buff->get_debuff() && $type & self::debuffs) || (!$buff->get_debuff() && $type & self::buffs)
				{
          $li = $this->add( new interf_bal_cont('li', null, 'buff') );
          $img = $li->add( new interf_bal_smpl('img') );
          $fich = 'image/buff/'.$buff->get_type().'_p.png';
          if( !file_exists(root.$fich) )
          	$fich = 'image/buff/'.($buff->get_debuff()?'debuff':'buff').'.png';
          $img->set_attribut('src', $fich);
          $img->set_attribut('alt', $buff->get_nom());
          $li->set_attribut('data-duree', $buff->get_duree());
          $li->set_attribut('data-fin', $buff->get_fin());
          $li->set_attribut('data-description', $buff->get_description());
          if( !$buff->get_debuff() )
					{
          	$li->set_attribut('data-suppr', $buff->get_id());
          	$li->set_attribut('ondblclick', 'suppr_buff(this);');
					}       
          $this->creer_buff_duree($li, $buff);
				}
			}
    }
    if( !$debuffs && $aff_vide )
    {
      $grade = $perso->get_grade();
      $case_buff_dispo = $grade->get_nb_buff() - $perso->get_nb_buff();
			for($b = 0; $b < $case_buff_dispo; $b++)
			{
{'fraction_non_alphanumeric': 0.21464968152866243, 'fraction_numerical': 0.0025477707006369425, 'mean_word_length': 2.8777777777777778, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 53, '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': '4107917', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1207, 'n_words': 173}