<commit_before><?php

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

/**
 * Basic snippet for editing track engines instances
 *
 * @package    Gems
 * @subpackage Tracker
 * @copyright  Copyright (c) 2012 Erasmus MC
 * @license    New BSD License
 * @since      Class available since version 1.5
 */
class Gems_Tracker_Snippets_EditTrackEngineSnippetGeneric extends \Gems_Snippets_ModelFormSnippetAbstract
{
    /**
     *
     * @var string Field for storing the old track class
     */
    protected $_oldClassName = 'old__gtr_track_class';

    /**
     *
     * @var \Zend_Db_Adapter_Abstract
     */
    protected $db;

    /**
     * Required
     *
     * @var \Gems_Loader
     */
    protected $loader;

    /**
     * Optional, required when creating or $trackId should be set
     *
     * @var \Gems_Tracker_Engine_TrackEngineInterface
     */
    protected $trackEngine;

    /**
     * Optional, required when creating or $engine should be set
     *
     * @var int Track Id
     */
    protected $trackId;

    /**
     * @var \Gems_Util
     */
    protected $util;

    /**
     * Adds elements from the model to the bridge that creates the form.
     *
     * Overrule this function to add different elements to the browse table, without
     * having to recode the core table building code.
     *
     * @param \MUtil_Model_Bridge_FormBridgeInterface $bridge
     * @param \MUtil_Model_ModelAbstract $model
     */
    protected function addFormElements(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model)
    {
        if (! $this->createData) {
            $bridge->addHidden('gtr_id_track');
        }
        $bridge->addText('gtr_track_name');

        // gtr_track_class<commit_msg>Add Database Translations to track name #568<commit_after><?php

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

/**
 * Basic snippet for editing track engines instances
 *
 * @package    Gems
 * @subpackage Tracker
 * @copyright  Copyright (c) 2012 Erasmus MC
 * @license    New BSD License
 * @since      Class available since version 1.5
 */
class Gems_Tracker_Snippets_EditTrackEngineSnippetGeneric extends \Gems_Snippets_ModelFormSnippetAbstract
{
    /**
     *
     * @var string Field for storing the old track class
     */
    protected $_oldClassName = 'old__gtr_track_class';

    /**
     *
     * @var \Zend_Db_Adapter_Abstract
     */
    protected $db;

    /**
     * Required
     *
     * @var \Gems_Loader
     */
    protected $loader;

    /**
     * Optional, required when creating or $trackId should be set
     *
     * @var \Gems_Tracker_Engine_TrackEngineInterface
     */
    protected $trackEngine;

    /**
     * Optional, required when creating or $engine should be set
     *
     * @var int Track Id
     */
    protected $trackId;

    /**
     * @var \Gems_Util
     */
    protected $util;

    /**
     * Adds elements from the model to the bridge that creates the form.
     *
     * Overrule this function to add different elements to the browse table, without
     * having to recode the core table building code.
     *
     * @param \MUtil_Model_Bridge_FormBridgeInterface $bridge
     * @param \MUtil_Model_ModelAbstract $model
     */
    protected function addFormElements(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model)
    {
        if (! $this->createData) {
            $bridge->addHidden('gtr_id_track');
            $bridge->addHidden('table_keys');
        }
        $bridge->addText('gtr_track_name');
        $bridge->addFormTable('translations_gtr_track_name');


        // gtr_track_class
{'fraction_non_alphanumeric': 0.09830595482546202, 'fraction_numerical': 0.005903490759753593, 'mean_word_length': 2.4919354838709675, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '2652116', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1136, 'n_words': 313}