<commit_before><?php

namespace Sokil\Mongo;

class Query
{    
    protected $_query = array();
    
    public static function get()
    {
        return new self;
    }
    
    public function where($field, $value)
    {
        if(!isset($this->_query[$field]) || !is_array($value) || !is_array($this->_query[$field])) {
            $this->_query[$field] = $value;
        }
        else {
            $this->_query[$field] = array_merge_recursive($this->_query[$field], $value);
        }
        
        return $this;
    }
    
    public function whereEmpty($field)
    {
        return $this->where('$or', array(
            array($field => null),<commit_msg>add php doc<commit_after><?php

namespace Sokil\Mongo;

class Query
{    
    protected $_query = array();
    
    /**
     * 
     * @return \Sokil\Mongo\Query
     */
    public static function get()
    {
        return new self;
    }
    
    public function where($field, $value)
    {
        if(!isset($this->_query[$field]) || !is_array($value) || !is_array($this->_query[$field])) {
            $this->_query[$field] = $value;
        }
        else {
            $this->_query[$field] = array_merge_recursive($this->_query[$field], $value);
        }
        
        return $this;
    }
    
    public function whereEmpty($field)
    {
        return $this->where('$or', array(
            array($field => null),
{'fraction_non_alphanumeric': 0.15830945558739254, 'fraction_numerical': 0.0, 'mean_word_length': 1.9723404255319148, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '1520683', 'n_tokens_mistral': 428, 'n_tokens_neox': 425, 'n_words': 79}