<commit_before><?
require_once("bootstrap.inc.php");
require_once("include_pouet/box-modalmessage.php");

class PouetBoxAvatarGallery extends PouetBox 
{
  function PouetBoxAvatarGallery() 
  {
    parent::__construct();
    $this->uniqueID = "pouetbox_avatargallery";
    $this->title = "some of the currently available avatars";
  }
  function Render() 
  {
    global $currentUser;
    if (!$currentUser)
      return;
    
    if (!$currentUser->CanSubmitItems())
      return;

    echo "\n\n";
    echo "<div class='pouettbl' id='".$this->uniqueID."'>\n";
    
    echo "  <h2>".$this->title."</h2>\n";
    echo "  <div class='content'>\n";

    $width = 15;

    $g = glob(POUET_CONTENT_LOCAL."avatars/*.gif");
    shuffle($g);
    $g = array_slice($g,0,$width * $width);
    
    echo "<ul id='avatargallery'>\n";
    foreach($g as $v)
      printf("  <li><img src='".POUET_CONTENT_URL."/avatars/%s' alt='%s' title='%s'/></li>\n",$v,basename($v),basename($v));
    echo "</ul>\n";
    
    echo "  </div>\n";
    echo "</div>\n";
  }
};
class PouetBoxSubmitAvatar extends PouetBox 
{
  function PouetBoxSubmitAvatar() 
  {
    parent::__construct();
    $this->uniqueID = "pouetbox_submitavatar";<commit_msg>...and again<commit_after><?
require_once("bootstrap.inc.php");
require_once("include_pouet/box-modalmessage.php");

class PouetBoxAvatarGallery extends PouetBox 
{
  function PouetBoxAvatarGallery() 
  {
    parent::__construct();
    $this->uniqueID = "pouetbox_avatargallery";
    $this->title = "some of the currently available avatars";
  }
  function Render() 
  {
    global $currentUser;
    if (!$currentUser)
      return;
    
    if (!$currentUser->CanSubmitItems())
      return;

    echo "\n\n";
    echo "<div class='pouettbl' id='".$this->uniqueID."'>\n";
    
    echo "  <h2>".$this->title."</h2>\n";
    echo "  <div class='content'>\n";

    $width = 15;

    $g = glob(POUET_CONTENT_LOCAL."avatars/*.gif");
    shuffle($g);
    $g = array_slice($g,0,$width * $width);
    
    echo "<ul id='avatargallery'>\n";
    foreach($g as $v)
      printf("  <li><img src='".POUET_CONTENT_URL."/avatars/%s' alt='%s' title='%s'/></li>\n",basename($v),basename($v),basename($v));
    echo "</ul>\n";
    
    echo "  </div>\n";
    echo "</div>\n";
  }
};
class PouetBoxSubmitAvatar extends PouetBox 
{
  function PouetBoxSubmitAvatar() 
  {
    parent::__construct();
    $this->uniqueID = "pouetbox_submitavatar";
{'fraction_non_alphanumeric': 0.19541171650962721, 'fraction_numerical': 0.004096681687832855, 'mean_word_length': 3.3221238938053097, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 37, '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': '7012561', 'n_tokens_mistral': 933, 'n_tokens_neox': 920, 'n_words': 148}