<commit_before><?php
//!	@file libs/Aurora/load.php
//!	@brief This file loads all the code for the Aurora goodness.
//!	@author SignpostMarv

//!	Code from libOMV, taken from visible metadata
namespace OpenMetaverse{

//!	Transposition of the Enum to be used by Aurora::Addon::WebUI::FriendInfo
	class FriendRights{

//!	integer The avatar has no rights
		const None = 0;

//!	integer The avatar can see the online status of the target avatar
		const CanSeeOnline = 1;

//!	integer The avatar can see the location of the target avatar on the map
		const CanSeeOnMap = 2;

//!	integer The avatar can modify the ojects of the target avatar
		const CanModifyObjects = 4;
	}
}

//!	working in the global namespace here
namespace{
	require_once('Framework.php');
	require_once('Services.php');
	require_once('Addon.php');

//!	Class used for globally-available stuff, because a) define and const only support scalar values, and b) the global operate is ugly.
/**
*	We're making this "final" for semantic reasons.
*	The suggested usage is:
*	Globals::i()->foo = 'bar'; echo Globals::i()->foo;
*	Globals::i()->baz = function(){ return 'bat'; }; echo Globals::i()->baz();
*/<commit_msg>adding some classes that will be required for playing with LandData<commit_after><?php
//!	@file libs/Aurora/load.php
//!	@brief This file loads all the code for the Aurora goodness.
//!	@author SignpostMarv

//!	Code from libOMV, taken from visible metadata
namespace OpenMetaverse{

	use InvalidArgumentException;

//!	Transposition of the enum to be used by Aurora::Addon::WebUI::FriendInfo
	class FriendRights{

//!	integer The avatar has no rights
		const None = 0;

//!	integer The avatar can see the online status of the target avatar
		const CanSeeOnline = 1;

//!	integer The avatar can see the location of the target avatar on the map
		const CanSeeOnMap = 2;

//!	integer The avatar can modify the ojects of the target avatar
		const CanModifyObjects = 4;
	}

//!	Transposition of the ParcelCategory enum
	class ParcelCategory{

//!	integer Not an actual category, only used for queries
		const Any = -1;

//!	integer No assigned category
		const None = 0;

//!	integer Linden Infohub or public area (probably counts as GridOperator)
		const Linden = 1;

//!	integer Adult themed area
		const Adult = 2;

//!	integer Arts and Culture
		const Arts = 3;

//!	integer Business
		const Business = 4;

//!	integer Educational
		const Educational = 5;

//!	integer Gaming
		const Gaming = 6;

//!	integer Hangout or Club
		const Hangout = 7;

//!	integer Newcomer friendly
		const Newcomer = 8;

//!	integer Parks and Nature
		const Park = 9;

//!	integer Residential
		const Residential = 10;

//!	integer Shopping
		const Shopping = 11;

//!	integer Not Used?
		const Stage = 12;

//!	integer Other
		const Other = 13;
	}

//!	Transposition of the ParcelStatus enum
	class ParcelStatus{

//!	integer Placeholder
        const None = -1;

//!	integer Parcel is leased (owned) by an avatar or group
        const Leased = 0;

//!	integer Parcel is in process of being leased (purchased) by an avatar or group
        const LeasePending = 1;

//!	integer Parcel has been abandoned back to Governor Linden
        const Abandoned = 2;
	}

//!	Transposition of Vector3
	class Vector3{

//!	float x-axis
//!	@see OpenMetaverse::Vector3::X()
		private $x=0.0;
//!	@return float x-axis
		public function X(){
			return $this->x;
		}

//!	float y-axis
//!	@see OpenMetaverse::Vector3::Y()
		private $y=0.0;
//!	@return float y-axis
		public function Y(){
			return $this->y;
		}

//!	float z-axis
//!	@see OpenMetaverse::Vector3::Z()
		private $z=0.0;
//!	@return float z-axis
		public function Z(){
			return $this->z;
		}

//!	Accepts args to populate new instance axis values
/**
*	@param float $x x-axis
*	@param float $y y-axis
*	@param float $z z-axis
*/
		public function __construct($x=0.0, $y=0.0, $z=0.0){
			if(is_integer($x) === true){
				$x = (float)$x;
			}
			if(is_integer($y) === true){
				$y = (float)$y;
			}
			if(is_integer($z) === true){
				$z = (float)$z;
			}

			if(is_float($x) === false){
				throw new InvalidArgumentException('x-axis should be a float.');
			}else if(is_float($y) === false){
				throw new InvalidArgumentException('y-axis should be a float.');
			}else if(is_float($z) === false){
				throw new InvalidArgumentException('z-axis should be a float.');
			}

			$this->x = $x;
			$this->y = $y;
			$this->z = $z;
		}

		public function __toString(){
			return sprintf('<%1$f, %2$f, %3$f>', $this->x, $this->y, $this->z);
		}
	}
}

//!	working in the global namespace here
namespace{
	require_once('Framework.php');
	require_once('Services.php');
	require_once('Addon.php');

//!	Class used for globally-available stuff, because a) define and const only support scalar values, and b) the global operate is ugly.
/**
*	We're making this "final" for semantic reasons.
*	The suggested usage is:
*	Globals::i()->foo = 'bar'; echo Globals::i()->foo;
*	Globals::i()->baz = function(){ return 'bat'; }; echo Globals::i()->baz();
*/
{'fraction_non_alphanumeric': 0.13572419258965723, 'fraction_numerical': 0.010105012878937983, 'mean_word_length': 3.439753737906772, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 21, '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': '5404055', 'n_tokens_mistral': 1844, 'n_tokens_neox': 1630, 'n_words': 590}