<commit_before><?php namespace Anomaly\DashboardModule\Dashboard\Component\Report;

use Illuminate\Support\Collection;

/**
 * Class Report
 *
 * @link          http://anomaly.is/streams-platform
 * @author        AnomalyLabs, Inc. <<EMAIL>>
 * @author        <NAME> <<EMAIL>>
 * @package       Anomaly\DashboardModule\Dashboard\Component\Report
 */
class Report
{

    /**
     * The report content.
     *
     * @var null|string
     */
    public $content = null;

    /**
     * The data collection.
     *
     * @var Collection
     */
    protected $data;

    /**
     * The options collection.
     *
     * @var Collection
     */
    protected $options;

    /**
     * @param Collection $data
     * @param Collection $options
     */
    public function __construct(Collection $data, Collection $options)
    {
        $this->data    = $data;
        $this->options = $options;
    }

    /**
     * Get the data.
     *
     * @return Collection
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Add to the data collection.
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function addData($key, $value)
    {
        $this->data->put($key, $value);

        return $this;
    }

    /**
     * Get the options.
     *
     * @return Collection
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * Set an option.
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function setOption($key, $value)
    {
        $this->options->put($key, $value);

        return $this;
    }

    /**
     * Get an option value.
     *
     * @param $key
     * @param $default
     * @return mixed
     */
    public function getOption($key, $default)
    {
        return $this->options->get($key, $default);<commit_msg>Default null<commit_after><?php namespace Anomaly\DashboardModule\Dashboard\Component\Report;

use Illuminate\Support\Collection;

/**
 * Class Report
 *
 * @link          http://anomaly.is/streams-platform
 * @author        AnomalyLabs, Inc. <<EMAIL>>
 * @author        <NAME> <<EMAIL>>
 * @package       Anomaly\DashboardModule\Dashboard\Component\Report
 */
class Report
{

    /**
     * The report content.
     *
     * @var null|string
     */
    public $content = null;

    /**
     * The data collection.
     *
     * @var Collection
     */
    protected $data;

    /**
     * The options collection.
     *
     * @var Collection
     */
    protected $options;

    /**
     * @param Collection $data
     * @param Collection $options
     */
    public function __construct(Collection $data, Collection $options)
    {
        $this->data    = $data;
        $this->options = $options;
    }

    /**
     * Get the data.
     *
     * @return Collection
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Add to the data collection.
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function addData($key, $value)
    {
        $this->data->put($key, $value);

        return $this;
    }

    /**
     * Get the options.
     *
     * @return Collection
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * Set an option.
     *
     * @param $key
     * @param $value
     * @return $this
     */
    public function setOption($key, $value)
    {
        $this->options->put($key, $value);

        return $this;
    }

    /**
     * Get an option value.
     *
     * @param      $key
     * @param null $default
     * @return mixed
     */
    public function getOption($key, $default = null)
    {
        return $this->options->get($key, $default);
{'fraction_non_alphanumeric': 0.1386687797147385, 'fraction_numerical': 0.0, 'mean_word_length': 1.6782178217821782, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 33, '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': '2754046', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1155, 'n_words': 264}