<commit_before><?php
namespace App\Model;

use Nette,
	Nette\Database\Context,
	Tracy\Debugger as Debugger;
	
class TaskListFactory extends Nette\Object  {
	
	/** @var Nette\Database\Context @inject */
	private $DB;
	
	private $User;
	
	private $Project;
	
	private $table = 'tasks_list';
	
	private $tableUser = 'tasks_list_user';
	
	/**
	 * @param Nette\Database\Connection $db
	 * @throws Nette\InvalidStateException
	 */
	public function __construct(
		\Nette\Database\Context $DB,
		\App\Model\User $User,
		\App\Model\Project $Project
	) {
		$this->DB      = $DB;
		$this->User    = $User;
		$this->Project = $Project;
		
		Debugger::barDump($Project);
	}
	
	public function getAll() {
		
		// Debugger::barDump($this->User->getIdentity());
		$selection = $this->DB->table('tasks_list_user')
			->where('tlu_us_ID = ? ', $this->User->getIdentity()->us_ID);
		<commit_msg>pridani setu pro projekt do tovarnicky<commit_after><?php
namespace App\Model;

use Nette,
	Nette\Database\Context,
	Tracy\Debugger as Debugger;
	
class TaskListFactory extends Nette\Object  {
	
	/** @var Nette\Database\Context @inject */
	private $DB;
	
	private $User;
	
	private $Project;
	
	private $table = 'tasks_list';
	
	private $tableUser = 'tasks_list_user';
	
	/**
	 * @param Nette\Database\Connection $db
	 * @throws Nette\InvalidStateException
	 */
	public function __construct(
		\Nette\Database\Context $DB,
		\App\Model\User $User,
		\App\Model\Project $Project
	) {
		$this->DB      = $DB;
		$this->User    = $User;
		$this->Project = $Project;
	}
	
	public function setProject(\App\Model\Project $Project) {
		$this->Project = $Project;
	}
	
	public function getAll() {
		
		// Debugger::barDump($this->User->getIdentity());
		$selection = $this->DB->table('tasks_list_user')
			->where('tlu_us_ID = ? ', $this->User->getIdentity()->us_ID);
		
{'fraction_non_alphanumeric': 0.1588683351468988, 'fraction_numerical': 0.0, 'mean_word_length': 3.6556962025316455, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '1437340', 'n_tokens_mistral': 697, 'n_tokens_neox': 629, 'n_words': 124}