<commit_before><!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>ValidForm Builder playground</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/validform.css">

    <script src="js/jquery.min.js"></script>
    <script src="js/validform.js"></script>
    <script src="js/validwizard.js"></script>
</head>
<body>

<h1>ValidForm Builder Playground</h1>
<p>This file serves as a playground for ValidForm Builder. Edit the contents of <code>src/sandbox.php</code> to change the form below. Alternatively, you can <a href="examples.php">browse through the form examples</a>.</p>

<?php
require_once('../src/sandbox.php');
?>

</body><commit_msg>Display source of sandbox.php on main page<commit_after><?php
$includePath = '../src/sandbox.php';
?>
<!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>ValidForm Builder playground</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/validform.css">
    <link rel="stylesheet" href="css/monokai-sublime.css">

    <script src="js/jquery.min.js"></script>
    <script src="js/validform.js"></script>
    <script src="js/validwizard.js"></script>

    <script src="js/highlight.js"></script>
</head>
<body>

<h1>ValidForm Builder Playground</h1>
<p>This file serves as a playground for ValidForm Builder. Edit the contents of <code>src/sandbox.php</code> to change the form below. Alternatively, you can <a href="examples.php">browse through the form examples</a>.</p>

<h2><?=$includePath?></h2>
<pre>
<code>
<?php
//*** Get the source file and show it as a reference for users
$source = file_get_contents($includePath);
$source = htmlspecialchars($source);

echo $source;
?>
</code>
</pre>
<hr>
<h2>Output</h2>
<?php

    require_once($includePath);

?>

<script>hljs.initHighlightingOnLoad();</script>
</body>
{'fraction_non_alphanumeric': 0.18511957484499558, 'fraction_numerical': 0.005314437555358724, 'mean_word_length': 4.867532467532468, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, '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': '3169049', 'n_tokens_mistral': 780, 'n_tokens_neox': 749, 'n_words': 178}