<commit_before><?php
	// Get functions
	require_once("./inc/functions.php");
	
	// Bancho/frontend loader
	if ($_SERVER["HTTP_HOST"] == "c.ppy.sh" || $_SERVER["HTTP_HOST"] == "c1.ppy.sh")
	{
		// Do bancho stuff
		require_once("./inc/bancho.php");
		
		// Run server stuff or output webpage
		if ($_SERVER["HTTP_USER_AGENT"] == "osu!")
			banchoServer();
		else
			banchoWeb();
		
		// Don't process anything from the web frontend
		die();
	}
	
	// Do frontend stuff	
?>

<?php
    // Frontend stuff
    // We're using ob_start to safely send headers while we're processing the script initially.
    ob_start();
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Dynamic title -->
    <?php if (isset($_GET["u"]) && !empty($_GET["u"])) setTitle("u"); ?>
    <?php if (isset($_GET["p"]) && !empty($_GET["p"])) $p = $_GET["p"]; else $p = 1; setTitle($p); ?>

    <!-- Bootstrap Core CSS -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">

    <!-- Bootstrap select CSS -->
    <link href="./css/bootstrap-select.min.css" rel="stylesheet">

    <!-- Bootstrap Font Awesome Picker CSS -->
    <link href="./css/fontawesome-iconpicker.min.css" rel="stylesheet">

    <!-- Bootstrap Color Picker CSS -->
    <link href="./css/bootstrap-colorpicker.min.css" rel="stylesheet">

    <!-- SCEditor CSS -->
    <link rel="stylesheet" href="./css/themes/default.css" type="text/css" media="all" />

    <!-- Animate CSS -->
    <link rel="stylesheet" href="./css/animate.css">

    <!-- Custom CSS -->
    <link href="./css/style-desktop.css" rel="stylesheet">

    <!-- Favicon -->
    <link rel="icon" href="favicon.png"/>
</head>

<body>
    <?php
    // Start session with user if we got a valid cookie.
    startSessionIfNotStarted();
    $c = new RememberCookieHandler();
    if ($c->Check())
      $c->Validate();
    ?>
    <!-- Navbar -->
    <?php printNavbar(); ?>

    <!-- Page content (< 100: Normal pages, >= 100: Admin CP pages) -->
    <?php
    if ($p < 100)
    {
        // Normal page, print normal layout (will fix this in next commit, dw)
        echo('
        <div class="container"><commit_msg>Add viewport for mobile<commit_after><?php
	// Get functions
	require_once("./inc/functions.php");

	// Bancho/frontend loader
	if ($_SERVER["HTTP_HOST"] == "c.ppy.sh" || $_SERVER["HTTP_HOST"] == "c1.ppy.sh")
	{
		// Do bancho stuff
		require_once("./inc/bancho.php");

		// Run server stuff or output webpage
		if ($_SERVER["HTTP_USER_AGENT"] == "osu!")
			banchoServer();
		else
			banchoWeb();

		// Don't process anything from the web frontend
		die();
	}

	// Do frontend stuff
?>

<?php
    // Frontend stuff
    // We're using ob_start to safely send headers while we're processing the script initially.
    ob_start();
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Dynamic title -->
    <?php if (isset($_GET["u"]) && !empty($_GET["u"])) setTitle("u"); ?>
    <?php if (isset($_GET["p"]) && !empty($_GET["p"])) $p = $_GET["p"]; else $p = 1; setTitle($p); ?>

    <!-- Bootstrap Core CSS -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">

    <!-- Bootstrap select CSS -->
    <link href="./css/bootstrap-select.min.css" rel="stylesheet">

    <!-- Bootstrap Font Awesome Picker CSS -->
    <link href="./css/fontawesome-iconpicker.min.css" rel="stylesheet">

    <!-- Bootstrap Color Picker CSS -->
    <link href="./css/bootstrap-colorpicker.min.css" rel="stylesheet">

    <!-- SCEditor CSS -->
    <link rel="stylesheet" href="./css/themes/default.css" type="text/css" media="all" />

    <!-- Animate CSS -->
    <link rel="stylesheet" href="./css/animate.css">

    <!-- Custom CSS -->
    <link href="./css/style-desktop.css" rel="stylesheet">

    <!-- Favicon -->
    <link rel="icon" href="favicon.png"/>

    <meta name=viewport content="width=device-width, initial-scale=1">
</head>

<body>
    <?php
    // Start session with user if we got a valid cookie.
    startSessionIfNotStarted();
    $c = new RememberCookieHandler();
    if ($c->Check())
      $c->Validate();
    ?>
    <!-- Navbar -->
    <?php printNavbar(); ?>

    <!-- Page content (< 100: Normal pages, >= 100: Admin CP pages) -->
    <?php
    if ($p < 100)
    {
        // Normal page, print normal layout (will fix this in next commit, dw)
        echo('
        <div class="container">
{'fraction_non_alphanumeric': 0.2052401746724891, 'fraction_numerical': 0.0056144728633811605, 'mean_word_length': 2.879032258064516, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 84, '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': '6470749', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1530, 'n_words': 388}