<commit_before><?php
/**
 * @author    3liz
 * @copyright 2017 3liz
 *
 * @see      http://3liz.com
 *
 * @license    Mozilla Public License
 */
class datavizPlot
{
    /**
     * @var null|bool|lizmapProject
     */
    protected $lproj;

    public $title;

    public $type;

    public $layerId;

    public $layerXmlZero;

    protected $data;

    protected $traces = array();

    protected $x_property_name;

    protected $y_property_name;

    protected $y_field;

    protected $x_field;

    protected $aggregation;

    protected $y_fields;

    protected $x_fields;

    protected $colors = array();

    protected $colorfields = array();

    protected $layout;

    protected $x_mandatory = array('scatter', 'bar', 'histogram', 'histogram2d', 'polar');

    protected $y_mandatory = array('scatter', 'box', 'bar', 'pie', 'histogram2d', 'polar');

    /**
     * datavizPlot constructor.
     *
     * @param string $repository
     * @param string $project
     * @param string $layerId
     * @param string $x_field
     * @param string $y_field
     * @param array  $colors
     * @param array  $colorfields
     * @param string $title
     * @param null   $layout<commit_msg>Dataviz: defined x_fields and y_fields as array<commit_after><?php
/**
 * @author    3liz
 * @copyright 2017 3liz
 *
 * @see      http://3liz.com
 *
 * @license    Mozilla Public License
 */
class datavizPlot
{
    /**
     * @var null|bool|lizmapProject
     */
    protected $lproj;

    public $title;

    public $type;

    public $layerId;

    public $layerXmlZero;

    protected $data;

    protected $traces = array();

    protected $x_property_name;

    protected $y_property_name;

    protected $y_field;

    protected $x_field;

    protected $aggregation;

    protected $y_fields = array();

    protected $x_fields = array();

    protected $colors = array();

    protected $colorfields = array();

    protected $layout;

    protected $x_mandatory = array('scatter', 'bar', 'histogram', 'histogram2d', 'polar');

    protected $y_mandatory = array('scatter', 'box', 'bar', 'pie', 'histogram2d', 'polar');

    /**
     * datavizPlot constructor.
     *
     * @param string $repository
     * @param string $project
     * @param string $layerId
     * @param string $x_field
     * @param string $y_field
     * @param array  $colors
     * @param array  $colorfields
     * @param string $title
     * @param null   $layout
{'fraction_non_alphanumeric': 0.12653562653562653, 'fraction_numerical': 0.007371007371007371, 'mean_word_length': 2.7071320182094083, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2397917', 'n_tokens_mistral': 816, 'n_tokens_neox': 761, 'n_words': 201}