<commit_before><?php defined('SYSPATH') or die('No direct script access.');
/**
 * Sprig database modeling system.
 *
 * @package    Sprig
 * @author     <NAME>
 * @copyright  (c) 2009 <NAME>
 * @license    MIT
 */
abstract class Sprig {

	/**
	 * @var  string  database instance name
	 */
	protected $_db = 'default';

	/**
	 * @var  string  database table name
	 */
	protected $_table;

	/**
	 * @var  string  model name
	 */
	protected $_model;

	// Primary key(s)
	protected $_primary_key;

	// Changed fields
	protected $_changed = array();

	// Field defitions
	protected $_fields = array();

	// ManyToMany fields
	protected $_many = array();

	// Initialization status
	protected $_init = FALSE;

	/**
	 * Load an empty sprig model.
	 *
	 * @param   string  model name
	 * @param   array   values to pre-populate the model
	 * @return  Sprig
	 */
	public static function factory($name, array $values = NULL)
	{<commit_msg>Updated Sprig object properties and comments<commit_after><?php defined('SYSPATH') or die('No direct script access.');
/**
 * Sprig database modeling system.
 *
 * @package    Sprig
 * @author     <NAME>
 * @copyright  (c) 2009 <NAME>
 * @license    MIT
 */
abstract class Sprig {

	/**
	 * @var  string  model name
	 */
	protected $_model;

	/**
	 * @var  string  database instance name
	 */
	protected $_db = 'default';

	/**
	 * @var  string  database table name
	 */
	protected $_table;

	/**
	 * @var  array  field list (name => object)
	 */
	protected $_fields = array();

	/**
	 * @var  mixed  primary key string or array (for composite keys)
	 */
	protected $_primary_key;

	// ManyToMany fields
	protected $_many = array();

	// Changed fields
	protected $_changed = array();

	// Initialization status
	protected $_init = FALSE;

	/**
	 * Load an empty sprig model.
	 *
	 * @param   string  model name
	 * @param   array   values to pre-populate the model
	 * @return  Sprig
	 */
	public static function factory($name, array $values = NULL)
	{
{'fraction_non_alphanumeric': 0.13010590015128592, 'fraction_numerical': 0.004034291477559254, 'mean_word_length': 2.882583170254403, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 8, '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': '6092635', 'n_tokens_mistral': 646, 'n_tokens_neox': 595, 'n_words': 205}