<commit_before><?php
namespace application\nutsNBolts\model
{
	use application\nutsNBolts\NutsNBolts;
	use application\nutsNBolts\model\base\ContentType as ContentTypeBase;
	
	class ContentType extends ContentTypeBase	
	{
		public function read($whereKeyVals = array(), $readColumns = array(), $additionalPartSQL='')
		{
			$result=parent::read($whereKeyVals, $readColumns, $additionalPartSQL);
			
			for ($i=0,$j=count($result); $i<$j; $i++)
			{
				$result[$i]['roles']=$this->getRoles($result[$i]['id']);
				$result[$i]['users']=$this->getUsers($result[$i]['id']);
			}
			// var_dump($result);exit();
			return $result;
		}
		
		public function handleRecord($record)
		{
			if (!isset($record['status']))$record['status']=0;
			//For Updates
			if (isset($record['id']) && is_numeric($record['id']))
			{
<commit_msg>Stronger check on ID.<commit_after><?php
namespace application\nutsNBolts\model
{
	use application\nutsNBolts\NutsNBolts;
	use application\nutsNBolts\model\base\ContentType as ContentTypeBase;
	
	class ContentType extends ContentTypeBase	
	{
		public function read($whereKeyVals = array(), $readColumns = array(), $additionalPartSQL='')
		{
			$result=parent::read($whereKeyVals, $readColumns, $additionalPartSQL);
			
			for ($i=0,$j=count($result); $i<$j; $i++)
			{
				$result[$i]['roles']=$this->getRoles($result[$i]['id']);
				$result[$i]['users']=$this->getUsers($result[$i]['id']);
			}
			// var_dump($result);exit();
			return $result;
		}
		
		public function handleRecord($record)
		{
			if (!isset($record['status']))$record['status']=0;
			//For Updates
			if (!empty($record['id']) && is_numeric($record['id']))
			{

{'fraction_non_alphanumeric': 0.2015691007845504, 'fraction_numerical': 0.0024140012070006035, 'mean_word_length': 5.256603773584906, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1164776', 'n_tokens_mistral': 652, 'n_tokens_neox': 556, 'n_words': 87}