<commit_before><?php snippet('header') ?>

  
  <main class="main page" role="main">
    <link href="/assets/css/stats.css" rel="stylesheet" type="text/css">
    <?php $episodes = $site->find('episode')->children()->visible(); ?>
    
    <?php $ridiculists = array(); $total_days = 0; $total_hours = 0; $total_minutes = 0; $total_seconds = 0; ?>
    
    <?php foreach($episodes as $episode) {
      $editor = $episode->editor();
      
        $m = false;
        if ($editor != "") {
          
          foreach($ridiculists as $key => $ridiculist) {
            //echo $z->name;
            if ($editor == (string)$ridiculist['name']) {
              $ridiculists[$key]['edits'] = $ridiculists[$key]['edits'] + 1;
              $m = true;
            } else {
              //echo $editor. "!= " . $z['name'] . '</br>';
            }
          }
          if ($m == false) {
            $e['name'] = $editor;
            $e['edits'] = 1;
            $e['appeared'] = 0;
            $e['provided'] = 0;
            array_push($ridiculists,$e);
          }
        }
  
  
        $persons = explode(",", $episode->cast()); 
  
        foreach ($persons as $person) {
          //echo '<p> $person is ' . $person . '.</p>';
          $m = false;
          foreach($ridiculists as $key => $ridiculist) {
            //echo $z->name;
            if ($person == (string)$ridiculists[$key]['name']) {
              if ($ridiculist['appeared']) {
                $ridiculists[$key]['appeared'] = $ridiculists[$key]['appeared'] + 1;
              } else {
                $ridiculists[$key]['appeared'] = 1;
              }
              $m = true;
            }
          }
          if ($m == false) {
            /*
            if ($person == "isfahan") {
              echo '<h2>isfahan marked for ' . $episode->slug();
            }
            */
            $e['name'] = $person;
            $e['edits'] = 0;
            $e['appeared'] = 1;
            $e['provided'] = 0;
            array_push($ridiculists,$e);
          }
        }
  
        $provider = $episode->provider();
        $m = false;
        if ($provider != "") {
          foreach($ridiculists as $key => $ridiculist) {
            if ($provider == (string)$ridiculists[$key]['name']) {
              if ($ridiculist['provided']) {
                $ridiculists[$key]['provided'] = $ridiculists[$key]['provided'] + 1;
              } else {
                $ridiculists[$key]['provided'] = 1;
              }
              $m = true;
            }
          }
          if ($m == false) {
            $e['name'] = $provider;
            $e['edits'] = 0;
            $e['appeared'] = 0;
            $e['provided'] = 1;
            array_push($ridiculists,$e);
          }
        }
  
        $runtime = $episode->runtime();
        if ($runtime != "") {
          $sr = explode(':', $runtime);
          
          if (count($sr) == 3) {
            $hours = intval($sr[0]);
            $minutes = intval($sr[1]);
            $seconds = intval($sr[2]);<commit_msg>Fixed commas for providers.<commit_after><?php snippet('header') ?>

  
  <main class="main page" role="main">
    <link href="/assets/css/stats.css" rel="stylesheet" type="text/css">
    <?php $episodes = $site->find('episode')->children()->visible(); ?>
    
    <?php $ridiculists = array(); $total_days = 0; $total_hours = 0; $total_minutes = 0; $total_seconds = 0; ?>
    
    <?php foreach($episodes as $episode) {
      $editor = $episode->editor();
      
        $m = false;
        if ($editor != "") {
          
          foreach($ridiculists as $key => $ridiculist) {
            //echo $z->name;
            if ($editor == (string)$ridiculist['name']) {
              $ridiculists[$key]['edits'] = $ridiculists[$key]['edits'] + 1;
              $m = true;
            } else {
              //echo $editor. "!= " . $z['name'] . '</br>';
            }
          }
          if ($m == false) {
            $e['name'] = $editor;
            $e['edits'] = 1;
            $e['appeared'] = 0;
            $e['provided'] = 0;
            array_push($ridiculists,$e);
          }
        }
  
  
        $persons = explode(",", $episode->cast()); 
  
        foreach ($persons as $person) {
          //echo '<p> $person is ' . $person . '.</p>';
          $m = false;
          foreach($ridiculists as $key => $ridiculist) {
            //echo $z->name;
            if ($person == (string)$ridiculists[$key]['name']) {
              if ($ridiculist['appeared']) {
                $ridiculists[$key]['appeared'] = $ridiculists[$key]['appeared'] + 1;
              } else {
                $ridiculists[$key]['appeared'] = 1;
              }
              $m = true;
            }
          }
          if ($m == false) {
            /*
            if ($person == "isfahan") {
              echo '<h2>isfahan marked for ' . $episode->slug();
            }
            */
            $e['name'] = $person;
            $e['edits'] = 0;
            $e['appeared'] = 1;
            $e['provided'] = 0;
            array_push($ridiculists,$e);
          }
        }
        $provider = $episode->provider(); 
  
        if (strpos($episode->provider(), ',') !== false) {
          $pvs = explode(",", $episode->provider()); 
          foreach ($pvs as $provider) {
            $m = false;
            foreach($ridiculists as $key => $ridiculist) {
              if ($provider == (string)$ridiculists[$key]['name']) {
                if ($ridiculist['provided']) {
                  $ridiculists[$key]['provided'] = $ridiculists[$key]['provided'] + 1;
                } else {
                  $ridiculists[$key]['provided'] = 1;
                }
                $m = true;
              }
            }
            if ($m == false) {
              $e['name'] = $provider;
              $e['edits'] = 0;
              $e['appeared'] = 0;
              $e['provided'] = 1;
              array_push($ridiculists,$e);
            }
          }
          
        } else {
          
          $m = false;
          if ($provider != "") {
            foreach($ridiculists as $key => $ridiculist) {
              if ($provider == (string)$ridiculists[$key]['name']) {
                if ($ridiculist['provided']) {
                  $ridiculists[$key]['provided'] = $ridiculists[$key]['provided'] + 1;
                } else {
                  $ridiculists[$key]['provided'] = 1;
                }
                $m = true;
              }
            }
            if ($m == false) {
              $e['name'] = $provider;
              $e['edits'] = 0;
              $e['appeared'] = 0;
              $e['provided'] = 1;
              array_push($ridiculists,$e);
            }
          }
          
        }
  
        $runtime = $episode->runtime();
        if ($runtime != "") {
          $sr = explode(':', $runtime);
          
          if (count($sr) == 3) {
            $hours = intval($sr[0]);
            $minutes = intval($sr[1]);
            $seconds = intval($sr[2]);
{'fraction_non_alphanumeric': 0.19053726663816445, 'fraction_numerical': 0.007268063274903805, 'mean_word_length': 1.355824102047667, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 50, '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': '6056298', 'n_tokens_mistral': 2233, 'n_tokens_neox': 2073, 'n_words': 384}