<commit_before><?php

/**
 *
 * @package    Gems
 * @subpackage Tracker
 * @author     <NAME> <<EMAIL>>
 * @copyright  Copyright (c) 2011 Erasmus MC
 * @license    New BSD License
 * @version    $Id$
 */

/**
 * A fieldmap object adds LS source code knowledge and interpretation to the database data
 * about a survey. This enables the code to work with the survey object.
 *
 * @package    Gems
 * @subpackage Tracker
 * @copyright  Copyright (c) 2011 Erasmus MC
 * @license    New BSD License
 * @since      Class available since version 1.4
 */
class Gems_Tracker_Source_LimeSurvey1m9FieldMap
{
    const ANSWERS_TABLE      = 'answers';
    const ATTRIBUTES_TABLE   = 'question_attributes';
    const GROUPS_TABLE       = 'groups';
    const QUESTIONS_TABLE    = 'questions';

    /**
     * Internal type, used for startdate, submitdate, datestamp fields
     */
    const INTERNAL           = 'stamp';

    protected $_answers;
    protected $_attributes;
    protected $_fieldMap;
    protected $_hardAnswers;
    protected $_titlesMap;

    /**
     * @var \Zend_Cache_Core
     */
    protected $cache;

    /**
     * The language of this fieldmap
     *
     * @var string
     */
    protected $language;

    /**
     * Limesurvey database adapter
     *
     * @var \Zend_Db_Adapter_Abstract
     */
    protected $ldDb;

    protected $tableMetaData;

    /**
     * Prefix to add to standard table name
     *
     * @var string
     */
    protected $tablePrefix;

    /**
     *
     * @var \Zend_Translate
     */
    protected $translate;<commit_msg>Fixed Typo of property lsDb in LimesurveyFieldMap. Property ldDb is not used anywhere, while lsDb is being used but not set.<commit_after><?php

/**
 *
 * @package    Gems
 * @subpackage Tracker
 * @author     <NAME> <<EMAIL>>
 * @copyright  Copyright (c) 2011 Erasmus MC
 * @license    New BSD License
 * @version    $Id$
 */

/**
 * A fieldmap object adds LS source code knowledge and interpretation to the database data
 * about a survey. This enables the code to work with the survey object.
 *
 * @package    Gems
 * @subpackage Tracker
 * @copyright  Copyright (c) 2011 <NAME>
 * @license    New BSD License
 * @since      Class available since version 1.4
 */
class Gems_Tracker_Source_LimeSurvey1m9FieldMap
{
    const ANSWERS_TABLE      = 'answers';
    const ATTRIBUTES_TABLE   = 'question_attributes';
    const GROUPS_TABLE       = 'groups';
    const QUESTIONS_TABLE    = 'questions';

    /**
     * Internal type, used for startdate, submitdate, datestamp fields
     */
    const INTERNAL           = 'stamp';

    protected $_answers;
    protected $_attributes;
    protected $_fieldMap;
    protected $_hardAnswers;
    protected $_titlesMap;

    /**
     * @var \Zend_Cache_Core
     */
    protected $cache;

    /**
     * The language of this fieldmap
     *
     * @var string
     */
    protected $language;

    /**
     * Limesurvey database adapter
     *
     * @var \Zend_Db_Adapter_Abstract
     */
    protected $lsDb;

    protected $tableMetaData;

    /**
     * Prefix to add to standard table name
     *
     * @var string
     */
    protected $tablePrefix;

    /**
     *
     * @var \Zend_Translate
     */
    protected $translate;
{'fraction_non_alphanumeric': 0.09583975346687211, 'fraction_numerical': 0.007395993836671803, 'mean_word_length': 2.360248447204969, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, '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': '3627558', 'n_tokens_mistral': 1016, 'n_tokens_neox': 965, 'n_words': 296}