<commit_before><?php

$criteria = array("name" => "Hannes");
$selector = array('fieldname' => 1, 'fieldname.two' => 1);

$query = new \MongoDB\Query($criteria, $selector);
$query
    ->setOrderBy(array('name' => 1))
    ->setComment('More special stuff')
    ->setLimit(-3) // Kill server cursor after 3 documents
    ->setSkip(0)   // Don't skip any documents
    ->setFlags(EXHAUST | NO_CURSOR_TIMEOUT);

$tags = array(
    array("dc:eu", "cpu:fast"),<commit_msg>Query constructor should take query object, not just criteria<commit_after><?php

// Corresponds to "query object" in http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-query
$queryObj = array(
    '$query' => array("name" => "Hannes"),
    '$orderBy' => array('name' => 1),
    '$comment' => 'More special stuff',
);

$query = new \MongoDB\Query($queryObj);
$query
    ->setSelector(array('fieldname' => 1, 'fieldname.two' => 1))
    ->setLimit(-3) // Kill server cursor after 3 documents
    ->setSkip(0)   // Don't skip any documents
    ->setFlags(EXHAUST | NO_CURSOR_TIMEOUT);

$tags = array(
    array("dc:eu", "cpu:fast"),
{'fraction_non_alphanumeric': 0.1903485254691689, 'fraction_numerical': 0.010723860589812333, 'mean_word_length': 4.067873303167421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '4975330', 'n_tokens_mistral': 391, 'n_tokens_neox': 381, 'n_words': 89}