<commit_before><?php
/**
 * gibt 1 oder 2 zurück
 */
class Vps_Component_Dynamic_Alternate extends Vps_Component_Dynamic_Abstract
{
    public function getContent()
    {
        return ($this->_info['partial']['number'] % 2) + 1;
    }
}<commit_msg>dynamic alternate verbessert, modulo kann eingestellt werden<commit_after><?php
/**
 * gibt 1 oder 2 zurück
 */
class Vps_Component_Dynamic_Alternate extends Vps_Component_Dynamic_Abstract
{
    protected $_modulo = 2;
    public function setArguments($modulo = null)
    {
        if ($modulo) $this->_modulo = $modulo;
    }

    public function getContent()
    {
        return ($this->_info['partial']['number'] % $this->_modulo) + 1;
    }
}
{'fraction_non_alphanumeric': 0.12625538020086083, 'fraction_numerical': 0.011477761836441894, 'mean_word_length': 3.6533333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5506907', 'n_tokens_mistral': 222, 'n_tokens_neox': 213, 'n_words': 51}