<commit_before><?php
/**
 * Sample index file for running the frontend. This is a simple file which creates
 * a new UNL_UCBCN_Frontend object and handles sending the output to the user.
 * 
 * PHP version 5
 * 
 * @category  Events 
 * @package   UNL_UCBCN_Frontend
 * @author    <NAME> <<EMAIL>>
 * @copyright 2008 Regents of the University of Nebraska
 * @license   http://www1.unl.edu/wdn/wiki/Software_License BSD License
 * @link      http://code.google.com/p/unl-event-publisher/
 */
ini_set('display_errors', true);
require_once 'UNL/UCBCN/Frontend.php';

$GLOBALS['unl_template_dependents'] = $_SERVER['DOCUMENT_ROOT'].'/ucomm/templatedependents';

$front = new UNL_UCBCN_Frontend(array_merge(array(
            'dsn'                 =>'mysqli://eventcal:eventcal@localhost/eventcal',
            'template'            => 'default',
            'uri'                 => '',
            'uriformat'           => 'querystring',
            'manageruri'          => '',
            'default_calendar_id' => 1),
            UNL_UCBCN_Frontend::determineView()));
if (isset($_GET['calendar_shortname'])&&!empty($_GET['calendar_shortname'])) {
    $front->calendar            = $front->factory('calendar');
    $front->calendar->shortname = $_GET['calendar_shortname'];
    if (!$front->calendar->find()) {
        header('HTTP/1.0 404 Not Found');
        $front->output[] = new UNL_UCBCN_Error('The calendar you requested could not be found.');<commit_msg>Add default addresses for manageruri and frontenduri so simple installations which place the manager in a sane location will get functionality right out of the box.<commit_after><?php
/**
 * Sample index file for running the frontend. This is a simple file which creates
 * a new UNL_UCBCN_Frontend object and handles sending the output to the user.
 * 
 * PHP version 5
 * 
 * @category  Events 
 * @package   UNL_UCBCN_Frontend
 * @author    <NAME> <<EMAIL>>
 * @copyright 2008 Regents of the University of Nebraska
 * @license   http://www1.unl.edu/wdn/wiki/Software_License BSD License
 * @link      http://code.google.com/p/unl-event-publisher/
 */
ini_set('display_errors', true);
require_once 'UNL/UCBCN/Frontend.php';

$GLOBALS['unl_template_dependents'] = $_SERVER['DOCUMENT_ROOT'].'/ucomm/templatedependents';

$front = new UNL_UCBCN_Frontend(array_merge(array(
            'dsn'                 =>'mysqli://eventcal:eventcal@localhost/eventcal',
            'template'            => 'default',
            'uri'                 => '',
            'uriformat'           => 'querystring',
            'manageruri'          => 'manager/',
            'default_calendar_id' => 1),
            UNL_UCBCN_Frontend::determineView()));
if (isset($_GET['calendar_shortname'])&&!empty($_GET['calendar_shortname'])) {
    $front->calendar            = $front->factory('calendar');
    $front->calendar->shortname = $_GET['calendar_shortname'];
    if (!$front->calendar->find()) {
        header('HTTP/1.0 404 Not Found');
        $front->output[] = new UNL_UCBCN_Error('The calendar you requested could not be found.');
{'fraction_non_alphanumeric': 0.14021421616358326, 'fraction_numerical': 0.007789678675754625, 'mean_word_length': 2.9819121447028425, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 35, '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': '7162496', 'n_tokens_mistral': 948, 'n_tokens_neox': 917, 'n_words': 211}