<commit_before><?php

namespace Plummer\Calendar;

abstract class CalendarAbstract implements CalendarInterface, \IteratorAggregate
{
	protected $name;

	protected $events;

	protected $recurrenceTypes;

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

	public function addEvents($events)
	{
		foreach($events as $key => $event) {
			$this->events[$key] = $event;
		}
	}

	public function addRecurrenceTypes($recurrenceTypes)
	{
		foreach($recurrenceTypes as $key => $recurrenceType) {
			$this->recurrenceTypes[$key] = $recurrenceType;
		}
	}

	public function getIterator()
	{
		return new \ArrayIterator($this->events);<commit_msg>Change the scope of events inside calendar.<commit_after><?php

namespace Plummer\Calendar;

abstract class CalendarAbstract implements CalendarInterface, \IteratorAggregate
{
	protected $name;

	private $events;

	protected $recurrenceTypes;

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

	public function addEvents($events)
	{
		foreach($events as $key => $event) {
			$this->events[$key] = $event;
		}
	}

	public function addRecurrenceTypes($recurrenceTypes)
	{
		foreach($recurrenceTypes as $key => $recurrenceType) {
			$this->recurrenceTypes[$key] = $recurrenceType;
		}
	}

	public function getIterator()
	{
		return new \ArrayIterator($this->events);
{'fraction_non_alphanumeric': 0.1255639097744361, 'fraction_numerical': 0.0, 'mean_word_length': 4.995495495495495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6404348', 'n_tokens_mistral': 459, 'n_tokens_neox': 426, 'n_words': 93}