<commit_before><?php

namespace VHX;

class Collections extends ApiResource {
  public static function all($params = array(), $headers = null) {
    return self::_list($params, $headers);
  }
  public static function retrieve($id = null, $headers = null) {
    return self::_retrieve($id, null, $headers);
  }
  public static function create($params = array(), $headers = null) {
    return self::_create($params, $headers);
  }
  public static function update($id = null, $params = array(), $headers = null) {
    return self::_update($id, $params, null, $headers);
  }
  public static function items($id = null, $params = array(), $headers = null) {
    if (is_array($id) && isset($id['collection'])) {
      $params = $id;
      $id = $id['collection'];
    }
    return self::_items($id, $params, $headers);
  }
<commit_msg>Fix fatal error in collection episodes listing<commit_after><?php

namespace VHX;

class Collections extends ApiResource {
  public static function all($params = array(), $headers = null) {
    return self::_list($params, $headers);
  }
  public static function retrieve($id = null, $headers = null) {
    return self::_retrieve($id, null, $headers);
  }
  public static function create($params = array(), $headers = null) {
    return self::_create($params, $headers);
  }
  public static function update($id = null, $params = array(), $headers = null) {
    return self::_update($id, $params, null, $headers);
  }
  public static function items($id = null, $params = array(), $headers = null) {
    if (is_array($id) && isset($id['collection'])) {
      $params = $id;
      $id = $id['collection'];
    }
    return self::_items($id, $params, null, $headers);
  }

{'fraction_non_alphanumeric': 0.1657817109144543, 'fraction_numerical': 0.0, 'mean_word_length': 4.108433734939759, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6675788', 'n_tokens_mistral': 499, 'n_tokens_neox': 514, 'n_words': 151}