<commit_before><?php
namespace Poll\PollBundle\Entity;

use Poll\PollBundle\Common\Collection;
use Poll\PollBundle\Common\IdentifiedClass;

/**
 * Implementace entity anketa
 * @author jirkovoj
 */
class PollImpl extends IdentifiedClass implements Poll {

	/** @var string */
	protected $title;

	/** @var string */
	protected $description;

	/** @var Collection */
	protected $items;

	public function __construct() {
		//vygeneruje se id z vzdaleneho rodice IdentifiedClass
		parent::__construct();
		$this->items = new Collection;
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::addItem()
	 */
	public function addItem(PollItem $item) {
		$this->items->addItem($item);
		return $this;
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::removeItem()
	 */
	public function removeItem(PollItem $item) {
		$this->items->removeItem($item);
		return $this;
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::getItems()
	 */
	public function getItems() {
		return $this->items->getItems();
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::getItem()
	 */
	public function getItem($id) {
		return $this->items->getItem($id);
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::hasItem()
	 */
	public function hasItem(PollItem $item) {
		return $this->items->hasItem($item);
	}
<commit_msg>fix the instantiation of Collection and use strict mode<commit_after><?php
namespace Poll\PollBundle\Entity;

use Poll\PollBundle\Common\Collection;
use Poll\PollBundle\Common\IdentifiedClass;

/**
 * Implementace entity anketa
 * @author jirkovoj
 */
class PollImpl extends IdentifiedClass implements Poll {

	/** @var string */
	protected $title;

	/** @var string */
	protected $description;

	/** @var Collection */
	protected $items;

	public function __construct() {
		//vygeneruje se id z vzdaleneho rodice IdentifiedClass
		parent::__construct();
		$this->items = new Collection();
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::addItem()
	 */
	public function addItem(PollItem $item) {
		$this->items->addItem($item, true);
		return $this;
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::removeItem()
	 */
	public function removeItem(PollItem $item) {
		$this->items->removeItem($item, true);
		return $this;
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::getItems()
	 */
	public function getItems() {
		return $this->items->getItems();
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::getItem()
	 */
	public function getItem($id) {
		return $this->items->getItem($id);
	}

	/**
	 * (non-PHPdoc)
	 * @see \Poll\PollBundle\Entity\Poll::hasItem()
	 */
	public function hasItem(PollItem $item) {
		return $this->items->hasItem($item);
	}

{'fraction_non_alphanumeric': 0.16895306859205775, 'fraction_numerical': 0.0, 'mean_word_length': 3.785837651122625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '237085', 'n_tokens_mistral': 1034, 'n_tokens_neox': 973, 'n_words': 188}