<commit_before><?php

namespace Vimeo\ABLincoln\Experiments;

/**
 * Dummy experiment which has no logging. Default experiments used by 
 * namespaces should inherit from this class
 */
class DefaultExperiment extends AbstractExperiment
{
    /**
     * We don't need a logger when there's no experiment
     */
    protected function _configureLogger() {}

    /**
     * Don't log anything when there's no experiment
     *
     * @param array $data the data which we will not be logging
     */
    protected function _log($data) {}

    /**<commit_msg>modified default experiment to use the abstract experiment trait<commit_after><?php

namespace Vimeo\ABLincoln\Experiments;

/**
 * Dummy experiment which has no logging. Default experiments used by 
 * namespaces should inherit from this class
 */
class DefaultExperiment
{
    use AbstractExperiment;

    /**
     * Set up attributes needed for experiment
     *
     * @param mixed $inputs input value or array to determine parameter assignments, e.g. userid
     */
    public function __construct($inputs)
    {
        $this->initialize($inputs);
    }

    /**
     * We don't need a logger when there's no experiment
     */
    protected function _configureLogger() {}

    /**
     * Don't log anything when there's no experiment
     *
     * @param array $data the data which we will not be logging
     */
    protected function _log($data) {}

    /**
{'fraction_non_alphanumeric': 0.08720112517580872, 'fraction_numerical': 0.0, 'mean_word_length': 2.825268817204301, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6884458', 'n_tokens_mistral': 375, 'n_tokens_neox': 360, 'n_words': 143}