<commit_before><?php
abstract class Vpc_Advanced_GoogleMapView_Component extends Vpc_Abstract_Composite_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['assets']['files'][] = 'vps/Vpc/Advanced/GoogleMapView/Component.js';
        $ret['assets']['dep'][] = 'ExtCore';
        $ret['assets']['dep'][] = 'VpsGoogleMap';
        $ret['assets']['dep'][] = 'ExtUtilJson';
        $ret['placeholder']['noCoordinates'] = ''; //leer, wird in GoogleMap benötgit damit man im backend sieht was falsch ist
        $ret['cssClass'] = 'webStandard webForm';
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();

        $options = $this->_getOptions();
        if (!isset($options['coordinates'])) {
            throw new Vps_Exception("You must return coordinates in _getOptions");
        }
        $split = explode(';', $options['coordinates']);
        if (count($split) == 2) {
            $options['latitude'] = $split[0];
            $options['longitude'] = $split[1];
        } else {
            $options['latitude'] = '';
            $options['longitude'] = '';
        }
        $options['coordinates'] = str_replace(';', ',', $options['coordinates']);

        $defaults = array(
            'zoom_properties' => 0,
            'zoom' => 10,
            'height' => 400,
            'width' => 400,
            'scale' => 1,
            'satelite' => 1,
            'overview' => 1,
            'routing' => 1,
            'streetViewControl' => 0,
            'clickableIcons' => 0<commit_msg>Revert "add template vars"<commit_after><?php
abstract class Vpc_Advanced_GoogleMapView_Component extends Vpc_Abstract_Composite_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['assets']['files'][] = 'vps/Vpc/Advanced/GoogleMapView/Component.js';
        $ret['assets']['dep'][] = 'ExtCore';
        $ret['assets']['dep'][] = 'VpsGoogleMap';
        $ret['assets']['dep'][] = 'ExtUtilJson';
        $ret['placeholder']['noCoordinates'] = ''; //leer, wird in GoogleMap benötgit damit man im backend sieht was falsch ist
        $ret['cssClass'] = 'webStandard webForm';
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();

        $options = $this->_getOptions();
        if (!isset($options['coordinates'])) {
            throw new Vps_Exception("You must return coordinates in _getOptions");
        }
        $split = explode(';', $options['coordinates']);
        if (count($split) == 2) {
            $options['latitude'] = $split[0];
            $options['longitude'] = $split[1];
        } else {
            $options['latitude'] = '';
            $options['longitude'] = '';
        }
        $options['coordinates'] = str_replace(';', ',', $options['coordinates']);

        $defaults = array(
            'zoom_properties' => 0,
            'zoom' => 10,
            'height' => 400,
            'width' => 400,
            'scale' => 1,
            'satelite' => 1,
            'overview' => 1,
            'routing' => 1
{'fraction_non_alphanumeric': 0.1747634069400631, 'fraction_numerical': 0.010725552050473186, 'mean_word_length': 2.3308823529411766, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '2387282', 'n_tokens_mistral': 942, 'n_tokens_neox': 909, 'n_words': 186}