<commit_before><?php
App::uses('JobsAppModel', 'Jobs.Model');

class JobResume extends JobsAppModel {

	public $name = 'JobResume';

	public $displayField = 'name';

	public $belongsTo = array('Creator' => array(
			'className' => 'Users.User',
			'foreignKey' => 'creator_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		));
		
		

	public function __construct($id = false, $table = null, $ds = null) {
		if(CakePlugin::loaded('Media')) {
			$this->actsAs[] = 'Media.MediaAttachable';
		}
		if (CakePlugin::loaded('Categories')) {
			$this->hasAndBelongsToMany['Category'] = array(
	            'className' => 'Categories.Category',
	       		'joinTable' => 'categorized',
	            'foreignKey' => 'foreign_key',
	            'associationForeignKey' => 'category_id',
	    		'conditions' => array('Categorized.model' => 'JobResume'),
	    		// 'unique' => true,
	            );
			$this->actsAs['Categories.Categorizable'] = array('modelAlias' => 'JobResume');
		}
		parent::__construct($id, $table, $ds);
	}
	
	public function beforeSave($options = array()){
		if (empty($this->data['JobResume']['search_tags'])) {
	        $this->data['JobResume']['search_tags'] = $this->data['JobResume']['leadin'];
	   	}
	   	return true;
	}
}<commit_msg>added missing call to parent function<commit_after><?php
App::uses('JobsAppModel', 'Jobs.Model');

class JobResume extends JobsAppModel {

	public $name = 'JobResume';

	public $displayField = 'name';

	public $belongsTo = array('Creator' => array(
			'className' => 'Users.User',
			'foreignKey' => 'creator_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		));
		
		

	public function __construct($id = false, $table = null, $ds = null) {
		if(CakePlugin::loaded('Media')) {
			$this->actsAs[] = 'Media.MediaAttachable';
		}
		if (CakePlugin::loaded('Categories')) {
			$this->hasAndBelongsToMany['Category'] = array(
	            'className' => 'Categories.Category',
	       		'joinTable' => 'categorized',
	            'foreignKey' => 'foreign_key',
	            'associationForeignKey' => 'category_id',
	    		'conditions' => array('Categorized.model' => 'JobResume'),
	    		// 'unique' => true,
	            );
			$this->actsAs['Categories.Categorizable'] = array('modelAlias' => 'JobResume');
		}
		parent::__construct($id, $table, $ds);
	}
	
	public function beforeSave($options = array()){
		if (empty($this->data['JobResume']['search_tags'])) {
	        $this->data['JobResume']['search_tags'] = $this->data['JobResume']['leadin'];
	   	}
	   	return parent::beforeSave($options);
	}
}
{'fraction_non_alphanumeric': 0.1996124031007752, 'fraction_numerical': 0.0, 'mean_word_length': 3.6254480286738353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '307767', 'n_tokens_mistral': 945, 'n_tokens_neox': 849, 'n_words': 141}