<commit_before><?php
/* This file is part of the XP framework's experiments
 *
 * $Id$
 */
  
  // {{{ class Test
  class Test {
    function method() {
      return [ $this, __FUNCTION__ ];
    }
  }
  
  // {{{ main
  $a= [ 1, 2, 3 ];
  $b= [ 'color' => 'green' ];
  var_dump($a, $b);
  
  var_dump(call_user_func([ new Test(), 'method' ]));
  // }}}
?><commit_msg>- Add more places arrays could be used<commit_after><?php
/* This file is part of the XP framework's experiments
 *
 * $Id$
 */
  
  // {{{ class Test
  class Test {
    protected
      $values = [ 6100 ];

    function method($params= [ ]) {
      return [ __METHOD__, $this->values, $params ];
    }
  }
  
  // {{{ main
  $a= [ 1, 2, 3 ];
  $b= [ 'color' => 'green' ];
  var_dump($a, $b);
  
  $a[]= 4;
  var_dump($a[3], $b['color']);
  
  var_dump(call_user_func([ new Test(), 'method' ]));
  // }}}
?>
{'fraction_non_alphanumeric': 0.21420389461626574, 'fraction_numerical': 0.013745704467353952, 'mean_word_length': 2.4007782101167314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4905800', 'n_tokens_mistral': 351, 'n_tokens_neox': 336, 'n_words': 83}