<commit_before><?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 cc=80; */

/**
 * @package     omeka
 * @subpackage  fedora-connector
 * @copyright   2012 Rector and Board of Visitors, University of Virginia
 * @license     http://www.apache.org/licenses/LICENSE-2.0.html
 */


class FedoraConnector_ServersController
    extends Omeka_Controller_AbstractActionController
{


    /**
     * Cache the servers table.
     */
    public function init()
    {
        $this->_servers = $this->_helper->db->getTable(
            'FedoraConnectorServer'
        );
    }


    /**
     * Show servers.
     */
    public function browseAction()
    {
        $this->view->servers = $this->_servers->findAll();
    }


    /**
     * Add server.
     */
    public function addAction()
    {

        // Create server and form.<commit_msg>Updates the servers controller to make the built-in delete action work.<commit_after><?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 cc=80; */

/**
 * @package     omeka
 * @subpackage  fedora-connector
 * @copyright   2012 Rector and Board of Visitors, University of Virginia
 * @license     http://www.apache.org/licenses/LICENSE-2.0.html
 */


class FedoraConnector_ServersController
    extends Omeka_Controller_AbstractActionController
{


    /**
     * Cache the servers table.
     */
    public function init()
    {

        // Register the default model.
        $this->_helper->db->setDefaultModelName('FedoraConnectorServer');

        // Alias the servers tables.
        $this->_servers = $this->_helper->db->getTable(
            'FedoraConnectorServer'
        );

    }


    /**
     * Show servers.
     */
    public function browseAction()
    {
        $this->view->servers = $this->_servers->findAll();
    }


    /**
     * Add server.
     */
    public function addAction()
    {

        // Create server and form.
{'fraction_non_alphanumeric': 0.12140240711669283, 'fraction_numerical': 0.011512297226582941, 'mean_word_length': 2.262798634812287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '2115821', 'n_tokens_mistral': 577, 'n_tokens_neox': 557, 'n_words': 126}