<commit_before><?php
interface IReadSelection extends IBasicSelection, IteratorAggregate {
  /**
   * @param string|string[]|array $expression Expression, list of expressions or array of expressions and aliases
   * @param string|alias $alias Alias 
   * @return array[] List of associative arrays
   */
  public function select($expression, $alias = null);
  
  /**
   * Group by one or more columns
   * @param string|string[] $columns A single column name or a list of column
   * names<commit_msg>An idea for dynamic virtual fields in models<commit_after><?php
interface IReadSelection extends IBasicSelection, IteratorAggregate {
  /**
   * @param string|string[]|array $expression Expression, list of expressions or array of expressions and aliases
   * @param string $alias Alias 
   * @return array[] List of associative arrays
   */
  public function select($expression, $alias = null);
  
  /**
   * @param string|array[] $field Virtual field name (alias) or associative array of field names and expressions
   * @param string $expression Expression to calculate
   * @return IReadSelection
   */
  //public function with($field, $expression = null);
  
  /**
   * Group by one or more columns
   * @param string|string[] $columns A single column name or a list of column
   * names
{'fraction_non_alphanumeric': 0.0913312693498452, 'fraction_numerical': 0.0, 'mean_word_length': 3.9922779922779923, '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': '7478006', 'n_tokens_mistral': 335, 'n_tokens_neox': 333, 'n_words': 140}