<commit_before><?php

/*
 * This file is part of the symfony package.
 * (c) 2004, 2005 <NAME> <<EMAIL>>
 * (c) 2004, 2005 <NAME>.
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * sfFrontWebController allows you to centralize your entry point in your web
 * application, but at the same time allow for any module and action combination
 * to be requested.
 *
 * @package    symfony
 * @subpackage controller
 * @author     <NAME> <<EMAIL>>
 * @author     <NAME> <<EMAIL>>
 * @version    SVN: $Id: sfFrontWebController.class.php 495 2005-10-05 15:42:11Z fabien $
 */
class sfFrontWebController extends sfWebController
{
  /**
   * Dispatch a request.
   *
   * This will determine which module and action to use by request parameters
   * specified by the user.
   *
   * @return void
   */
  public function dispatch ()
  {
    try
    {
      // get the application context
      $context = $this->getContext();

      if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} dispatch request');

      // determine our module and action
      $moduleName = $context->getRequest()->getParameter(SF_MODULE_ACCESSOR);
      $actionName = $context->getRequest()->getParameter(SF_ACTION_ACCESSOR);

      if ($moduleName == null)
      {
        $moduleName = SF_DEFAULT_MODULE;

        if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} no module, set default ('.$moduleName.')');
      }

      if ($actionName == null)
      {
        // no action has been specified
        $actionName = SF_DEFAULT_ACTION;

        if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} no action, set default ('.$actionName.')');
      }

      // make the first request
      $this->forward($moduleName, $actionName);

      // send web debug information if needed
      if (SF_WEB_DEBUG)
      {
        sfWebDebug::getInstance()->printResults();
      }
    }
    catch (sfException $e)
    {
      $e->printStackTrace();
    }
  }
}

?><commit_msg>wrapped all Exceptions during execution<commit_after><?php

/*
 * This file is part of the symfony package.
 * (c) 2004, 2005 <NAME> <<EMAIL>>
 * (c) 2004, 2005 <NAME>.
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * sfFrontWebController allows you to centralize your entry point in your web
 * application, but at the same time allow for any module and action combination
 * to be requested.
 *
 * @package    symfony
 * @subpackage controller
 * @author     <NAME> <<EMAIL>>
 * @author     <NAME> <<EMAIL>>
 * @version    SVN: $Id: sfFrontWebController.class.php 495 2005-10-05 15:42:11Z fabien $
 */
class sfFrontWebController extends sfWebController
{
  /**
   * Dispatch a request.
   *
   * This will determine which module and action to use by request parameters
   * specified by the user.
   *
   * @return void
   */
  public function dispatch ()
  {
    try
    {
      // get the application context
      $context = $this->getContext();

      if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} dispatch request');

      // determine our module and action
      $moduleName = $context->getRequest()->getParameter(SF_MODULE_ACCESSOR);
      $actionName = $context->getRequest()->getParameter(SF_ACTION_ACCESSOR);

      if ($moduleName == null)
      {
        $moduleName = SF_DEFAULT_MODULE;

        if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} no module, set default ('.$moduleName.')');
      }

      if ($actionName == null)
      {
        // no action has been specified
        $actionName = SF_DEFAULT_ACTION;

        if (SF_LOGGING_ACTIVE) $this->getContext()->getLogger()->info('{sfFrontWebController} no action, set default ('.$actionName.')');
      }

      // make the first request
      $this->forward($moduleName, $actionName);

      // send web debug information if needed
      if (SF_WEB_DEBUG)
      {
        sfWebDebug::getInstance()->printResults();
      }
    }
    catch (sfException $e)
    {
      $e->printStackTrace();
    }
    catch (Exception $e)
    {
      // unknown exception
      $e = new sfException($e->getMessage());

      $e->printStackTrace();
    }
  }
}

?>
{'fraction_non_alphanumeric': 0.12777023971053822, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 2.8969162995594715, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 61, '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': '4111956', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1276, 'n_words': 375}