<commit_before><?php
/**
 * Represents a zone
 *
 * @copyright Copyright 2010
 * @author <NAME> <urkle at outoforder.cc>
 */
/*
 * This file is part of INQ Calculators.
 *
 * INQ Calculators is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * INQ Calculators is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with INQ Calculators.  If not, see <http://www.gnu.org/licenses/>.
 */
class RO_Zone extends RO_Base {
    protected static $zone_map = array(
        'Ignis Initiation Zone' => 'ignis_inner',
        'Ignis Inner Realm' => 'ignis_inner',
        'Ignis War Zone' => 'ignis_warzone',
        'ignis_warzone'=>'Ignis War Zone',
        'ignis_inner'=>'Ignis Inner Realms',

        'Syrtis Initiation Zone' => 'syrtis_inner',
        'Syrtis Inner Realm' => 'syrtis_inner',
        'Syrtis War Zone' => 'syrtis_warzone',
        'syrtis_warzone'=>'Syrtis War Zone',
        'syrtis_inner'=>'Syrtis Inner Realms',

        'Alsius Initiation Zone' => 'alsius_inner',
        'Alsius Inner Realm' => 'alsius_inner',
        'Alsius War Zone' => 'alsius_warzone',
        'alsius_warzone'=>'Alsius War Zone',
        'alsius_inner'=>'Alisus Inner Realms',
    );

    protected function configSQL()
    {
        return "SELECT * FROM zones WHERE zone_id = ?";
    }

    protected function configCache()
    {
        return array('zones','zone_id');
    }

    protected function shortID() {
        return self::$zone_map[$this->realm.' '.$this->region];
    }

    protected function shortName() {
        return self::$zone_map[$this->shortID()];<commit_msg>Don't pull in Geometry data when pulling in zone data<commit_after><?php
/**
 * Represents a zone
 *
 * @copyright Copyright 2010
 * @author <NAME> <urkle at outoforder.cc>
 */
/*
 * This file is part of INQ Calculators.
 *
 * INQ Calculators is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * INQ Calculators is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with INQ Calculators.  If not, see <http://www.gnu.org/licenses/>.
 */
class RO_Zone extends RO_Base {
    protected static $zone_map = array(
        'Ignis Initiation Zone' => 'ignis_inner',
        'Ignis Inner Realm' => 'ignis_inner',
        'Ignis War Zone' => 'ignis_warzone',
        'ignis_warzone'=>'Ignis War Zone',
        'ignis_inner'=>'Ignis Inner Realms',

        'Syrtis Initiation Zone' => 'syrtis_inner',
        'Syrtis Inner Realm' => 'syrtis_inner',
        'Syrtis War Zone' => 'syrtis_warzone',
        'syrtis_warzone'=>'Syrtis War Zone',
        'syrtis_inner'=>'Syrtis Inner Realms',

        'Alsius Initiation Zone' => 'alsius_inner',
        'Alsius Inner Realm' => 'alsius_inner',
        'Alsius War Zone' => 'alsius_warzone',
        'alsius_warzone'=>'Alsius War Zone',
        'alsius_inner'=>'Alisus Inner Realms',
    );

    protected function configSQL()
    {
        /** Don't pull back geomertry by default */
        return "SELECT zone_id, name, realm, region FROM zones WHERE zone_id = ?";
    }

    protected function configCache()
    {
        return array('zones','zone_id');
    }

    protected function shortID() {
        return self::$zone_map[$this->realm.' '.$this->region];
    }

    protected function shortName() {
        return self::$zone_map[$this->shortID()];
{'fraction_non_alphanumeric': 0.11206690561529271, 'fraction_numerical': 0.0023894862604540022, 'mean_word_length': 3.0839024390243903, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3470103', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1249, 'n_words': 432}