<commit_before><?php
/**
 * @package Model
 * @subpackage Expr
 */
abstract class Kwf_Model_Select_Expr_CompareField_Abstract implements Kwf_Model_Select_Expr_Interface
{
    protected $_field;
    protected $_value;
    public function __construct($field, $value) {
        $this->_field = $field;
        $this->_value = $value;
    }

    public function getField()
    {
        return $this->_field;
    }

    public function getValue()
    {
        return $this->_value;
    }

    public function getFormattedValue()
    {
        $ret = $this->getValue();
        if ($ret instanceof Kwf_DateTime) {
            $ret = $ret->format('Y-m-d H:i:s');
        } else if ($ret instanceof Kwf_Date) {
            $ret = $ret->format('Y-m-d');
        }
        return $ret;
    }

    public function validate()
    {
        if (!$this->_field) {
            throw new Kwf_Exception("No Field-Value set for '"+get_class($this)+"'");
        }
    }
<commit_msg>use correct php string operators<commit_after><?php
/**
 * @package Model
 * @subpackage Expr
 */
abstract class Kwf_Model_Select_Expr_CompareField_Abstract implements Kwf_Model_Select_Expr_Interface
{
    protected $_field;
    protected $_value;
    public function __construct($field, $value) {
        $this->_field = $field;
        $this->_value = $value;
    }

    public function getField()
    {
        return $this->_field;
    }

    public function getValue()
    {
        return $this->_value;
    }

    public function getFormattedValue()
    {
        $ret = $this->getValue();
        if ($ret instanceof Kwf_DateTime) {
            $ret = $ret->format('Y-m-d H:i:s');
        } else if ($ret instanceof Kwf_Date) {
            $ret = $ret->format('Y-m-d');
        }
        return $ret;
    }

    public function validate()
    {
        if (!$this->_field) {
            throw new Kwf_Exception("No Field-Value set for '".get_class($this)."'");
        }
    }

{'fraction_non_alphanumeric': 0.13429010763710916, 'fraction_numerical': 0.0, 'mean_word_length': 2.2052545155993433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '4661493', 'n_tokens_mistral': 608, 'n_tokens_neox': 590, 'n_words': 134}