<commit_before><style>
    
    #profilImageRand{
      height:100%;
      width:100%;
      border-radius: 10px;
      /*border:3px solid #93C020;*/
      /*margin-bottom:10px;*/
    }
    .panel-green{
      background-image: linear-gradient(to bottom, #93C020 0px, #83AB1D 100%) !important;
    }
    .entityTitle{
      padding: 10px 20px;
      background-color: #EFEFEF; /*#2A3A45;*/
      color: #FFF;
      /*margin-left: -200px;*/
      margin-bottom: 10px;
      border-radius: 0px;
      margin-top: 0px;
      overflow-x: hidden; 
    }
    .entityTitle:hover{
      text-decoration: underline;
    }

    .entityDetails span{
      font-weight: 300;
      font-size:15px;
      text-overflow: ellipsis;
      max-width:100%;
    }
    .entityDetails{
      padding-bottom:10px;
      margin-bottom:10px;
      border-bottom:0px solid #DDD;

    }
    .entityDetails.bottom{
      /*border-top:1px solid #DDD;*/
      border-bottom:0px solid #DDD;
      padding: 5px;
      margin-top: 10px;
      margin-bottom: -13px;
    }
    .entityDetails i.fa-tag{
      margin-left:10px;
    }
    .lbl-tag{
      font-size:12px !important;
    }
    @media screen and (max-width: 1000px) {
      .entityDetails span{
        font-size: 1em;
      }
    }
</style>

  <div class="panel panel-white">
   <!--  <div class="panel-heading border-light">
      <h4 class="panel-title text-blue"><i class="fa fa-random"></i> <?php echo Yii::t("common", "HAPHAZARD"); ?></h4>
    </div> -->
    <div class="panel-body no-padding" class="entityShortDetails">
      <!-- <i class='fa fa-spinner fa-pulse fa-4x center-block'></i> -->
      
        <?php 
            $iconsEntityType = array("organizations"=>"group", 
                                     "people"=>"user",
                                     "citoyens"=>"user",
                                     "projects"=>"lightbulb-o",
                                     "events"=>"calendar");

            $iconsEntityColor = array("organizations"=>"green", 
                                     "people"=>"yellow",
                                     "citoyens"=>"yellow",
                                     "projects"=>"purple",
                                     "events"=>"orange");
            
            $entityTypeUrl = array("organizations"=>"organization", 
                                     "people"=>"person",
                                     "citoyens"=>"person",
                                     "projects"=>"project",
                                     "events"=>"event");
            $faIcon = "";
            $type = "";
            $color = "white";
            //var_dump($randomEntity);
            //echo $randomEntity["typeSig"];
            $name = isset($randomEntity["username"]) ? $randomEntity["username"] : "";
            if(isset($randomEntity["name"])) $name = $name != "" ? $name : $randomEntity["name"];
            if(isset($randomEntity["typeSig"])){
              $type = $randomEntity["typeSig"];
              $faIcon = isset($iconsEntityType[$type]) ? "<i class='fa fa-".$iconsEntityType[$type]."'></i> " : "";
              $color = isset($iconsEntityColor[$type]) ? $iconsEntityColor[$type] : "white";
            }
            
            $imgPath = "";
            if(isset($randomEntity["profilImageUrl"]) && $randomEntity["profilImageUrl"] != "")
            $imgPath = Yii::app()->createUrl('/'.$this->module->id).$randomEntity["profilImageUrl"];
        ?>

        <?php 
          $url = ( isset($randomEntity['_id']) ) ? "javascript:;" : '#';
          $onclick = (isset($randomEntity['_id']) ) ? "onclick='loadByHash(\"#".$entityTypeUrl[$type].".detail.id.".$randomEntity['_id']."\")'" : "";
        ?>
         

       <div class='col-md-12 no-padding bg-white'>
          <a href="<?php echo $url ?>" <?php echo $onclick ?> >
            <h3 class="panel-title entityTitle text-<?php echo $color; ?>">
              <?php echo $faIcon.$name; ?>
            </h3>
          </a>

         <div class='col-md-12'>
          <?php if(isset($randomEntity["email"])){ ?>
              <span><i class="fa fa-envelope"></i> <?php echo $randomEntity["email"]; ?></span></br>
            <?php } ?>
          </div>

          <?php if($imgPath != ""){ ?>
            <div class='col-lg-5 col-md-5 col-xs-12 col-sm-12 pull-left padding-15 center <?php if($imgPath == ""){ echo "panel-green"; } ?>'>
              <img id="profilImageRand" class="" src='<?php echo $imgPath; ?>'>
            </div> 
        
          <?php }else{ ?>
            <!-- <i class="fa fa-group fa-4x"></i> --><commit_msg> ma commune : images manquantes #374<commit_after><style>
    
    #profilImageRand{
      height:100%;
      width:100%;
      border-radius: 10px;
      /*border:3px solid #93C020;*/
      /*margin-bottom:10px;*/
    }
    .panel-green{
      background-image: linear-gradient(to bottom, #93C020 0px, #83AB1D 100%) !important;
    }
    .entityTitle{
      padding: 10px 20px;
      background-color: #EFEFEF; /*#2A3A45;*/
      color: #FFF;
      /*margin-left: -200px;*/
      margin-bottom: 10px;
      border-radius: 0px;
      margin-top: 0px;
      overflow-x: hidden; 
    }
    .entityTitle:hover{
      text-decoration: underline;
    }

    .entityDetails span{
      font-weight: 300;
      font-size:15px;
      text-overflow: ellipsis;
      max-width:100%;
    }
    .entityDetails{
      padding-bottom:10px;
      margin-bottom:10px;
      border-bottom:0px solid #DDD;

    }
    .entityDetails.bottom{
      /*border-top:1px solid #DDD;*/
      border-bottom:0px solid #DDD;
      padding: 5px;
      margin-top: 10px;
      margin-bottom: -13px;
    }
    .entityDetails i.fa-tag{
      margin-left:10px;
    }
    .lbl-tag{
      font-size:12px !important;
    }
    @media screen and (max-width: 1000px) {
      .entityDetails span{
        font-size: 1em;
      }
    }
</style>

  <div class="panel panel-white">
   <!--  <div class="panel-heading border-light">
      <h4 class="panel-title text-blue"><i class="fa fa-random"></i> <?php echo Yii::t("common", "HAPHAZARD"); ?></h4>
    </div> -->
    <div class="panel-body no-padding" class="entityShortDetails">
      <!-- <i class='fa fa-spinner fa-pulse fa-4x center-block'></i> -->
      
        <?php 
            $iconsEntityType = array("organizations"=>"group", 
                                     "people"=>"user",
                                     "citoyens"=>"user",
                                     "projects"=>"lightbulb-o",
                                     "events"=>"calendar");

            $iconsEntityColor = array("organizations"=>"green", 
                                     "people"=>"yellow",
                                     "citoyens"=>"yellow",
                                     "projects"=>"purple",
                                     "events"=>"orange");
            
            $entityTypeUrl = array("organizations"=>"organization", 
                                     "people"=>"person",
                                     "citoyens"=>"person",
                                     "projects"=>"project",
                                     "events"=>"event");
            $faIcon = "";
            $type = "";
            $color = "white";
            //var_dump($randomEntity);
            //echo $randomEntity["typeSig"];
            $name = isset($randomEntity["username"]) ? $randomEntity["username"] : "";
            if(isset($randomEntity["name"])) $name = $name != "" ? $name : $randomEntity["name"];
            if(isset($randomEntity["typeSig"])){
              $type = $randomEntity["typeSig"];
              $faIcon = isset($iconsEntityType[$type]) ? "<i class='fa fa-".$iconsEntityType[$type]."'></i> " : "";
              $color = isset($iconsEntityColor[$type]) ? $iconsEntityColor[$type] : "white";
            }
            
            $imgPath = "";
            if(isset($randomEntity["profilImageUrl"]) && $randomEntity["profilImageUrl"] != ""){
              $profilImageUrl = $randomEntity["profilImageUrl"];
              if( strpos("/", $profilImageUrl) == 0) 
                $profilImageUrl = substr($profilImageUrl, 1, strlen($profilImageUrl));

              $imgPath = Yii::app()->createUrl('/'.$this->module->id).$profilImageUrl;
            }
           
        ?>

        <?php 
          $url = ( isset($randomEntity['_id']) ) ? "javascript:;" : '#';
          $onclick = (isset($randomEntity['_id']) ) ? "onclick='loadByHash(\"#".$entityTypeUrl[$type].".detail.id.".$randomEntity['_id']."\")'" : "";
        ?>
         

       <div class='col-md-12 no-padding bg-white'>
          <a href="<?php echo $url ?>" <?php echo $onclick ?> >
            <h3 class="panel-title entityTitle text-<?php echo $color; ?>">
              <?php echo $faIcon.$name; ?>
            </h3>
          </a>

         <div class='col-md-12'>
          <?php if(isset($randomEntity["email"])){ ?>
              <span><i class="fa fa-envelope"></i> <?php echo $randomEntity["email"]; ?></span></br>
            <?php } ?>
          </div>

          <?php if($imgPath != ""){ ?>
            <div class='col-lg-5 col-md-5 col-xs-12 col-sm-12 pull-left padding-15 center <?php if($imgPath == ""){ echo "panel-green"; } ?>'>
              <img id="profilImageRand" class="" src='<?php echo $imgPath; ?>'>
            </div> 
        
          <?php }else{ ?>
            <!-- <i class="fa fa-group fa-4x"></i> -->
{'fraction_non_alphanumeric': 0.18112809699525567, 'fraction_numerical': 0.019504480759093307, 'mean_word_length': 1.673618940248027, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2865600', 'n_tokens_mistral': 3009, 'n_tokens_neox': 2833, 'n_words': 477}