<commit_before><?php
	namespace Storage;

	class Repository Extends \BaseClass {
	
		public $error;
		public $name;
		public $type;
		public $id;
		public $code;
		protected $default_privileges;
		protected $override_privileges;

		public function __construct($id = 0) {
			$this->_init($id);
		}
		protected function _init($id = 0) {
			app_log("Loading repository $id",'info');
			if ($id > 0) {
				$this->id = $id;
				$this->details();
			}
		}

		public function add($parameters = array()) {
		
			if (! isset($parameters['code']) || ! strlen($parameters['code'])) $parameters['code'] = uniqid();
			if (isset($parameters['type'])) $this->type = $parameters['type'];<commit_msg>Made Storage::Repository privileges vars public so they can be accessed through factory pattern<commit_after><?php
	namespace Storage;

	class Repository Extends \BaseClass {
	
		public $error;
		public $name;
		public $type;
		public $id;
		public $code;
		public $default_privileges;
		public $override_privileges;

		public function __construct($id = 0) {
			$this->_init($id);
		}
		protected function _init($id = 0) {
			app_log("Loading repository $id",'info');
			if ($id > 0) {
				$this->id = $id;
				$this->details();
			}
		}

		public function add($parameters = array()) {
		
			if (! isset($parameters['code']) || ! strlen($parameters['code'])) $parameters['code'] = uniqid();
			if (isset($parameters['type'])) $this->type = $parameters['type'];
{'fraction_non_alphanumeric': 0.17174515235457063, 'fraction_numerical': 0.004155124653739612, 'mean_word_length': 4.142348754448399, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1659886', 'n_tokens_mistral': 531, 'n_tokens_neox': 454, 'n_words': 115}