<commit_before><?php namespace Zofe\Rapyd\DataGrid;

use Zofe\Rapyd\Widget;

class Column extends Widget
{

    public $url = "";
    public $link = "";
    public $label = "";
    public $attributes = array();
    public $tr_attributes = array();
    public $tr_attr = array();
    public $column_type = "normal"; //orderby, detail
    public $orderby = null;
    public $orderby_asc_url;
    public $orderby_desc_url;
    protected $pattern = "";
    protected $pattern_type = null;
    protected $row_as = null;
    protected $field = null;
    protected $field_name = null;
    protected $field_list = array();

    public function __construct()
    {
        $this->check_pattern();
    }


    protected function label($label)
    {
        $this->label = $label;
    }

    public function orderby($orderby)
    {<commit_msg>register datagrid and first test<commit_after><?php namespace Zofe\Rapyd\DataGrid;

use Zofe\Rapyd\Widget;

class Column extends Widget
{

    public $url = "";
    public $link = "";
    public $label = "";
    public $attributes = array();
    public $tr_attributes = array();
    public $tr_attr = array();
    public $orderby = null;
    public $orderby_asc_url;
    public $orderby_desc_url;
    protected $pattern = "";
    protected $pattern_type = null;
    protected $row_as = null;
    protected $field = null;
    protected $field_name = null;
    protected $field_list = array();

    public function __construct($name, $label = null, $orderby = false)
    {
        $this->name = $name;
        $this->label($label);
        $this->orderby($label);
    }

    protected function label($label)
    {
        $this->label = $label;
    }

    protected function orderby($orderby)
    {
{'fraction_non_alphanumeric': 0.12789351851851852, 'fraction_numerical': 0.0, 'mean_word_length': 2.825221238938053, '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': '4493566', 'n_tokens_mistral': 537, 'n_tokens_neox': 527, 'n_words': 136}