<commit_before><?php
/**
 *
 * @package     OpenFlame Web Framework
 * @copyright   (c) 2010 OpenFlameCMS.com
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * Minimum Requirement: PHP 5.0.0
 */

if(!defined('ROOT_PATH'))
	define('ROOT_PATH', './');

/**
 * OpenFlame Web Framework - Primary Exception class,
 * 		Extension of the default Exception class.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class OfException extends Exception
{
	const ERR_WTF = 0;  // wat
}

/**
 * OpenFlame Web Framework - JSON Exception class,
 * 		Used for exceptions generated in the JSON library.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class OfJSONException extends OfException
{
	const ERR_JSON_NO_FILE = 4000;
	const ERR_JSON_UNKNOWN = 4100;
	const ERR_JSON_NO_ERROR = 4101;
	const ERR_JSON_DEPTH = 4102;
	const ERR_JSON_CTRL_CHAR = 4103;
	const ERR_JSON_SYNTAX = 4104;
}

/**
 * OpenFlame Web Framework - Cache Exception class,
 * 		Used for exceptions generated in the Cache library.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class OfCacheException extends OfException
{
	const ERR_CACHE_UNWRITABLE = 2000;
	const ERR_CACHE_UNREADABLE = 2001;
	const ERR_CACHE_FOPEN_FAILED = 2002;
	const ERR_CACHE_FWRITE_FAILED = 2003;
	const ERR_CACHE_FLOCK_FAILED = 2004;

	const ERR_CACHE_ENGINE_NOT_CACHEBASE_CHILD = 2100;
	const ERR_CACHE_ENGINE_NOT_CACHEINTERFACE_CHILD = 2101;

	const ERR_CACHE_PATH_NO_ACCESS = 2200;
}

/**
 * OpenFlame Web Framework - File Exception class,
 * 		Used for exceptions generated in the File library.
 *
 *
 * @author      <NAME> ("imkingdavid")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class OfFileException extends OfException
{
	const ERR_FILE_TOO_BIG = 3000;
	const ERR_FILE_ZERO_BYTES = 3001;
	const ERR_FILE_EXT_NOT_ALLOWED = 3002;
	const ERR_FILE_UPLOAD_ERROR = 3003;
	const ERR_FILE_URL_INVALID = 3004;
	const ERR_FILE_INFO_MISSING = 3005;
}<commit_msg>add in a little bit of docs in the OfException file<commit_after><?php
/**
 *
 * @package     OpenFlame Web Framework
 * @copyright   (c) 2010 OpenFlameCMS.com
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * Minimum Requirement: PHP 5.0.0
 */

if(!defined('ROOT_PATH'))
	define('ROOT_PATH', './');

/**
 * OpenFlame Web Framework - Primary Exception class,
 * 		Extension of the default Exception class.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class OfException extends Exception
{
	const ERR_WTF = 0;  // wat
}

/**
 * OpenFlame Web Framework - Cache Exception class,
 * 		Used for exceptions generated in the Cache library.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * @note this class reserves the 2xxx exception code range
 */
class OfCacheException extends OfException
{
	const ERR_CACHE_UNWRITABLE = 2000;
	const ERR_CACHE_UNREADABLE = 2001;
	const ERR_CACHE_FOPEN_FAILED = 2002;
	const ERR_CACHE_FWRITE_FAILED = 2003;
	const ERR_CACHE_FLOCK_FAILED = 2004;

	const ERR_CACHE_ENGINE_NOT_CACHEBASE_CHILD = 2100;
	const ERR_CACHE_ENGINE_NOT_CACHEINTERFACE_CHILD = 2101;

	const ERR_CACHE_PATH_NO_ACCESS = 2200;
}

/**
 * OpenFlame Web Framework - File Exception class,
 * 		Used for exceptions generated in the File library.
 *
 *
 * @author      <NAME> ("imkingdavid")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * @note this class reserves the 3xxx exception code range
 */
class OfFileException extends OfException
{
	const ERR_FILE_TOO_BIG = 3000;
	const ERR_FILE_ZERO_BYTES = 3001;
	const ERR_FILE_EXT_NOT_ALLOWED = 3002;
	const ERR_FILE_UPLOAD_ERROR = 3003;
	const ERR_FILE_URL_INVALID = 3004;
	const ERR_FILE_INFO_MISSING = 3005;
}

/**
 * OpenFlame Web Framework - JSON Exception class,
 * 		Used for exceptions generated in the JSON library.
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * @note this class reserves the 4xxx exception code range
 */
class OfJSONException extends OfException
{
	const ERR_JSON_NO_FILE = 4000;
	const ERR_JSON_UNKNOWN = 4100;
	const ERR_JSON_NO_ERROR = 4101;
	const ERR_JSON_DEPTH = 4102;
	const ERR_JSON_CTRL_CHAR = 4103;
	const ERR_JSON_SYNTAX = 4104;
}
{'fraction_non_alphanumeric': 0.10327120578166603, 'fraction_numerical': 0.03404336249524534, 'mean_word_length': 3.789617486338798, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5789505', 'n_tokens_mistral': 1903, 'n_tokens_neox': 1725, 'n_words': 429}