<commit_before><!DOCTYPE html>
<html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title> Status </title>
 </head>
 <body>
 <div style="text-align: center;">
 Problem id  <input type="text" />
 User  <input type="text" />
 Language  
 <select>
  <option value="c++">c++</option>
  <option value="java">java</option>
  <option value="c">C</option>
  <option value="pascal">pascal</option>

 </select>
 Result
<select>
  <option value="ALL">ALL</option>
  <option value="AC">AC</option>
  <option value="WA">WA</option>
  <option value="TLE">TLE</option>
  <option value="MLE">MLE</option>
  <option value="OLE">OLE</option>
  <option value="RE">RE</option>
  <option value="">.....</option>

</select>
</div>
       <table style="border: solid 1px #000;">
          <thead>
          <tr>
             <th style="width: 15%; border-bottom: solid 1px #000;">RunID</th>
             <th style="width: 15%; border-bottom: solid 1px #000;">User</th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Problem</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Result </th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Memory </th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Time </th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Language</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Code Length</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Submit Time</th>
          </tr>
          </thead>
          <tbody>
          <?php 
            $vector = "";
          ?>
            @foreach($status as $item)
            <?php 
            $vector .=$item->solution_id.';';
          ?> 
             <tr>
                <td id="id_sol" style="text-align: center;"> {{ $item->solution_id }} </td>
                <td style="text-align: center;"> {{ $item->user_id }} </td>
                <td style="text-align: center;"> {{ $item->problem_id }} </td>
                <td style="text-aling: center;"> <div id="responce{{ $item->solution_id }}"></div></td>
                <td style="text-aling: center;"> {{ $item->memory}}</td>
                <td style="text-aling: center;"> {{ $item->time}}</td>
                <td style="text-aling: center;"> 
               @if($item->language=='0')

                <p>c</p>
                @else
                      @if($item->language=='1')
                        <p>c++</p>
                      @else
                          @if($item->language=='2')
                             <p>c++11</p>
                           @else
                              @if($item->language=='3')
                                    <p>java</p>
                              @endif
                           @endif
                      @endif                
                @endif
                </td>
                <td style="text-aling: center;"> {{ $item->code_lenght}}</td>
                <td style="text-aling: center;"> {{ $item->in_date}}</td>
                
             </tr>
             @endforeach
          </tbody>
       </table>
 </body>
 <script type="text/javascript" src="{!! asset('js/jquery-2.1.1.min.js') !!}"></script>
<script>
    var tmp = "{{$vector}}";
    var vector=tmp.split(';');
    var lim   = vector.length;
    
  function update_run(id){   
     var id_=-1;
     $.ajax({ url: '/status/status', 
      type: 'POST', 
      data: {id_sol: id}, 
      beforeSend: function() { 
        $("#responce"+id).html('Esperando respuesta...'); 
      },
       error: function() {
        $("#responce").html('<div> Ha surgido un error. </div>'); 
      },
       success: function(respuesta) { 
        $("#responce"+id).html(respuesta.msg); 
          id_= respuesta.msg;
          console.log(respuesta.msg);
       } 
     });
         setTimeout("update_run("+id+")",10000);
        }

     for (var i = 0; i < lim; i++) {
       update_run(vector[i]);
     }
       
</script>
</html><commit_msg>status<commit_after><!DOCTYPE html>
<html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title> Status </title>
 </head>
 <body>
 <div style="text-align: center;">
 Problem id  <input type="text" />
 User  <input type="text" />
 Language  
 <select>
  <option value="c++">c++</option>
  <option value="java">java</option>
  <option value="c">C</option>
  <option value="pascal">pascal</option>

 </select>
 Result
<select>
  <option value="ALL">ALL</option>
  <option value="AC">AC</option>
  <option value="WA">WA</option>
  <option value="TLE">TLE</option>
  <option value="MLE">MLE</option>
  <option value="OLE">OLE</option>
  <option value="RE">RE</option>
  <option value="">.....</option>

</select>
</div>
       <table style="border: solid 1px #000;">
          <thead>
          <tr>
             <th style="width: 15%; border-bottom: solid 1px #000;">RunID</th>
             <th style="width: 15%; border-bottom: solid 1px #000;">User</th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Problem</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Result </th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Memory </th>
             <th style="width: 15%; border-bottom: solid 1px #000;">Time </th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Language</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Code Length</th>
             <th style="width: 15%; border-bottom: solid 1px #000;"> Submit Time</th>
          </tr>
          </thead>
          <tbody>
          <?php 
            $vector = "";
            $msgs="";
          ?>
            @foreach($status as $item)
            <?php 
            $vector .=$item->solution_id.';';
            $msgs.="Esperando respuesta...;";
          ?> 
             <tr>
                <td id="id_sol" style="text-align: center;"> {{ $item->solution_id }} </td>
                <td style="text-align: center;"> {{ $item->user_id }} </td>
                <td style="text-align: center;"> {{ $item->problem_id }} </td>
                <td style="text-aling: center;"> <div id="responce{{ $item->solution_id }}"></div></td>
                <td style="text-aling: center;"> {{ $item->memory}}</td>
                <td style="text-aling: center;"> {{ $item->time}}</td>
                <td style="text-aling: center;"> 
               @if($item->language=='0')

                <p>c</p>
                @else
                      @if($item->language=='1')
                        <p>c++</p>
                      @else
                          @if($item->language=='2')
                             <p>c++11</p>
                           @else
                              @if($item->language=='3')
                                    <p>java</p>
                              @endif
                           @endif
                      @endif                
                @endif
                </td>
                <td style="text-aling: center;"> {{ $item->code_lenght}}</td>
                <td style="text-aling: center;"> {{ $item->in_date}}</td>
                
             </tr>
             @endforeach
          </tbody>
       </table>
 </body>
 <script type="text/javascript" src="{!! asset('js/jquery-2.1.1.min.js') !!}"></script>
<script>
    var tmp = "{{$vector}}";
    var tmpm = "{{$msgs}}";

    var vector=tmp.split(';');
    var vector2=tmpm.split(';');
    var lim   = vector.length;
    
  function update_run(id){

     var id_=-1;
     $.ajax({ url: '/status/status', 
      type: 'POST', 
      data: {id_sol: id}, 
      beforeSend: function() {
      if (id!=-1) { 
          
          $("#responce"+id).html(vector2[id]); 
         };     
      },
       error: function() {
        $("#responce").html('<div> Ha surgido un error. </div>'); 
      },
       success: function(respuesta) { 
        $("#responce"+id).html(respuesta.msg); 
          id_= respuesta.msg;
          vector2[id]=respuesta.msg;
          console.log(respuesta.msg);
       } 
     });
         setTimeout("update_run("+id+")",10000/2);
        }

     for (var i = 0; i < lim; i++) {
       
       update_run(vector[i]);
       vector[i]=-1;
     }
       
</script>
</html>
{'fraction_non_alphanumeric': 0.19455717354977323, 'fraction_numerical': 0.01862019575077584, 'mean_word_length': 1.6752873563218391, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 241, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6526513', 'n_tokens_mistral': 2789, 'n_tokens_neox': 2531, 'n_words': 536}