<commit_before><?php

function dump ($o) {
  $o = serialize($o);
  echo json_encode($o), "\n";
}

class Foo {
  public $bar = 1;
  protected $baz = 2;
  private $xyzzy = array(1,2,3,4,5,6,7,8,9);
  protected $self;
  public function __construct () {
    $this->self = $this;
  }
}
$f = new Foo();
dump($f);

class Bar {
}
$f = new Bar();
$f->self = $f;
dump($f);

$f = new stdClass;
$f->obj1->obj2->obj3->arr = array();<commit_msg>Add debug case for serialize sources<commit_after><?php

function dump ($o) {
  $o = serialize($o);
  echo json_encode($o), "\n";
}

class Foo {
  public $bar = 1;
  protected $baz = 2;
  private $xyzzy = array(1,2,3,4,5,6,7,8,9);
  protected $self;
  public function __construct () {
    $this->self = $this;
  }
}
$f = new Foo();
dump($f);

class Bar {
}
$f = new Bar();
$f->self = $f;
dump($f);

class Child extends Foo {
    public $lorem = 42;
    protected $ipsum = 37;
    private $dolor = 13;
}
$f = new Child();
dump($f);

$f = new stdClass;
$f->obj1->obj2->obj3->arr = array();
{'fraction_non_alphanumeric': 0.21414538310412573, 'fraction_numerical': 0.03339882121807466, 'mean_word_length': 3.469298245614035, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1855758', 'n_tokens_mistral': 443, 'n_tokens_neox': 424, 'n_words': 109}