<commit_before><?php
class Vps_Grid_Column_Date extends Vps_Grid_Column
{
    public function __construct($dataIndex = null, $header = null, $width = 70)
    {
        if (is_null($header)) $header = trlVps('Date');
        parent::__construct($dataIndex, $header, $width);
        $this->setType('date');
        $this->setRenderer('localizedDate');
        $this->setDateFormat('Y-m-d');
    }

    public function load($row, $role)
    {
        $ret = parent::load($row, $role);
        $ret = substr($ret, 0, 10);
        //todo: datum formatieren wenn export; übersetzung berücksichtigen
        return $ret;
    }
}
<commit_msg>0000-00-00 ist so wie null<commit_after><?php
class Vps_Grid_Column_Date extends Vps_Grid_Column
{
    public function __construct($dataIndex = null, $header = null, $width = 70)
    {
        if (is_null($header)) $header = trlVps('Date');
        parent::__construct($dataIndex, $header, $width);
        $this->setType('date');
        $this->setRenderer('localizedDate');
        $this->setDateFormat('Y-m-d');
    }

    public function load($row, $role)
    {
        $ret = parent::load($row, $role);
        $ret = substr($ret, 0, 10);
        if ($ret == '0000-00-00') $ret = null;
        //todo: datum formatieren wenn export; übersetzung berücksichtigen
        return $ret;
    }
}

{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.019548872180451128, 'mean_word_length': 2.891812865497076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2608899', 'n_tokens_mistral': 457, 'n_tokens_neox': 436, 'n_words': 95}