<commit_before><?php


/**
 * Google Maps Javascript API implementation.
 * 
 * @author <NAME>, w3concepts AG
 * @copyright Copyright &copy; 2010, w3concepts AG
 * 
 * {@id $Id: Class.php 19936 2010-11-18 16:45:59Z akm $}
 */

class Module_Google_Maps_Javascript_Class extends Aitsu_Ee_Module_Abstract {

	public static function about() {

		return (object) array (
			'name' => 'GoogleMapsJavascript',
			'description' => Aitsu_Translate :: translate('Google Maps Javascript API implementation.'),
			'type' => array (
				'Content'
			),
			'author' => (object) array (
				'name' => '<NAME>',
				'copyright' => 'w3concepts AG'
			),
			'version' => '1.0.0',
			'status' => 'stable',
			'url' => null,
			'id' => '4ce513e6-3c5c-4b08-b579-09f97f000101'
		);
	}

	public static function init($context) {

		$instance = new self();

		$view = $instance->_getView();

		$view->id = uniqid('GoogleMap');

		$address = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Address', Aitsu_Translate :: translate('Address'), Aitsu_Translate :: translate('Location'));
		$width = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Width', Aitsu_Translate :: translate('Width'), Aitsu_Translate :: translate('Style'));
		$height = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Height', Aitsu_Translate :: translate('Height'), Aitsu_Translate :: translate('Style'));
		$zoom = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Zoom', Aitsu_Translate :: translate('Zoom'), Aitsu_Translate :: translate('View'));

		$view->className = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Class', Aitsu_Translate :: translate('Class'), Aitsu_Translate :: translate('Style'));
		$view->name = Aitsu_Ee_Config_Text :: set($context['index'], 'GoogleMapJavascript.Name', Aitsu_Translate :: translate('Name'), Aitsu_Translate :: translate('Location'));
		$type = Aitsu_Ee_Config_Radio :: set($context['index'], 'GoogleMapJavascript.Type', Aitsu_Translate :: translate('Type'), array (
			'Roadmap' => 'ROADMAP',
			'Satelite' => 'SATELLITE',
			'Hybrid' => 'HYBRID',
			'Terrain' => 'TERRAIN'
		), Aitsu_Translate :: translate('Display type'));
		$view->type = empty($type) ? 'SATELLITE' : $type;
		$view->address = empty ($address) ? 'Nowhere Creek, Victoria, Australia' : $address;
		$view->width = empty ($width) ? 300 : $width;
		$view->height = empty ($height) ? 200 : $height;
		$view->zoom = empty ($zoom) ? 0 : $zoom;<commit_msg>Changed google maps javascript api shortcode to extjs.<commit_after><?php


/**
 * Google Maps Javascript API implementation.
 * 
 * @author <NAME>, w3concepts AG
 * @copyright Copyright &copy; 2010, w3concepts AG
 */

class Module_Google_Maps_Javascript_Class extends Aitsu_Ee_Module_Abstract {

	public static function init($context) {

		$instance = new self();

		$view = $instance->_getView();

		$view->id = uniqid('GoogleMap');

		$address = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Address', Aitsu_Translate :: translate('Address'), Aitsu_Translate :: translate('Location'));
		$width = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Width', Aitsu_Translate :: translate('Width'), Aitsu_Translate :: translate('Style'));
		$height = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Height', Aitsu_Translate :: translate('Height'), Aitsu_Translate :: translate('Style'));
		$zoom = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Zoom', Aitsu_Translate :: translate('Zoom'), Aitsu_Translate :: translate('View'));

		$view->className = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Class', Aitsu_Translate :: translate('Class'), Aitsu_Translate :: translate('Style'));
		$view->name = Aitsu_Content_Config_Text :: set($context['index'], 'GoogleMapJavascript.Name', Aitsu_Translate :: translate('Name'), Aitsu_Translate :: translate('Location'));
		$type = Aitsu_Content_Config_Radio :: set($context['index'], 'GoogleMapJavascript.Type', Aitsu_Translate :: translate('Type'), array (
			'Roadmap' => 'ROADMAP',
			'Satelite' => 'SATELLITE',
			'Hybrid' => 'HYBRID',
			'Terrain' => 'TERRAIN'
		), Aitsu_Translate :: translate('Display type'));
		$view->type = empty($type) ? 'SATELLITE' : $type;
		$view->address = empty ($address) ? 'Nowhere Creek, Victoria, Australia' : $address;
		$view->width = empty ($width) ? 300 : $width;
		$view->height = empty ($height) ? 200 : $height;
		$view->zoom = empty ($zoom) ? 0 : $zoom;
{'fraction_non_alphanumeric': 0.1784776902887139, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 5.928787878787879, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 42, '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': '5661582', 'n_tokens_mistral': 1669, 'n_tokens_neox': 1447, 'n_words': 296}