<commit_before><?php

namespace Del\Common;


class Criteria
{
    protected $limit;
    protected $offset;
    protected $order;
    protected $orderDirection;

    /**
     * @return bool
     */
    public function hasOffset()
    {
        return $this->offset !== null;<commit_msg>Make Criteria abstract plus add order constants<commit_after><?php

namespace Del\Common;


abstract class Criteria
{
    const ORDER_ASC = 'ASC';
    const ORDER_DESC = 'DESC';

    protected $limit;
    protected $offset;
    protected $order;
    protected $orderDirection;

    /**
     * @return bool
     */
    public function hasOffset()
    {
        return $this->offset !== null;
{'fraction_non_alphanumeric': 0.10946745562130178, 'fraction_numerical': 0.0, 'mean_word_length': 2.6594594594594594, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5956803', 'n_tokens_mistral': 193, 'n_tokens_neox': 186, 'n_words': 54}