<commit_before><?php
/**
 * @file
 * ------------------------------------------------------------------------------------
 * Created by SAN Business Consultants for RAPTOR phase 2
 * Open Source VA Innovation Project 2011-2015
 * VA Innovator: Dr. <NAME>
 * SAN Implementation: <NAME>, <NAME>, et al
 * Contacts: <EMAIL>, <EMAIL>
 * ------------------------------------------------------------------------------------
 *  
 */

namespace raptor;

require_once 'AReport.php';

/**
 * This class returns the configuration details
 *
 * @author <NAME> of SAN Business Consultants
 */
class ViewTechSupportConfigDetails extends AReport
{
    private static $reqprivs = array('SITEADMIN'=>1);
    private static $menukey = 'raptor/showtechsupportconfigdetails';
    private static $reportname = 'Technical Support Configuration Details';

    function __construct()
    {
        parent::__construct(self::$reqprivs, self::$menukey, self::$reportname);
    }

    public function getDescription() 
    {
        return 'Shows detailed configuration settings of the installation';
    }

    /**
     * Get all the form contents for rendering
     * @return type renderable array
     */
    function getForm($form, &$form_state, $disabled, $myvalues)
    {
       $form["data_entry_area1"] = array(
            '#prefix' => "\n<section class='user-admin raptor-dialog-table'>\n",
            '#suffix' => "\n</section>\n",
        );

        ob_start();<commit_msg>enhanced report to show drupal information<commit_after><?php
/**
 * @file
 * ------------------------------------------------------------------------------------
 * Created by SAN Business Consultants for RAPTOR phase 2
 * Open Source VA Innovation Project 2011-2015
 * VA Innovator: Dr. <NAME>
 * SAN Implementation: <NAME>, <NAME>, et al
 * Contacts: <EMAIL>, <EMAIL>
 * ------------------------------------------------------------------------------------
 *  
 */

namespace raptor;

require_once 'AReport.php';

/**
 * This class returns the configuration details
 *
 * @author <NAME> of SAN Business Consultants
 */
class ViewTechSupportConfigDetails extends AReport
{
    private static $reqprivs = array('SITEADMIN'=>1);
    private static $menukey = 'raptor/showtechsupportconfigdetails';
    private static $reportname = 'Technical Support Configuration Details';

    function __construct()
    {
        parent::__construct(self::$reqprivs, self::$menukey, self::$reportname);
    }

    public function getDescription() 
    {
        return 'Shows detailed configuration settings of the installation';
    }

    /**
     * Get all the form contents for rendering
     * @return type renderable array
     */
    function getForm($form, &$form_state, $disabled, $myvalues)
    {
       $form["data_entry_area1"] = array(
            '#prefix' => "\n<section class='user-admin raptor-dialog-table'>\n",
            '#suffix' => "\n</section>\n",
        );
        $profile = drupal_get_profile();
        $drupalinfo = "<div style='text-align: center'>"
                . "<h1>Drupal Info</h1>"
                . "<table style='margin-left: auto; margin-right: auto; text-align: left;' cellpadding='3' width='600px'>"
                . "<tr><th>Type</th><th>Value</th></tr>"
                . "<tbody>"
                . "<tr><td>Profile</td><td>$profile</td></tr>"
                . "</tbody>"
                . "</table>"
                . "</div>";

        $form['data_entry_area1']['table_container']['drupalinfo'] = array('#type' => 'item',
                 '#markup' => $drupalinfo);
                
        ob_start();
{'fraction_non_alphanumeric': 0.2229317046085508, 'fraction_numerical': 0.008051082731815658, 'mean_word_length': 1.9850869925434962, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 47, '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': '2368597', 'n_tokens_mistral': 989, 'n_tokens_neox': 943, 'n_words': 244}