<commit_before><?php

include("globals.php");
include("php/file.php");

// If a specific page has been specified, set that as the current page; otherwise, goto the parameters page
if ($_REQUEST["page"] != "") { $page = $_REQUEST["page"]; } else { $page = "parameters"; }

// If we are currently in the experiment...
if ($page == "experiment") {
  include("php/triangle.php");
  include("php/main.php");
}

?>
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Infinity</title>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<script src='js/jquery.js'></script>

<?php

if ($page == "experiment" AND $experiment_page == "BREAK") {
  echo "<script src='js/countdown.js' type='text/javascript'></script>";
}

include("js/functions.js");

?>

</head>
<body<?php echo $js_onload; ?>>

<?php

if ($set_size % $mini_test_frequency != 0) { echo "WARNING: Global parameter mini_test_frequency must be a divisor of set_size"; }

if ($page == "parameters") {
  include("html/parameters.html");
}

elseif ($page == "validation") {
  include("html/validation.html");
}

elseif ($page == "experiment") {

  if ($experiment_page == "BEGIN") {
    include("html/welcome.html");
  }

  elseif ($experiment_page == "TR") {
    include("html/training.html");
  }

  elseif ($experiment_page == "MT") {
    include("html/mini_test.html");
  }

  elseif ($experiment_page == "TS") {
    include("html/test.html");
  }

  elseif ($experiment_page == "TA") {
    include("html/test_array.html");
  }

  elseif ($experiment_page == "BREAK") {
    include("html/break.html");
  }

  elseif ($experiment_page == "WAIT") {
    include("html/wait.html");
  }

  elseif ($experiment_page == "END") {
    include("html/end.html");
  }

  else {
    echo "<h1>Map error</h1><p>Please inform the experiment supervisor.</p>";
  }

}

else {
  echo "<h1>Page error</h1><p>Please inform the experiment supervisor.</p>";
}

?>

</body>
</html>
<commit_msg>Updated style of error pages<commit_after><?php

include("globals.php");
include("php/file.php");

// If a specific page has been specified, set that as the current page; otherwise, goto the parameters page
if ($_REQUEST["page"] != "") { $page = $_REQUEST["page"]; } else { $page = "parameters"; }

// If we are currently in the experiment...
if ($page == "experiment") {
  include("php/triangle.php");
  include("php/main.php");
}

?>
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Infinity</title>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
<script src='js/jquery.js'></script>

<?php

if ($page == "experiment" AND $experiment_page == "BREAK") {
  echo "<script src='js/countdown.js' type='text/javascript'></script>";
}

include("js/functions.js");

?>

</head>
<body<?php echo $js_onload; ?>>

<?php

if ($set_size % $mini_test_frequency != 0) { echo "WARNING: Global parameter mini_test_frequency must be a divisor of set_size"; }

if ($page == "parameters") {
  include("html/parameters.html");
}

elseif ($page == "validation") {
  include("html/validation.html");
}

elseif ($page == "experiment") {

  if ($experiment_page == "BEGIN") {
    include("html/welcome.html");
  }

  elseif ($experiment_page == "TR") {
    include("html/training.html");
  }

  elseif ($experiment_page == "MT") {
    include("html/mini_test.html");
  }

  elseif ($experiment_page == "TS") {
    include("html/test.html");
  }

  elseif ($experiment_page == "TA") {
    include("html/test_array.html");
  }

  elseif ($experiment_page == "BREAK") {
    include("html/break.html");
  }

  elseif ($experiment_page == "WAIT") {
    include("html/wait.html");
  }

  elseif ($experiment_page == "END") {
    include("html/end.html");
  }

  else {
    echo "<div id='title'>Map error</div><div id='subhead'>Please inform the experiment supervisor.</div>";
  }

}

else {
  echo "<div id='title'>Page error</div><div id='subhead'>Please inform the experiment supervisor.</div>";
}

?>

</body>
</html>

{'fraction_non_alphanumeric': 0.20419235511713935, 'fraction_numerical': 0.001972872996300863, 'mean_word_length': 4.22007722007722, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '1160826', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1382, 'n_words': 302}