$AboutTemplateName = 'fastest-about.tpl.php'; $About->set('DataSet', $DataSet); $SLangs = SelectedLangs($Langs, $Action, $HTTP_GET_VARS); if (!file_exists(ABOUT_PATH . $AboutTemplateName)) { $AboutTemplateName = 'blank-about.tpl.php'; } $Body->set('DataSet', $DataSet); $metaRobots = '<meta name="robots" content="all" /><meta name="revisit" content="4 days" />'; $MetaKeywords = '<meta name="description" content="Find out which programming language has the fastest benchmark programs (' . PLATFORM_NAME . ') & how your favorite language compares." />'; $faqUrl = CORE_SITE . 'help.php'; $bannerUrl = CORE_SITE; $timeUsed = 'Elapsed secs'; $Data = FullRatios('u64/' . DATA_PATH . 'data.csv', $Tests, $Langs, $Incl, $Excl, $SLangs); $Data = array_merge_recursive($Data, FullRatios('u64q/' . DATA_PATH . 'data.csv', $Tests, $Langs, $Incl, $Excl, $SLangs)); $Data = array_merge_recursive($Data, FullRatios('u32/' . DATA_PATH . 'data.csv', $Tests, $Langs, $Incl, $Excl, $SLangs)); $Data = array_merge_recursive($Data, FullRatios('u32q/' . DATA_PATH . 'data.csv', $Tests, $Langs, $Incl, $Excl, $SLangs)); $Body->set('Data', FullScores($SLangs, $Data)); // TEMPLATE VARS //////////////////////////////////////////////// $Page->set('PageTitle', $Title . BAR . 'Computer Language Benchmarks Game'); $Page->set('BannerTitle', BANNER_TITLE); $Page->set('FaqTitle', FAQ_TITLE); $Page->set('BannerUrl', $bannerUrl); $Page->set('FaqUrl', $faqUrl); $Body->set('Tests', $Tests); $Body->set('Langs', $Langs); $Body->set('Excl', $Excl); $Body->set('Mark', $mark); $Body->set('TimeUsed', $timeUsed); $Body->set('About', $About->fetch($AboutTemplateName)); $Page->set('PageBody', $Body->fetch($TemplateName)); $Page->set('Robots', $metaRobots);
function BoxplotData($FileName, $Tests, $Langs, $Incl, $Excl, $HasHeading = TRUE) { return FullScores(FullRatios($FileName, $Tests, $Langs, $Incl, $Excl, $HasHeading)); }