<commit_before><?php defined('SYSPATH') or die('No direct script access.');
/**
 * Venue model
 *
 * @package    Venues
 * @author     <NAME>
 * @copyright  (c) 2010-2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_Model_Venue extends AutoModeler_ORM implements Permission_Interface {

	/**
	 * Permission to combine duplicate venues
	 */
	const PERMISSION_COMBINE = 'combine';

	protected $_table_name = 'venues';

	protected $_data = array(
		'id'                     => null,
		'name'                   => null,
		'description'            => null,
		'homepage'               => null,
		'hours'                  => null,
		'info'                   => null,
		'default_image_id'       => null,
		'event_host'             => null,

		'address'                => null,
		'zip'                    => null,
		'city_name'              => null,
		'geo_city_id'            => null,
		'geo_country_id'         => null,
		'latitude'               => null,
		'longitude'              => null,

		'foursquare_id'          => null,
		'foursquare_category_id' => null,

		'author_id'              => null,
		'created'                => null,
		'modified'               => null,
	);

	protected $_rules = array(
		'name'                   => array('not_empty', 'max_length' => array(':value', 32)),
		'description'            => array('max_length' => array(':value', 250)),
		'homepage'               => array('url'),
		'hours'                  => array('max_length' => array(':value', 250)),
		'info'                   => array('max_length' => array(':value', 512)),
		'default_image_id'       => array('digit'),
		'event_host'             => array('in_array' => array(':value', array(0, 1))),

		'address'                => array('max_length' => array(':value', 50)),
		'zip'                    => array('digit', 'length' => array(':value', 4, 5)),
		'city_name'              => array('not_empty'),
		'geo_city_id'            => array('digit'),
		'geo_country_id'         => array('digit'),
		'latitude'               => array('numeric'),
		'longitude'              => array('numeric'),

		'foursquare_id'          => array('digit'),
		'foursquare_category_id' => array('digit'),

		'author_id'              => array('digit'),
	);

	protected $_has_many = array(
		'images'
	);

	/**
	 * @var  array  User editable fields
	 */
	public static $editable_fields = array(<commit_msg>Venue name limit 32 -> 100 characters<commit_after><?php defined('SYSPATH') or die('No direct script access.');
/**
 * Venue model
 *
 * @package    Venues
 * @author     <NAME>
 * @copyright  (c) 2010-2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_Model_Venue extends AutoModeler_ORM implements Permission_Interface {

	/**
	 * Permission to combine duplicate venues
	 */
	const PERMISSION_COMBINE = 'combine';

	protected $_table_name = 'venues';

	protected $_data = array(
		'id'                     => null,
		'name'                   => null,
		'description'            => null,
		'homepage'               => null,
		'hours'                  => null,
		'info'                   => null,
		'default_image_id'       => null,
		'event_host'             => null,

		'address'                => null,
		'zip'                    => null,
		'city_name'              => null,
		'geo_city_id'            => null,
		'geo_country_id'         => null,
		'latitude'               => null,
		'longitude'              => null,

		'foursquare_id'          => null,
		'foursquare_category_id' => null,

		'author_id'              => null,
		'created'                => null,
		'modified'               => null,
	);

	protected $_rules = array(
		'name'                   => array('not_empty', 'max_length' => array(':value', 100)),
		'description'            => array('max_length' => array(':value', 250)),
		'homepage'               => array('url'),
		'hours'                  => array('max_length' => array(':value', 250)),
		'info'                   => array('max_length' => array(':value', 512)),
		'default_image_id'       => array('digit'),
		'event_host'             => array('in_array' => array(':value', array(0, 1))),

		'address'                => array('max_length' => array(':value', 50)),
		'zip'                    => array('digit', 'length' => array(':value', 4, 5)),
		'city_name'              => array('not_empty'),
		'geo_city_id'            => array('digit'),
		'geo_country_id'         => array('digit'),
		'latitude'               => array('numeric'),
		'longitude'              => array('numeric'),

		'foursquare_id'          => array('digit'),
		'foursquare_category_id' => array('digit'),

		'author_id'              => array('digit'),
	);

	protected $_has_many = array(
		'images'
	);

	/**
	 * @var  array  User editable fields
	 */
	public static $editable_fields = array(
{'fraction_non_alphanumeric': 0.16786373896983378, 'fraction_numerical': 0.011491894110404268, 'mean_word_length': 1.9220623501199041, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 96, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6976356', 'n_tokens_mistral': 1668, 'n_tokens_neox': 1472, 'n_words': 302}