<commit_before><?php
$docRoot = getenv("DOCUMENT_ROOT");

require_once LIBDIR . "/TranslocReader.php";

$now = time();

$reader = new TranslocReader();

$agencies = $reader->getAgenciesAndNames();

// this method is only called so that we make a call back
// to transloc, so transloc can tabulate accurate statistics
header("refresh: 60;url=index.php?autorefreshed=true");
if(!$_REQUEST['autorefreshed']) {
    $reader->refreshSetup();
}

$runningRoutes = array();
foreach ($agencies as $agencyID => $agencyName) {
  $runningRoutes[$agencyID] = $reader->getRunningRoutesAndNamesForAgency($agencyID);
}
$nonRunningRoutes = array();
foreach ($agencies as $agencyID => $agencyName) {
  $nonRunningRoutes[$agencyID] = $reader->getNonRunningRoutesAndNamesForAgency($agencyID);
}

$agenciesAnnouncements = $reader->getAnnouncements();
$agencyAnnouncementsAndName = array();

foreach($agencies as $agencyID => $agencyName) {
    $tempAnnouncments = array('name' => $agencyID, 'long_name' => $agencyName);
    foreach($agenciesAnnouncements['agencies'] as $announcements) {

        if($announcements['name'] == $agencyID) {
           $tempAnnouncments = array_merge($tempAnnouncments, $announcements);
           break;
        }
    }
    $agenciesAnnouncementsAndName[] = $tempAnnouncments;
}

$tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'Running';<commit_msg>changing autorefresh rate to every three minutes for shuttle home page<commit_after><?php
$docRoot = getenv("DOCUMENT_ROOT");

require_once LIBDIR . "/TranslocReader.php";

$now = time();

$reader = new TranslocReader();

$agencies = $reader->getAgenciesAndNames();

// this method is only called so that we make a call back
// to transloc, so transloc can tabulate accurate statistics
header("refresh: 180;url=index.php?autorefreshed=true");
if(!$_REQUEST['autorefreshed']) {
    $reader->refreshSetup();
}

$runningRoutes = array();
foreach ($agencies as $agencyID => $agencyName) {
  $runningRoutes[$agencyID] = $reader->getRunningRoutesAndNamesForAgency($agencyID);
}
$nonRunningRoutes = array();
foreach ($agencies as $agencyID => $agencyName) {
  $nonRunningRoutes[$agencyID] = $reader->getNonRunningRoutesAndNamesForAgency($agencyID);
}

$agenciesAnnouncements = $reader->getAnnouncements();
$agencyAnnouncementsAndName = array();

foreach($agencies as $agencyID => $agencyName) {
    $tempAnnouncments = array('name' => $agencyID, 'long_name' => $agencyName);
    foreach($agenciesAnnouncements['agencies'] as $announcements) {

        if($announcements['name'] == $agencyID) {
           $tempAnnouncments = array_merge($tempAnnouncments, $announcements);
           break;
        }
    }
    $agenciesAnnouncementsAndName[] = $tempAnnouncments;
}

$tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'Running';
{'fraction_non_alphanumeric': 0.15362526920315864, 'fraction_numerical': 0.0017946877243359654, 'mean_word_length': 5.651551312649165, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '7300799', 'n_tokens_mistral': 922, 'n_tokens_neox': 885, 'n_words': 175}